Specs: Ryzen 3960x, Radeon RX 5700, 13.0-RELEASE-p3
Problem is occuring inside jails. When I try to launch a GUI app (Falkon, Blender, etc), the app launches, but with significant lag for moving objects with mouse, videoplayback, and consuming large CPU resources even at idle.
My process thus far
I think I followed the wiki and handbook accurately. I'm going to try to nullfs mount the /dev/dri directory to the jail, and maybe try exposing the entire /dev/ directory to the jail (temporarily).
But I'm a bit stuck, not quite sure what else to try. Any other ideas on how to get an AMD GPU to show up inside a jail?
Problem is occuring inside jails. When I try to launch a GUI app (Falkon, Blender, etc), the app launches, but with significant lag for moving objects with mouse, videoplayback, and consuming large CPU resources even at idle.
Code:
browsing@browsing:~ % falkon
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to open amdgpu (search paths /usr/local/lib/dri)
libGL error: failed to load driver: amdgpu
libGL error: failed to open /dev/dri/card0: No such file or directory
libGL error: failed to load driver: radeonsi
- Installed card to motherboard, boot, then in both host and jail
pkg install drm-kmod
pkg install xf86-video-amdgpu-19.1.0_2
pkg install clover
- Delete previous /usr/local/etc/X11/xord.conf.d/xorg.conf
sysrc kld_list+=amdgpu
- Modify /etc/devfs.rules GUI-jail section with
- add path 'dri*' unhide
- add path 'dri/card0' unhide
- add path 'dri/renderD128' unhide
service devfs restart
- REBOOT
kldstat
shows amdpgu_navi10 drivers loadedstartx
brings up i3wm normallyclinfo
shows Radeon RX 5700 under the Clover section- start GUI-jail, and from inside the jail under normal user:
ls -a /dev/dri
shows card0 appearingls -a /usr/local/lib/dri
shows radeon_dri.so and radeonsi_dri.so
clinfo
does not show the GPU as an available device. And of course the errors I listed above when launching most GUI apps.I think I followed the wiki and handbook accurately. I'm going to try to nullfs mount the /dev/dri directory to the jail, and maybe try exposing the entire /dev/ directory to the jail (temporarily).
But I'm a bit stuck, not quite sure what else to try. Any other ideas on how to get an AMD GPU to show up inside a jail?