kernel OOPS when connecting USB-C/Thunderbolt docking station
I was trying to debug a problem with external monitors connected over a Thunderbolt/USB-C docking station not working under XOrg (kernel 6.1/6.2 regression). The screens woke up while the system was booting in terminal mode, but went blank once SDDM started. I have then tried to disconnect the USB-C cable to the docking station and reconnect it and found the screen frozen after that.
Software:
- Gentoo Linux
- Linux kernel 6.2.6 (+standard Gentoo distribution patches)
- XOrg 21.1.7
- Mesa 22.3.6
Hardware:
- HP EliteBook 845 G8 (AMD Ryzen 5 PRO 5650U)
- Lenovo Thunderbolt 3 Dock Gen 2 (Type 40AN)
- 2x FullHD screen connected over DisplayPort.
mar 16 08:17:35 fozzie kernel: amdgpu 0000:04:00.0: [drm] *ERROR* Failed to get ACT after 3000ms, last status: 00
mar 16 08:17:35 fozzie kernel: BUG: kernel NULL pointer dereference, address: 0000000000000008
mar 16 08:17:35 fozzie kernel: #PF: supervisor read access in kernel mode
mar 16 08:17:35 fozzie kernel: #PF: error_code(0x0000) - not-present page
mar 16 08:17:35 fozzie kernel: PGD 0 P4D 0
mar 16 08:17:35 fozzie kernel: Oops: 0000 [#1] PREEMPT SMP
mar 16 08:17:35 fozzie kernel: CPU: 6 PID: 7486 Comm: X Tainted: G T 6.2.6-gentoo #1
mar 16 08:17:35 fozzie kernel: Hardware name: HP HP EliteBook 845 G8 Notebook PC/8895, BIOS T82 Ver. 01.08.03 02/11/2022
mar 16 08:17:35 fozzie kernel: RIP: 0010:drm_dp_add_payload_part2+0xbd/0xf0
mar 16 08:17:35 fozzie kernel: Code: 41 5d c3 48 8b 7e 08 44 89 e9 4c 89 c2 48 c7 c6 e0 79 2d bd e8 b4 f7 58 00 44 89 e8 5b 5d 41 5c 41 5d c3 48 8b 80 58 05 00 00 <48> 8b 76 08 4c 8b 40 60 48 85 f6 74 04 48 8b 76 08 48 c7 c1 a0 79
mar 16 08:17:35 fozzie kernel: RSP: 0018:ffffaa8800e1b5a8 EFLAGS: 00010246
mar 16 08:17:35 fozzie kernel: RAX: ffff9901421d8000 RBX: ffff9901421d8000 RCX: 0000000000000027
mar 16 08:17:35 fozzie kernel: RDX: ffff9901fc665880 RSI: 0000000000000000 RDI: ffff99014778e568
mar 16 08:17:35 fozzie kernel: RBP: 0000000000000001 R08: 0000000000000001 R09: 00000000ffdfffff
mar 16 08:17:35 fozzie kernel: R10: ffff99083c300000 R11: ffff99083c300000 R12: ffff99014778e000
mar 16 08:17:35 fozzie kernel: R13: ffff99014b91f9c0 R14: ffffffffbcdc2b60 R15: ffff990148701390
mar 16 08:17:35 fozzie kernel: FS: 00007facb43a1100(0000) GS:ffff99081c980000(0000) knlGS:0000000000000000
mar 16 08:17:35 fozzie kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
mar 16 08:17:35 fozzie kernel: CR2: 0000000000000008 CR3: 000000013354d000 CR4: 0000000000750ee0
mar 16 08:17:35 fozzie kernel: PKRU: 55555554
mar 16 08:17:35 fozzie kernel: Call Trace:
mar 16 08:17:35 fozzie kernel: <TASK>
mar 16 08:17:35 fozzie kernel: dm_helpers_dp_mst_send_payload_allocation+0x7e/0xb0
mar 16 08:17:35 fozzie kernel: dc_link_allocate_mst_payload+0x166/0x270
mar 16 08:17:35 fozzie kernel: core_link_enable_stream+0x87c/0x9c0
mar 16 08:17:35 fozzie kernel: ? optc1_set_drr+0x129/0x1c0
mar 16 08:17:35 fozzie kernel: dce110_apply_ctx_to_hw+0x58f/0x5e0
mar 16 08:17:35 fozzie kernel: dc_commit_state_no_check+0x3af/0xc40
mar 16 08:17:35 fozzie kernel: ? dcn21_validate_bandwidth+0x42/0x50
mar 16 08:17:35 fozzie kernel: dc_commit_state+0xfc/0x110
mar 16 08:17:35 fozzie kernel: amdgpu_dm_atomic_commit_tail+0x43e/0x2520
mar 16 08:17:35 fozzie kernel: ? prb_read_valid+0x16/0x20
mar 16 08:17:35 fozzie kernel: ? console_emit_next_record.constprop.0+0x68/0x2a0
mar 16 08:17:35 fozzie kernel: ? desc_read_finalized_seq+0x50/0xc0
mar 16 08:17:35 fozzie kernel: ? prb_read_valid+0x16/0x20
mar 16 08:17:35 fozzie kernel: ? console_unlock+0x51/0x100
mar 16 08:17:35 fozzie kernel: ? __wake_up_klogd.part.0+0x37/0x50
mar 16 08:17:35 fozzie kernel: ? vprintk_emit+0x91/0x1e0
mar 16 08:17:35 fozzie kernel: ? dev_vprintk_emit+0xd9/0x170
mar 16 08:17:35 fozzie kernel: ? amdgpu_dm_atomic_check+0x70e/0x11f0
mar 16 08:17:35 fozzie kernel: ? dev_printk_emit+0x4d/0x70
mar 16 08:17:35 fozzie kernel: ? __kmem_cache_alloc_node+0x119/0x410
mar 16 08:17:35 fozzie kernel: ? drm_atomic_helper_setup_commit+0x407/0x810
mar 16 08:17:35 fozzie kernel: ? kmalloc_trace+0x25/0x90
mar 16 08:17:35 fozzie kernel: ? drm_atomic_helper_setup_commit+0x472/0x810
mar 16 08:17:35 fozzie kernel: commit_tail+0x8a/0x120
mar 16 08:17:35 fozzie kernel: drm_atomic_helper_commit+0x10d/0x140
mar 16 08:17:35 fozzie kernel: drm_atomic_commit+0x8f/0xc0
mar 16 08:17:35 fozzie kernel: ? __drm_printfn_seq_file+0x20/0x20
mar 16 08:17:35 fozzie kernel: drm_mode_obj_set_property_ioctl+0x145/0x3a0
mar 16 08:17:35 fozzie kernel: ? drm_connector_set_obj_prop+0x80/0x80
mar 16 08:17:35 fozzie kernel: drm_connector_property_set_ioctl+0x36/0x50
mar 16 08:17:35 fozzie kernel: drm_ioctl_kernel+0xb9/0x160
mar 16 08:17:35 fozzie kernel: drm_ioctl+0x1f9/0x430
mar 16 08:17:35 fozzie kernel: ? drm_connector_set_obj_prop+0x80/0x80
mar 16 08:17:35 fozzie kernel: ? ioctl_has_perm.constprop.0.isra.0+0xbd/0x120
mar 16 08:17:35 fozzie kernel: amdgpu_drm_ioctl+0x49/0x80
mar 16 08:17:35 fozzie kernel: __x64_sys_ioctl+0x8b/0xc0
mar 16 08:17:35 fozzie kernel: do_syscall_64+0x59/0x80
mar 16 08:17:35 fozzie kernel: ? __x64_sys_ioctl+0xa3/0xc0
mar 16 08:17:35 fozzie kernel: ? syscall_exit_to_user_mode+0x21/0x40
mar 16 08:17:35 fozzie kernel: ? do_syscall_64+0x65/0x80
mar 16 08:17:35 fozzie kernel: ? syscall_exit_to_user_mode+0x21/0x40
mar 16 08:17:35 fozzie kernel: ? do_syscall_64+0x65/0x80
mar 16 08:17:35 fozzie kernel: ? syscall_exit_to_user_mode+0x21/0x40
mar 16 08:17:35 fozzie kernel: ? do_syscall_64+0x65/0x80
mar 16 08:17:35 fozzie kernel: entry_SYSCALL_64_after_hwframe+0x46/0xb0
mar 16 08:17:35 fozzie kernel: RIP: 0033:0x7facb4bfd30b
mar 16 08:17:35 fozzie 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 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
mar 16 08:17:35 fozzie kernel: RSP: 002b:00007ffe610744d0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
mar 16 08:17:35 fozzie kernel: RAX: ffffffffffffffda RBX: 000000000000000d RCX: 00007facb4bfd30b
mar 16 08:17:35 fozzie kernel: RDX: 00007ffe61074530 RSI: 00000000c01064ab RDI: 000000000000000d
mar 16 08:17:35 fozzie kernel: RBP: 00000000c01064ab R08: 0000000000000001 R09: 0000000000000001
mar 16 08:17:35 fozzie kernel: R10: 0000000000000004 R11: 0000000000000246 R12: 00007ffe61074530
mar 16 08:17:35 fozzie kernel: R13: 0000000000000002 R14: 0000000000000000 R15: 0000564b2694cd30
mar 16 08:17:35 fozzie kernel: </TASK>
mar 16 08:17:35 fozzie kernel: Modules linked in: xt_nat veth xt_addrtype br_netfilter xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT ip6table_nat iptable_nat cdc_ether usbnet r8152 mii bnep dm_thin_pool dm_persistent_data dm_bio_prison dm_bufio tpm_crb tpm_tis tpm_tis_core serio_raw zram
mar 16 08:17:35 fozzie kernel: CR2: 0000000000000008
mar 16 08:17:35 fozzie kernel: ---[ end trace 0000000000000000 ]---
Attached is a full kernel log with drm.debug=0x116 journal.txt