]> 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)
commit3b00370d8e1a6b2ac727023d05833984df9a9485
tree7e70130c334387f79512276ad1bbb3f8ea484c9f
parentfba7d1c01a46d1d1e557ad6f99c7f7233928b94a
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