DSC causes system to freeze at boot/shutdown time
Brief summary of the problem:
The system freezes at shutdown (where log shows Reached target Shutdown
), if the external display operates at 4k@144Hz (DP via Type-C Alt Mode), leaving a cursor blinking on the screen. Also, if the display is connected and awake before system entering desktop environment (KDE Plasma 5 in my case), the system also freezes at boot time.
I also experimented with some other setups to narrow the cause down.
- DP 1.4 + 4k@144Hz -> Freeze
- HDMI 2.0 + 4k@60Hz -> No issue
- DP 1.4 + 4k@120Hz -> The system can shutdown properly, but has trouble booting up. I suspect it's because the DSC is nonetheless activated at some point during boot up, before the DE can set refresh rate to the remembered 120Hz.
- DP 1.4 to 4k@120Hz with DSC off (amdgpu.dcdebugmask=0x4) -> No issue
Hardware description:
- CPU: Ryzen 7 7840HS
- GPU: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 [1002:15bf] (rev d4)
- System Memory: 32 GB
- Display(s): MSI MAG 274UPF (supports up to 4k@144Hz)
- Type of Display Connection: DP
System information:
- Distro name and Version: NixOS Unstable
- Kernel version: 6.7.0
- Custom kernel: N/A
- AMD official driver version: N/A
How to reproduce the issue:
Poweroff with DSC-enabled external monitor
Log files (for system lockups / game freezes / crashes)
- Dmesg log dmesg.txt (produced by journalctl -b -1 -k)
The most relevant part, I think, is pasted below.
Jan 19 02:00:30 bear-elitebook kernel: divide error: 0000 [#1] PREEMPT SMP NOPTI
Jan 19 02:00:30 bear-elitebook kernel: CPU: 9 PID: 1438 Comm: systemd-logind Tainted: G O 6.7.0 #1-NixOS
Jan 19 02:00:30 bear-elitebook kernel: Hardware name: HP HP EliteBook 845 14 inch G10 Notebook PC/8B6E, BIOS V82 Ver. 01.03.09 12/11/2023
Jan 19 02:00:30 bear-elitebook kernel: RIP: 0010:setup_dsc_config+0x647/0x950 [amdgpu]
Jan 19 02:00:30 bear-elitebook kernel: Code: 16 89 c8 31 d2 41 f7 76 08 85 d2 75 0a 83 ff 04 75 15 f6 c1 01 74 10 83 c1 01 39 ce 75 da 83 ff 04 0f 84 fb 01 00 00 89 f0 99 <f7> f9 8b 4c 24 08 89 43 04 85 c9 0f 8f 65 01 00 00 0f b6 84 24 80
Jan 19 02:00:30 bear-elitebook kernel: RSP: 0018:ffffb55c48047460 EFLAGS: 00010293
Jan 19 02:00:30 bear-elitebook kernel: RAX: 0000000000000000 RBX: ffff8c6041c7c0c0 RCX: 0000000000000000
Jan 19 02:00:30 bear-elitebook kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
Jan 19 02:00:30 bear-elitebook kernel: RBP: ffff8c6041c7c058 R08: 0000000000000001 R09: 00000000000004b0
Jan 19 02:00:30 bear-elitebook kernel: R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
Jan 19 02:00:30 bear-elitebook kernel: R13: ffffb55c48047654 R14: ffffb55c480475ec R15: ffff8c6041c7c0f8
Jan 19 02:00:30 bear-elitebook kernel: FS: 00007fe3d6a968c0(0000) GS:ffff8c66c2080000(0000) knlGS:0000000000000000
Jan 19 02:00:30 bear-elitebook kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 19 02:00:30 bear-elitebook kernel: CR2: 00007ff9d6b133e0 CR3: 000000012aeba000 CR4: 0000000000f50ef0
Jan 19 02:00:30 bear-elitebook kernel: PKRU: 55555554
Jan 19 02:00:30 bear-elitebook kernel: Call Trace:
Jan 19 02:00:30 bear-elitebook kernel: <TASK>
Jan 19 02:00:30 bear-elitebook kernel: ? die+0x36/0x90
Jan 19 02:00:30 bear-elitebook kernel: ? do_trap+0xda/0x100
Jan 19 02:00:30 bear-elitebook kernel: ? setup_dsc_config+0x647/0x950 [amdgpu]