Use of hardware acceleration freezes my laptop
System information
System:
Kernel: 5.10.31 x86_64 bits: 64 compiler: gcc
v: 2.36.1-slack15 Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 wm: xfwm4
dm: startx Distro: Slackware 14.2
CPU:
Info: Quad Core model: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
bits: 64 type: MT MCP arch: Zen/Zen+ note: check rev: 1 cache: L2: 2 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 33534
Speed: 1223 MHz min/max: 1400/2100 MHz boost: enabled Core speeds (MHz):
1: 1223 2: 1223 3: 1224 4: 1224 5: 1308 6: 1276 7: 1224 8: 1225
Graphics:
Device-1: AMD Picasso vendor: Lenovo driver: amdgpu v: kernel
bus-ID: 03:00.0 chip-ID: 1002:15d8
Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo
bus-ID: 3-1.1:4 chip-ID: 13d3:5a08
Display: server: X.Org 1.20.11 driver: loaded: amdgpu,ati
unloaded: modesetting,vesa alternate: fbdev resolution: 1: 1920x1080~60Hz
2: 1440x900~60Hz s-dpi: 96
OpenGL:
renderer: AMD Radeon Vega 8 Graphics (RAVEN DRM 3.40.0 5.10.31 LLVM 11.1.0)
v: 4.6 Mesa 21.0.3 direct render: Yes
The issue
My laptop freezes when using applications that utilize hardware acceleration. I was browsing the net when it first froze and luckily, i was watching youtube video which continued playing when my screen froze. I was able to pause/continue playing the video in the background, however after some time everything would stop running and my laptop would restart. Then, i tried different kernels and it didn't have any effect, so i switched to Manjaro 21, did a clean install, switched between couple of different kernels and problem persisted. So i went back to Slackware and after clean install i removed mesa packages and i have no issues after doing so.
The freezing occurred in:
- VLC when playing video, but it was gone after turning off hardware acceleration in settings,
- Firefox, but here turning off hardware acceleration did not help,
- Vivaldi same issue as Firefox,
- LibreOffice but here turning off openCL did the trick.
Freezing occurs after usually after couple of minutes of running said apps. VLC would freeze 5 minutes into a playing video, Firefox is random as is Vivaldi and LibreOffice won't start at all, it just freeze. This happened on both Manjaro and Slackware (clean installed) systems.
Regression
Everything used to work (except LibreOffice) with mesa-20.x version. Upon upgrading to 21.x the problem started, and unfortunately i do not have working version available to install.
Extra information
Additional info when i was on Manjaro can be found here. Also here are dmesg output and Xorg.o.log. file form Slackware, my current OS. I switched to Manjaro just to test if it was Slackware issue only.