]> git.baikalelectronics.ru Git - kernel.git/commit
bochs: fix bochsdrmfb mmap
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 19 Nov 2014 11:28:11 +0000 (12:28 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 20 Nov 2014 01:27:09 +0000 (11:27 +1000)
commit3f2a210802d3f1c756abf1bacea732582e409ca6
treee406da7901bc3f0396ee19ae87a8005fb08090f2
parentdf8007c886a0a5d2839dc87b69e7181f2a24ba3e
bochs: fix bochsdrmfb mmap

Remove the mapping offset from the bo backing the fbdev framebuffer.
Wire up fbdev mmap function to map the backing bo using ttm_fbdev_mmap.
With that patch in place mmap(/dev/fb0) works as expected.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/bochs/bochs_fbdev.c