]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: use drm generic mmap interface
authorInki Dae <inki.dae@samsung.com>
Thu, 18 Sep 2014 05:19:01 +0000 (14:19 +0900)
committerInki Dae <daeinki@gmail.com>
Fri, 19 Sep 2014 16:00:13 +0000 (01:00 +0900)
commitc6b9dc698adb1d7e1999bf624d0c1c9a5e7a9b63
treeec320b5b3efa49532e31ee9e5d1b77a190da2799
parent3d3c334600ed2d27a94e316308034a975d079195
drm/exynos: use drm generic mmap interface

This patch removes DRM_EXYNOS_GEM_MMAP ictrl feature specific
to Exynos drm and instead uses drm generic mmap.

We had used the interface specific to Exynos drm to do mmap directly,
not to use demand paging which maps each page with physical memory
at page fault handler. We don't need the specific mmap interface
because the drm generic mmap which uses vm offset manager stuff can
also do mmap directly.

This patch makes a userspace region to be mapped with whole physical
memory region allocated by userspace request when mmap system call is
requested.

Changelog v2:
- do not set VM_IO, VM_DONTEXPEND and VM_DONTDUMP. These flags were already
  set by drm_gem_mmap
- do not include <linux/anon_inodes.h>, which isn't needed anymore.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c
drivers/gpu/drm/exynos/exynos_drm_drv.h
drivers/gpu/drm/exynos/exynos_drm_gem.c
drivers/gpu/drm/exynos/exynos_drm_gem.h
include/uapi/drm/exynos_drm.h