git: drm - Used fixed start address instead of vm_map_hint() in i915_gem_mmap_ioctl()

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jun 30 12:49:51 PDT 2015


commit 12b70c84af18ef827efaae5e1c1e3fb338748794
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jun 30 12:46:02 2015 -0700

    drm - Used fixed start address instead of vm_map_hint() in i915_gem_mmap_ioctl()
    
    * We tried to fix i915_gem_mmap_ioctl() returning a valid 'NULL' address for
      the requested mapping by passing the vm_map_hint() address into it.  This
      worked, but for reasons unknown wound up destabilizing X11 itself.
    
    * So, instead of using 0, and instead of using vm_map_hint(), the 'hint'
      starting address is now fixed at PAGE_SIZE (0x0000000000001000).  And this
      seems to solve the destabilization.

Summary of changes:
 sys/dev/drm/i915/i915_gem.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/12b70c84af18ef827efaae5e1c1e3fb338748794


-- 
DragonFly BSD source repository



More information about the Commits mailing list