Re: [PATCH 9/9] dma_buf: heaps: mtk_sec_heap: Add a new CMA heap

2023-09-11 Thread AngeloGioacchino Del Regno
Il 11/09/23 04:30, Yong Wu ha scritto: Create a new mtk_svp_cma heap from the CMA reserved buffer. When the first allocating buffer, use cma_alloc to prepare whole the CMA range, then send its range to TEE to protect and manage. For the later allocating, we just adds the cma_used_size. When SVP

[PATCH 9/9] dma_buf: heaps: mtk_sec_heap: Add a new CMA heap

2023-09-10 Thread Yong Wu
Create a new mtk_svp_cma heap from the CMA reserved buffer. When the first allocating buffer, use cma_alloc to prepare whole the CMA range, then send its range to TEE to protect and manage. For the later allocating, we just adds the cma_used_size. When SVP done, cma_release will release the buffe