[media] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()
authorJan Kara <jack@suse.cz>
Mon, 20 Jul 2015 08:03:35 +0000 (05:03 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 16 Aug 2015 16:15:58 +0000 (13:15 -0300)
commit63540f01917c0d8b03b9813a0d6539469b163139
tree40db746f15285aa194bdbf832d65d1f00468bac5
parent6690c8c78c745239bb1f22b23f3889a0a14c249b
[media] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()

Convert g2d_userptr_get_dma_addr() to pin pages using get_vaddr_frames().
This removes the knowledge about vmas and mmap_sem locking from exynos
driver. Also it fixes a problem that the function has been mapping user
provided address without holding mmap_sem.

Acked-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/gpu/drm/exynos/Kconfig
drivers/gpu/drm/exynos/exynos_drm_g2d.c
drivers/gpu/drm/exynos/exynos_drm_gem.c