Ryzen 7 PRO 4750U on 6.1.66: multiple warnings
Brief summary of the problem:
When (re)booting my laptop with the newly installed 6.1.66 (latest stable for my distribution) upgraded from 6.1.57, I get multiple warnings and sometimes my screens (laptop and external) behave strangely (seem to have problem activating external screen, for example, but that may just be me being impatient). This is new with this kernel version and does not appear in the previous one I had installed. The system does seem to arrive at a working state, without obvious display issues (I'm not doing any GPU-heavy work, just office productivity stuff).
I am afraid the warnings indicate a real underlying issue that will rear its head at the most inconvenient time. I would like the cause of warnings to be fixed.
I will list all warnings from my logs at the end, and also add some context from the same logs.
Hardware description:
- CPU: AMD Ryzen 7 PRO 4750U
- GPU:
description: VGA compatible controller product: Renoir [1002:1636] vendor: Advanced Micro Devices, Inc. [AMD/ATI] [1002] physical id: 0 bus info: pci@0000:07:00.0 logical name: /dev/fb0 version: d1 width: 64 bits clock: 33MHz capabilities: pm pciexpress msi msix vga_controller bus_master cap_list fb configuration: depth=32 driver=amdgpu latency=0 mode=1920x1080 resolution=1920,1080 visual=truecolor xres=1920 yres=1080 resources: iomemory:c0-bf iomemory:c0-bf irq:33 memory:c60000000-c6fffffff memory:c70000000-c701fffff ioport:1000(size=256) memory:fd300000-fd37ffff
- System Memory: 48 GB
- Display(s): HP E24i G4 (1920×1200)
- Type of Display Connection: USB-C (DP?) to dock to display with HDMI
System information:
- Distro name and Version: Gentoo
- Kernel version: Linux EDITED 6.1.66-gentoo-a #1 (closed) SMP Sat Dec 9 20:45:06 CET 2023 x86_64 AMD Ryzen 7 PRO 4750U with Radeon Graphics AuthenticAMD GNU/Linux
- AMD official driver version: N/A
How to reproduce the issue:
Reboot (It is not clear to me whether the same issue happens every time at the same instant in the boot process)
Log excerpts
First warning with preceding context line
[drm] perform_link_training_with_retries: Link(2) training attempt 1 of 4 failed @ rate(30) x lane(2) : fail reason:(1)
[…]
------------[ cut here ]------------
WARNING: CPU: 3 PID: 120 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_link_encoder.c:216 0xffffffffa7900d52
Modules linked in: efivarfs tpm rng_core
CPU: 3 PID: 120 Comm: kworker/3:1 Tainted: G T 6.1.66-gentoo-a #1
Hardware name: LENOVO 20UDS0DK00/20UDS0DK00, BIOS R1BET77W(1.46 ) 10/24/2023
Workqueue: events_long 0xffffffffa75a9600
RIP: 0010:0xffffffffa7900d52
Code: 00 00 00 8b 70 7c e8 bd 3c 0a 00 b8 01 00 00 00 48 8b 54 24 08 65 48 2b 14 25 28 00 00 00 75 47 48 83 c4 10 5b e9 2e 0e 70 00 <0f> 0b 31 c0 eb e0 0f 0b 48 8b 53 60 48 8b 43 68 41 b9 01 00 00 00
RSP: 0018:ffffb4a3004e3638 EFLAGS: 00010246
RAX: 0000000000163333 RBX: ffff9bfd42b83600 RCX: 0000000000020000
RDX: 0000000000000000 RSI: 0000000000001636 RDI: ffff9bfd430a0000
RBP: ffffb4a3004e3738 R08: ffffb4a3004e363c R09: 00000000bb30e800
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000008
R13: 0000000000000008 R14: ffff9bfd43820000 R15: ffff9bfd457c3720
FS: 0000000000000000(0000) GS:ffff9c081f6c0000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007247e3060074 CR3: 0000000a3ae0a000 CR4: 0000000000350ee0
Call Trace:
<TASK>
? 0xffffffffa7be8eab
? 0xffffffffa7900e42
? 0xffffffffa7900d52
? 0xffffffffa70506a4
? 0xffffffffa7900d52
? 0xffffffffa7bc388e
? 0xffffffffa7c4608a
? 0xffffffffa7c46253
? 0xffffffffa7e00b06
? 0xffffffffa7900d52
? 0xffffffffa7900c8e
0xffffffffa7900e42
0xffffffffa78be398
0xffffffffa79763cd
? 0xffffffffa70d8a80
0xffffffffa799eca5
0xffffffffa79896b6
0xffffffffa798acb2
0xffffffffa798f9cc
0xffffffffa797609e
? 0xffffffffa78c7c3d
0xffffffffa7977479
0xffffffffa7985fd8
? 0xffffffffa78fec5e
0xffffffffa7986cf0
0xffffffffa77ba964
? 0xffffffffa71f41d6
? 0xffffffffa7549d3d
? 0xffffffffa720e8e4
? 0xffffffffa7210177
? 0xffffffffa79eda1b
? 0xffffffffa79ee0fd
? 0xffffffffa79ee2dc
? 0xffffffffa7c4b4e1
? 0xffffffffa7c4bc4e
? 0xffffffffa7c4b4e1
? 0xffffffffa7c4bc4e
0xffffffffa759433d
0xffffffffa7594df1
0xffffffffa756fe11
? 0xffffffffa7c1699f
0xffffffffa75847be
0xffffffffa7584fb1
0xffffffffa75850cc
0xffffffffa759a300
0xffffffffa759a374
0xffffffffa759a44c
0xffffffffa7583f4f
0xffffffffa706fb75
0xffffffffa70700e6
? 0xffffffffa70700a0
0xffffffffa70757de
? 0xffffffffa7075720
0xffffffffa7001ba2
</TASK>
---[ end trace 0000000000000000 ]---
Intermediately, I get (multiple occurrences)
[drm:0xffffffffa7999fd0] *ERROR* dpcd write failed to set fec_ready
Then similar context line from first error:
[drm] perform_link_training_with_retries: Link(2) training attempt 3 of 4 failed @ rate(30) x lane(2) : fail reason:(1)
Second and third warning with context lines:
[drm] enabling link 2 failed: 15
[drm] DP Alt mode state on HPD: 1
[…]
[drm] DM_MST: starting TM on aconnector: 0000000000bed79b [id: 89]
[drm] DP Alt mode state on HPD: 1
[drm] DM_MST: starting TM on aconnector: 0000000000bed79b [id: 89]
[…]
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1045 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:237 0xffffffffa77c5391
Modules linked in: nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat hid_generic uhid mousedev nf_tables ebtable_nat ebtable_brou>
snd_acp3x_rn sha1_generic snd_soc_core snd_hda_codec ac97_bus aesni_intel iwlwifi snd_acp_pci libaes 8250_pci sp5100_tco xhci_pci crypto_simd rtsx_pci_sdmmc snd_hda_core xhci_pci_renesas mmc_core r8169 8>
CPU: 0 PID: 1045 Comm: X Tainted: G W O T 6.1.66-gentoo-a #1
Hardware name: LENOVO 20UDS0DK00/20UDS0DK00, BIOS R1BET77W(1.46 ) 10/24/2023
RIP: 0010:0xffffffffa77c5391
Code: 10 39 c8 74 25 48 8b 84 24 98 00 00 00 65 48 2b 04 25 28 00 00 00 75 1a 48 81 c4 a0 00 00 00 5b 5d 41 5c 41 5d e9 ef c7 83 00 <0f> 0b eb d7 31 c0 eb cf e8 02 41 48 00 66 90 41 55 41 54 55 41 89
RSP: 0018:ffffb4a30302f708 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffb4a30302f7d0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff9bfd4340c790 RDI: ffffb4a30302f7a0
RBP: 000000000000001d R08: 0000000000000000 R09: 000000000000000a
R10: 0000000000000000 R11: 0000000000000000 R12: ffff9bfd42fb5c00
R13: ffff9bfd4340c400 R14: ffff9bfd43952540 R15: ffff9bfd42fb3060
FS: 000077abb83629c0(0000) GS:ffff9c081f600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007281b3c8d8b0 CR3: 00000001152ca000 CR4: 0000000000350ef0
Call Trace:
<TASK>
? 0xffffffffa7be8eab
? 0xffffffffa77c5b89
? 0xffffffffa77c5391
? 0xffffffffa70506a4
? 0xffffffffa77c5391
? 0xffffffffa7bc388e
? 0xffffffffa7c4608a
? 0xffffffffa7c46253
? 0xffffffffa7e00b06
? 0xffffffffa77c5391
? 0xffffffffa77c52ff
0xffffffffa77c5b89
0xffffffffa798a4eb
0xffffffffa798e63b
0xffffffffa78c3e9d
0xffffffffa78c7c60
0xffffffffa797731e
0xffffffffa7985fd8
? 0xffffffffa78fec5e
0xffffffffa7986cf0
0xffffffffa77ba964
? 0xffffffffa71f41d6
? 0xffffffffa7549d3d
? 0xffffffffa720e8e4
? 0xffffffffa7210177
? 0xffffffffa79eda1b
? 0xffffffffa79ee0fd
? 0xffffffffa79ee2dc
? 0xffffffffa7c4b4e1
? 0xffffffffa7c4bc4e
? 0xffffffffa7c4b4e1
? 0xffffffffa7c4bc4e
0xffffffffa759433d
0xffffffffa7594df1
0xffffffffa756fe11
? 0xffffffffa7c1699f
0xffffffffa75847be
0xffffffffa7584fb1
0xffffffffa75850cc
0xffffffffa759c9d0
0xffffffffa755c479
0xffffffffa755c559
0xffffffffa722ca33
0xffffffffa7072eff
0xffffffffa70cf735
0xffffffffa7c495cd
? 0xffffffffa7228538
0xffffffffa7c45e47
0xffffffffa7e000c4
RIP: 0033:0x000077abb8b40850
Code: 3e ff ff ff 48 8b 05 c7 65 0d 00 64 c7 00 0d 00 00 00 eb a4 e8 c1 0a 02 00 90 80 3d 91 ed 0d 00 00 74 17 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c
RSP: 002b:00007ffc81971158 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00005e6c23e94160 RCX: 000077abb8b40850
RDX: 00005e69c52b04a4 RSI: 0000000000000005 RDI: 0000000000000009
RBP: 00005e6c23e942b0 R08: 0000000000000007 R09: 00005e6c23e942b0
R10: b497acc54b84a6d8 R11: 0000000000000202 R12: 0000000000000009
R13: 00005e6c23e941a0 R14: 0000000000000000 R15: 00005e6c23ea8ab0
</TASK>
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1045 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:183 0xffffffffa77c543d
Modules linked in: nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat hid_generic uhid mousedev nf_tables ebtable_nat ebtable_brou>
snd_acp3x_rn sha1_generic snd_soc_core snd_hda_codec ac97_bus aesni_intel iwlwifi snd_acp_pci libaes 8250_pci sp5100_tco xhci_pci crypto_simd rtsx_pci_sdmmc snd_hda_core xhci_pci_renesas mmc_core r8169 8>
CPU: 0 PID: 1045 Comm: X Tainted: G W O T 6.1.66-gentoo-a #1
Hardware name: LENOVO 20UDS0DK00/20UDS0DK00, BIOS R1BET77W(1.46 ) 10/24/2023
RIP: 0010:0xffffffffa77c543d
Code: 24 09 31 d2 48 89 c1 eb 0a ff c2 48 83 c1 18 39 d6 74 17 40 38 39 75 f1 48 63 ca 48 8d 0c 49 66 c7 44 cc 28 00 00 39 d6 75 26 <0f> 0b eb 22 41 0f b7 4c 24 0c 0f b7 05 9a 2d f9 00 48 8d 14 76 41
RSP: 0018:ffffb4a30302f6f8 EFLAGS: 00010246
RAX: ffffb4a30302f720 RBX: ffffb4a30302f850 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffb4a30302f7a0
RBP: ffff9bfd4340c400 R08: 0000000000000000 R09: 000000000000000a
R10: 0000000000000000 R11: 0000000000000000 R12: ffffb4a30302f7d0
R13: 0000000000000000 R14: ffff9bfd43952540 R15: ffff9bfd42fb3060
FS: 000077abb83629c0(0000) GS:ffff9c081f600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007281b3c8d8b0 CR3: 00000001152ca000 CR4: 0000000000350ef0
Call Trace:
<TASK>
? 0xffffffffa7be8eab
? 0xffffffffa77c5baf
? 0xffffffffa77c543d
? 0xffffffffa70506a4
? 0xffffffffa77c543d
? 0xffffffffa7bc388e
? 0xffffffffa7c4608a
? 0xffffffffa7c46253
? 0xffffffffa7e00b06
? 0xffffffffa77c543d
? 0xffffffffa77c53f3
0xffffffffa77c5baf
0xffffffffa798a4eb
0xffffffffa798e63b
0xffffffffa78c3e9d
0xffffffffa78c7c60
0xffffffffa797731e
0xffffffffa7985fd8
? 0xffffffffa78fec5e
0xffffffffa7986cf0
0xffffffffa77ba964
? 0xffffffffa71f41d6
? 0xffffffffa7549d3d
? 0xffffffffa720e8e4
? 0xffffffffa7210177
? 0xffffffffa79eda1b
? 0xffffffffa79ee0fd
? 0xffffffffa79ee2dc
? 0xffffffffa7c4b4e1
? 0xffffffffa7c4bc4e
? 0xffffffffa7c4b4e1
? 0xffffffffa7c4bc4e
0xffffffffa759433d
0xffffffffa7594df1
0xffffffffa756fe11
? 0xffffffffa7c1699f
0xffffffffa75847be
0xffffffffa7584fb1
0xffffffffa75850cc
0xffffffffa759c9d0
0xffffffffa755c479
0xffffffffa755c559
0xffffffffa722ca33
0xffffffffa7072eff
0xffffffffa70cf735
0xffffffffa7c495cd
? 0xffffffffa7228538
0xffffffffa7c45e47
0xffffffffa7e000c4
RIP: 0033:0x000077abb8b40850
Code: 3e ff ff ff 48 8b 05 c7 65 0d 00 64 c7 00 0d 00 00 00 eb a4 e8 c1 0a 02 00 90 80 3d 91 ed 0d 00 00 74 17 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c
RSP: 002b:00007ffc81971158 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00005e6c23e94160 RCX: 000077abb8b40850
RDX: 00005e69c52b04a4 RSI: 0000000000000005 RDI: 0000000000000009
RBP: 00005e6c23e942b0 R08: 0000000000000007 R09: 00005e6c23e942b0
R10: b497acc54b84a6d8 R11: 0000000000000202 R12: 0000000000000009
R13: 00005e6c23e941a0 R14: 0000000000000000 R15: 00005e6c23ea8ab0
</TASK>
---[ end trace 0000000000000000 ]---
From quite a bit earlier in the boot process, this context may also be of interest (there are some warnings and errors here as well, but they were there before and someone told me to ignore them):
Loading firmware: amdgpu/renoir_asd.bin
Loading firmware: amdgpu/renoir_ta.bin
amdgpu 0000:07:00.0: amdgpu: PSP runtime database doesn't exist
amdgpu 0000:07:00.0: amdgpu: PSP runtime database doesn't exist
Loading firmware: amdgpu/renoir_dmcub.bin
[drm] Loading DMUB firmware via PSP: version=0x01010028
Loading firmware: amdgpu/renoir_pfp.bin
Loading firmware: amdgpu/renoir_me.bin
Loading firmware: amdgpu/renoir_ce.bin
Loading firmware: amdgpu/renoir_rlc.bin
Loading firmware: amdgpu/renoir_mec.bin
Loading firmware: amdgpu/renoir_vcn.bin
[drm] Found VCN firmware Version ENC: 1.21 DEC: 6 VEP: 0 Revision: 0
amdgpu 0000:07:00.0: amdgpu: Will use PSP to load VCN firmware
[drm] reserve 0x400000 from 0xf41f800000 for PSP TMR
amdgpu 0000:07:00.0: amdgpu: RAS: optional ras ta ucode is not available
amdgpu 0000:07:00.0: amdgpu: RAP: optional rap ta ucode is not available
[drm] psp gfx command LOAD_TA(0x1) failed and response status is (0x7)
[drm] psp gfx command INVOKE_CMD(0x3) failed and response status is (0x4)
amdgpu 0000:07:00.0: amdgpu: Secure display: Generic Failure.
amdgpu 0000:07:00.0: amdgpu: SECUREDISPLAY: query securedisplay TA failed. ret 0x0
amdgpu 0000:07:00.0: amdgpu: SMU is initialized successfully!
[drm] Display Core initialized with v3.2.207!
[drm] DMUB hardware initialized: version=0x01010028
[drm] DP Alt mode state on HPD: 1