-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRM_IOCTL_I915_GEM_USERPTR fails as regular user in "video" group #197
Comments
It's because we don't define CONFIG_MMU_NOTIFIER, so the stub definition of i915_gem_userptr_init__mmu_notifier() is used. 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. |
graphics/mesa-dri also uses this ioctl for anv (intel vulkan driver) but it's no longer required since 19.0. |
Even |
lang/intel-compute-runtime also requires this ioctl. Sadly,
|
multimedia/libva-intel-media-driver also requires this ioctl for some QSV-only features. Sadly,
|
We need
|
*facepalm* that's already been mentioned in this thread back in 2017. Why did I spend time investigating :D |
|
Is this fixed by: |
@hselasky, no. Did you try the test? |
This issue also appears to block lang/intel-compute-runtime running as root within a jail:
|
After torvalds/linux@c6bcc0c2fdfd (since drm-515-kmod) userptr is completely unusable on FreeBSD. Maybe a good excuse to remove intel-compute-runtime as rebasing patches was PITA, anyway. OpenCL on Intel GPUs can still be used via Rusticl in mesa-devel. However, there would be nothing to provide runtime for level-zero. |
lang/beignet wants to to use
DRM_IOCTL_I915_GEM_USERPTR
for OpenCL 2.0 support andCL_DEVICE_HOST_UNIFIED_MEMORY
, see bug 217635. I'm not sure why but it doesn't work without root.The text was updated successfully, but these errors were encountered: