Ryzen 7 7700X - Unstable GUI and "Failed to pin framebuffer" error when two monitors are connected
Brief summary of the problem:
On a new PC with Ryzen 7 7700X CPU / RDNA2 iGPU, Linux desktop (X11 / Wayland) has been very unstable and hangs from time to time when two 4K monitors are connected.
Hardware description:
- CPU: AMD Ryzen 7 7700X 8-Core Processor
- GPU: (I installed my old NVIDIA GTX 1650 GPU but it's not in use at all)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117 [GeForce GTX 1650] [10de:1f82] (rev a1)
10:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c3)
- System Memory: 2x
16GiB DIMM Synchronous Unbuffered (Unregistered) 6000 MHz (0.2 ns)
- Display(s): 2x Samsung S80UA
- Type of Display Connection: DP and HDMI
System information:
- Distro name and Version: Arch Linux
- Kernel version:
Linux cvhc-tomato 6.1.0-rc8-1-mainline #1 SMP PREEMPT_DYNAMIC Mon, 05 Dec 2022 04:29:57 +0000 x86_64 GNU/Linux
- Using the stable version (6.0.11) makes no difference.
- AMD official driver version: N/A
How to reproduce the issue:
I just built a new PC with Ryzen 7 7700X CPU and GIGABYTE B650M AORUS ELITE AX motherboard. I experienced lots of issues but most has gone after I upgraded to F3c firmware.
The only significant problem now is the unstable GUI. I use KDE Plasma. Both X11 and Wayland freeze from time to time. Every time the desktop froze, I could not switch to TTY and only SysRq-b seems to work. Wayland seems to survive for longer time than X11 but I still noticed weird frame drops (or short recoverable freezes) from time to time.
I used to connect two 4K monitors through DP and HDMI to the motherboard. I found disconnecting either of the screen and using one screen seem to work around the problem.
The following kernel error seems to be relevant to the freezes:
[ 65.054488] kernel: amdgpu 0000:10:00.0: amdgpu: 00000000c8c0be2f pin failed
[ 65.054493] kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
The address in the first message varied every time. I noticed that when I did something like moving windows in Wayland, the same error repeated. When only one screen is connected, I don't see the error at all.
Attached files:
Log files (for system lockups / game freezes / crashes)
- Dmesg log: dmesg.log