Random crash/slow screen update on resume on Ryzen 5 3500U since kernel 5.10
Brief summary of the problem:
Since kernel 5.10.4 ( I never suspended 5.10.0-5.10.3 so I'm not sure if the issue is there ) my system randomly crashes or the screen updates are slow like one frame per 1-2 minutes and have to cold reboot because things so slow at responding. Waited like 5 minutes just for it to switch to another tty at that was a blank screen when it switched.
Hardware description:
- Laptop: HP Pavilion Laptop 15-cw1507sa, firmware version F.45 ( latest at the time of this post although not available on HP website anymore )
- CPU: Ryzen 5 3500U, Microcode: 0x08108109
- GPU: Radeon Vega 8
- System Memory: 32GB ( I had it upgraded from 8GB )
- Display(s): 15.6" at 1920x1080@60Hz 8bpc
- Type of Display Connection: eDP and HDMI ( issue happens with or without using HDMI )
System information:
- Distro name and Version: Arch Linux - rolling release
- Kernel version: 5.10.10
- Custom kernel: n/a
- AMD package version: I don't know what package you mean exactly other than the drm and firmware version? drm 3.40.0 20150101 / firmware 20.45
How to reproduce the issue:
I'm not sure what triggers the issue. I've tried numerous things
- disable screensaver ( xscreensaver )
- set kernel parameter init_on_free to 0 ( I've noticed it happens less frequently with this turned off, could be coincidence though )
- let it auto suspend
- manually suspend
- close all applications before suspension occurs
Not able to reproduce the issue exactly other than when I resume, it crash
- I could have nothing running on my desktop
- Running firefox, intellij, sublime text or something like that
- Video was playing ( using mpv ), paused
Doesn't seem to matter what state my environment is in after Xorg has started.
Sometimes it happens multiple times a day, other times it happens once 1-3 days
I'm assuming it's DRM related as I see a bunch of flip_done timed out errors, something about amdgpu_dm_atomic_commit_tail, drm_atomic_helper_wait_for_flip_done, drm_atomic_helper_wait_for_dependencies in kernel.log
I never had these issues between kernel 5.4.z - 5.9.z, also tried different stable and none stable versions of mesa