Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942881 - sys-kernel/gentoo-kernel: Unable to use USB ports of Dell WD19TB Thunderbolt Dock
Summary: sys-kernel/gentoo-kernel: Unable to use USB ports of Dell WD19TB Thunderbolt ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
: 942882 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-11-04 18:48 UTC by Hendrik Klug
Modified: 2025-02-04 20:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg, kernel config, lspci and lsmod for genkernel, ubuntu and distr kernel (archive.tar.gz,313.18 KB, application/gzip)
2024-11-04 18:48 UTC, Hendrik Klug
Details
output of diff genkernel_lspci distrkernel_lspci (genkernel_distrkernel_lspci.diff,6.98 KB, patch)
2024-11-04 20:09 UTC, Hendrik Klug
Details | Diff
output of diff genkernel_config distrkernel_config (genkernel_distrkernel_config.diff,116.23 KB, patch)
2024-11-04 20:10 UTC, Hendrik Klug
Details | Diff
output of diff genkernel_lspci distrkernel_lspci (genkernel_distrkernel_lspci.diff,6.98 KB, patch)
2024-11-06 17:59 UTC, Hendrik Klug
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hendrik Klug 2024-11-04 18:48:30 UTC
Created attachment 907858 [details]
dmesg, kernel config, lspci and lsmod for genkernel, ubuntu and distr kernel

I'm not able to use the usb ports of my Dell WD19TB Thunderbolt Dock when using the distribution kernel.
The dock seems to work fine with:
- genkernel on another machine (see genkernel in attachement)
- ubuntu booted from a usb drive (see ubuntu in the attachment)

However using the distribution kernel does not work.

There is a forum discussion with additional information:
https://forums.gentoo.org/viewtopic-t-1171007-highlight-.html

Please find in the attachment the relevant log and configuration files for all three systems (genkernel, distr kernel and ubuntu)
Comment 1 Andreas Sturmlechner gentoo-dev 2024-11-04 18:58:37 UTC
*** Bug 942882 has been marked as a duplicate of this bug. ***
Comment 2 Nowa Ammerlaan gentoo-dev 2024-11-04 19:43:55 UTC
Please attach a diff of the output of 'lspci -vv' and the .config from the working and not working kernels. The paste in your forums post has expired.
Comment 3 Hendrik Klug 2024-11-04 20:09:33 UTC
Created attachment 907893 [details, diff]
output of diff genkernel_lspci distrkernel_lspci
Comment 4 Hendrik Klug 2024-11-04 20:10:00 UTC
Created attachment 907894 [details, diff]
output of diff genkernel_config distrkernel_config
Comment 5 Hendrik Klug 2024-11-04 20:12:31 UTC
I added the diffs of both configs and lspci commands.
Both are also included in the first attachment.
I will upload the lspci diff tomorrow with the -vv flags when I'll have access to the dock again
Comment 6 Holger Hoffstätte 2024-11-05 08:27:16 UTC
Discussion on the -stable list:

https://lore.kernel.org/stable/CAPX310gmJeYhE2C6-==rKSDh6wAmoR8R5-pjEOgYD3AP+Si+0w@mail.gmail.com/

The problematic commit has been found and will be reverted/fixed in mainline soon.
Comment 7 Hendrik Klug 2024-11-05 08:32:05 UTC
ah interesting, am I mistaken then that it works with genkernel?
Comment 8 Holger Hoffstätte 2024-11-05 09:03:16 UTC
(In reply to Hendrik Klug from comment #7)
> ah interesting, am I mistaken then that it works with genkernel?

It's a hardware-specific timing problem, so you might be seeing random behaviour. I don't have this hardware/propblem and only wanted to add the discussion link.
Comment 9 Hendrik Klug 2024-11-06 17:59:49 UTC
Created attachment 908005 [details, diff]
output of diff genkernel_lspci distrkernel_lspci
Comment 10 Hendrik Klug 2024-11-06 18:06:21 UTC
(In reply to Holger Hoffstätte from comment #8)
> (In reply to Hendrik Klug from comment #7)
> > ah interesting, am I mistaken then that it works with genkernel?
> 
> It's a hardware-specific timing problem, so you might be seeing random
> behaviour. I don't have this hardware/propblem and only wanted to add the
> discussion link.

I see, probably my laptop running the distribution kernel has a different behaviour then. 

Looks like they put together a patch that fixes the issue, will try that out :)
Comment 11 Hendrik Klug 2025-01-28 17:14:01 UTC
I still have the issue even on sys-kernel/gentoo-kernel-6.12.9
Does someone have an idea how to debug this? Should I try to compile the kernel with random values for USB4_PORT_SB_DELAY in drivers/thunderbolt/usb4.c ?
Comment 12 Hendrik Klug 2025-02-04 20:24:52 UTC
Looks like my issue was completely unrelated to genkernel... Installing "sys-apps/bolt" and enrolling the device fixed the issue!
I guess this can close then.