]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/exynos: add iommu support for g2d
authorInki Dae <daeinki@gmail.com>
Sun, 4 Nov 2012 04:53:24 +0000 (21:53 -0700)
committerInki Dae <inki.dae@samsung.com>
Tue, 4 Dec 2012 05:45:58 +0000 (14:45 +0900)
commitd87342c10de68d75ecd976556299c68a300c3834
tree6fa9624a0e36b17044ed9ee0264e238271339b15
parent1055b39facd1bf8f84031a07385f84b46a20540f
drm/exynos: add iommu support for g2d

Chagelog v2:
removed unnecessary structure, struct g2d_gem_node.

Chagelog v1:
This patch adds iommu support for g2d driver. For this, it
adds subdrv_probe/remove callback to enable or disable
g2d iommu. And with this patch, in case of using g2d iommu,
we can get or put device address to a gem handle from user
through exynos_drm_gem_get/put_dma_addr(). Actually, these
functions take a reference to a gem handle so that the gem
object used by g2d dma is released properly.

And runqueue_node has a pointer to drm_file object of current
process to manage gem handles to owner.

This patch is based on the below patch set, "drm/exynos: add
iommu support for -next".
     http://www.spinics.net/lists/dri-devel/msg29041.html

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