Commit be65ab2e authored by Guangming Cao's avatar Guangming Cao Committed by T.J. Mercier
Browse files

ANDROID: 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/


Signed-off-by: default avatarGuangming Cao <Guangming.Cao@mediatek.com>
(cherry picked from commit 9d3a9165)
Change-Id: Idbd96c8486ad752d88d93b204daaefc605261845
parent 611d0520
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment