FS#73413 - [linux-lts] Thunderbolt not working since 5.15

Attached to Project: Arch Linux
Opened by Cedric Bellegarde (gnumdk) - Wednesday, 19 January 2022, 08:37 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 05 February 2022, 16:58 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Since linux-lts 5.15.*, my Dell WB 19 docks fails to connect (screens are OK but no keyboard, no mouse, no network).

Installing linux-5.16.1 or rolling back to 5.10.* fixes the issue.

boltd and fwupd are masked on boot.

Backtrace:
[ 8.104795] thunderbolt 0000:05:00.0: interrupt for TX ring 0 is already enabled
[ 8.104835] WARNING: CPU: 6 PID: 275 at drivers/thunderbolt/nhi.c:105 ring_interrupt_active+0x1d5/0x240 [thunderbolt]
[ 8.104908] Modules linked in: ucsi_acpi(+) thunderbolt(+) intel_lpss processor_thermal_mbox rfkill mei pcc_cpufreq(-) mc processor_thermal_rapl typec_ucsi idma64 intel_pch_thermal fjes(-) acpi_cpufreq(-) intel_rapl_common intel_xhci_usb_role_switch typec intel_soc_dts_iosf roles wmi i2c_hid_acpi tpm_crb i2c_hid tpm_tis tpm_tis_core tpm int3403_thermal rng_core int3400_thermal int340x_thermal_zone intel_hid acpi_thermal_rel acpi_pad sparse_keymap mac_hid ipmi_devintf ipmi_msghandler sg crypto_user fuse bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw rtsx_pci_sdmmc atkbd mmc_core libps2 crc32c_intel xhci_pci xhci_pci_renesas rtsx_pci i8042 serio i915 intel_gtt video ttm
[ 8.105051] CPU: 6 PID: 275 Comm: systemd-udevd Tainted: G W 5.15.15-1-lts #1 3d281467c2a7b0dccedf86312492605ff493e1c7
[ 8.105062] Hardware name: Dell Inc. XPS 13 9370/0W970W, BIOS 1.17.0 10/07/2021
[ 8.105066] RIP: 0010:ring_interrupt_active+0x1d5/0x240 [thunderbolt]
[ 8.105131] Code: 00 00 00 44 89 44 24 04 e8 e8 51 7e e9 44 8b 44 24 04 4d 89 f1 4c 89 e1 48 89 c6 4c 89 fa 48 c7 c7 10 23 bc c0 e8 0e 80 bb e9 <0f> 0b e9 17 ff ff ff 0f b6 43 78 d3 e0 09 c7 e9 db fe ff ff 44 03
[ 8.105137] RSP: 0018:ffffb7f5808b7988 EFLAGS: 00010046
[ 8.105145] RAX: 0000000000000000 RBX: ffff8cec4f084b40 RCX: 0000000000000000
[ 8.105150] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 8.105154] RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000
[ 8.105159] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffc0bc0deb
[ 8.105163] R13: 0000000000038200 R14: ffffffffc0bc0dda R15: ffff8cec41801df0
[ 8.105169] FS: 00007fdd30161a40(0000) GS:ffff8cefde780000(0000) knlGS:0000000000000000
[ 8.105176] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8.105182] CR2: 0000556a7800a000 CR3: 0000000107236002 CR4: 00000000003706e0
[ 8.105188] Call Trace:
[ 8.105193] <TASK>
[ 8.105200] tb_ring_start+0x163/0x320 [thunderbolt d08a5ecf532370debdf6c7e511fdfdabc8512b86]
[ 8.105268] tb_ctl_start+0x22/0xa0 [thunderbolt d08a5ecf532370debdf6c7e511fdfdabc8512b86]
[ 8.105336] tb_domain_add+0x37/0x180 [thunderbolt d08a5ecf532370debdf6c7e511fdfdabc8512b86]
[ 8.105415] nhi_probe+0x25c/0x3f0 [thunderbolt d08a5ecf532370debdf6c7e511fdfdabc8512b86]
[ 8.105482] local_pci_probe+0x45/0x90
[ 8.105496] pci_device_probe+0x100/0x1c0
[ 8.105508] really_probe+0x203/0x400
[ 8.105520] __driver_probe_device+0x112/0x190
[ 8.105531] driver_probe_device+0x1e/0x90
[ 8.105542] __driver_attach+0xc8/0x1e0
[ 8.105549] ? __device_attach_driver+0xf0/0xf0
[ 8.105555] ? __device_attach_driver+0xf0/0xf0
[ 8.105562] bus_for_each_dev+0x8d/0xe0
[ 8.105573] bus_add_driver+0x136/0x1f0
[ 8.105584] driver_register+0x8f/0xf0
[ 8.105591] ? 0xffffffffc0a29000
[ 8.105598] nhi_init+0x2d/0x1000 [thunderbolt d08a5ecf532370debdf6c7e511fdfdabc8512b86]
[ 8.105663] do_one_initcall+0x57/0x1f0
[ 8.105677] do_init_module+0x5c/0x270
[ 8.105687] load_module+0x25cb/0x27b0
[ 8.105704] ? __do_sys_init_module+0x12e/0x1b0
[ 8.105712] __do_sys_init_module+0x12e/0x1b0
[ 8.105724] do_syscall_64+0x5c/0x90
[ 8.105737] ? ksys_read+0x67/0xf0
[ 8.105746] ? syscall_exit_to_user_mode+0x23/0x50
[ 8.105754] ? do_syscall_64+0x69/0x90
[ 8.105764] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 8.105774] RIP: 0033:0x7fdd30b8c32e
[ 8.105781] Code: 48 8b 0d 45 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 12 0b 0c 00 f7 d8 64 89 01 48
[ 8.105787] RSP: 002b:00007ffdf509c598 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[ 8.105795] RAX: ffffffffffffffda RBX: 0000556a77ef1bd0 RCX: 00007fdd30b8c32e
[ 8.105800] RDX: 00007fdd30ce0a9d RSI: 00000000000b8c97 RDI: 00007fdd2f06b010
[ 8.105805] RBP: 00007fdd2f06b010 R08: 00007fdd2f1ce000 R09: 0000000000000000
[ 8.105810] R10: 0000000000037701 R11: 0000000000000246 R12: 00007fdd30ce0a9d
[ 8.105814] R13: 0000000000000001 R14: 0000556a77f665b0 R15: 0000556a77ef1bd0
[ 8.105823] </TASK>
[ 8.105826] ---[ end trace 3ad275e09596ce4f ]---
[ 8.105837] ------------[ cut here ]------------
[ 8.105839] thunderbolt 0000:05:00.0: interrupt for RX ring 0 is already enabled
[ 8.105875] WARNING: CPU: 6 PID: 275 at drivers/thunderbolt/nhi.c:105 ring_interrupt_active+0x1d5/0x240 [thunderbolt]
[ 8.105940] Modules linked in: ucsi_acpi(+) thunderbolt(+) intel_lpss processor_thermal_mbox rfkill mei pcc_cpufreq(-) mc processor_thermal_rapl typec_ucsi idma64 intel_pch_thermal fjes(-) acpi_cpufreq(-) intel_rapl_common intel_xhci_usb_role_switch typec intel_soc_dts_iosf roles wmi i2c_hid_acpi tpm_crb i2c_hid tpm_tis tpm_tis_core tpm int3403_thermal rng_core int3400_thermal int340x_thermal_zone intel_hid acpi_thermal_rel acpi_pad sparse_keymap mac_hid ipmi_devintf ipmi_msghandler sg crypto_user fuse bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw rtsx_pci_sdmmc atkbd mmc_core libps2 crc32c_intel xhci_pci xhci_pci_renesas rtsx_pci i8042 serio i915 intel_gtt video ttm
[ 8.106077] CPU: 6 PID: 275 Comm: systemd-udevd Tainted: G W 5.15.15-1-lts #1 3d281467c2a7b0dccedf86312492605ff493e1c7
[ 8.106086] Hardware name: Dell Inc. XPS 13 9370/0W970W, BIOS 1.17.0 10/07/2021
[ 8.106089] RIP: 0010:ring_interrupt_active+0x1d5/0x240 [thunderbolt]
[ 8.106153] Code: 00 00 00 44 89 44 24 04 e8 e8 51 7e e9 44 8b 44 24 04 4d 89 f1 4c 89 e1 48 89 c6 4c 89 fa 48 c7 c7 10 23 bc c0 e8 0e 80 bb e9 <0f> 0b e9 17 ff ff ff 0f b6 43 78 d3 e0 09 c7 e9 db fe ff ff 44 03
[ 8.106159] RSP: 0018:ffffb7f5808b7988 EFLAGS: 00010046
[ 8.106165] RAX: 0000000000000000 RBX: ffff8cec4f084780 RCX: 0000000000000000
[ 8.106170] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 8.106174] RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000
[ 8.106179] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffc0bc0df3
[ 8.106183] R13: 000000000003827c R14: ffffffffc0bc0dda R15: ffff8cec41801df0
[ 8.106188] FS: 00007fdd30161a40(0000) GS:ffff8cefde780000(0000) knlGS:0000000000000000
[ 8.106195] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8.106201] CR2: 0000556a7800a000 CR3: 0000000107236002 CR4: 00000000003706e0
[ 8.106206] Call Trace:
[ 8.106209] <TASK>
[ 8.106214] tb_ring_start+0x163/0x320 [thunderbolt d08a5ecf532370debdf6c7e511fdfdabc8512b86]
[ 8.106281] tb_ctl_start+0x2c/0xa0 [thunderbolt d08a5ecf532370debdf6c7e511fdfdabc8512b86]
[ 8.106349] tb_domain_add+0x37/0x180 [thunderbolt d08a5ecf532370debdf6c7e511fdfdabc8512b86]
[ 8.106426] nhi_probe+0x25c/0x3f0 [thunderbolt d08a5ecf532370debdf6c7e511fdfdabc8512b86]
[ 8.106493] local_pci_probe+0x45/0x90
[ 8.106504] pci_device_probe+0x100/0x1c0
[ 8.106516] really_probe+0x203/0x400
[ 8.106527] __driver_probe_device+0x112/0x190
[ 8.106538] driver_probe_device+0x1e/0x90
[ 8.106548] __driver_attach+0xc8/0x1e0
[ 8.106554] ? __device_attach_driver+0xf0/0xf0
[ 8.106561] ? __device_attach_driver+0xf0/0xf0
[ 8.106568] bus_for_each_dev+0x8d/0xe0
[ 8.106578] bus_add_driver+0x136/0x1f0
[ 8.106588] driver_register+0x8f/0xf0
[ 8.106595] ? 0xffffffffc0a29000
[ 8.106601] nhi_init+0x2d/0x1000 [thunderbolt d08a5ecf532370debdf6c7e511fdfdabc8512b86]
[ 8.106665] do_one_initcall+0x57/0x1f0
[ 8.106678] do_init_module+0x5c/0x270
[ 8.106686] load_module+0x25cb/0x27b0
[ 8.106704] ? __do_sys_init_module+0x12e/0x1b0
[ 8.106711] __do_sys_init_module+0x12e/0x1b0
[ 8.106723] do_syscall_64+0x5c/0x90
[ 8.106734] ? ksys_read+0x67/0xf0
[ 8.106741] ? syscall_exit_to_user_mode+0x23/0x50
[ 8.106750] ? do_syscall_64+0x69/0x90
[ 8.106760] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 8.106769] RIP: 0033:0x7fdd30b8c32e
[ 8.106775] Code: 48 8b 0d 45 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 12 0b 0c 00 f7 d8 64 89 01 48
[ 8.106781] RSP: 002b:00007ffdf509c598 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[ 8.106788] RAX: ffffffffffffffda RBX: 0000556a77ef1bd0 RCX: 00007fdd30b8c32e
[ 8.106793] RDX: 00007fdd30ce0a9d RSI: 00000000000b8c97 RDI: 00007fdd2f06b010
[ 8.106798] RBP: 00007fdd2f06b010 R08: 00007fdd2f1ce000 R09: 0000000000000000
[ 8.106802] R10: 0000000000037701 R11: 0000000000000246 R12: 00007fdd30ce0a9d
[ 8.106807] R13: 0000000000000001 R14: 0000556a77f665b0 R15: 0000556a77ef1bd0
[ 8.106816] </TASK>
[ 8.106818] ---[ end trace 3ad275e09596ce50 ]---
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 05 February 2022, 16:58 GMT
Reason for closing:  No response
Comment by Andreas Radke (AndyRTR) - Wednesday, 19 January 2022, 13:55 GMT
Can you please check if some 5.15.x mainline kernel works for you. Use the local pkg cache or Arch rollback.
Comment by Cedric Bellegarde (gnumdk) - Wednesday, 19 January 2022, 13:56 GMT
Tested to be sure, linux-lts 5.10.90 is working
Comment by Cedric Bellegarde (gnumdk) - Wednesday, 19 January 2022, 14:10 GMT
OK, 5.15.13 is working and as soon I move to linux-lts 5.15.14 it breaks.
Comment by Andreas Radke (AndyRTR) - Wednesday, 19 January 2022, 14:37 GMT
So it can be some breaking commit in .14 or a small missing kernel config switch that is left different.
Try to get mainline .14 and if this one also works please diff the config for related differences.
Comment by Cedric Bellegarde (gnumdk) - Wednesday, 19 January 2022, 20:12 GMT
I'm building it but does not have TB19 at home, will try tomorrow.

BTW looking at config, 5.15.12 config is really similar to 5.16.1 config while 5.15.15 one is really different (CONFIG_PREEMPT missing for exemple), is this normal ?
Comment by Andreas Radke (AndyRTR) - Thursday, 20 January 2022, 06:11 GMT
That config difference is intentional: mainline kernel is desktop optmized with PREEMPT enabled and lts is more server optimized with PREEMPT disabled.
Comment by Cedric Bellegarde (gnumdk) - Thursday, 20 January 2022, 15:01 GMT
Can confirm that 5.15.15 built with 5.16.1 config works.
Comment by Andreas Radke (AndyRTR) - Thursday, 20 January 2022, 21:08 GMT
Can you please check for loaded modules with lsmod and maybe compare/diff the config what's missing in 5.15-lts?

Loading...