Reason why I'm posting here (and not in mesa/xorg) is because I am not sure (due to my lack of knowledge) if it's a kernel, mesa, or a xorg/xwayland issue.
hardware:
cpu: ryzen 2200G (apu)
gpu: vega 8 (built in gpu from the apu)
Packages tested:
kernels: lts, zen, and standard. (all latest within the artix repos)
xorg/xwayland: (tested on both to check if it maybe a wayland/wlroots issue)
world/xorg-xwayland 24.1.4-1 (used for: dwl 0.7, world/sway 1:1.10-1)
world/xorg-server 21.1.15-1 (used for: dwm (master branch))
mesa:
world/mesa 1:24.3.1-3
lib32/lib32-mesa 1:24.3.1-3
https://aur.archlinux.org/packages/amdonly-gaming-mesa-git (mesa 25.0)
https://aur.archlinux.org/packages/lib32-amdonly-gaming-mesa-git (mesa 25.0)
world/mesa-utils 9.0.0-5 (for glxgears, vkcube)
world/krita 5.2.6-3
I don't remember but for few weeks ago my pc would freeze and I don't know why.
When a program that can only be ran on xorg/xwayland that uses opengl (such as krita/glxgears(mesa-utils)) for some time pc freezes.
I've tested this on vkcube(run as xorg), dxvk(wine games via steam proton) but doesn't hang/freeze the pc.
After for some time, PC will freeze when this bug happens.
Steps to reproduce:
To accelerate and make this bug happen asap:
Run krita(with a canvas/image opened) and glxgears in the same workspace/tag then hold modkey+return until it freezes the pc (as demonstrated in the video although in the video I did not open a canvas/image and stopped before it freezes my pc simply to demonstrate on how to do it.)
video link: https://imgur.com/a/2rnuVTF
Created some scripts that would run continue to log every second until a freeze happens.
dmesg:
[ 2923.406408] perf: interrupt took too long (2523 > 2500), lowering kernel.perf_event_max_sample_rate to 79000
[ 3310.703489] amdgpu 0000:08:00.0: amdgpu: Dumping IP State
[ 3322.171339] elogind-daemon[1203]: Power key pressed short.
[ 3322.171347] elogind-daemon[1203]: Powering off...
[ 3322.171374] elogind-daemon[1203]: System is powering down.
Anything earlier than the [ 2923.406408] timestamp was simply kernel boot startup messages.
Within that timestamp is where I did a hardware shutdown(then had to do a forced hardware shutdown since entire system hangs). (imo this means everything else was running up to that point)
For cpu processes command: (this reports the top 10 programs that would utilize the cpu at 100%)
ps -eFfl --sort=-c | head
no useful info.
for gpu however when the freeze happened:
radeontop -d gpu-dump.txt -l 1
1734277027.389897: bus 08, gpu 3.33%, ee 0.00%, vgt 0.00%, ta 2.50%, sx 0.83%, sh 0.00%, spi 2.50%, sc 0.83%, pa 0.00%, db 0.83%, cb 0.83%, vram 51.35% 1030.54mb, gtt 1.24% 185.36mb, mclk 100.00% 1.600ghz, sclk 36.38% 0.400ghz
Dumping to gpu-dump.txt, line limit 1.
Sun Dec 15 03:37:07 PM UTC 2024
1734277028.493562: bus 08, gpu 29.17%, ee 0.00%, vgt 0.00%, ta 27.50%, sx 4.17%, sh 0.00%, spi 27.50%, sc 4.17%, pa 0.00%, db 4.17%, cb 4.17%, vram 50.83% 1020.05mb, gtt 1.22% 182.95mb, mclk 100.00% 1.600ghz, sclk 37.33% 0.411ghz
Dumping to gpu-dump.txt, line limit 1.
Sun Dec 15 03:37:08 PM UTC 2024
1734277029.595740: bus 08, gpu 38.33%, ee 0.00%, vgt 0.00%, ta 35.00%, sx 6.67%, sh 0.00%, spi 35.00%, sc 6.67%, pa 0.00%, db 6.67%, cb 6.67%, vram 46.06% 928.23mb, gtt 1.21% 181.34mb, mclk 100.00% 1.600ghz, sclk 37.04% 0.407ghz
Dumping to gpu-dump.txt, line limit 1.
Sun Dec 15 03:37:09 PM UTC 2024
1734277030.699276: bus 08, gpu 21.67%, ee 0.00%, vgt 0.00%, ta 0.83%, sx 0.00%, sh 0.00%, spi 0.83%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%, vram 47.03% 943.87mb, gtt 1.23% 183.68mb, mclk 100.00% 1.600ghz, sclk 44.00% 0.484ghz
Dumping to gpu-dump.txt, line limit 1.
Sun Dec 15 03:37:10 PM UTC 2024
1734277031.802889: bus 08, gpu 100.00%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%, vram 47.03% 943.87mb, gtt 1.23% 183.68mb, mclk 100.00% 1.600ghz, sclk 100.00% 1.100ghz
Dumping to gpu-dump.txt, line limit 1.
Sun Dec 15 03:37:11 PM UTC 2024
1734277032.905576: bus 08, gpu 100.00%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%, vram 47.03% 943.87mb, gtt 1.23% 183.68mb, mclk 100.00% 1.600ghz, sclk 100.00% 1.100ghz
Dumping to gpu-dump.txt, line limit 1.
Sun Dec 15 03:37:12 PM UTC 2024
1734277033.995271: bus 08, gpu 100.00%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%, vram 46.83% 943.87mb, gtt 1.23% 183.68mb, mclk 100.00% 1.600ghz, sclk 100.00% 1.100ghz
Dumping to gpu-dump.txt, line limit 1.
Sun Dec 15 03:37:14 PM UTC 2024
1734277035.100183: bus 08, gpu 100.00%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%, vram 46.83% 943.87mb, gtt 1.23% 183.68mb, mclk 100.00% 1.600ghz, sclk 100.00% 1.100ghz
Dumping to gpu-dump.txt, line limit 1.
Sun Dec 15 03:37:15 PM UTC 2024
1734277036.190320: bus 08, gpu 100.00%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%, vram 47.03% 943.87mb, gtt 1.23% 183.68mb, mclk 100.00% 1.600ghz, sclk 100.00% 1.100ghz
Dumping to gpu-dump.txt, line limit 1.
Sun Dec 15 03:37:16 PM UTC 2024
1734277037.295225: bus 08, gpu 100.00%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%, vram 46.83% 943.87mb, gtt 1.23% 183.68mb, mclk 100.00% 1.600ghz, sclk 100.00% 1.100ghz
Dumping to gpu-dump.txt, line limit 1.
Sun Dec 15 03:37:17 PM UTC 2024
1734277038.400305: bus 08, gpu 100.00%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%, vram 47.03% 943.87mb, gtt 1.23% 183.68mb, mclk 100.00% 1.600ghz, sclk 100.00% 1.100ghz
Dumping to gpu-dump.txt, line limit 1.
Sun Dec 15 03:37:18 PM UTC 2024
1734277039.489676: bus 08, gpu 100.00%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%, vram 46.83% 943.87mb, gtt 1.23% 183.68mb, mclk 100.00% 1.600ghz, sclk 100.00% 1.100ghz
Dumping to gpu-dump.txt, line limit 1.
Sun Dec 15 03:37:19 PM UTC 2024
1734277040.579901: bus 08, gpu 100.00%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%, vram 46.83% 943.87mb, gtt 1.23% 183.68mb, mclk 100.00% 1.600ghz, sclk 100.00% 1.100ghz
Dumping to gpu-dump.txt, line limit 1.