exynos: support DRM_IOCTL_EXYNOS_GEM_MAP 97/49097/1 accepted/tizen/mobile/20151103.224637 accepted/tizen/tv/20151103.224645 accepted/tizen/wearable/20151103.224656 submit/tizen/20151103.025922
authorJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 6 Oct 2015 10:09:16 +0000 (19:09 +0900)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 6 Oct 2015 10:23:15 +0000 (19:23 +0900)
commit6e97f25af63a9511ddd3b195a0b844671b8d1a5d
treeacf85ce4831c819b1737acfc58cf603358f46305
parent90a031be9db6f2bb9836d2ef81e71fdea459c6b6
exynos: support DRM_IOCTL_EXYNOS_GEM_MAP

The commit d41b7a3a745a("exynos: Don't use DRM_EXYNOS_GEM_{MAP_OFFSET/
MMAP} ioctls") removed it same with the ioctl that this patch adds. The
reason that removed DRM_IOCTL_EXYNOS_GEM_MAP_OFFSET was we could use
DRM_IOCTL_MODE_MAP_DUMB. Both did exactly same thing.

Now exynos-drm driver of linux kernel revives it as DRM_EXYNOS_GEM_MAP
because of render node. DRM_IOCTL_MODE_MAP_DUMB isn't permitted in
render node, so this patch also supports DRM_IOCTL_EXYNOS_GEM_MAP.

Change-Id: Ib548dc8a6bea076375465f64ee2fdd658a90e435
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
exynos/exynos_drm.c
exynos/exynos_drm.h
libkms/exynos.c
tests/ipptest/gem.c
tests/rottest/gem.c