System unresponsive/very slow when booting with 2 monitors on 7900XTX
Since variable refresh rate was turned on by default in kernel 6.5, my system becomes terribly slow and unresponsive when booting into the Display Manager (SDDM) - I'm not able to switch to a terminal and am forced to hard-reset my computer.
This issue seems to only happen when I only have 2 monitors plugged in on boot.
I can work around the issue if I leave at least 1 monitor unplugged when the system boots into SDDM, and reconnecting it once I've booting into my DE (KDE). I suspect this might be happening due to only 1 of my 2 monitors supporting VRR (the other only supports G-Sync).
Hardware description:
- CPU: AMD Ryzen 7950X3D
- GPU: Sapphire Pulse RX 7900XTX
- System Memory: 64GB
- Display(s): LG 34GP950G (supports freesync/VRR), Asus ROG PG279Q (only supports GSync)
- Type of Display Connection: DP (both)
System information:
- Distro name and Version: EndeavorOS/Arch Linux
- Kernel version: 6.5.9-arch2-1
- Custom kernel: N/A
- AMD official driver version: N/A
How to reproduce the issue:
- PC is turned off with both monitors plugged in
- Boot normally
- System becomes unresponsive/terribly slow when Display Manager (SDDM) starts
Logs
I get a ton of spam for this log:
[drm:dc_dmub_srv_wait_for_inbox0_ack [amdgpu]] *ERROR* Error waiting for INBOX0 HW Lock Ack
And eventually get this log and stack trace:
kernel: amdgpu 0000:03:00.0: amdgpu: SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x00000029 SMN_C2PMSG_82:0x00000000
kernel: amdgpu 0000:03:00.0: amdgpu: Failed to disable gfxoff!
kernel: amdgpu 0000:03:00.0: amdgpu: SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x00000029 SMN_C2PMSG_82:0x00000000
kernel: amdgpu 0000:03:00.0: amdgpu: Failed to disable gfxoff!
kernel: amdgpu 0000:03:00.0: amdgpu: SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x00000029 SMN_C2PMSG_82:0x00000000
kernel: amdgpu 0000:03:00.0: amdgpu: Failed to disable gfxoff!
kernel: amdgpu 0000:03:00.0: amdgpu: SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x00000029 SMN_C2PMSG_82:0x00000000
kernel: amdgpu 0000:03:00.0: amdgpu: Failed to disable gfxoff!
kernel: ksplashqml[1102]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
ksmserver[1158]: Qt: Session management error: networkIdsList argument is NULL
kwin_x11[1161]: kwin_decorations: Could not locate decoration plugin "org.kde.lightly"
kernel: [drm:dc_dmub_srv_wait_for_inbox0_ack [amdgpu]] *ERROR* Error waiting for INBOX0 HW Lock Ack
kernel: [drm:dc_dmub_srv_wait_for_inbox0_ack [amdgpu]] *ERROR* Error waiting for INBOX0 HW Lock Ack
------------[ cut here ]------------
kernel: WARNING: CPU: 3 PID: 1059 at drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:1331 dc_commit_state_no_check+0xe2e/0xef0 [amdgpu]
kernel: Modules linked in: rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace sunrpc fscache netfs hid_apple wacom apple_mfi_fastcharge joydev mousedev snd_usb_audio snd_usbmidi_lib snd_ump snd_raw>
kernel: rfkill gpio_amdpt gpio_generic mac_hid fuse loop dm_mod ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic gf128mul gh>
kernel: CPU: 3 PID: 1059 Comm: Xorg Not tainted 6.5.9-arch2-1 #1 f3e31240753f1687edd57c7c0d0f930d7e8c4a55
kernel: Hardware name: ASUS System Product Name/ROG STRIX X670E-E GAMING WIFI, BIOS 1602 08/15/2023
kernel: RIP: 0010:dc_commit_state_no_check+0xe2e/0xef0 [amdgpu]
kernel: Code: 54 24 30 e9 f7 f8 ff ff 4c 89 e7 e8 4c 88 00 00 4c 89 e7 e8 44 3d c1 c7 e9 dd fe ff ff 80 b8 80 03 00 00 00 0f 84 9d fd ff ff <0f> 0b e9 96 fd ff ff 65 8b 05 e0 c9 72 3e 89 c0 48 0f a3 05 6a 23
kernel: RSP: 0018:ffffbe0bc73d3588 EFLAGS: 00010202
kernel: RAX: ffffa01201259c00 RBX: ffffa01264480000 RCX: 0000000000000003
kernel: RDX: 00000000000010bc RSI: 0000000000001069 RDI: 0000004584a52cb2
kernel: RBP: ffffa0120ad20000 R08: ffffbe0bc73d34dc R09: ffffbe0bc73d3450
kernel: R10: 0000000000000000 R11: 0000000000000000 R12: ffffa01264480248
kernel: R13: 0000000000000000 R14: 0000000000000001 R15: ffffa012644837e8
kernel: FS: 00007fdeab898480(0000) GS:ffffa0213d8c0000(0000) knlGS:0000000000000000
kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: CR2: 00007fdeac72d800 CR3: 000000011a362000 CR4: 0000000000750ee0
kernel: PKRU: 55555554
kernel: Call Trace:
kernel: <TASK>
kernel: ? dc_commit_state_no_check+0xe2e/0xef0 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? __warn+0x81/0x130
kernel: ? dc_commit_state_no_check+0xe2e/0xef0 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? report_bug+0x171/0x1a0
kernel: ? handle_bug+0x3c/0x80
kernel: ? exc_invalid_op+0x17/0x70
kernel: ? asm_exc_invalid_op+0x1a/0x20
kernel: ? dc_commit_state_no_check+0xe2e/0xef0 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? dc_commit_state_no_check+0xb9a/0xef0 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: dc_commit_streams+0x29b/0x400 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: amdgpu_dm_atomic_commit_tail+0x5e8/0x3b10 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? dcn32_internal_validate_bw+0x885/0x18b0 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? __kmem_cache_alloc_node+0x1a6/0x340
kernel: ? srso_alias_return_thunk+0x5/0x7f
kernel: ? dm_read_reg_func+0x38/0xb0 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? srso_alias_return_thunk+0x5/0x7f
kernel: ? dm_read_reg_func+0x38/0xb0 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? srso_alias_return_thunk+0x5/0x7f
kernel: ? generic_reg_get+0x21/0x40 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? srso_alias_return_thunk+0x5/0x7f
kernel: ? optc1_get_crtc_scanoutpos+0x7b/0xb0 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? srso_alias_return_thunk+0x5/0x7f
kernel: ? srso_alias_return_thunk+0x5/0x7f
kernel: ? dm_crtc_get_scanoutpos+0x82/0xe0 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? srso_alias_return_thunk+0x5/0x7f
kernel: ? ktime_get+0x3c/0xa0
kernel: ? srso_alias_return_thunk+0x5/0x7f
kernel: ? amdgpu_display_get_crtc_scanoutpos+0xaa/0x190 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? __pfx_amdgpu_crtc_get_scanout_position+0x10/0x10 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? srso_alias_return_thunk+0x5/0x7f
kernel: ? amdgpu_crtc_get_scanout_position+0x28/0x40 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: ? srso_alias_return_thunk+0x5/0x7f
kernel: ? drm_crtc_vblank_helper_get_vblank_timestamp_internal+0xf3/0x3a0
kernel: ? srso_alias_return_thunk+0x5/0x7f
kernel: ? wait_for_completion_timeout+0x13e/0x170
kernel: ? srso_alias_return_thunk+0x5/0x7f
kernel: ? drm_crtc_get_last_vbltimestamp+0x55/0x90
kernel: commit_tail+0x91/0x130
kernel: drm_atomic_helper_commit+0x11a/0x140
kernel: drm_atomic_commit+0x97/0xd0
kernel: ? __pfx___drm_printfn_info+0x10/0x10
kernel: drm_atomic_helper_disable_plane+0x8b/0xe0
kernel: drm_mode_cursor_universal+0x128/0x240
kernel: drm_mode_cursor_common+0x102/0x230
kernel: ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
kernel: drm_mode_cursor_ioctl+0x4f/0x70
kernel: drm_ioctl_kernel+0xca/0x170
kernel: drm_atomic_helper_disable_plane+0x8b/0xe0
kernel: drm_mode_cursor_universal+0x128/0x240
kernel: drm_mode_cursor_common+0x102/0x230
kernel: ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
kernel: drm_mode_cursor_ioctl+0x4f/0x70
kernel: drm_ioctl_kernel+0xca/0x170
kernel: drm_ioctl+0x26d/0x4b0
kernel: ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
kernel: amdgpu_drm_ioctl+0x4e/0x90 [amdgpu 50a3757ebda1a63f7bc850925c700fc871bac686]
kernel: __x64_sys_ioctl+0x94/0xd0
kernel: do_syscall_64+0x5d/0x90
kernel: ? do_syscall_64+0x6c/0x90
kernel: entry_SYSCALL_64_after_hwframe+0x6e/0xd8
kernel: RIP: 0033:0x7fdeac2863af
kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
kernel: RSP: 002b:00007ffe8bac9390 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
kernel: RAX: ffffffffffffffda RBX: 00005584a55282e0 RCX: 00007fdeac2863af
kernel: RDX: 00007ffe8bac9420 RSI: 00000000c01c64a3 RDI: 0000000000000011
kernel: RBP: 00007ffe8bac9420 R08: 0000000000000040 R09: 0000000000000001
kernel: R10: 00000000000002d0 R11: 0000000000000246 R12: 00000000c01c64a3
kernel: R13: 0000000000000011 R14: 00005584a5318710 R15: 00005584a5ce2250
kernel: </TASK>
kernel: ---[ end trace 0000000000000000 ]---