Hi,
I am reporting a reproducible hard hang on HP ZBook Fury 15 G7 laptops
with the Intel JHL7540 Titan Ridge controller when receiving bulk traffic
over thunderbolt_net, together with a workaround that fixes it completely.
Hardware / software
- 2x HP ZBook Fury 15 G7 (BIOS S92 01.25.00), JHL7540 Titan Ridge 4C
(8086:15ea/15eb/15ec), NVM 62.0.1.2.1 (latest available from HP).
Both units behave the same.
- Peer: Dell XPS 15 9520 (integrated TB4). Topology:
ZBook-A <-> XPS <-> ZBook-B, point-to-point thunderbolt_net links.
- Cables: certified USB4 40 Gbps, 0.5 m (also swapped, no change).
- Kernels: 7.0.14 (Proxmox VE) and 7.0.0 (Ubuntu); thunderbolt_net with
MTU 1500 and 65520.
- Command line on the ZBooks: pcie_aspm=off pcie_port_pm=off
thunderbolt.clx=0 iommu=pt
Symptom
- With sustained receive traffic above ~250 MB/s on a ZBook, the whole
machine freezes within 40 s to 2 min: no panic, no oops, no soft/hard
lockup report, nothing in pstore or netconsole, and the iTCO watchdog
does not reset it. It looks like a platform-level hang.
- rx_missed and CRC errors rise before the hang, but one hang also
happened with zero errors.
- The TB4 peer (XPS 9520) never hangs.
Finding
Even with pcie_aspm=off and pcie_port_pm=off, the link state configured
by the BIOS is left in place: the root port above the Titan Ridge and the
Titan Ridge upstream/downstream bridges still have ASPM L1 enabled in Link
Control and LTR enabled in Device Control 2 ("LnkCtl: ASPM L1 Enabled",
"DevCtl2: ... LTR+" in lspci -vvv).
Clearing both at runtime on the root port and on every 8086:15e[a-f]
function:
setpci -s <dev> CAP_EXP+0x10.w=0000:0003 # LnkCtl: ASPM off
setpci -s <dev> CAP_EXP+0x28.w=0000:0400 # DevCtl2: LTR off
stops the hangs completely. Since then: sustained bidirectional
1.4-1.9 GB/s per direction per link (20+ minute soak, then more than a
day of continuous model-serving traffic and repeated bulk tests), no
hang. The error-free receive rate rose from ~150 MB/s to ~500 MB/s
before any other tuning.
Ruled out along the way: cable (swapped), IOMMU mode (strict vs pt),
dma_credits on the peer, PD role swap (refused by the ZBook), traffic
shaping/pacing (htb, fq maxrate: still hangs), AER (pci=noaer not
needed once L1/LTR are off), firmware (no newer NVM exists).
thunderbolt_net receive observations (after the fix)
- The fixed 256-entry RX ring overflows at multi-GB/s. With a larger
ring (local build of the driver with a configurable ring size):
ZBook RX: ring 256: 1235 MB/s, 722 errors/GB
ring 1024: 1865 MB/s, 20 errors/GB
XPS RX from ZBook-B: ring 1024: 1217 MB/s, 24.8 err/GB
ring 2048: 1655 MB/s, 3.4 err/GB
ring 4096: 1672 MB/s, 1.1 err/GB
- One ZBook had e2e flow control disabled (e2e=0): 446 MB/s at
3073 errors/GB; with e2e=1: 1752 MB/s at 0 errors/GB.
- TSO super-packets from thunderbolt_net arrive at a forwarding peer as
one oversized packet (IpFragFails when routed onward), so forwarding
hosts need TSO/GSO off on the thunderbolt interface.
Questions
1. Should pcie_aspm=off also disable L1/LTR that the BIOS already
enabled (today it only stops the kernel from changing them), or should
Titan Ridge get a quirk disabling L1/LTR on its upstream link?
2. Would ethtool -G (set_ringparam) support for thunderbolt_net be
welcome? I can prepare a patch.
lspci -vvv dumps, counter logs and the reproducer are available.
Thanks,
Ufuk Kazan
[BUG] thunderbolt: Titan Ridge (8086:15ea) hard platform hang under thunderbolt_net RX load; BIOS-enabled ASPM L1 + LTR survive pcie_aspm=off
- From
- uf…@kairaprime.com (Ufuk Kazan)
- Organization
- Usenet Network
- Message-ID
- <1796…@kairaprime.com>
- Date
- Newsgroups
- linux.kernel.netdev