linux/drivers/gpu/drm/bochs
Gerd Hoffmann 86c5b359d9 drm/bochs: fix bochs_gem_prime_mmap
ttm_fbdev_mmap() just doesn't work.  It appears to work fine, mmap()
returns success, but any attempt to actually access the mapping causes a
SIGBUS.

We can just use drm_gem_prime_mmap() instead.  Almost.  We have to copy
over the start offset from the ttm_buffer_object vm_node to the
drm_gem_object vm_node so the offset math in drm_gem_prime_mmap() works
correctly for us even though we use ttm to manage our objects.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20190204183858.8976-1-kraxel@redhat.com
2019-02-05 10:28:15 +01:00
..
bochs_drv.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
bochs_hw.c drm/bochs: split bochs_hw_setmode 2019-01-14 08:39:08 +01:00
bochs_kms.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
bochs_mm.c drm/bochs: fix bochs_gem_prime_mmap 2019-02-05 10:28:15 +01:00
bochs.h drm/bochs: drop old fbdev emulation code 2019-01-14 08:39:16 +01:00
Kconfig drm: fix compilations issues introduced by "drm: allow to use mmuless SoC" 2017-01-09 11:30:30 +01:00
Makefile drm/bochs: move remaining fb bits to kms 2019-01-14 08:39:17 +01:00