[PATCH 2/3] drm/vgem: Fix mmaping

2016-06-21 Thread Chris Wilson
On Sat, Jun 18, 2016 at 04:20:48PM +0100, Chris Wilson wrote: > The vGEM mmap code has bitrotted slightly and now immediately BUGs. > Since vGEM was last updated, there are new core GEM facilities to > provide more common functions, so let's use those here. Bugzilla:

[PATCH 2/3] drm/vgem: Fix mmaping

2016-06-18 Thread Chris Wilson
The vGEM mmap code has bitrotted slightly and now immediately BUGs. Since vGEM was last updated, there are new core GEM facilities to provide more common functions, so let's use those here. Testcase: igt/vgem_basic/mmap Signed-off-by: Chris Wilson --- drivers/gpu/drm/vgem/vgem_drv.c | 163