drm/exynos: add vm_ops to specific gem mmaper
authorInki Dae <inki.dae@samsung.com>
Thu, 8 Nov 2012 12:52:54 +0000 (21:52 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 4 Dec 2012 05:46:02 +0000 (14:46 +0900)
commit5b07c66059313fc998d28cf6775fd1a8bbb034aa
tree8a2cc3935ae3cb603b9ee5fbd65c680f2c832a03
parent2a3098ff6c2109557868f9f230f4725312dcb882
drm/exynos: add vm_ops to specific gem mmaper

Changelog v3:
use drm_file's file object instead of gem object's
- gem object's file represents the shmem storage so
  process-unique file object should be used instead.

Changelog v2:
call mutex_lock before drm_vm_open_locked is called.

Changelog v1:
This patch makes it takes a reference to gem object when
specific gem mmap is requested. For this, it sets
dev->driver->gem_vm_ops to vma->vm_ops.

And this patch is based on exynos-drm-next-iommu branch of
git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos

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