Another data point: AMD Radeon AI PRO R9700 (RDNA4, Navi 48, same chip as the 9070 XT) in a DEG2 over USB4 on Linux, on a non-Framework AMD host. @Morgwai, your amdgpu.ppfeaturemask=0xfff7bffb tip fixed the link here. Thanks!
Setup: GMKtec K8 Plus (Ryzen 7 8845HS), AMD USB4. DEG2 (JHL9480, NVM 62.42) in TB5 mode with the 80 Gbps cable from the box. ASRock R9700 32 GB. Arch-based (Omarchy), kernel 7.2.8, linux-firmware 20260916, Mesa 26.2.5.
1. PCIe DPM was what broke the link. With the default mask, the JHL9480’s downstream port to the GPU sat at 2.5 GT/s and kept putting its own target speed back to 2.5 GT/s if I set it higher. It also logged RxErr in about half of all 0.5 s windows, even at idle (measured after clearing the sticky AER bits). With ppfeaturemask=0xfff7bffb (default minus PP_PCIE_DPM = 0x4) it trains at 16 GT/s x4 with zero RxErr. pcie_gen_cap, forcing the target speed with setpci, thunderbolt.clx=0 and ASPM made no difference. ASPM was already off.
2. pci=noaer was also needed. At boot the GPU sends an LTR message that its own internal switch (1002:1479) rejects as Unsupported Request. AER recovery then fails (snd_hda_intel: can't recover (no error_detected callback)) and leaves amdgpu in pci_channel_io_perm_failure, with the memory clock stuck and a hang on the first real job.
3. Still open: a hang when a new process starts using the card. A single long-lived llama-server ran two 15-minute soaks with zero errors. Repeated short processes (llama-bench, one model load each) hang on about the 2nd–3rd load after boot: ring gfx_0.0.0 / sdma0 / sdma1 timeout, signaled seq=N, emitted seq=N+1, then MES failed to respond and GPU Recovery Failed. Only a dock power cycle recovers it. Things that did not change this:
- GFXOFF off (
0xfff73ffb) and SCLK deep sleep off (0xfff7bff3)
amdgpu.dcdebugmask=0x800
- keeping the compositor off the card (
AQ_DRM_DEVICES pointed at the iGPU)
power_dpm_force_performance_level=high
- a 210 W power cap
amdgpu.lockup_timeout=60000
- GPU Max Read Request 128 bytes
This looks like the same family as drm/amd #5036, #5100 and #5294. When the card is up it runs at full speed: Qwen3-30B-A3B Q4_K_M at ~3,000 tok/s prompt and ~120 tok/s generation in llama.cpp Vulkan.
Also odd: boltctl shows the USB4 link at 20 Gb/s (2 lanes * 10 Gb/s) on both host ports with the 80 Gbps cable, and the host’s USB4 tunnel root port logs BadDLLP continuously, with or without the fix.
Happy to test patches or collect more logs (thunderbolt.dyndbg, full lspci -vvv, devcoredumps). I’m planning to add this to drm/amd #5100 as well.
Full write-up with commands: omarchy-setup/r9700-egpu-thunderbolt.md at master · zoan37/omarchy-setup · GitHub