Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce425ccf authored by Shalaj Jain's avatar Shalaj Jain
Browse files

msm: vidc: Allow non-contiguous allocations for secure buffers



Pass a flag to ion to allow non-contiguous allocations with an sg list
of 1MB chunks for secure buffers.

Change-Id: I49a101cf7c20be0fa80aafb8476d0192436b7d90
Signed-off-by: default avatarShalaj Jain <shalajj@codeaurora.org>
parent 6c644c0f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -179,6 +179,7 @@ static int alloc_ion_mem(struct smem_client *client, size_t size, u32 align,
	if (flags & SMEM_SECURE) {
		size = ALIGN(size, SZ_1M);
		align = ALIGN(align, SZ_1M);
		flags |= ION_FLAG_ALLOW_NON_CONTIG;
	}

	if (is_iommu_present(client->res)) {