]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ec00015d39ae19e80f59c10378d79a438998400
tree37f66c99508fae68baea57ca24237557891a9f31
parent05c5a107f46c71dbbd53f75f3ae08718b909d742
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