[Bug 244877] graphics/mesa-dri: Fix vulkan by switching to unsynchronized userptr ioctls

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 18 04:40:54 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244877

--- Comment #3 from Jan Beich <jbeich at FreeBSD.org> ---
When I915_USERPTR_UNSYNCHRONIZED fails it maybe nice to advise user to run as
root e.g.,

  if (geteuid() != 0) {
    fprintf(stderr, "%s", "ioctl(I915_GEM_USERPTR) failed. Try running as root
but expect poor stability.\n");
  }

where "poor stability" alludes to markj@ comment in
https://github.com/FreeBSDDesktop/kms-drm/issues/197#issuecomment-289590556

   That definition only allows unsynchronized userptr objects, and
   such objects can probably be used to trigger nasty system behaviour
   since there's nothing preventing the process from unmapping pages
   bound to a GEM userptr object.

However, I915_USERPTR_UNSYNCHRONIZED seems to work fine in compute-runtime,
media-driver and xf86-video-intel.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-x11 mailing list