[Fedora] [Ryzen] Persistent, infrequent video/input freezing

OS: Fedora
Release: Rawhide (but this has been occurring since receiving the device on any version of Fedora I’ve run.)
Framework Product: Framework Laptop 13 *AMD Ryzen 7040 Series
*
This is hard to describe, but occasionally video output and all input will freeze. Sometimes it’s right after switching a window. Sometimes it’s after I’ve walked away for a while and come back to a frozen system. Seemingly the OS is otherwise still running as music will continue to play, files will continue to download, etc. The only workaround I’ve had is to hard power off and restart. Sometimes it can go without happening for weeks, other times I’ll get 3 occurences in rapid succession. This has been happening since 2023 when I first received the device.

I’d love to get some help on how to diagnose this issue, and I’m willing to go the distance if this is indeed some kind of kernel issue and reporting upstream wherever necessary. What logs should I be checking immediately after rebooting to help triage an issue like this? Thanks so much for anyone taking the time to help me out here!

Does adding amdgpu.dcdebugmask=0x10 to the kernel command line help? The workaround has worked for quite a few people, including me. The root cause doesn’t seem solved yet based on the linked issue’s thread.

sudo grubby --update-kernel=ALL --args="amdgpu.dcdebugmask=0x10"

1 Like

I’ve been experiencing similar issues and unfortunately don’t have a solution either. However I do want to add yet another datapoint to the pile.

My device is a 7840u, running Linux Mint 22.1 Cinnamon with kernel 6.14.0-36-generic. The freezes happen rarely (twice a month) and without apparent reasons. It seems more common when the system is under light load and/or with a static image, but I could not reproduce the issue on purpose. When freezes happen, its not a hard crash similar to your case. Every minute or so it processes inputs and updates screen for about 0.5s. I suspected Cinnamon was crashed, so I forced a Cinnamon restart but that didn’t fix it. I also tried prior kernels (6.8, 6.11, 6.14) but the issue keeps reappearing when I least expect it.

I think I can rule out a hardware issue. I ran both linpack and memtest86+ for over an hour each, and neither test triggered the issue. Normally this combination is pretty effective in tripping up unstable systems. The power level setting does not seem to have an effect either.

I applied this the day you applied and I have had one freeze since but it might have been unrelated, I think it was due to not waking from sleep correctly. Given how inconsistent it is, it’s a bit hard to gauge but I think this helped.