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

Commit 4097d52c authored by Liam Mark's avatar Liam Mark
Browse files

staging: android: ion: Add support for secure CMA allocations in ion_alloc



Add support in ion_alloc for for allocations of type ION_HEAP_TYPE_HYP_CMA
as this is required for certain secure camera use cases.

Change-Id: I7d1a538bb63431b59c1f5995a1d0ceb76207528c
Signed-off-by: default avatarLiam Mark <lmark@codeaurora.org>
parent ada19597
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1102,6 +1102,7 @@ struct dma_buf *ion_alloc(size_t len, unsigned int heap_id_mask,
		if (!((1 << heap->id) & heap_id_mask))
			continue;
		if (heap->type == ION_HEAP_TYPE_SYSTEM ||
		    heap->type == (enum ion_heap_type)ION_HEAP_TYPE_HYP_CMA ||
		    heap->type ==
			(enum ion_heap_type)ION_HEAP_TYPE_SYSTEM_SECURE) {
			type_valid = true;