[Bug 241821] x11-servers/xwayland: hardware acceleration no longer works on -CURRENT

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Nov 9 16:54:54 UTC 2019


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

--- Comment #4 from Jan Beich <jbeich at FreeBSD.org> ---
Removing /dev/shm doesn't help Xwayland.

$ devfs rule apply path shm hide

(In reply to Edward Tomasz Napierala from comment #2)
> Can you run stuff under ktrace and see which binary tries to access /dev/shm?

$ kdump -r
...
  1096 sway     CALL 
open(0x7fffffffe260,0x120004<O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC>)
  1096 sway     NAMI  "/dev/shm/"
  1096 sway     RET   open 38/0x26
...
  1142 Xwayland CALL  ioctl(0x5,0xc0106446,0x7fffffffd580) #
DRM_IOCTL_I915_GETPARAM
  1142 Xwayland RET   ioctl -1 errno 13 Permission denied
  1142 Xwayland CALL  write(0x2,0x7fffffffcd80,0x34)
  1142 Xwayland GIO   fd 2 wrote 52 bytes
       "i965_dri.so does not support the 0xffffffff PCI ID.
       "
  1142 Xwayland RET   write 52/0x34
...

$ fgrep /dev/shm =sway
$ ldd =sway | awk 'FNR > 1 { print $3 }' | xargs fgrep /dev/shm
Binary file /usr/local/lib/libffi.so.6 matches

(In reply to Vladimir Kondratyev from comment #3)
> Could you check a file permissions on /dev/shm directory?

Adjusting permissions doesn't help Xwayland.

$ ls -dl /dev/shm
dr-xr-xr-x  2 root  wheel  512 Nov  9 16:51 /dev/shm
$ touch /dev/shm/test
touch: /dev/shm/test: Operation not supported
$ chmod 1777 /dev/shm
$ touch /dev/shm/test
$ ls -l /dev/shm/test
-rw-r--r--  1 foo   wheel  0 Nov  9 16:52 /dev/shm/test

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


More information about the freebsd-x11 mailing list