ANDROID: GKI: dma-buf: Add support for mapping buffers with DMA attributes
When mapping the memory represented by a dma-buf into a device's address space, it might be desireable to map the memory with certain DMA attributes. Thus, introduce the dma_mapping_attrs field in the dma_buf_attachment structure so that when the memory is mapped with dma_buf_map_attachment, it is mapped with the desired DMA attributes. Bug: 133508579 Test: ion-unit-tests Change-Id: Ib2e5bafdc02ae31a58ce96a82d77cc508dd71bd4 Signed-off-by:Isaac J. Manjarres <isaacm@codeaurora.org> Signed-off-by:
Sandeep Patil <sspatil@google.com> [surenb: cherry-picked from ACK 5.4 branch] Bug: 150611569 Test: build Signed-off-by:
Suren Baghdasaryan <surenb@google.com> Change-Id: I9a8b4f83a61bcff6e5d3ee2d7f4887875a9654ef
Loading
Please register or sign in to comment