]> rtime.felk.cvut.cz Git - linux-imx.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)
commitb8b5c139ba75cde517b3e5eb6e3e760c0824b238
tree7e70130c334387f79512276ad1bbb3f8ea484c9f
parent420ae1e2623af92e71437e403fd11de48e11551f
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