]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: consider DMA_NONE flag to dmabuf import
authorInki Dae <inki.dae@samsung.com>
Fri, 11 Jan 2013 04:46:58 +0000 (13:46 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 25 Jan 2013 05:38:44 +0000 (14:38 +0900)
commita6df2d9989a4519035cbe214e62fa8841baf9199
tree7e70130c334387f79512276ad1bbb3f8ea484c9f
parent91b551bc72136fb402923015b290da48fd1e7057
drm/exynos: consider DMA_NONE flag to dmabuf import

This patch considers DMA_NONE flag for other drivers not using
dma mapping framework with iommu such as 3d gpu driver or others.

For example, there might be 3d gpu driver that has its own iommu
hw unit and iommu table mapping mechnism. So in this case,
the dmabuf buffer imported into this driver needs just only
sg table to map the buffer with its own iommu table itself.

So this patch makes dma_buf_map_attachment ignore dma_map_sg call
and just return sg table containing pages if dma_data_direction
is DMA_NONE.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_dmabuf.c