platform_kernel-5.15/drivers/dma-buf/heaps
Guangming Cao 9d3a91652b BACKPORT: FROMLIST: dma-heap: Let dma heap use dma_map_attrs to map & unmap iova
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: 229794062
Link: https://lore.kernel.org/patchwork/patch/1455032/
Change-Id: I324712644688c29e55c9197efcde9283bbbd813b
Signed-off-by: Guangming Cao <Guangming.Cao@mediatek.com>
2022-04-20 16:15:24 +00:00
..
Kconfig ANDROID: dma-heap: Make the page-pool library built-in 2022-01-06 10:12:49 -08:00
Makefile ANDROID: dma-buf: heaps: Add a shrinker controlled page pool 2022-01-06 10:12:48 -08:00
cma_heap.c BACKPORT: FROMLIST: dma-heap: Let dma heap use dma_map_attrs to map & unmap iova 2022-04-20 16:15:24 +00:00
deferred-free-helper.c ANDROID: dma-buf: heaps: Add deferred-free-helper library code 2021-11-04 17:06:10 +00:00
deferred-free-helper.h ANDROID: dma-buf: heaps: Add deferred-free-helper library code 2021-11-04 17:06:10 +00:00
page_pool.c ANDROID: dma-buf: heaps: fix dma-buf heap pool pages stat 2022-01-06 10:12:49 -08:00
page_pool.h ANDROID: dma-buf: heaps: Add a shrinker controlled page pool 2022-01-06 10:12:48 -08:00
system_heap.c BACKPORT: FROMLIST: dma-heap: Let dma heap use dma_map_attrs to map & unmap iova 2022-04-20 16:15:24 +00:00