For dma-heap users, they can't bypass cache sync when map/unmap iova with dma heap. But they can do it by adding DMA_ATTR_SKIP_CPU_SYNC into dma_alloc_attrs. To keep alignment, at dma_heap side, also use dma_buf_attachment.dma_map_attrs to do iova map & unmap. This patch is a little different with linux patch, because ACK has cached heap, and linux doesn't have it Bug: 189986159 Link: https://lore.kernel.org/patchwork/patch/1455032/ Change-Id: I324712644688c29e55c9197efcde9283bbbd813b Signed-off-by: Guangming Cao <Guangming.Cao@mediatek.com> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| cma_heap.c | ||
| deferred-free-helper.c | ||
| deferred-free-helper.h | ||
| page_pool.c | ||
| page_pool.h | ||
| system_heap.c | ||