Repository navigation
Description
NVIDIA Open GPU Kernel Modules Version
590.44.01 and 580.105.08, both from the NVIDIA's official CUDA rhel10 repo
Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.
- I confirm that this does not happen with the proprietary driver package.
Operating System and Version
Rocky Linux 10.1 (Red Quartz)
Kernel Release
6.12.0-124.13.1.el10_1.x86_64 (PREEMPT_DYNAMIC)
Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.
- I am running on a stable kernel release.
Hardware: GPU
NVIDIA GeForce RTX 5080
Describe the bug
RTX 5080 connected via Thunderbolt 5 eGPU enclosure (Sonnet Breakaway Box 850T5) initializes correctly and is visible to nvidia-smi at idle. Any CUDA operation causes immediate system hard-lock requiring power cycle. No kernel panic, no Xid error logged, no SysRq response.
This appears related to closed issue #900 (RTX 5090 via OCuLink), which showed identical symptoms: GPU functional at idle, crash under load, GSP firmware bootstrap errors. That issue was resolved by switching OCuLink docks, but dock alternatives for Thunderbolt 5 are extremely limited.
PCIe link negotiates correctly at 16GT/s x4 (PCIe 4.0 x4) - optimal for Thunderbolt 4 host controller bandwidth. BAR allocation succeeds with hotplug resource reservation parameters. Driver loads and initializes without error.
Minimal reproducer:
nvidia-smi # Works - GPU visible, ~2W idle
python3 -c "import torch; torch.zeros(1, device='cuda')" # Hard lock
Hardware:
- GPU: NVIDIA GeForce RTX 5080 (GB203)
- eGPU Enclosure: Sonnet Breakaway Box 850T5 (Thunderbolt 5)
- Host: Lenovo ThinkPad X1 Carbon Gen 11
- Thunderbolt Controller: Intel Raptor Lake-P Thunderbolt 4 (host), USB4/TB5 (enclosure)
- OS: Rocky Linux 10.1
Required kernel parameters: pcie_ports=native pcie_aspm=off pcie_port_pm=off pci=assign-busses,realloc
Without pcie_ports=native, GPU enters D3cold and driver fails with "Unable to change power state from D3cold to D0".
To Reproduce
- Connect RTX 5080 to Sonnet Breakaway Box 850T5 (Thunderbolt 5 eGPU enclosure)
- Connect enclosure to host via Thunderbolt cable
- Boot system with kernel parameters:
pcie_ports=native pcie_aspm=off pcie_port_pm=off pci=assign-busses,realloc - Confirm GPU detected:
nvidia-smi(shows GPU at idle, ~2W, ~30°C) - Run any CUDA operation:
python3 -c "import torch; torch.zeros(1, device='cuda')" - System hard-locks immediately. No kernel panic, no SysRq response. Power cycle required.
Bug Incidence
Always
nvidia-bug-report.log.gz
More Info
Also reported at https://forums.developer.nvidia.com/t/590-release-feedback-discussion/353310/53, cross-posted to https://forums.developer.nvidia.com/t/580-release-feedback-discussion/341205/898, and and linux-bugs
Activity
roger-pmta commentedon Dec 6, 2025
For folks who find this, @morgwai and I have been troubleshooting in the PR (#981) and the thread at https://egpu.io/forums/thunderbolt-linux-setup/rtx-5080-via-thunderbolt-5-egpu-hard-lock-on-cuda-operations-nvidia-smi-works-at-idle/ too.
roger-pmta commentedon Dec 11, 2025
NVIDIA RTX 5080 eGPU on Linux - Working Configuration
Hardware:
BIOS Settings:
Kernel Parameters (add via grubby):
Parameters explained:
Also blacklist nouveau in initramfs:
Driver: Patched 590.44.01 Open (
NVreg_ForceExternalGpumodule parameter)The stock NVIDIA driver does not recognize Thunderbolt 4/5 bridges as valid
eGPU enclosures. Without proper eGPU detection, power management code runs
that can cause PCIe link instability.
Required patch hacks around this by adding a
NVreg_ForceExternalGpumoduleparameter (long-term fix will likely require fixes in the GSP firmware)
kernel-open/nvidia/nv-reg.h: DefineForceExternalGpuparametersrc/nvidia/arch/nvalloc/unix/src/osinit.c: Check parameter and force eGPU modeWhen
NVreg_ForceExternalGpu=1, the driver bypasses automatic Thunderboltbridge detection and treats the GPU as external, which:
PDB_PROP_GPU_IS_EXTERNAL_GPUpropertySetup
Step 1: Add CUDA repository
Step 2: Install packages
Step 3: Build and install patched driver
Note: the official NVIDIA repo installs modules to
/lib/modules/$(uname -r)/extrawhich supersedes the default install locationof
/lib/modules/$(uname -r)/kernel/drivers/video.Step 4: Configure nvidia module options
Create
/etc/modprobe.d/nvidia.conf:Step 5: Enable
nvidia-persistencedStep 5a: Set up automatic clock locking (prevents PCIe link degradation)
The PCIe link degrades from Gen4 to Gen1 due to ASPM common clock
reconfiguration during power state transitions. Locking GPU clocks prevents this
by keeping the GPU active.
Create
/usr/local/bin/nvidia-egpu-setup.sh:Then mark it as executable
The install directive intercepts
modprobe nvidia, runs the script which loadsthe module synchronously, then locks clocks. This avoids backgrounding issues
where scripts get killed before completion.
Logs go to syslog (
journalctl -t nvidia-egpu).Step 6: Enroll Thunderbolt device for auto-authorization
The enrolled device, in my case:
Step 7: Reboot with eGPU connected
Verification:
Current Status
Technical Details
Why Automatic eGPU Detection Fails (without
NVreg_ForceExternalGpu):The NVIDIA driver's
RmCheckForExternalGpu()function checks if a GPU isconnected via a Thunderbolt eGPU enclosure by:
0x8086) on upstream bridgeHotPlug+ANDSurprise+slot capabilitiesThunderbolt 4/5 bridges fail because:
HotPlug- Surprise+(OR)Without eGPU detection,
PDB_PROP_GPU_IS_EXTERNAL_GPUis not set, causing thePlatform Request Handler to run power management code intended for internal
GPUs.
Why These Settings:
pcie_port_pm=off: Prevents Thunderbolt bridges from entering D3cold,which causes "Unable to change power state from D3cold to D0" errors
and system freeze on cold boot.
hpmmiosize=64M, hpmmioprefsize=384M: Sized for actual BAR needs:Larger values starve other bridges since 4 bridges share ~49GB. I believe this
only applies to hotplug devices.
NVreg_EnableResizableBar=0: ReBAR resize fails withENOENTbecausethe bridge prefetchable window is too small after allocation.
NVreg_DynamicPowerManagement=0: Prevents GPU from entering low powerstates that cause link issues over Thunderbolt.
NVreg_ForceExternalGpu=1: Forces eGPU mode, bypassing automaticThunderbolt bridge detection. Required for TB4/TB5 enclosures. See patch.
softdep nvidia post: nvidia-uvm: Overrides system default that loadsnvidia-drm(which pulls innvidia_modeset). Onlynvidiaandnvidia-uvmare needed for compute.PCIe Link Speed Issue (Gen4 → Gen1 degradation):
Without clock locking, the kernel's ASPM code detects "inconsistent common
clock configuration" during device enumeration and triggers a link retrain.
The JHL9480 Thunderbolt 5 controller retrains at Gen1 instead of Gen4.
The message in dmesg is:
This happens in
drivers/pci/pcie/aspm.c:pcie_aspm_configure_common_clock()which calls
pcie_retrain_link(). No kernel parameter exists to disable this.Workaround: Lock GPU clocks to maximum immediately after driver bind. This keeps
the GPU in an active power state, preventing the ASPM reconfiguration from
triggering link speed degradation.
Last tested: 2025-12-10
jakubtrzcinski commentedon Jan 31, 2026
I had a similar issue running an RTX 5060 Ti via Thunderbolt 3 (Titan Ridge DD 2018 enclosure). Constant Xid 154 crashes
under CUDA load
My workaround was lowering the GPU clocks and power limit:
Before this change GPU was running for like 3 minutes and crashing,
not ideal for gaming, but for my use case (running RT-DETR object detection inference) it didn't noticeably affect performance.
LeeTeng2001 commentedon Feb 4, 2026
Same issue with gigabyte aorus 5060ti aibox with proxmox linux / macbook 2019 linux
mihau81 commentedon Mar 12, 2026
RTX 5090 eGPU via Thunderbolt 4 — Hard Lock on Any GPU Write Operation
Hardware
Driver Versions Tested
Kernel Parameters
intel_iommu=on iommu=pt i915.enable_guc=3
pci=hpbussize=0x10,hpmmiosize=64M,hpmmioprefsize=384M,realloc
pcie_port_pm=off pcie_aspm.policy=performance thunderbolt.clx=0
Modprobe Configuration
blacklist nvidia_drm
blacklist nvidia_modeset
softdep nvidia post: nvidia-uvm
options nvidia NVreg_EnableResizableBar=0
options nvidia NVreg_DynamicPowerManagement=0
options nvidia NVreg_RegistryDwords="RmForceExternalGpu=1"
What Works
lspci): ✅04:00.0 VGA compatible controller: NVIDIA Corporation GB202 [GeForce RTX 5090] (rev a1)nvidia-smiread-only query: ✅+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 590.48.01 Driver Version: 590.48.01 CUDA Version: 13.1 |
+-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 5090 Off | 00000000:04:00.0 Off | N/A |
| 30% 56C P0 77W / 575W | 0MiB / 32607MiB | 0% Default |
+-----------------------------------------+------------------------+----------------------+
What Crashes (Instant Hard Lock)
Every command that writes to the GPU causes an immediate system hard lock. No kernel panic, no Xid error, no SysRq response. Requires physical power cycle.
nvidia-smi -pm 1nvidia-smi -pl 460nvidia-smi -lgc 2407,2407The crash is 100% reproducible. Read-only queries (
nvidia-smi,nvidia-smi --query-gpu=...) work indefinitely. Any write operation kills the system instantly.PR #984 Results
I compiled 590.48.01 open kernel modules from source with the
RmForceExternalGpupatch applied. The patch successfully fixes eGPU detection — the driver loads cleanly and recognizes the GPU without manual PCIremove/rescan workarounds.
However, the hard lock on write operations persists identically with and without the patch. This confirms:
dmesg (Successful Load)
nvidia: module verification failed: signature and/or required key missing - tainting kernel
nvidia-nvlink: Nvlink Core is being initialized, major device number 508
nvidia 0000:04:00.0: enabling device (0000 -> 0003)
NVRM: loading NVIDIA UNIX Open Kernel Module for x86_64 590.48.01 Release Build
No errors in dmesg before the hard lock. The lock leaves no trace in logs (no Xid, no kernel oops).
Key Observations
TB4 vs TB5: @roger-pmta reports a working RTX 5080 setup on TB5 with clock locking. My RTX 5090 on TB4 crashes on any write, including the same clock locking commands. This may indicate TB4 has stricter power state
transitions that trigger the bug.
Read vs Write: The clear boundary between working reads and crashing writes suggests the issue is triggered by GPU state transitions (P-state changes, power rail adjustments) that require PCIe link renegotiation
through the Thunderbolt bridge.
Not driver-version specific: Tested across 580.142 (closed), 590.48.01 (open, unpatched), and 590.48.01 (open, PR nvidia: add RmForceExternalGpu registry key #984 patched) — identical crash behavior on all three.
Environment Notes
rvn2p commentedon Mar 17, 2026
Same behavior with a Lenovo E14 Gen 5 (intel) and a Aorus RTX 5090 AI BOX connected via TB4 on Debian Trixie and sid
Best result with 590.48.01 (plus #984) and a few tweaks from https://egpu.io/forums/postid/1118819/
Depending on Kernel boot parameters, driver versions and moonphase i have varying degrees of functionality:
The card itself seems to be working from the hardware side (had it running for 24h hours in furmark when booting windows 11)
fanfanmgz commentedon Apr 1, 2026
Additional data point: RTX 5060 Ti eGPU via Thunderbolt 4 — same hard-lock on CUDA
Hardware
Software
Symptom — identical to #979
nvidia-smiworks perfectly at idle. Both GPUs visible.cuInit(),cuDeviceGet(),cuDeviceGetName(),cuDeviceTotalMem()all return correct results on the eGPU.cuCtxCreate_v2()triggers a full system hard-lock within 2-5 seconds. No kernel panic, no SysRq response, hard power cycle required. SometimescuCtxCreatereturns 0 (success) andcuMemAllocalso returns 0, but the system freezes on process exit (context destroy / cleanup).Minimal reproducer
BAR status (without pci=realloc)
Exhaustive list of workarounds tested — NONE resolve the hard-lock
Key observations
nvidia-smi,cuInit,cuDeviceGet,cuDeviceGetName,cuDeviceTotalMem— all stable indefinitelycuCtxCreate_v2(DMA mapping setup) triggers the lockcuCtxCreate: 0+cuMemAlloc: 0succeeded, but the system froze on process termination (context destroy)Conclusion
This is a blocking issue for all Blackwell eGPU users on Linux. The AORUS RTX 5060 Ti AI BOX is a product explicitly marketed for AI workloads, yet CUDA compute is impossible on Linux. The same hardware works under Windows 11 25H2.
nvidia-bug-report.log.gz
gerpervaz commentedon Apr 7, 2026
Confirming a very similar pattern on Windows + USB4 (not TB5) + RTX 5080
I am experiencing a closely matching pattern to the one described here: the RTX 5080 is stable at idle and under light/moderate CUDA load, but crashes under heavier sustained CUDA load.
I am reporting this because my setup differs significantly from the original report (Windows instead of Linux, USB4 instead of TB5, different dock), yet the failure mode looks very similar. That suggests a possible common issue in the driver / firmware layer rather than something limited to one OS or enclosure.
Hardware
What works
nvidia-smireports the GPU correctly at idle (Status OK,16303 MiBVRAM visible)deviceQueryfrom CUDA samples:PASS4096x4096float16matrix multiplication sustained for 60 seconds: stableWhat crashes
Crash signature on Windows
0x00000119(VIDEO_SCHEDULER_INTERNAL_ERROR)0x00000116(VIDEO_TDR_FAILURE)LiveKernelEvent 141and193nvlddmkmEvent ID14/153WHEA-LoggerEvent ID16/17pointing toPCI Express Root Port/Upstream Switch PortCM_PROB_HELD_FOR_EJECT (47),CM_PROB_PHANTOM, orPresent = FalseApproximate stability boundary
This suggests the issue appears once sustained PCIe traffic and VRAM pressure cross a certain threshold.
BIOS update impact
Updating the host BIOS from
SER9T301toSER9T305improved low-level link stability. The GPU now enumerates more reliably asStatus OKon boot and survives idle + moderate load more consistently. However, the hard crash under high sustained CUDA load still persists, which suggests the root cause is above basic ACPI / PCIe enumeration.Why this seems relevant
My setup differs from the original report in several important ways:
Despite that, the overall behavior is very similar: RTX 5080 works at idle, survives lighter CUDA work, then hard-locks under sustained heavier CUDA load in an external tunneled-PCIe setup.
That cross-platform similarity makes me suspect a broader driver or GSP firmware issue affecting Blackwell GPUs in tunneled-PCIe configurations.
bilikaz commentedon Apr 17, 2026
Managed to get similar box running without issues.
Data point for narrowing this down: similar setup (RTX 5080 + Razer Core X V2 over TB5, Dell Latitude 5540, Ubuntu 24.04, kernel 6.17, 590.48.01-open) working stably under sustained CUDA load — 4275 iterations of 8000×8000 matmul over 120s (~36 TFLOPs, no hard-lock, no throttling).
Two config differences from this issue that I suspect are load-bearing:
pci=realloc=offinstead ofpci=assign-busses,realloc. Counterintuitive — HPE advisory a00151736en_us documents that on Ubuntu + NVIDIA,pci=realloccan remove BIOS-assigned BARs without reassigning them. Switching to=offwas what got probe to succeed here.NVreg_DynamicPowerManagement=0x00via modprobe — prevents D3cold entry, which over TB presents as "fallen off the bus."Also: BIOS pre-boot TB modules enabled so BARs are allocated at POST, and cold-boot-only (no hot-plug).
Full recipe: https://forums.developer.nvidia.com/t/working-configuration-rtx-5080-razer-core-x-v2-thunderbolt-5-on-ubuntu-24-04-kernel-6-17-driver-590-48-01-open/366919
Haven't done ablation testing, and the enclosure/laptop differs from the original report (Razer Core X V2 vs Sonnet 850T5), so hardware might be the real variable. But the
pci=reallocand power-management deltas seem worth testing given they target exactly the class of failure described.fanfanmgz commentedon Apr 20, 2026
@bilikaz Thanks for this data point. I tested your full configuration on my
setup (ASUS ROG Strix G18 G814JIR, i9-14900HX, TB4, Gigabyte AORUS RTX 5060 Ti
AI BOX, driver 595.58.03 open):
(no more "BAR0 is 0M @ 0x0"), driver initializes on eGPU, nvidia-smi sees
both GPUs, no GSP heartbeat timeout
pcie_port_pm=off, thunderbolt.clx=0, thunderbolt.host_reset=0, iommu=pt)
However: cuCtxCreate still returns 999, and system freezes shortly after.
The critical difference is the BIOS. My ASUS ROG BIOS (v322, latest) does NOT
expose "Thunderbolt PCIe pre-boot modules" — this option doesn't exist on ASUS
gaming laptops. Cold boot with eGPU connected freezes before login. Only
hot-plug works for detection, but then CUDA fails with 999.
This confirms your suspicion that "hardware might be the real variable" —
specifically, the BIOS pre-boot TB enumeration appears to be the key
differentiator. Without it, the GPU BARs are allocated but seemingly not in a
state the driver can use for DMA/compute.
Affected BIOS: ASUS ROG (no TB pre-boot option)
Working BIOS: Dell Latitude (TB pre-boot modules enabled)
bilikaz commentedon Apr 22, 2026
Do you disable video rendering by os on card? I have disable with few scripts using card just for AI. If i connect HDMI it always crashes hard in 5-10s. Due to signal instability. Buy for AI i was sniping containers with load of 12-13gb and load 97% no issues even running for several hours.
fanfanmgz commentedon Apr 24, 2026
Windows baseline rules out hardware — reinforces BIOS pre-boot TB hypothesis
Quick follow-up on my earlier report. Reimaged the same hardware (ASUS ROG
Strix G18 G814JIR + AORUS RTX 5060 Ti AI BOX TB4) with Windows 11 25H2 to rule
out hardware defect before investing more time on Linux.
Windows result: fully stable under sustained CUDA load (driver 595.79
Studio, CUDA 13.2, AORUS TB firmware F1.1 latest). Multi-hour LLM inference
workloads complete cleanly — no Xid, no TDR, no link degradation. Baseline
established at ~87 tok/s on a 13 GB MoE model (GPT-OSS 20B MXFP4) on the
5060 Ti alone, stable.
Point being: the exact hardware that hard-locks on
cuCtxCreate_v2underLinux runs arbitrary sustained compute on Windows indefinitely. Hardware
defect and firmware are excluded.
Implication for the Linux hard-lock
Combined with @bilikaz's working Ubuntu/Dell Latitude config (which
explicitly relies on "BIOS pre-boot TB modules enabled so BARs are allocated
at POST"), and my failed attempt to replicate his config on ASUS (which
lacks the pre-boot TB option), the evidence converges on:
The Linux hard-lock on Blackwell eGPUs via TB4/TB5 appears correlated with
hosts that cannot enumerate TB devices at POST — specifically consumer/
gaming BIOSes (ASUS ROG, MSI gaming, Lenovo Legion) vs business BIOSes
(Dell Latitude, HPE) which expose "Thunderbolt PCIe pre-boot modules" as
a UEFI toggle.
When BARs are allocated at POST:
When BARs are allocated at hot-plug (ASUS ROG case):
pci=reallocor equivalentnvidia-smiworks)cuCtxCreate_v2(which triggers DMA mapping through the TB bridge)fails catastrophically
Consistent with this: on my Linux attempts,
lspci -vvalways showed the5060 Ti with BAR1 capped at 256 MB (vs 16 GB supported), and "VF BAR 2:
can't assign; no space". Even with
pci=realloc,hpbussize=0x10, hpmmiosize=64M,hpmmioprefsize=384M, the runtime allocation never achievedwhat BIOS pre-boot enumeration achieves in @bilikaz's working config.
Request for data points
If anyone has additional working/failing configs, could you confirm:
pre-boot modules" or "TB Pre-Boot ACPI" option? Is it enabled?
(ASUS ROG/TUF, MSI gaming, Lenovo Legion, Acer Predator, HP Omen),
and does it lack any TB pre-boot toggle?
Correlating this across more data points would help confirm whether this
is primarily a BIOS-level enumeration limitation on consumer laptop
lines rather than purely a driver/GSP issue.
Happy to test any candidate kernel patches or driver parameters on this setup if someone wants a reproducible test subject.
rvn2p commentedon Apr 29, 2026
I followed @bilikaz recipe (https://forums.developer.nvidia.com/t/working-configuration-rtx-5080-razer-core-x-v2-thunderbolt-5-on-ubuntu-24-04-kernel-6-17-driver-590-48-01-open/366919) with my setup:
Lenovo E14 Gen 5 intel (updated to system firmware 0.1.39)
AORUS RTX 5090 AI BOX
Debian sid 6.19.14+deb14-amd64
Nvidia open Driver 595.71.05
i can access nvidia-smi read only and can set clock values and persistence mode but one i start a proper cuda workload the system freezes instantly.
It seems like without having the right thunderbolt config settings in uefi this workaround will not work for me =(
jciolek commentedon May 1, 2026
Additional data point: AORUS RTX 5090 AI BOX via Thunderbolt/USB4 — one success, otherwise Xid 79 under CUDA/Blender/ollama load
I am adding another data point for the Blackwell eGPU instability described in this issue. My setup is a GIGABYTE AORUS RTX 5090 AI BOX connected over Thunderbolt/USB4 to a Dell XPS 17 9720 Linux laptop. The GPU enumerates,
nvidia-smiworks, and read-only queries are stable. CUDA/Blender/ollama load reproducibly causes the external GPU to fall off the PCIe bus with Xid 79.The interesting part is that I had one successful boot where this same setup worked for several hours: I rendered multiple Blender scenes and loaded several Ollama models on the RTX 5090. The next comparable boot, with materially the same kernel/cmdline/driver/eGPU path, failed almost immediately under Blender. So this is not always a deterministic "never works" failure; there appears to be a rare lucky initialization state.
Hardware
boltctlas 40 Gb/s RX + 40 Gb/s TX, 2 lanes × 20 Gb/s8086:57868086:1136,8086:1137,8086:1138I am intentionally omitting GPU UUIDs, host name, user name, home paths, and Thunderbolt UUIDs.
Software
6.18.18-1-MANJARO6.19.xseries, including a later 6.19 build590.48.01Current successful enumeration example:
Kernel also reports the 5090 link as limited:
Kernel parameters tested
The one known-good boot and at least one failed boot both used the minimal cmdline:
I also tested variants involving:
The
hpmmioprefsizechanges affected resource-window noise, but did not provide a stable fix.64Gwas clearly too large.2Gand4Gstill allowed failures. The currently most useful comparison remains the minimal cmdline above, because I had both success and failure with materially the same visible pre-load state.What works
nvidiabinds to both the internal RTX 3060 and external RTX 5090.nvidia-smiread-only queries work.What crashes
Blender Cycles CUDA rendering on the RTX 5090 causes the external GPU to disappear from the PCIe bus.
Recent controlled reproduction:
Blender then reports secondary CUDA errors:
Those Blender CUDA errors appear to be consequences of the GPU already being lost, not the primary failure.
After the NVIDIA failure, USB/TB-side fallout can appear, for example:
This happens after the Xid 79 / bus loss and looks like collateral damage from the Thunderbolt/USB4 path getting wedged.
Reproducer
Cold boot laptop with the AORUS box attached and powered.
Confirm the 5090 is visible:
Start Blender and render the BMW demo scene using CUDA on the RTX 5090.
Within seconds the external RTX 5090 usually hits Xid 79 and disappears from the bus.
In some attempts the whole machine hard-locked before logs were flushed. In others, the machine is usable for a minute or so, before it hard-locks. When the machine hard-locks, it does not respond to magic sysrq.
Workarounds / mitigations tried
Power and clock limiting
I tried persistence mode, minimum power limit, and graphics clock locks:
Notes:
Kernel parameters
I tested PCI resource allocation and power-management related parameters, including
pci=realloc,assign-busses,pcie_port_pm=off,pcie_aspm=off,thunderbolt.clx=0, and severalhpmmioprefsizevalues. None provided a reliable fix.Cable / firmware
Successful "unicorn" boot
The most notable observation is one long successful boot:
Same general hardware.
Same
6.18.18-1-MANJAROkernel.Same minimal cmdline:
Same external GPU PCI path in the logs.
Same recurring UCSI/typec errors.
Same general PCI resource warning pattern.
Same Gen1 x4 reported eGPU link limitation.
Blender rendered successfully.
Ollama loaded and used models on the 5090.
No Xid 79 occurred during that session.
The following failed workload boot looked materially the same before load, but Blender triggered Xid 79 almost immediately.
This suggests there is hidden state not captured by ordinary logs: possibly NVIDIA/GSP initialization state, Thunderbolt/USB4 tunnel state, retimer/link training state, runtime PM/LTR state, or enclosure warm/cold state.
Recurring boot-time warnings seen in both good and bad boots
These are present often enough that they are suspicious, but they are not sufficient to distinguish good from bad boots:
NVIDIA also reports external-GPU / PCI hierarchy related messages such as:
Again, these appear in boots where the card can enumerate and sometimes run, so they are not by themselves a complete explanation.
Assessment
This looks like the same class of issue reported by others here:
nvidia-smiworks at idle.0x60, then Xid 154 requiring reboot.My best guess is a cross-layer issue in the NVIDIA Blackwell/GSP external-GPU path interacting with Thunderbolt/USB4 PCIe tunneling. Thunderbolt/USB4 is clearly part of the failure mechanism because the GPU falls off the bus, but the trigger is NVIDIA CUDA/render load and the failure signature is in NVRM/GSP/UVM.
The one successful boot makes this especially interesting: the visible Linux PCI/TB/NVIDIA state before workload was effectively the same as in failed boots, which points to hidden initialization/link/firmware state rather than a simple missing kernel parameter.
Additional notes
nvidia-bug-report.shoutput here because previous attempts to run heavy NVIDIA diagnostics after GPU loss caused a hard lockup every time.26 remaining items
djanice1980 commentedon Aug 11, 2026
Independent confirmation on different hardware — AMD host, different enclosure vendor, native USB4 rather than TB5→TB4, and a cold-boot path with no hotplug event. Same root cause.
Setup
Why detection fails here
The upstream bridge directly above the GPU:
Both gates in
RmCheckForExternalGpu()miss:bTb3Bridge— vendor is Intel so the branch is entered, but the RM control requiresapprovedBusType == NV2080_CTRL_INTERNAL_EGPU_BUS_TYPE_TB3. A TB5 controller cannot match a TB3-only approved list.bSlotHotPlugSupport— requiresCL_PCIE_SLOT_CAP_HOTPLUG_CAPABLE && CL_PCIE_SLOT_CAP_HOTPLUG_SURPRISE. The JHL9480 reportsHotPlug-withSurprise+, so the AND fails.With both
NV_FALSE,iseGPUBridgestays false,PDB_PROP_GPU_IS_EXTERNAL_GPUis never set, and internal-GPU power management runs against a device behind a PCIe tunnel.Topology for reference:
Symptoms before patching
Reproducible across many boots on this hardware:
— roughly one second after
NVRM: loading NVIDIA UNIX Open Kernel Module. The link was healthy and fully enumerated before the module loaded.After this,
setpci -s <gpu> VENDOR_IDreturnsfffffor both functions. Recovery required removing the upstream bridge and rescanning. A bare/sys/bus/pci/rescanre-adds the device without resizing the parent bridge windows and producesNVRM: BAR0 is 0M @ 0x0.Visible display corruption accompanied the Xid 56 events. GPU recovered on its own afterward rather than hard-locking, so this platform produces a survivable version of the failure reported in #981 — with actual Xid codes, which may be more diagnostically useful than a silent lock.
Not a hardware fault: Windows was stress-tested on identical hardware for one hour with zero artifacts and zero instability. This eliminates the card, enclosure, cable, PSU capacity, and thermals.
After patching
Applied the equivalent of the patch from #981 — an early return in
RmCheckForExternalGpu()gated on a registry key, placed after the local declarations:Enabled via
options nvidia NVreg_RegistryDwords="RmForceExternalGpu=1".Results:
dmesg | grep -ciE 'xid|heartbeat|RmInitAdapter'→ 0nvidia-smi -qinvocations with no Xid and no lock (this is the pattern reported as hard-locking in the eGPU.io thread)One transient
Link Downstill appears at ~7 s during init, before the driver attaches at ~11 s. It self-recovers and the GPU comes up normally, so it is no longer fatal, but it suggests something in the early attach sequence still perturbs the link.What this adds to the diagnosis
The theory circulating on eGPU.io attributes the failure to hotplug timing — enclosure PSU negotiation on power-up, and TB5→TB4 controller link settling before the driver loads.
My case fails on a cold boot where the link has been up since POST, on an AMD host with no TB5→TB4 generation crossing, with a different enclosure vendor. So enclosure power sequencing and controller-generation mismatch are not necessary conditions.
The common factor across #900 (RTX 5090 / OCuLink), #981 (RTX 5080 / Sonnet TB5), and this report is narrower: Blackwell — where GSP is mandatory — behind an external PCIe link, misclassified as an internal GPU.
Suggested direction
approvedBusTypebeyondNV2080_CTRL_INTERNAL_EGPU_BUS_TYPE_TB3to cover TB4, TB5, and USB4HOTPLUG_CAPABLE && HOTPLUG_SURPRISErequirement — TB4/TB5 downstream ports legitimately reportHotPlug-withSurprise+, soSurprise+alone may be the right signal when the upstream bridge is a USB4/TB PCIe tunnel adapterThe approved-bridge list itself lives in closed components, so external contributors cannot fix the underlying data — which is why a supported override would help in the interim.
Platform note for AMD hosts
pcie_aspm=off(recommended in #981 for the Intel platform) is harmful on AMD Strix Halo. It breaks the ACPI_OSCnegotiation:The OS never takes PCIe ownership, and MSI-X allocation then fails:
pcie_aspm.policy=performanceavoids this while still minimizing ASPM transitions. Full working cmdline here:Happy to test patches or supply additional logs.
nvidia-bug-report.log.gzattached.nvidia-bug-report.log.gz
kreggencor-crypto commentedon Aug 24, 2026
Another RTX 5060 Ti datapoint — and an attempt to narrow where the failure happens, plus a method for capturing evidence through a hard lock.
Same failure class as @guoxh's RTX 5060 Ti report above, on a different host. What I can add is a boundary: the lock-up tracks driver attach, not any particular CUDA call — and a way to prove that when the machine dies without logging anything.
Environment
10de:2d04NVreg_EnableGpuFirmware=0set (does not help)7.0.0-28-generic, cmdlineiommu=pt pci=realloc8086:5786×5 bridges00:01.12.5 GT/s x1 → dock upstream01:00.0→ dock downstream02:00.016 GT/s x4 → GPU03:00.0Signature matches the thread exactly: no kernel panic, no Xid, no journal entry, no SysRq. Power cycle only.
Capturing evidence when the host dies mid-command
Nothing survives a hard lock unless you force it to disk first. Each step writes
STARTplus the command text and callsfsync()before running it, thenOK+fsync()after. A lock-up therefore leaves aSTARTwith no matchingOK, naming the exact command, and it survives the power cut:journalctl --list-bootsputs the end of that boot at 13:08:20 — the same second. The lock is immediate, not a timeout. The command ran inside a systemd scope withMemoryMax=512M/TasksMax=64and a 25 s SIGKILL timeout; the breaker never fired, which rules out memory exhaustion or a userspace hang and puts the fault below userspace.Offering this mainly because several reports in this thread say "no logs" — this method gets you a log.
Attach is the boundary, not the command
nvidia-smi -L(ok), then the link query (fatal)Every boot in which the driver attached ended in a lock-up. The one where it never attached never crashed. Time-to-death varied from seconds to minutes and tracked whatever the host did next, not any single command.
I was wrong first time round, and the correction is the useful part. I initially blamed the NVML PCIe-link query and built an
LD_PRELOADshim that serves those ninenvmlDeviceGet*Pcie*calls from a sysfs cache. Interception verified, hardware never touched, call returnedrc=0— and the host locked up in the same second anyway (boot −1). So the query is a trigger, not the cause, and no userspace workaround can fix this: attach-time bus-interface setup happens inside the kernel module, and merely opening the device triggers attach.The last driver line before every death:
Stated conservatively — that is also simply the last line the driver emits during attach, and boot −2 ran two more minutes afterwards, so it is not instantly fatal on its own.
AtomicOps — the specific thing I would ask someone with driver visibility to check
From the shipped source for this exact driver,
nvidia/os-pci.ccalls:The kernel helper walks every bridge between device and root port and fails unless each one advertises AtomicOp routing. Thunderbolt/USB4 switch hierarchies commonly do not. Measured on this host's root port:
So the root port supports routing plus 32/64-bit completion but not 128-bit CAS — while the driver requests all three sizes. The driver's own comment anticipates a GPU lacking the capability:
That is not the same condition as the intervening bridges lacking it, which is exactly the eGPU case.
Still unmeasured, and the single most useful next measurement — the dock's own bridges only exist on the bus while it is connected, so this needs a live session:
If either lacks
Routing+, the enable path fails partway along a hierarchy the driver has already begun configuring. If anyone else in this thread can run that on their dock, it would either confirm or kill the hypothesis quickly.Also seen here, with ReBAR enabled, on every connect:
Disabling ReBAR clears those and raises the dock-side link 2.5 → 16 GT/s. It does not fix the lock-up.
A contrast that may help separate two bugs
The same card and the same host on a direct OCuLink cable — no tunnel, no bridges — has a different and now-fixed failure:
Xid 13under sustained load and a GSP wedge under concurrent load, both eliminated by the kernel parameterpcie_ports=native(details and telemetry in #1247).That parameter does not help here. Which suggests these are two distinct defects that get conflated because both present as "Blackwell eGPU dies under load":
If that split is right, this thread will not be fixed by any kernel parameter, and the reported TB4-fails / TB5-sometimes-works pattern is about what the intervening bridges advertise.
Asks
NVreg_EnableGpuFirmware=0is already set here and does not help. I did not invent anNVreg_RegistryDwordskey because guessing one would be noise.current_link_speed,current_link_width) and reading them there is completely safe on the same machine.Full write-up — the boot table, the shim, the source-level capability audit and the raw captures: https://kreggencor-crypto.github.io/egpu-strixhalo-oculink/ (§15 is the Thunderbolt investigation).
Happy to run tests on this hardware — including the bridge AtomicOps measurement above, or anything that would confirm or rule out the attach-negotiation hypothesis.
pitkz commentedon Aug 24, 2026
@NisharnSP
Please stop claiming wrong stuff with your AI reply!
This is me, and EXACTLY the post one prior to your reply... And its NOT sure if its the Gen3 limitation. You got to ask this @apnex
Same for @dmfrey & @kreggencor-crypto (& @guoxh 1st post).
Reposting the same text made by some AI with too narrow context while ignoring the actual suggested solutions will not lead to anything... Start with the actual solution thats already available. Start reading - yourself - not some AI. #979 (comment)
elvetemedve commentedon Sep 5, 2026
GIGABYTE AORUS RTX 5060 Ti AI BOX (vendor:
8086, product:5786, TB5 enclosure)I'm experiencing the hang on the same hardware family as a lot of this thread on a Lenovo ThinkPad P16s (Meteor Lake, TB4/USB4 host).
Same symptom as reported here and in the closed PR #981: GSP init (
kgspInitRm) blocks forever, which then hangs every other process that touches/dev/nvidia*(no Xid, no AER event, no oops, just a permanentDstate). Across ~16 boot/hotplug attempts before any mitigation, this succeeded exactly once, and even that one success hard-froze the machine on the very next GPU operation (PRIME offload render bynvidia-offloadcommand).I also found a workaround with no driver patch or rebuild required. It's a community tool, blackwell-egpu-manager, and the mechanism is entirely in userspace (udev rule and
setpcicommand).Verified under sustained load (not just idle
nvidia-smirun), zero hangs since:vkcubecontinuous renderingOne more data point I can confirm that
NVreg_DynamicPowerManagement=0x00was set throughout all of this testing, on both the hanging and working configurations. djanice1980/eGPU-Blackwell-Stability independently identified that same option as their primary stability fix.I hope this info helps somewhat.
Environment
pcie_aspm.policy=performancepcie_port_pm=offdjanice1980 commentedon Sep 5, 2026
Your init hang (kgspInitRm never returning) and my failure (GSP dying after a good init: Xid 154 / 32 / 56 / 79) look like different classes, and DPM=0 only ever addressed the second one on my AMD Strix Halo host. I've never seen the init hang here, so I can't say DPM=0 helps yours.
Since you already had aspm=performance and pcie_port_pm=off before the manager, the difference must be in what Mode 3 adds: deferred attach (udev remove, rescan later), the setpci ASPM/L1SS clear on the bridges, or the retrain. Did you try it without pcie_port_pm=off? Damian's README claims no kernel flags are needed and that would isolate one variable.
elvetemedve commentedon Sep 7, 2026
Good point. I was so happy that I managed to get it working, so completely forgot to verify if all 3 kernel params are required. Tested dropping both
pcie_aspm.policy=performanceandpcie_port_pm=off. The workaround still functions properly. Howeverpci=reallocis still required, because without that the driver never loads (I see this error in kernel log like: "bridge window [mem size 0x24100000 64bit pref]: can't assign; no space").efenex commentedon Sep 11, 2026
Edit 2026-09-15: the conclusions I originally drew here were wrong, see my follow-up below for what works on this hardware.
Same symptom on Intel Barlow Ridge TB5 + Arrow Lake-HX.
10de:2b85)nvidia-smiworks at idle. With the driver loaded at boot, the first device allocation hard-locks the host:Sometimes a silent lock, sometimes an MCE panic. A PCI hot-remove of the TB downstream port with the driver bound also killed the host.
The enclosure is fine: on a Lenovo Legion 7 16IRX9 (TB4) under Windows 11 with driver 591.86, 18 GB of allocations plus 180 s of sustained H2D (472 GB at 2.6 GB/s, Gen4 x4, BAR1 256 MB) ran clean.
On Linux I tried kernels 7.2.3 / 7.2.4 / 6.18.48, drivers 590.48.01 / 610.57.04 (615.71.09 oopsed at module load), iommu off, HMM off, runtime PM pinned on, BAR1 256 MB and 32 GB, TB host_reset 0/1 and clx=0, compute-only, and a display on the GPU. All still locked, but none of those runs capped the bridge link before loading nvidia, which turned out to be the missing piece.
efenex commentedon Sep 15, 2026
Update from the MS-02 Ultra + AORUS RTX 5090 AI BOX:
I was wrong to assume that kernel and driver were ruled out. None of my tests used what was already posted here: cap the bridge above the GPU at Gen3 with hardware autonomous speed disable, retrain, and only then load nvidia. With that in place it works.
Thanks @apnex for the patched driver and the detailed write-up, @jciolek and @lokmantsui for the slimmed-down setup and the Ubuntu fork, @pitkz for confirming it on the same box and for pointing people at the actual solution, and @bom-singiali for host_reset=false in #974.
Extra thanks to @pitkz for the thumbs down on my original comment and the nudge to stop relying on AI reading (skimming) this thread.
What I've tested (Ubuntu 26.04, kernel 7.0.0-31, front TB5 port):
thunderbolt.host_reset=false thunderbolt.clx=0 pcie_aspm.policy=performance pcie_port_pm=off pci=resource_alignment=35@<bridge> module_blacklist=thunderbolt8 boots so far (warm reboots and a cold start), all passed: repeated CUDA context + allocations, 387 GB of verified H2D/D2H at about 3 GB/s, 2 minutes of FP16 matmul at 575 W, and a 24 GiB allocation. No Xid, no AER, no lockups. Haven't run a real workload for hours yet or tried stock 610.43.02.
Two things that might save someone time:
module_blacklist=thunderboltfixed it, the PCIe tunnel is set up by firmware anyway.Next steps are getting it working on CachyOS with more recent driver/kernel - but at least now I know this thing can actually work.
efenex commentedon Sep 15, 2026
Follow-up to my update above: it also works with the stock driver, no patches.
Same box and front TB5 port, open driver 610.57.04 unpatched, same bridge cap and late load, same kernel params plus
nouveauinmodule_blacklistandintel_iommu=on. Only apnex's patches andNVreg_TbEgpuRecoverEnableare gone.Soak results match the patched driver: 387 GB of verified H2D/D2H at about 3 GB/s, 23k FP16 matmuls in 2 minutes at 575 W, a 24 GiB allocation. No Xid, no AER, no lockups.
The CachyOS machine is the same install, kernel and 610.57.04 that hard-locked on the first allocation in my first comment. So on this hardware the bridge cap is what mattered, not the driver patches. I haven't tried stock without the cap, so I can't say whether the kernel params alone would be enough.
For Arch/CachyOS: the
kmsmkinitcpio hook puts nouveau in the initramfs, so rebuild it after blacklisting, or add nouveau tomodule_blackliston the kernel command line like I did.neighborlyjim commentedon Sep 18, 2026
Related diagnostic question: early NVIDIA probe failure, before CUDA/GSP initialization, rather than the original workload-triggered failure.
ASUS ProArt Z890-CREATOR WIFI (BIOS 3305), internal RTX 5090 driving the desktop, external RTX 3090 Ti (10de:2203 / audio 10de:1aef) in an AOOSTAR EG02 over TB5. The same machine/dock/GPU works in Windows. Linux Mint 22.3, kernel 7.0.0-30-generic, NVIDIA 595.84 open.
Five staged cold-boot comparisons all reached the same immediate NVIDIA probe error:
Common boot parameters included thunderbolt.host_reset=0, pci=realloc=on,hpiosize=0, pcie_aspm=off and pcie_port_pm=off. The internal 5090 remained on NVIDIA throughout.
Measured immediately before attachment: parent Link Control 2=0x0063; Link Status=0x3043 (Gen3 x4, training clear); endpoint Link Control 2=0x0024 in tests 3–5; GPU PMCSR=0x0008 (D0). Configuration identity remained readable.
A separate pre-cap/pre-bind capture found BAR0=0xb0000000, matching its cached 16 MiB allocation. All five ancestor bridges had memory forwarding enabled, bus ranges including the GPU, and programmed non-prefetchable windows containing the complete BAR0 range. This is configuration evidence, not proof of working MMIO. Initial ASPM bits were L1-enabled at three bridges and the endpoint despite pcie_aspm=off; after cap/HASD setup the endpoint/audio bits were already zero. Test #4 cleared the remaining bridge bits. We did not modify L1SS registers.
Each bind reported:
Remote netconsole captured the events. These staged tests left the host responsive; earlier broad probes/hotplug had hard-locked it. No bind retry, NVML or CUDA call followed a failed probe.
The matching 595.84 source places this text in rm_is_supported_device() when PMC_BOOT_0 and PMC_BOOT_42 both read all ones. The probe ordering puts that before private RM state/BAR resizing/GSP initialization. That is source-based inference; we have not independently mapped BAR0.
Is this early identification failure known on Barlow Ridge/Ampere? What minimal capture best distinguishes a firmware/USB4 MMIO-routing problem from GPU-side readiness, and should it be directed to NVIDIA or Linux PCI/Thunderbolt maintainers? Is there a relevant fix for this stage?
No same-version proprietary-driver comparison has been performed because the internal Blackwell GPU requires the open module. This report does not establish an open-module-specific bug or claim identity with the original CUDA failure.
deacix commentedon Sep 19, 2026
Data point from a different stack on the same enclosure, offered because it independently supports the "it's the Gen4 retrain, not Gen4 itself" conclusion above.
Setup: Mac mini (M4 Pro, macOS 27), two GIGABYTE AORUS RTX 5090 AI BOX (Intel bridge
8086:5786, Thunderbolt link at 40 Gb/s), GB20210de:2b85. Not the Linux kernel module: tinygrad's userspace NVIDIA path over its TinyGPU DriverKit extension, which boots GSP-RM itself and lets us set RM registry keys per boot. Workload: sustained PRP squarings (4M-point NTT, ~245 µs/iteration, continuous for hours) — compute-bound, little PCIe traffic once launch data sits in VRAM.What we saw (2026-09-18/19):
RMPcieLinkSpeedkey (RM's default link handling on this path), a 5090 that had enumerated at Gen4 x4 at cold plug ran ~8 h of checked PRP at Gen4 x4 with zero link errors in the kernel log. The link never moved during that time. So Gen4 x4 operation over the tunnel is fine on this box — consistent with the finding here that the retrain is what drops the card.RMPcieLinkSpeed = 0x800002AA(gens 2–6 disabled, locked at load — the guard we ship for Ada cards behind Intel bridges, see 3) drops the link to Gen1 x4, and that setting is sticky: after a hot reset (SBR) and a fresh GSP boot without the key, the link stayed at Gen1. Only a fundamental reset (a host restart that keeps the TB link down long enough, or a power cycle of the enclosure) re-enumerated at Gen4. Matches PCIe sticky link-speed state — worth knowing if you scriptsetpcitargets: a leftover Gen1/Gen3 target survives resets you might expect to clear it.GSP_INIT_DONEthe first ~1 KB of host writes into VRAM made RM ask for a faster gen, the retrain never completed, and the Apple root port logged a link timeout and disabled the port ~100 ms later. The registry pin above plusPCIEPowerControl = 0x3(ASPM off) is what makes that card usable — at Gen1.Write-up with the measurements and the exact registry table: https://github.com/deacix/tinygpu/blob/main/docs/two-cards-link-and-launch-path-2026-09.md
Mindbreaker81 commentedon Nov 9, 2026
Data point: RTX 5090 + Razer Core X V2 on an AMD USB4 host — 595.99.02-open fails, 580.178.04-open is stable
Adding a version-specific data point. On the same hardware, same kernel and same cable, 595.99.02-open fails reproducibly (3/3 boots) and 580.178.04-open works under sustained CUDA load. No patches, no extra kernel parameters, no
RmForceExternalGpu.Setup
boltctl10de:2b85, subsystem1458:416e). PSU 1200 W. Same GPU and enclosure work fine on a Windows laptop7.0.0-43-generic, Secure Boot disablednvidia-driver-595-open595.99.02 (Ubuntu'subuntu-driversrecommended choice) vsnvidia-driver-580-open580.178.04, both Ubuntu archive packages (DKMS)595.99.02-open, default settings
nvidia-smiworks at idle. The first CUDA use (Ollama / llama-server) gives a GSP heartbeat timeout, thenkbusSendSysmembarSingle_GH100timeout, then a memory-subsystem error, then Xid 175. The GPU ends up "GPU requires reset" and CUDA reportsno CUDA-capable device is detected. Shutdown then hangs and needs a hard power-off.595.99.02-open,
NVreg_DynamicPowerManagement=0x00+ runtime PMon/d3cold_allowed=0on GPU, TB bridges and root portThis makes it worse. It fails during boot with no workload, right after the module loads. The
0xbadf2100read at0x110094is the same value quoted in #981:The same happened again with a different USB4 cable, so the cable is ruled out.
580.178.04-open, default settings (stock
DynamicPowerManagement=3)The load is clean. The only notable line is
NVRM: kbifInitLtr_GB202: LTR is disabled in the hierarchy. Ollama runsqwen3.8:27b(Q4, 20.6 GB VRAM) at 100% GPU:So on this AMD USB4 host the regression looks branch-specific (580 → 595), not a generic link-quality problem. That seems worth separating from the TB-detection and timeout theories discussed above. Note that the GMKtec K8 Plus (AMD Pink Sardine) report above failed on 580.126.18, so 580.178.04 may contain a relevant fix too.
Happy to collect an
nvidia-bug-report.log.gzon 595.99.02 or test a patched or newer branch if NVIDIA wants it.NisharnSP commentedon Nov 18, 2026
@pitkz
I credited the available solution in my reply, and specifically mentioned that my change was a workaround with the same root fix, just less invasive. Maybe you could ask AI to help you read and understand posts before commenting yourself :)
The rest of the post, which you ignored, was first-hand testing on my own machine, setup, and then a fine-tuning run.
This was my understanding at the time, and while overstated, follows wording from egpu.io: "PCIe link speed limited to Gen3 for stability".
Keep shadowboxing AI I'm sure you'll win eventually
inwestygator commentedon Nov 22, 2026
Data point: RTX 3090 (Ampere) + Razer Core X V2 (JHL9480) on a Framework Laptop 13 Pro: stable with GSP firmware off
Framework Laptop 13 Pro (Intel Core Ultra Series 3, BIOS 03.04), Razer Core X V2 (8086:5786, USB4 40 Gb/s, PCIe 4.0 x4 to the GPU), RTX 3090 (10de:2204), Arch Linux (Omarchy), kernel 7.2.15-1-omarchy.
Xid 79 at state changes: during the driver's start (
_kgspBootGspRm: unexpected WPR2 already up), at the first Vulkan use after idle, and when a workload exits.What I tried so far:
vulkaninfoon the third run)NVreg_EnableGpuFirmware=0: no Xid; driver start, a full load started and stopped, repeatedvulkaninfoall passSo on this Ampere card the GSP path is the trigger, with either driver. This differs from @Mindbreaker81's report above (Core X V2, 580.178.04-open stable): here 580.178.04 failed as long as GSP was on. GSP off isn't available on Blackwell, and it costs idle power here (the card stays in P0, about 105 W).
Full report with nvidia-bug-report.log.gz (GSP on, after the failure): https://forums.developer.nvidia.com/t/gsp-firmware-triggering-xid-79-on-usb4-thunderbolt-egpu/389811
UPDATE:
Follow-up: the link-speed lock fixes it on this Ampere card too, with GSP on, at full 16 GT/s, with the open 615.78.08 as well
Same setup as my comment above (RTX 3090, Razer Core X V2 / JHL9480, Framework Laptop 13 Pro / Panther Lake, proprietary 580.178.04), now with GSP firmware on and the lock from kernel bug 221319 comment 58 applied before the driver loads:
vulkaninforuns with 20 s of idle between them: no Xid (unlocked, GSP on, it failed within one to three runs)Then the same with the open driver 615.78.08 (which failed in 19 of 20 boots unlocked, often already while loading): the driver loaded cleanly, 8
vulkaninforuns with 20 s idle and 4 workloads started and stopped with 30 s idle, no Xid, link at 16 GT/s, idle in P8.So GSP off only helped because the card then never changes its link speed; the speed change is the trigger. It seems no need for the Gen3 cap here: the lock alone at 16 GT/s is enough.
mjbrn commentedon Nov 29, 2026
Another data point, with a workaround that keeps Gen4.
Setup: RTX 5060 Ti (GB206, 10de:2d04) in a TB5 dock (Intel JHL9480, downstream port 8086:5786), AMD Strix Halo host over USB4 40G. Driver 620.73.04 (open). Kernel 7.4-rc2 and 7.0 behave the same.
Without intervention, the link trains at 16 GT/s before the driver loads. During init the driver sets the dock port's Target Link Speed to 2.5 GT/s and leaves autonomous speed changes enabled (nvidia-smi shows "Host Max: 1"). The first
cuDevicePrimaryCtxRetainthen freezes the host within ~5 s. Nothing reaches the logs, and there is no lockup panic or AER.We pinned Link Control 2 before
modprobe nvidia(setpci CAP_EXP+30.w=XXXX:002f), retrained, ran one context check per boot, and got:With both ends pinned at 16 GT/s + HASD, 256 MiB pinned copies run at 3.87 GB/s H2D and 3.92 GB/s D2H, against 3.07 / 3.38 at Gen3. That covers 15 context checks over two restarts and a cold power cycle, with 0 correctable AER errors. Our reading is that a speed change on that link while it runs at 16 GT/s stalls the platform. That explains why pinning only the downstream port at Gen4 doesn't help but pinning the card side too does.
The recipe: set
CAP_EXP+30.w=0024:002fon the GPU and on its parent bridge, setCAP_EXP+10.w=0020:0020on the bridge, wait for LnkTr- plus 2 s,modprobe nvidia, then set LnkCtl2 on both again.