drm/libkms
Hyungwon Hwang d41b7a3a74 exynos: Don't use DRM_EXYNOS_GEM_{MAP_OFFSET/MMAP} ioctls
The ioctl DRM_EXYNOS_GEM_MAP_OFFSET and DRM_EXYNOS_GEM_MMAP are removed from
the linux kernel. This patch modifies libdrm and libkms to use drm generic
ioctls instead of the removed ioctls.

v2: The original patch was erroneous. In case the MODE_MAP_DUMB ioctl failed
    it would return the retvalue as a void-pointer. Users of libdrm would then
    happily use that ptr, eventually leading to a segfault. Change this to
    return NULL in that case and also restore the previous behaviour of logging
    to stderr.
    The other error was that 'bo->vaddr' was never filled with the mapped
    buffer address. Hence exynos_bo_map still returned NULL even if the
    buffer mapping succeeded.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
2015-02-02 14:45:39 -05:00
..
Android.mk libkms: add Android build 2014-09-28 17:09:34 +01:00
Makefile.am automake: pick up all files for distribution. 2014-09-28 17:09:34 +01:00
Makefile.sources libkms: move sources lists to makefile.sources 2014-09-28 17:09:34 +01:00
api.c all: include config.h only when available and use its defines 2014-09-01 16:06:01 +01:00
dumb.c libkms: use drm_mmap/drm_munmap wrappers 2014-09-28 17:09:34 +01:00
exynos.c exynos: Don't use DRM_EXYNOS_GEM_{MAP_OFFSET/MMAP} ioctls 2015-02-02 14:45:39 -05:00
intel.c libkms: use drm_mmap/drm_munmap wrappers 2014-09-28 17:09:34 +01:00
internal.h tests/kmstest: support exynos 2014-01-12 08:23:38 -05:00
libkms.h kms: Make libkms.h usable in C++ 2013-04-18 10:05:53 -04:00
libkms.pc.in libkms: Use a standard version number 2010-02-18 16:29:36 +01:00
linux.c libkms: build the intel backend only when needed 2014-09-28 17:09:34 +01:00
nouveau.c libkms: use drm_mmap/drm_munmap wrappers 2014-09-28 17:09:34 +01:00
radeon.c libkms: use drm_mmap/drm_munmap wrappers 2014-09-28 17:09:34 +01:00
vmwgfx.c libkms: use drm_mmap/drm_munmap wrappers 2014-09-28 17:09:34 +01:00