drm/exynos: add dmabuf attach/detach callbacks.
authorInki Dae <inki.dae@samsung.com>
Wed, 28 Nov 2012 10:09:31 +0000 (19:09 +0900)
committerInki Dae <daeinki@gmail.com>
Thu, 13 Dec 2012 14:05:43 +0000 (06:05 -0800)
commita7b362fb3bba310426b90e7bac83a2206808e425
tree37f66c99508fae68baea57ca24237557891a9f31
parentae9dace2903db86b27f19d40c1d1b21a6f712895
drm/exynos: add dmabuf attach/detach callbacks.

With this patch, When dma_buf_unmap_attachment is called,
the pages of sgt aren't unmapped from iommu table.
Instead, when dma_buf_detach is called, that would be done.

And also removes exynos_get_sgt function used to get clone sgt
and uses attachment's sgt instead. This patch would resolve
performance deterioration issue when v4l2-based driver is using
the buffer imported from gem.

This change is derived from videobuf2-dma-contig.c

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