After a system reboot, wayland/sway takes multiple seconds to render each frame. I did verify that hardware rendering is still in use. It didn’t, as far as I can see, fall back to llvmpipe. It was working perfectly before.
Anyone else seeing this? I suspect this has to do with a debian package upgrade (Mesa drivers? I’m not sure).
kernel: 5.13.9 (unchanged, so unlikely to be the issue, also linux framebuffer terminal still works fine)
libgles2-mesa 21.2.5-1
AMD RX550 GPU
7:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] (rev c7)
It seems the debian packaging change that caused this is:
mesa (21.2.3-1) unstable; urgency=medium
[ Timo Aaltonen ]
* New upstream release.
* rules: Build with -O2 for ppc64el.
* Build with llvm 13.
[ Aurelien Jarno ]
* Disable LLVM support on riscv64, it doesn't have JIT. (Closes: #995618)
-- Timo Aaltonen <tjaalton@debian.org> Mon, 04 Oct 2021 15:18:27 +0300
I suspect disabling LLVM also disappears radeonsi, as it uses LLVM for the shader compiler.
hello, i ve just upgraded from 21.10 to 22.04 Ubuntu and similar slowness immediately appears at next reboot (with new kernel 5.15 or even if trying the previoulsy fine recompiled 5.13). I know it was risky ;-). This omnipresent LLVM part has similar unexpected effect on VisionFive Riscv board, but it seems to be required by more and more software…
I’l try to recompile MESA next W.E., just to give a try.
…
mesa (21.2.3-1) unstable; urgency=medium
[ Timo Aaltonen ]
* New upstream release.
* rules: Build with -O2 for ppc64el.
* Build with llvm 13.
[ Aurelien Jarno ]
* Disable LLVM support on riscv64, it doesn't have JIT. (Closes: #995618)
-- Timo Aaltonen <tjaalton@debian.org> Mon, 04 Oct 2021 15:18:27 +0300
…
packages.ubuntu.com doesn’t have a file listing for riscv64 so I’m not able to check if radeonsi driver is in there.
thanks, i will test building it on the Unmatched soon. I’ve just rebuilt MESA on the VisionFive on Fedora -but an older MESA release- so the process is still fresh. I hope rebuilding the Radeon part will solve the problem for my Unmatched with its R570, to enjoy Ubuntu 22 on it
hello,
Finally yesteday i built from sources the MESA 21.3.8, everything was fine, testing from local installation /usr/local/lib/riscv-linux-gnu and i shutdown, thinking i would need to adjust ldconfig to add this path permanently … but booting today the display was already ok, amdgpu driver was listed in lsmod… so fixed.
Looking in /etc/ld.so.conf.d/ there was a riscv64-linux-gnu.conf that contains already the path to compiled libraries.
Thanks for the links above anyway.
hello,
i rebuilt MESA from sources to ensure DRI drivers for Radeon to be built, but also i wanted to avoid LLVM related problem (JIT errors) from recents MESA built. So i found the 21.3.8 was perfect in that context. You can try rebuilt fresh MESA sources of course, but not sure of the final result. In my case everything is just fast as it was. I can try to found the exact cmd line and options i used to built MESA, if it helps, but the core is dri for radeon. I’ll add the detailed line this afternoon.
so, shamely i noted a lot more details about MESA compilation for the RiscV VisionFive board, but much less for the Unmatched, which is on focus there.
However thanks to my shell command history, i’m able to give the main steps.
First : information sources : Mesa3d install
Now the main steps :
Get the pre requisite to compile Mesa from sources (this is what takes me more time , as i tried to install the minimal list of package, and had to redo multiple time the Meson … (configuration) step below until no missing dependency errors appears :
(if a dependency is missing, the “meson …” will end up with explicit display, just install missing package and restart from there)
ninja is just doing the compilation part.
Check presence of one of the resulting compiled lib, and optionally its dependencies (really optional):
ls src/gallium/targets/dri/libgallium_dri.so
ldd src/gallium/targets/dri/libgallium_dri.so
if you see that lib(s), its is perfect, let’s install the compiled libraries and dependencies:
Install (as Sudo):
sudo ninja install
(note the installation path, just in case, but in my case i didn’t event need to add an extra file in /etc/ld.so.conf.d to indicate installed library path, as there was already a riscv64-linux-gnu.conf doing the job.
Reboot ! (and it was it for me) > accelerated graphics were back with my radeon RX570.
I retype every command by hand above, so i hope there is no name/command errors.
I think there are all details to succeed in your compilation process. Let’s me known if you managed to fix the problem.
Good luck.