Since kernel 5.11 game freezes with amdgpu error
Brief summary of the problem:
While playing Elite Dangerous via Steam/Proton 5.10 (note: never had an issue for nearly 200 hours of game before kernel 5.11) game freezes often and must be killed.
Hardware description:
- CPU: AMD® Ryzen 7 pro 4750u with radeon graphics × 16
- GPU: AMD® Renoir
- System Memory: 30.7 GiB
- Display(s): Thinkpad T1 laptop screen (1920x1080 @60.02 Hz)
- Type of Display Connection:
System infomration:
- Distro name and Version: Fedora 33
- Kernel version: 5.11.12
- Custom kernel: 5.11.12-200.fc33.x86_64
- AMD package version:
How to reproduce the issue:
Install Elite Dangerous via Steam/Protono 5.10 Play the game Every now and then it freezes completely. Note: until kernel 5.10.x it has worked flawlessly for ~200 hours without any issue. Since kernel 5.11 it started failing. Kernel 5.11.11 would make the screen black and force to either kill the game from console or force a shutdown. Since kernel 5.11.12 the game hangs (but not the sound) but the desktop is usable. However sometimes it still becomes black and it's necessary to CTRL-ALT-F3 and CTRL-ALT-F1 to return to the desktop (with forced login).
Example of journalctl log contains errors like these
Apr 13 21:20:54 thinkpad-t14 kernel: amdgpu 0000:07:00.0: amdgpu: 00000000bcda2170 pin failed
Apr 13 21:20:54 thinkpad-t14 kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Apr 13 21:20:54 thinkpad-t14 gnome-shell[2316]: Failed to scan out client buffer: drmModePageFlip on CRTC 67 failed: Cannot allocate memory
Apr 13 21:22:21 thinkpad-t14 gnome-shell[2316]: Failed to scan out client buffer: drmModePageFlip on CRTC 67 failed: Cannot allocate memory
Apr 13 21:22:21 thinkpad-t14 kernel: amdgpu 0000:07:00.0: amdgpu: 0000000017a2de92 pin failed
Apr 13 21:22:21 thinkpad-t14 kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Apr 13 21:22:21 thinkpad-t14 kernel: amdgpu 0000:07:00.0: amdgpu: 00000000fbe5812a pin failed
Apr 13 21:22:21 thinkpad-t14 kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Apr 13 21:22:21 thinkpad-t14 gnome-shell[2316]: Failed to post KMS update: drmModePageFlip on CRTC 67 failed: Cannot allocate memory
Apr 13 21:22:27 thinkpad-t14 gnome-shell[2316]: Page flip discarded: drmModePageFlip on CRTC 67 failed: Permission denied
Attached files:
- Dmesg log
- Journalctl log