Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Nov 2019 16:54:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 241821] x11-servers/xwayland: hardware acceleration no longer works on -CURRENT
Message-ID:  <bug-241821-7141-Y2PdQ7BG1j@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241821-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-241821-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241821

--- Comment #4 from Jan Beich <jbeich@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=20
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 =3Dsway
$ ldd =3Dsway | 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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241821-7141-Y2PdQ7BG1j>