MST Hub Disconnect/Suspend results in crash since 5.16.0-rc8
Happens on Lenovo Thinkpad T14 with Lenovo 40AS MST Hub Dock. Can be reproduced with unplugging the dock without shutdown of the Machine and waiting till it tries to enter Standby. Not sure if the disconnect or the Standby is the issue.
AMD Ryzen 7 PRO 4750U Archlinux
Jan 03 01:18:52 nb-kbch-1 kernel: usb 6-1.3: USB disconnect, device number 6
Jan 03 01:18:52 nb-kbch-1 kernel: usb 6-1.3.3: USB disconnect, device number 9
Jan 03 01:18:52 nb-kbch-1 kernel: usb 6-1.3.3.1: USB disconnect, device number 19
Jan 03 01:18:52 nb-kbch-1 kernel: BUG: kernel NULL pointer dereference, address: 0000000000000000
Jan 03 01:18:52 nb-kbch-1 kernel: #PF: supervisor read access in kernel mode
Jan 03 01:18:52 nb-kbch-1 kernel: #PF: error_code(0x0000) - not-present page
Jan 03 01:18:52 nb-kbch-1 kernel: PGD 0 P4D 0
Jan 03 01:18:52 nb-kbch-1 kernel: Oops: 0000 [#1] PREEMPT SMP NOPTI
Jan 03 01:18:52 nb-kbch-1 kernel: CPU: 1 PID: 1718 Comm: Xorg Not tainted 5.16.0-rc8-1-mainline #3 17782f1ec9de7198171446304dd1498f1b1f3a6e
Jan 03 01:18:52 nb-kbch-1 kernel: Hardware name: LENOVO 20UES1Y200/20UES1Y200, BIOS R1BET67W(1.36 ) 10/19/2021
Jan 03 01:18:52 nb-kbch-1 kernel: RIP: 0010:dcn20_validate_dsc+0x18a/0x1c0 [amdgpu]
Jan 03 01:18:52 nb-kbch-1 kernel: Code: 00 00 00 48 89 74 24 1c 48 89 e6 89 44 24 0c 89 d0 8b 97 c0 00 00 00 48 8b bb e8 00 00 00 89 54 24 34 31 d2 f7 f1 89 44 24 14 <48> 8b 07 48 8b 40 10 0f ae e8 ff d0 84 c0 0f 84 31 ff ff ff 49 8b
Jan 03 01:18:52 nb-kbch-1 kernel: RSP: 0018:ffffaa6d02bc3900 EFLAGS: 00010212
Jan 03 01:18:52 nb-kbch-1 kernel: RAX: 0000000000000001 RBX: ffff9f50ef6c1200 RCX: 0000000000000001
Jan 03 01:18:52 nb-kbch-1 kernel: RDX: 0000000000000000 RSI: ffffaa6d02bc3900 RDI: 0000000000000000
Jan 03 01:18:52 nb-kbch-1 kernel: RBP: ffffaa6d02bc3960 R08: 0000000000000000 R09: 0000000000000000
Jan 03 01:18:52 nb-kbch-1 kernel: R10: ffff9f500c70e000 R11: 0000000000000000 R12: 0000000000000002
Jan 03 01:18:52 nb-kbch-1 kernel: R13: ffff9f504dab0000 R14: ffff9f504dab0000 R15: ffff9f50ef6c2208
Jan 03 01:18:52 nb-kbch-1 kernel: FS: 00007f2540349940(0000) GS:ffff9f56ef840000(0000) knlGS:0000000000000000
Jan 03 01:18:52 nb-kbch-1 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 03 01:18:52 nb-kbch-1 kernel: CR2: 0000000000000000 CR3: 0000000125e90000 CR4: 0000000000350ee0
Jan 03 01:18:52 nb-kbch-1 kernel: Call Trace:
Jan 03 01:18:52 nb-kbch-1 kernel: <TASK>
Jan 03 01:18:52 nb-kbch-1 kernel: dcn21_validate_bandwidth_fp+0x51f/0x700 [amdgpu 0db41c46f9008dd7fad3e548839bcca5f652de6b]
Jan 03 01:18:52 nb-kbch-1 kernel: ? dcn21_validate_bandwidth+0x30/0x60 [amdgpu 0db41c46f9008dd7fad3e548839bcca5f652de6b]
Jan 03 01:18:52 nb-kbch-1 kernel: dcn21_validate_bandwidth+0x30/0x60 [amdgpu 0db41c46f9008dd7fad3e548839bcca5f652de6b]
Jan 03 01:18:52 nb-kbch-1 kernel: dc_validate_global_state+0x2f5/0x3f0 [amdgpu 0db41c46f9008dd7fad3e548839bcca5f652de6b]
Jan 03 01:18:52 nb-kbch-1 kernel: amdgpu_dm_atomic_check+0xd94/0xee0 [amdgpu 0db41c46f9008dd7fad3e548839bcca5f652de6b]
Jan 03 01:18:52 nb-kbch-1 kernel: drm_atomic_check_only+0x5b4/0x910
Jan 03 01:18:52 nb-kbch-1 kernel: drm_atomic_commit+0x13/0x50
Jan 03 01:18:52 nb-kbch-1 kernel: drm_atomic_connector_commit_dpms+0xd7/0x100
Jan 03 01:18:52 nb-kbch-1 kernel: drm_mode_obj_set_property_ioctl+0x1a1/0x3d0
Jan 03 01:18:52 nb-kbch-1 kernel: ? drm_connector_set_obj_prop+0x90/0x90
Jan 03 01:18:52 nb-kbch-1 kernel: drm_connector_property_set_ioctl+0x39/0x60
Jan 03 01:18:52 nb-kbch-1 kernel: drm_ioctl_kernel+0xc0/0x150
Jan 03 01:18:52 nb-kbch-1 kernel: drm_ioctl+0x23e/0x3e0
Jan 03 01:18:52 nb-kbch-1 kernel: ? drm_connector_set_obj_prop+0x90/0x90
Jan 03 01:18:52 nb-kbch-1 kernel: amdgpu_drm_ioctl+0x49/0x80 [amdgpu 0db41c46f9008dd7fad3e548839bcca5f652de6b]
Jan 03 01:18:52 nb-kbch-1 kernel: __x64_sys_ioctl+0x8e/0xd0
Jan 03 01:18:52 nb-kbch-1 kernel: do_syscall_64+0x5c/0x90
Jan 03 01:18:52 nb-kbch-1 kernel: ? do_syscall_64+0x69/0x90
Jan 03 01:18:52 nb-kbch-1 kernel: ? syscall_exit_to_user_mode+0x23/0x50
Jan 03 01:18:52 nb-kbch-1 kernel: ? do_syscall_64+0x69/0x90
Jan 03 01:18:52 nb-kbch-1 kernel: ? do_syscall_64+0x69/0x90
Jan 03 01:18:52 nb-kbch-1 kernel: ? do_syscall_64+0x69/0x90
Jan 03 01:18:52 nb-kbch-1 kernel: ? do_syscall_64+0x69/0x90
Jan 03 01:18:52 nb-kbch-1 kernel: entry_SYSCALL_64_after_hwframe+0x44/0xae
Jan 03 01:18:52 nb-kbch-1 kernel: RIP: 0033:0x7f2540cc159b
Jan 03 01:18:52 nb-kbch-1 kernel: Code: ff ff ff 85 c0 79 9b 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a5 a8 0c 00 f7 d8 64 89 01 48
Jan 03 01:18:52 nb-kbch-1 kernel: RSP: 002b:00007ffd12734928 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Jan 03 01:18:52 nb-kbch-1 kernel: RAX: ffffffffffffffda RBX: 00007ffd12734960 RCX: 00007f2540cc159b
Jan 03 01:18:52 nb-kbch-1 kernel: RDX: 00007ffd12734960 RSI: 00000000c01064ab RDI: 000000000000000d
Jan 03 01:18:52 nb-kbch-1 kernel: RBP: 00000000c01064ab R08: 0000000000000000 R09: 0000561fa008ca70
Jan 03 01:18:52 nb-kbch-1 kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 0000561f9f13ee20
Jan 03 01:18:52 nb-kbch-1 kernel: R13: 000000000000000d R14: 0000561f9fcff9d0 R15: 0000000000000000
Jan 03 01:18:52 nb-kbch-1 kernel: </TASK>
Jan 03 01:18:52 nb-kbch-1 kernel: Modules linked in: hid_logitech_hidpp hid_logitech_dj uhid snd_usb_audio snd_usbmidi_lib snd_rawmidi usbhid uas usb_storage cdc_ether usbnet r8152 mii rpcrdma rdma_cm iw_cm ib_cm ib_core ccm rfcomm snd_s>
Jan 03 01:18:52 nb-kbch-1 kernel: snd_hda_codec_hdmi edac_mce_amd snd_hda_intel snd_intel_dspcfg kvm_amd snd_intel_sdw_acpi libarc4 snd_hda_codec iwlwifi snd_hda_core kvm amdgpu thinkpad_acpi snd_hwdep snd_pcm irqbypass sp5100_tco snd_p>
Jan 03 01:18:52 nb-kbch-1 kernel: i8042 serio i915 intel_gtt video ttm
Jan 03 01:18:52 nb-kbch-1 kernel: CR2: 0000000000000000
Jan 03 01:18:52 nb-kbch-1 kernel: ---[ end trace a28778044781fe83 ]---
Jan 03 01:18:52 nb-kbch-1 kernel: RIP: 0010:dcn20_validate_dsc+0x18a/0x1c0 [amdgpu]
Jan 03 01:18:52 nb-kbch-1 kernel: Code: 00 00 00 48 89 74 24 1c 48 89 e6 89 44 24 0c 89 d0 8b 97 c0 00 00 00 48 8b bb e8 00 00 00 89 54 24 34 31 d2 f7 f1 89 44 24 14 <48> 8b 07 48 8b 40 10 0f ae e8 ff d0 84 c0 0f 84 31 ff ff ff 49 8b
Jan 03 01:18:52 nb-kbch-1 kernel: RSP: 0018:ffffaa6d02bc3900 EFLAGS: 00010212
Jan 03 01:18:52 nb-kbch-1 kernel: RAX: 0000000000000001 RBX: ffff9f50ef6c1200 RCX: 0000000000000001
Jan 03 01:18:52 nb-kbch-1 kernel: RDX: 0000000000000000 RSI: ffffaa6d02bc3900 RDI: 0000000000000000
Jan 03 01:18:52 nb-kbch-1 kernel: RBP: ffffaa6d02bc3960 R08: 0000000000000000 R09: 0000000000000000
Jan 03 01:18:52 nb-kbch-1 kernel: R10: ffff9f500c70e000 R11: 0000000000000000 R12: 0000000000000002
Jan 03 01:18:52 nb-kbch-1 kernel: R13: ffff9f504dab0000 R14: ffff9f504dab0000 R15: ffff9f50ef6c2208
Jan 03 01:18:52 nb-kbch-1 kernel: FS: 00007f2540349940(0000) GS:ffff9f56ef840000(0000) knlGS:0000000000000000
Jan 03 01:18:52 nb-kbch-1 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 03 01:18:52 nb-kbch-1 kernel: CR2: 0000000000000000 CR3: 0000000125e90000 CR4: 0000000000350ee0
Jan 03 01:18:52 nb-kbch-1 kernel: note: Xorg[1718] exited with preempt_count 1
Jan 03 01:18:52 nb-kbch-1 kernel: usb 6-1.3.3.2: USB disconnect, device number 14
Jan 03 01:18:52 nb-kbch-1 kernel: usb 6-1.3.3.3: USB disconnect, device number 16
Jan 03 01:18:52 nb-kbch-1 kernel: usb 6-1.3.3.3.1: USB disconnect, device number 18