Re: [PATCH] drm/bochs: fix bochs_gem_prime_mmap

2019-02-05 Thread Daniel Vetter
On Mon, Feb 04, 2019 at 07:38:58PM +0100, Gerd Hoffmann wrote: > 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 > o

[PATCH] drm/bochs: fix bochs_gem_prime_mmap

2019-02-04 Thread Gerd Hoffmann
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_obje