Black screen and sometimes complete freeze after resume from suspend
Brief summary of the problem:
When my computer is inactive, I have set my DE (gnome on xorg) to blank the screen after 15mn and then suspend (to ram) after an hour.
When it resumes, it sometimes takes a while to have something on the screen. In the worst cases, the computer completely freezes, I am unable to ssh to it and I also can't use sysrq keys. I'm forced to do a power cycle.
I think this started happening around 5.10, I didn't report it at first because I found related bug reports already opened. However, most of them were when using 2 screens and I couldn't find some of the errors I had in the attached logs. The frequency of the freezes also seemed to change between certain kernel upgrades (or maybe was it due to my usage?), letting me sometimes think the issue was fixed.
Hardware description:
- CPU: ryzen 5 3600
- GPU: vega 56
- System Memory: 2x8GB
- Display: MSI OPTIX MPG27CQ (2560x1440 @ 144Hz)
- Type of Diplay Connection: DP
System information:
- Distro name and Version: ArchLinux
- Kernel version: 5.12.9
- Custom kernel: linux-tkg with cacule (can also reproduce with vanilla archlinux kernel, if needed will switch back to it to reproduce)
- AMD package version: "No package"
How to reproduce the issue:
I don't have a solid reproducer but it's either after the screen is blanked or after resuming from suspend or maybe a combination of both.
Attached files:
- Xorg + kernel log (complete freeze): log.txt
- another full freeze with some additional amdgpu error messages near the end: freeze2.txt