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

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244877

--- Comment #3 from Jan Beich <[email protected]> ---
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.