[RX 6600] Frequent freezes affecting between one program and the whole desktop
Brief summary of the problem:
On my RX 66000, I've been experiencing a problem for a long time where programs will sometimes freeze. Usually this affects a single program but sometimes it can be the whole desktop. It sometimes lasts just a few seconds, but can last up to around 10-15 seconds. Audio continues playing and actions such as clicking go through; it's just graphics that are frozen.
When the freeze concludes, the graphical state immediately catches up with what it should be at; for example, if I dragged a window and it then froze (a common cause), when it unfreezes, it will instantly jump to whatever position it should have been dragged to. Usually, however, dragging works, but the rest of the program freezes.
Freezes almost always seem to be triggered by doing something; i.e., something doesn't tend to just freeze if I'm sitting idle watching a video or something like that (although, it's not too uncommon that when I have been watching a video and then move my mouse, the player freezes as the player controls come up). Desktop notifications are a common trigger, usually freezing the program that sends them but sometimes also freezing the whole desktop.
Hardware description:
- CPU: Ryzen 7 3800X
- GPU: RX 6600
-
lspci -nn | grep VGA
output:09:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] [1002:73ff] (rev c7)
-
- System Memory: 32GB Crucial 3.2GHz*
- Displays and Connections:
- ASUS VA24DQ 1920x1080 (primary): Display Port
- AOC 22B1H 1920x1080: HDMI
- Edge10 E1910XX 1440x900: VGA (from monitor) adapted to Display Port (into GPU)
* This was also present with Corsaire RAM.
System information:
- Distro name and Version: Slackare Current (post 15.0) x86_64
- Kernel version: 5.19.15*
-
uname -a
output:Linux Kerma.localnet 5.19.15 #1 SMP PREEMPT_DYNAMIC Wed Oct 12 13:25:26 CDT 2022 x86_64 AMD Ryzen 7 3800X 8-Core Processor AuthenticAMD GNU/Linux
-
- Custom kernel: N/A
- AMD official driver version: N/A, Mesa 22.2.1*
- Desktop Environment: Xfce 4.16
- Window Manager: Xfwm4
*This was also present with many other Kernel versions (since at least 5.18.y), and with as far back as at least Mesa 21.3.8.
**Edited to add desktop environment and window manager details
Additional details:
Because above says "Brief" description, I'm separating this into a different section, as, due to the length of time this has been at large for me (and the number of incorrect rabbit holes I've dived down attempting to diagnose it), I have quite a lot of detail available.
Some programs freeze more commonly than others. The trend I've noticed is that resource-heavy programs or programs with lots of display refreshes usually freeze more often. Particularly strong offenders include Slack, Chromium and MuseScore. Less obvious common offenders include Claws Mail and Ghostwriter.
I don't know of any trend that makes freezes more common than not. They seem to be pretty random in when they actually occur. Sometimes a lot of them will occur, sometimes very few.
I noticed some similarities with some of the issues mentioned in the comments of #1119 (closed), but it seems like what I (and possibly others) am experiencing is a separate issue from that.
Sometimes I get page fault and gfx or fence-waiting timeouts in syslog (attached below), but I don't see any correlation between the occurence of any error or warning messages and the occurence of the freezes. I get many freezes a day, but only seem to get the error messages every few days. Additionally, those messages in syslog only appear to have started quite a bit after I started getting these freezes. I've been getting them for two or three months at least.
How to reproduce the issue:
Just run the computer for a while using an RX 6600 (or potentially other GPUs). Nothing special seems to cause the issue, other than as described above.