While debugging Laptop powers *on* after hibernate when unplugging/unpowering dock - #2 by Azure, I found that the Linux kernel can provide quite a bit of detail on the ports/interfaces/adapters exposed by a USB4/TB4 router (like a dock) if you enable debug printing.
i.e. run:
echo "module thunderbolt +p" > /sys/kernel/debug/dynamic_debug/control
Then plug in the dock and check dmesg
for debug output.
For example, with my Caldigit TS4, this gives:
[37305.688348] thunderbolt 0000:00:0d.2: current switch config:
[37305.688357] thunderbolt 0000:00:0d.2: USB4 Switch: 8087:b26 (Revision: 3, TB Version: 32)
[37305.688364] thunderbolt 0000:00:0d.2: Max Port Number: 19
[37305.688367] thunderbolt 0000:00:0d.2: Config:
[37305.688369] thunderbolt 0000:00:0d.2: Upstream Port Number: 1 Depth: 1 Route String: 0x1 Enabled: 1, PlugEventsDelay: 254ms
[37305.688375] thunderbolt 0000:00:0d.2: unknown1: 0x0 unknown4: 0x0
[37305.747299] thunderbolt 0000:00:0d.2: 1: reading drom (length: 0x9e)
[37305.764321] thunderbolt 0000:00:0d.2: 1: DROM version: 1
[37305.792245] thunderbolt 0000:00:0d.2: 1: uid: 0x8087a68941184600
[37305.818400] thunderbolt 0000:00:0d.2: Port 1: 8086:b26 (Revision: 3, TB Version: 1, Type: Port (0x1))
[37305.818413] thunderbolt 0000:00:0d.2: Max hop id (in/out): 19/19
[37305.818418] thunderbolt 0000:00:0d.2: Max counters: 16
[37305.818422] thunderbolt 0000:00:0d.2: NFC Credits: 0xc7800000
[37305.818425] thunderbolt 0000:00:0d.2: Credits (total/control): 120/2
[37305.849770] thunderbolt 0000:00:0d.2: Port 2: 8086:b26 (Revision: 3, TB Version: 1, Type: Port (0x1))
[37305.849783] thunderbolt 0000:00:0d.2: Max hop id (in/out): 19/19
[37305.849787] thunderbolt 0000:00:0d.2: Max counters: 16
[37305.849790] thunderbolt 0000:00:0d.2: NFC Credits: 0x80000000
[37305.849795] thunderbolt 0000:00:0d.2: Credits (total/control): 0/2
[37305.875913] thunderbolt 0000:00:0d.2: Port 3: 8086:b26 (Revision: 3, TB Version: 1, Type: Port (0x1))
[37305.875929] thunderbolt 0000:00:0d.2: Max hop id (in/out): 19/19
[37305.875933] thunderbolt 0000:00:0d.2: Max counters: 16
[37305.875936] thunderbolt 0000:00:0d.2: NFC Credits: 0x83c00000
[37305.875940] thunderbolt 0000:00:0d.2: Credits (total/control): 60/2
[37305.907278] thunderbolt 0000:00:0d.2: Port 4: 8086:b26 (Revision: 3, TB Version: 1, Type: Port (0x1))
[37305.907286] thunderbolt 0000:00:0d.2: Max hop id (in/out): 19/19
[37305.907289] thunderbolt 0000:00:0d.2: Max counters: 16
[37305.907291] thunderbolt 0000:00:0d.2: NFC Credits: 0x83c00000
[37305.907294] thunderbolt 0000:00:0d.2: Credits (total/control): 60/2
[37305.907298] thunderbolt 0000:00:0d.2: 1:5: disabled by eeprom
[37305.907301] thunderbolt 0000:00:0d.2: 1:6: disabled by eeprom
[37305.919796] pcieport 0000:00:07.0: pciehp: Slot(0): Card present
[37305.919805] pcieport 0000:00:07.0: pciehp: Slot(0): Link Up
[37305.933423] thunderbolt 0000:00:0d.2: Port 7: 8086:b26 (Revision: 3, TB Version: 1, Type: Port (0x1))
[37305.933435] thunderbolt 0000:00:0d.2: Max hop id (in/out): 19/19
[37305.933440] thunderbolt 0000:00:0d.2: Max counters: 16
[37305.933443] thunderbolt 0000:00:0d.2: NFC Credits: 0x83c00000
[37305.933446] thunderbolt 0000:00:0d.2: Credits (total/control): 60/2
[37305.964804] thunderbolt 0000:00:0d.2: Port 8: 8086:b26 (Revision: 3, TB Version: 1, Type: Port (0x1))
[37305.964818] thunderbolt 0000:00:0d.2: Max hop id (in/out): 19/19
[37305.964823] thunderbolt 0000:00:0d.2: Max counters: 16
[37305.964826] thunderbolt 0000:00:0d.2: NFC Credits: 0x83c00000
[37305.964829] thunderbolt 0000:00:0d.2: Credits (total/control): 60/2
[37305.970033] thunderbolt 0000:00:0d.2: Port 9: 8086:b26 (Revision: 3, TB Version: 1, Type: PCIe (0x100102))
[37305.970044] thunderbolt 0000:00:0d.2: Max hop id (in/out): 8/8
[37305.970049] thunderbolt 0000:00:0d.2: Max counters: 2
[37305.970052] thunderbolt 0000:00:0d.2: NFC Credits: 0x40800000
[37305.970056] thunderbolt 0000:00:0d.2: Credits (total/control): 8/0
[37305.975274] thunderbolt 0000:00:0d.2: Port 10: 8086:b26 (Revision: 3, TB Version: 1, Type: PCIe (0x100101))
[37305.975282] thunderbolt 0000:00:0d.2: Max hop id (in/out): 8/8
[37305.975285] thunderbolt 0000:00:0d.2: Max counters: 2
[37305.975288] thunderbolt 0000:00:0d.2: NFC Credits: 0x40800000
[37305.975291] thunderbolt 0000:00:0d.2: Credits (total/control): 8/0
[37305.975295] thunderbolt 0000:00:0d.2: 1:b: disabled by eeprom
[37305.980508] thunderbolt 0000:00:0d.2: Port 12: 8086:b26 (Revision: 3, TB Version: 1, Type: PCIe (0x100101))
[37305.980523] thunderbolt 0000:00:0d.2: Max hop id (in/out): 8/8
[37305.980528] thunderbolt 0000:00:0d.2: Max counters: 2
[37305.980531] thunderbolt 0000:00:0d.2: NFC Credits: 0x40800000
[37305.980534] thunderbolt 0000:00:0d.2: Credits (total/control): 8/0
[37305.990960] thunderbolt 0000:00:0d.2: Port 13: 8086:b26 (Revision: 1, TB Version: 1, Type: DP/HDMI (0xe0102))
[37305.990970] thunderbolt 0000:00:0d.2: Max hop id (in/out): 9/9
[37305.990974] thunderbolt 0000:00:0d.2: Max counters: 2
[37305.990977] thunderbolt 0000:00:0d.2: NFC Credits: 0x40800000
[37305.990980] thunderbolt 0000:00:0d.2: Credits (total/control): 8/0
[37306.035751] thunderbolt 0000:00:0d.2: Port 14: 8086:b26 (Revision: 1, TB Version: 1, Type: DP/HDMI (0xe0102))
[37306.035766] thunderbolt 0000:00:0d.2: Max hop id (in/out): 9/9
[37306.035771] thunderbolt 0000:00:0d.2: Max counters: 2
[37306.035775] thunderbolt 0000:00:0d.2: NFC Credits: 0x800000
[37306.035779] thunderbolt 0000:00:0d.2: Credits (total/control): 8/0
[37306.051922] thunderbolt 0000:00:0d.2: Port 15: 8086:b26 (Revision: 1, TB Version: 1, Type: Inactive (0x0))
[37306.051938] thunderbolt 0000:00:0d.2: Max hop id (in/out): 0/0
[37306.051943] thunderbolt 0000:00:0d.2: Max counters: 0
[37306.051946] thunderbolt 0000:00:0d.2: NFC Credits: 0x0
[37306.051950] thunderbolt 0000:00:0d.2: Credits (total/control): 0/0
[37306.057162] thunderbolt 0000:00:0d.2: Port 16: 8086:b26 (Revision: 3, TB Version: 1, Type: USB (0x200102))
[37306.057172] thunderbolt 0000:00:0d.2: Max hop id (in/out): 8/8
[37306.057176] thunderbolt 0000:00:0d.2: Max counters: 2
[37306.057179] thunderbolt 0000:00:0d.2: NFC Credits: 0x800000
[37306.057182] thunderbolt 0000:00:0d.2: Credits (total/control): 8/0
[37306.057422] pci 0000:02:00.0: [8086:0b26] type 01 class 0x060400
[37306.057528] pci 0000:02:00.0: enabling Extended Tags
[37306.057783] pci 0000:02:00.0: supports D1 D2
[37306.057787] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[37306.057996] pci 0000:02:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:00:07.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
[37306.059200] pci 0000:02:00.0: Adding to iommu group 18
[37306.059427] pcieport 0000:00:07.0: ASPM: current common clock configuration is inconsistent, reconfiguring
[37306.062402] thunderbolt 0000:00:0d.2: Port 17: 8086:b26 (Revision: 3, TB Version: 1, Type: USB (0x200101))
[37306.062415] thunderbolt 0000:00:0d.2: Max hop id (in/out): 8/8
[37306.062418] thunderbolt 0000:00:0d.2: Max counters: 2
[37306.062422] thunderbolt 0000:00:0d.2: NFC Credits: 0x800000
[37306.062425] thunderbolt 0000:00:0d.2: Credits (total/control): 8/0
[37306.067619] thunderbolt 0000:00:0d.2: Port 18: 8086:b26 (Revision: 3, TB Version: 1, Type: USB (0x200101))
[37306.067628] thunderbolt 0000:00:0d.2: Max hop id (in/out): 8/8
[37306.067631] thunderbolt 0000:00:0d.2: Max counters: 2
[37306.067634] thunderbolt 0000:00:0d.2: NFC Credits: 0x800000
[37306.067637] thunderbolt 0000:00:0d.2: Credits (total/control): 8/0
[37306.072846] thunderbolt 0000:00:0d.2: Port 19: 8086:b26 (Revision: 3, TB Version: 1, Type: USB (0x200101))
[37306.072852] thunderbolt 0000:00:0d.2: Max hop id (in/out): 8/8
[37306.072855] thunderbolt 0000:00:0d.2: Max counters: 2
[37306.072858] thunderbolt 0000:00:0d.2: NFC Credits: 0x800000
[37306.072860] thunderbolt 0000:00:0d.2: Credits (total/control): 8/0
[37306.073348] pci 0000:02:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[37306.073593] pci 0000:03:00.0: [8086:0b26] type 01 class 0x060400
[37306.073693] pci 0000:03:00.0: enabling Extended Tags
[37306.073954] pci 0000:03:00.0: supports D1 D2
[37306.073957] pci 0000:03:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[37306.074407] pci 0000:03:00.0: Adding to iommu group 19
[37306.074761] pci 0000:03:01.0: [8086:0b26] type 01 class 0x060400
[37306.074862] pci 0000:03:01.0: enabling Extended Tags
[37306.075088] pci 0000:03:01.0: supports D1 D2
[37306.075091] pci 0000:03:01.0: PME# supported from D0 D1 D2 D3hot D3cold
[37306.076409] pci 0000:03:01.0: Adding to iommu group 20
[37306.076662] pci 0000:03:02.0: [8086:0b26] type 01 class 0x060400
[37306.076765] pci 0000:03:02.0: enabling Extended Tags
[37306.077010] pci 0000:03:02.0: supports D1 D2
[37306.077015] pci 0000:03:02.0: PME# supported from D0 D1 D2 D3hot D3cold
[37306.077270] pci 0000:03:02.0: Adding to iommu group 21
[37306.077466] usb 2-1: new SuperSpeed Plus Gen 2x1 USB device number 36 using xhci_hcd
[37306.077538] pci 0000:03:03.0: [8086:0b26] type 01 class 0x060400
[37306.077640] pci 0000:03:03.0: enabling Extended Tags
[37306.077882] pci 0000:03:03.0: supports D1 D2
[37306.077887] pci 0000:03:03.0: PME# supported from D0 D1 D2 D3hot D3cold
[37306.081247] pci 0000:03:03.0: Adding to iommu group 22
[37306.081978] thunderbolt 0-1: new device found, vendor=0x3d device=0x26
[37306.081989] thunderbolt 0-1: CalDigit, Inc. TS4
[37306.082089] pci 0000:03:04.0: [8086:0b26] type 01 class 0x060400
[37306.082250] pci 0000:03:04.0: enabling Extended Tags
[37306.082493] pci 0000:03:04.0: supports D1 D2
[37306.082498] pci 0000:03:04.0: PME# supported from D0 D1 D2 D3hot D3cold
[37306.086186] pci 0000:03:04.0: Adding to iommu group 23
[37306.086481] pci 0000:02:00.0: PCI bridge to [bus 03-2b]
[37306.086500] pci 0000:02:00.0: bridge window [io 0x0000-0x0fff]
[37306.086511] pci 0000:02:00.0: bridge window [mem 0x00000000-0x000fffff]
[37306.086531] pci 0000:02:00.0: bridge window [mem 0x00000000-0x000fffff 64bit pref]
[37306.086541] pci 0000:03:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[37306.086567] pci 0000:03:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[37306.086590] pci 0000:03:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[37306.086610] pci 0000:03:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[37306.086633] pci 0000:03:04.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[37306.086834] pci 0000:03:00.0: PCI bridge to [bus 04-2b]
[37306.086849] pci 0000:03:00.0: bridge window [io 0x0000-0x0fff]
[37306.086857] pci 0000:03:00.0: bridge window [mem 0x00000000-0x000fffff]
[37306.086870] pci 0000:03:00.0: bridge window [mem 0x00000000-0x000fffff 64bit pref]
[37306.086876] pci_bus 0000:04: busn_res: [bus 04-2b] end is updated to 04
[37306.087011] pci 0000:03:01.0: PCI bridge to [bus 05-2b]
[37306.087025] pci 0000:03:01.0: bridge window [io 0x0000-0x0fff]
[37306.087034] pci 0000:03:01.0: bridge window [mem 0x00000000-0x000fffff]
[37306.087048] pci 0000:03:01.0: bridge window [mem 0x00000000-0x000fffff 64bit pref]
[37306.087053] pci_bus 0000:05: busn_res: [bus 05-2b] end is updated to 11
[37306.087659] pci 0000:03:02.0: PCI bridge to [bus 12-2b]
[37306.087676] pci 0000:03:02.0: bridge window [io 0x0000-0x0fff]
[37306.087686] pci 0000:03:02.0: bridge window [mem 0x00000000-0x000fffff]
[37306.087699] pci 0000:03:02.0: bridge window [mem 0x00000000-0x000fffff 64bit pref]
[37306.087705] pci_bus 0000:12: busn_res: [bus 12-2b] end is updated to 1e
[37306.087855] pci 0000:03:03.0: PCI bridge to [bus 1f-2b]
[37306.087869] pci 0000:03:03.0: bridge window [io 0x0000-0x0fff]
[37306.087878] pci 0000:03:03.0: bridge window [mem 0x00000000-0x000fffff]
[37306.087891] pci 0000:03:03.0: bridge window [mem 0x00000000-0x000fffff 64bit pref]
[37306.087896] pci_bus 0000:1f: busn_res: [bus 1f-2b] end is updated to 2a
[37306.090752] pci 0000:2b:00.0: [8086:5502] type 00 class 0x020000
[37306.090798] pci 0000:2b:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[37306.090852] pci 0000:2b:00.0: reg 0x1c: [mem 0x00000000-0x00003fff]
[37306.091168] pci 0000:2b:00.0: PME# supported from D0 D3hot D3cold
[37306.094787] pci 0000:2b:00.0: Adding to iommu group 24
[37306.101088] thunderbolt 0000:00:0d.2: ICM rtd3 veto=0x00000004
[37306.101692] usb 2-1: New USB device found, idVendor=8087, idProduct=0b40, bcdDevice=12.34
[37306.101703] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[37306.101708] usb 2-1: Product: USB3.0 Hub
[37306.101711] usb 2-1: Manufacturer: Intel Corporation.
[37306.102774] hub 2-1:1.0: USB hub found
[37306.102908] hub 2-1:1.0: 4 ports detected
[37306.105362] pci 0000:03:04.0: PCI bridge to [bus 2b]
[37306.105380] pci 0000:03:04.0: bridge window [io 0x0000-0x0fff]
[37306.105389] pci 0000:03:04.0: bridge window [mem 0x00000000-0x000fffff]
[37306.105402] pci 0000:03:04.0: bridge window [mem 0x00000000-0x000fffff 64bit pref]
[37306.105409] pci_bus 0000:2b: busn_res: [bus 2b] end is updated to 2b
[37306.105421] pci_bus 0000:03: busn_res: [bus 03-2b] end is updated to 2b
[37306.105435] pci 0000:03:01.0: bridge window [mem 0x00100000-0x001fffff 64bit pref] to [bus 05-11] add_size 100000 add_align 100000
[37306.105442] pci 0000:03:01.0: bridge window [mem 0x00100000-0x001fffff] to [bus 05-11] add_size 100000 add_align 100000
[37306.105449] pci 0000:03:02.0: bridge window [mem 0x00100000-0x001fffff 64bit pref] to [bus 12-1e] add_size 100000 add_align 100000
[37306.105456] pci 0000:03:02.0: bridge window [mem 0x00100000-0x001fffff] to [bus 12-1e] add_size 100000 add_align 100000
[37306.105462] pci 0000:03:03.0: bridge window [mem 0x00100000-0x001fffff 64bit pref] to [bus 1f-2a] add_size 100000 add_align 100000
[37306.105468] pci 0000:03:03.0: bridge window [mem 0x00100000-0x001fffff] to [bus 1f-2a] add_size 100000 add_align 100000
[37306.105480] pci 0000:02:00.0: bridge window [mem 0x00100000-0x005fffff 64bit pref] to [bus 03-2b] add_size 300000 add_align 100000
[37306.105488] pci 0000:02:00.0: bridge window [mem 0x00100000-0x006fffff] to [bus 03-2b] add_size 300000 add_align 100000
[37306.105506] pci 0000:02:00.0: BAR 14: assigned [mem 0x7c000000-0x881fffff]
[37306.105513] pci 0000:02:00.0: BAR 15: assigned [mem 0x6000000000-0x601c1fffff 64bit pref]
[37306.105518] pci 0000:02:00.0: BAR 13: assigned [io 0x4000-0x7fff]
[37306.105529] pci 0000:03:00.0: BAR 14: assigned [mem 0x7c000000-0x7c0fffff]
[37306.105533] pci 0000:03:00.0: BAR 15: assigned [mem 0x6000000000-0x60000fffff 64bit pref]
[37306.105538] pci 0000:03:01.0: BAR 14: assigned [mem 0x7c100000-0x800aaaa9]
[37306.105543] pci 0000:03:01.0: BAR 15: assigned [mem 0x6000100000-0x6009655554 64bit pref]
[37306.105549] pci 0000:03:02.0: BAR 14: assigned [mem 0x80100000-0x84055553]
[37306.105553] pci 0000:03:02.0: BAR 15: assigned [mem 0x6009700000-0x6012baaaa9 64bit pref]
[37306.105559] pci 0000:03:03.0: BAR 14: assigned [mem 0x84100000-0x87fffffd]
[37306.105564] pci 0000:03:03.0: BAR 15: assigned [mem 0x6012c00000-0x601c0ffffe 64bit pref]
[37306.105569] pci 0000:03:04.0: BAR 14: assigned [mem 0x88000000-0x881fffff]
[37306.105575] pci 0000:03:04.0: BAR 15: assigned [mem 0x601c100000-0x601c1fffff 64bit pref]
[37306.105580] pci 0000:03:00.0: BAR 13: assigned [io 0x4000-0x4fff]
[37306.105584] pci 0000:03:01.0: BAR 13: assigned [io 0x5000-0x5aa9]
[37306.105588] pci 0000:03:02.0: BAR 13: assigned [io 0x6000-0x6553]
[37306.105592] pci 0000:03:03.0: BAR 13: assigned [io 0x7000-0x7fff]
[37306.105597] pci 0000:03:04.0: BAR 13: no space for [io size 0x1000]
[37306.105602] pci 0000:03:04.0: BAR 13: failed to assign [io size 0x1000]
[37306.105608] pci 0000:03:00.0: PCI bridge to [bus 04]
[37306.105614] pci 0000:03:00.0: bridge window [io 0x4000-0x4fff]
[37306.105626] pci 0000:03:00.0: bridge window [mem 0x7c000000-0x7c0fffff]
[37306.105634] pci 0000:03:00.0: bridge window [mem 0x6000000000-0x60000fffff 64bit pref]
[37306.105647] pci 0000:03:01.0: PCI bridge to [bus 05-11]
[37306.105654] pci 0000:03:01.0: bridge window [io 0x5000-0x5aa9]
[37306.105665] pci 0000:03:01.0: bridge window [mem 0x7c100000-0x800aaaa9]
[37306.105673] pci 0000:03:01.0: bridge window [mem 0x6000100000-0x6009655554 64bit pref]
[37306.105686] pci 0000:03:02.0: PCI bridge to [bus 12-1e]
[37306.105691] pci 0000:03:02.0: bridge window [io 0x6000-0x6553]
[37306.105701] pci 0000:03:02.0: bridge window [mem 0x80100000-0x84055553]
[37306.105708] pci 0000:03:02.0: bridge window [mem 0x6009700000-0x6012baaaa9 64bit pref]
[37306.105720] pci 0000:03:03.0: PCI bridge to [bus 1f-2a]
[37306.105724] pci 0000:03:03.0: bridge window [io 0x7000-0x7fff]
[37306.105734] pci 0000:03:03.0: bridge window [mem 0x84100000-0x87fffffd]
[37306.105741] pci 0000:03:03.0: bridge window [mem 0x6012c00000-0x601c0ffffe 64bit pref]
[37306.105754] pci 0000:2b:00.0: BAR 0: assigned [mem 0x88000000-0x880fffff]
[37306.105765] pci 0000:2b:00.0: BAR 3: assigned [mem 0x88100000-0x88103fff]
[37306.105775] pci 0000:03:04.0: PCI bridge to [bus 2b]
[37306.105784] pci 0000:03:04.0: bridge window [mem 0x88000000-0x881fffff]
[37306.105792] pci 0000:03:04.0: bridge window [mem 0x601c100000-0x601c1fffff 64bit pref]
[37306.105803] pci 0000:02:00.0: PCI bridge to [bus 03-2b]
[37306.105808] pci 0000:02:00.0: bridge window [io 0x4000-0x7fff]
[37306.105817] pci 0000:02:00.0: bridge window [mem 0x7c000000-0x881fffff]
[37306.105825] pci 0000:02:00.0: bridge window [mem 0x6000000000-0x601c1fffff 64bit pref]
[37306.105836] pcieport 0000:00:07.0: PCI bridge to [bus 02-2b]
[37306.105841] pcieport 0000:00:07.0: bridge window [io 0x4000-0x7fff]
[37306.105847] pcieport 0000:00:07.0: bridge window [mem 0x7c000000-0x881fffff]
[37306.105853] pcieport 0000:00:07.0: bridge window [mem 0x6000000000-0x601c1fffff 64bit pref]
[37306.105860] PCI: No. 2 try to assign unassigned res
[37306.105863] pci 0000:03:00.0: resource 13 [io 0x4000-0x4fff] released
[37306.105867] pci 0000:03:00.0: PCI bridge to [bus 04]
[37306.105879] pci 0000:03:01.0: resource 13 [io 0x5000-0x5aa9] released
[37306.105882] pci 0000:03:01.0: PCI bridge to [bus 05-11]
[37306.105893] pci 0000:03:02.0: resource 13 [io 0x6000-0x6553] released
[37306.105896] pci 0000:03:02.0: PCI bridge to [bus 12-1e]
[37306.105908] pci 0000:03:03.0: resource 13 [io 0x7000-0x7fff] released
[37306.105911] pci 0000:03:03.0: PCI bridge to [bus 1f-2a]
[37306.105922] pci 0000:02:00.0: resource 13 [io 0x4000-0x7fff] released
[37306.105925] pci 0000:02:00.0: PCI bridge to [bus 03-2b]
[37306.105943] pci 0000:02:00.0: BAR 13: assigned [io 0x4000-0x7fff]
[37306.105949] pci 0000:03:00.0: BAR 13: assigned [io 0x4000-0x4fff]
[37306.105953] pci 0000:03:01.0: BAR 13: assigned [io 0x5000-0x5aa9]
[37306.105956] pci 0000:03:02.0: BAR 13: assigned [io 0x6000-0x6553]
[37306.105959] pci 0000:03:03.0: BAR 13: assigned [io 0x7000-0x7fff]
[37306.105963] pci 0000:03:04.0: BAR 13: no space for [io size 0x1000]
[37306.105966] pci 0000:03:04.0: BAR 13: failed to assign [io size 0x1000]
[37306.105969] pci 0000:03:00.0: PCI bridge to [bus 04]
[37306.105974] pci 0000:03:00.0: bridge window [io 0x4000-0x4fff]
[37306.105984] pci 0000:03:00.0: bridge window [mem 0x7c000000-0x7c0fffff]
[37306.105991] pci 0000:03:00.0: bridge window [mem 0x6000000000-0x60000fffff 64bit pref]
[37306.106003] pci 0000:03:01.0: PCI bridge to [bus 05-11]
[37306.106008] pci 0000:03:01.0: bridge window [io 0x5000-0x5aa9]
[37306.106017] pci 0000:03:01.0: bridge window [mem 0x7c100000-0x800aaaa9]
[37306.106024] pci 0000:03:01.0: bridge window [mem 0x6000100000-0x6009655554 64bit pref]
[37306.106036] pci 0000:03:02.0: PCI bridge to [bus 12-1e]
[37306.106041] pci 0000:03:02.0: bridge window [io 0x6000-0x6553]
[37306.106050] pci 0000:03:02.0: bridge window [mem 0x80100000-0x84055553]
[37306.106057] pci 0000:03:02.0: bridge window [mem 0x6009700000-0x6012baaaa9 64bit pref]
[37306.106069] pci 0000:03:03.0: PCI bridge to [bus 1f-2a]
[37306.106073] pci 0000:03:03.0: bridge window [io 0x7000-0x7fff]
[37306.106082] pci 0000:03:03.0: bridge window [mem 0x84100000-0x87fffffd]
[37306.106090] pci 0000:03:03.0: bridge window [mem 0x6012c00000-0x601c0ffffe 64bit pref]
[37306.106102] pci 0000:03:04.0: PCI bridge to [bus 2b]
[37306.106111] pci 0000:03:04.0: bridge window [mem 0x88000000-0x881fffff]
[37306.106120] pci 0000:03:04.0: bridge window [mem 0x601c100000-0x601c1fffff 64bit pref]
[37306.106133] pci 0000:02:00.0: PCI bridge to [bus 03-2b]
[37306.106138] pci 0000:02:00.0: bridge window [io 0x4000-0x7fff]
[37306.106148] pci 0000:02:00.0: bridge window [mem 0x7c000000-0x881fffff]
[37306.106157] pci 0000:02:00.0: bridge window [mem 0x6000000000-0x601c1fffff 64bit pref]
[37306.106170] pcieport 0000:00:07.0: PCI bridge to [bus 02-2b]
[37306.106174] pcieport 0000:00:07.0: bridge window [io 0x4000-0x7fff]
[37306.106180] pcieport 0000:00:07.0: bridge window [mem 0x7c000000-0x881fffff]
[37306.106185] pcieport 0000:00:07.0: bridge window [mem 0x6000000000-0x601c1fffff 64bit pref]
[37306.106293] pcieport 0000:02:00.0: enabling device (0000 -> 0003)
[37306.106909] pcieport 0000:03:00.0: enabling device (0000 -> 0003)
[37306.108105] pcieport 0000:03:01.0: enabling device (0000 -> 0003)
[37306.108568] pcieport 0000:03:01.0: pciehp: Slot #1 AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug+ Surprise+ Interlock- NoCompl+ IbPresDis- LLActRep+
[37306.109802] pcieport 0000:03:02.0: enabling device (0000 -> 0003)
[37306.110701] pcieport 0000:03:02.0: pciehp: Slot #2 AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug+ Surprise+ Interlock- NoCompl+ IbPresDis- LLActRep+
[37306.116971] pcieport 0000:03:03.0: enabling device (0000 -> 0003)
[37306.117342] usb 3-1: new high-speed USB device number 13 using xhci_hcd
[37306.119011] pcieport 0000:03:03.0: pciehp: Slot #3 AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug+ Surprise+ Interlock- NoCompl+ IbPresDis- LLActRep+
[37306.122683] pcieport 0000:03:04.0: enabling device (0000 -> 0002)
[37306.127261] igc 0000:2b:00.0: enabling device (0000 -> 0002)
[37306.127573] igc 0000:2b:00.0: PCIe PTM not supported by PCIe bus/controller
[37306.185919] pps pps0: new PPS source ptp0
[37306.186081] igc 0000:2b:00.0 (unnamed net_device) (uninitialized): PHC added
[37306.245420] igc 0000:2b:00.0: 4.000 Gb/s available PCIe bandwidth (5.0 GT/s PCIe x1 link)
[37306.245435] igc 0000:2b:00.0 eth0: MAC: 64:4b:f0:37:08:97
[37306.252044] igc 0000:2b:00.0 enp43s0: renamed from eth0
[37306.274115] kauditd_printk_skb: 8 callbacks suppressed
[37306.341933] usb 3-1: New USB device found, idVendor=2188, idProduct=5802, bcdDevice= 1.01
[37306.341945] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[37306.341949] usb 3-1: Product: TS4 USB2.0 Hub
[37306.341953] usb 3-1: Manufacturer: CalDigit, Inc.
[37306.343133] hub 3-1:1.0: USB hub found
[37306.343206] hub 3-1:1.0: 5 ports detected
[37306.598628] thunderbolt 0000:00:0d.3: control channel starting...
[37306.598640] thunderbolt 0000:00:0d.3: starting TX ring 0
[37306.598650] thunderbolt 0000:00:0d.3: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1)
[37306.598658] thunderbolt 0000:00:0d.3: starting RX ring 0
[37306.598665] thunderbolt 0000:00:0d.3: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001)
[37306.605271] thunderbolt 0000:00:0d.3: ICM rtd3 veto=0x00000000
[37306.607378] thunderbolt 0000:00:0d.3: ICM rtd3 veto=0x00000001
[37306.907461] thunderbolt 0000:00:0d.3: ICM rtd3 veto=0x00000000
[Additional USB device discover omitted]
All of the pci output was already present by default (could maybe be made more verbose even with dynamic_debug), but note in particular the thunderbolt debug output that shows a long list of ports at the start. I believe these are all the ports that the USB router exposes internally. Interesting observations:
- There are 2 DP/HDMI ports, which confirms the documentation that says the dock supports up to dual displays. Note that I expect these two ports are multiplexed (probably using a multiplexer integrated into the Goshen Ridge controller) onto the two downstream TB4 ports and the DP connector (which is probably just connected to the third downstream TB port on the Goshen Ridge controller that is not exposed). Interestingly this says “DP/HDMI” except HDMI/DP++ is not actually supported it seems.
- There are 4 USB ports, which are probably endpoints of USB3 tunneling, so this is probably essentially the 4-port USB3 hub that is listed in lsusb (though interestingly the first one has a slightly different numerical type, not sure what that means).
- There are 3 PCIe ports, of which the first one has a slightly different numerical type. I guess one of these is connected to the PCIe ethernet chip, but why two more? Could be downstream TB4 ports, but I thought those would typically be both connected to an external PCIe switch (so needing only one port on the USB4 switch)? Note sure how to relate these ports to the lspci output and pci kernel output, either.
- The first 6 ports just have type “Port”, so no idea what those are.
- Some ports are “disabled in EEPROM”, which I assume are ports that Goshen Ridge supports but are not connected to anything in this particular dock, and one port is “Inactive”, not sure what that means.
- No idea what these counters and (NFC) credits mean…