Repository navigation
Open
Labels
bugSomething isn't working
Description
NVIDIA Open GPU Kernel Modules Version
nvidia-headless-580-open
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
Ubuntu 24.04.3 LTS
Kernel Release
Linux NS5x-NS7xAU 6.14.0-36-generic #36~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 15 15:45:17 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
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
PNY OC 16G Geforce RTX 5060 Ti
Describe the bug
preamble: I use the PCI brige "Cyid TB3-HL7" connected with a Thunderbolt 4 cable. It works fine with a Gigabyte Windforce OC 12G GForce RTX 3060 with driver nvidia-headless-580-open nvidia-dkms-580-open.
I've just buy a PNY OC 16GB Geforce RTX 5060 Ti to replace the previous, but it does not work as you will see in nvidia-bug-report.log.gz
To Reproduce
- power on the laptop
- plug the 5060 on the PCI Bridge (Cyid TB3-HL7)
- plug power wire to 5060
- plug power wire to PCI Bridge
- plug the Thunderbolt 4 wire on the bridge then the laptop
then nvidia-msidoes not find the card- many error in the system journal
Bug Incidence
Always
nvidia-bug-report.log.gz
More Info
Installed packages :
$ dpkg --get-selections | grep -i nvidia
libnvidia-cfg1-580:amd64 install
libnvidia-common-580 install
libnvidia-compute-535:amd64 deinstall
libnvidia-compute-580:amd64 install
libnvidia-decode-580:amd64 install
libnvidia-gpucomp-580:amd64 install
libnvidia-ml-dev:amd64 install
nvidia-cuda-dev:amd64 install
nvidia-dkms-580-open install
nvidia-driver-assistant install
nvidia-firmware-580 install
nvidia-headless-580-open install
nvidia-headless-no-dkms-580-open install
nvidia-kernel-common-580 install
nvidia-kernel-source-580-open install
nvidia-modprobe install
nvidia-persistenced install
nvidia-utils-580 install
Here are some strange lines which I don't understand :
kernel: pci 0000:03:00.0: bridge window [mem size 0x24400000 64bit pref]: can't assign; no space
...
kernel: pci 0000:03:00.0: bridge window [io size 0x3000]: can't assign; no space
I've identified this error lines :
kernel: [drm] [nvidia-drm] [GPU ID 0x00000500] Loading driver
kernel: NVRM: GPU at PCI:0000:05:00: GPU-ab296f23-e6a6-a23b-b6c1-33f9b813df84
kernel: NVRM: Xid (PCI:0000:05:00): 79, GPU has fallen off the bus.
kernel: NVRM: GPU 0000:05:00.0: GPU has fallen off the bus.
kernel: NVRM: kgspRcAndNotifyAllChannels_IMPL: RC all channels for critical error 79.
...
kgspBootstrap_GH100: GSP-FMC reported an error while attempting to boot GSP: 0xffffffff
_kgspBootGspRm: unexpected WPR2 already up, cannot proceed with booting GSP
_kgspBootGspRm: (the GPU is likely in a bad state and may need to be reset)
RmInitAdapter: Cannot initialize GSP firmware RM
...
Reacted by Bennett Kanuka, Éloi Rivard and bom-singiali
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
Deadshot0x7 commentedon Dec 8, 2025
@mtijanic @mmaneetsingh , Can anyone from you assign me this issue to me as I'm really Interested to solve this issue
Cyrille37 commentedon Dec 8, 2025
Hi @Deadshot0x7
Just as a reminder : I did some tests with RTX 5060 Ti plugged with a PCI/THB4 Bridge (eGPU).
With 2 products:
I will looking forward :-)
Regards & Cheers
mtijanic commentedon Dec 8, 2025
Sorry @Deadshot0x7 , but most of these issues you are requesting assignment on likely are not actually solvable by an external contributor as they involve the interface between firmware and CPU, and changes to the firmware can only be done by NVIDIA.
Additionally, we will not assign issues to external contributors as that can lead to unreasonable expectations. If you do manage to solve a bug - particularly an untriaged one - feel free to open a PR directly.
@Cyrille37 sorry, still no update here, but I've updated the issue title to better reflect the problem at hand, hopefully that makes it easier to triage. Maybe running with RmMsg=':' might provide more insight.
[-]kgspBootstrap_GH100: GSP-FMC reported an error while attempting to boot GSP[/-][+]RTX 5060 Ti eGPU unable to init, falls of the bus immediately[/+]azmeuk commentedon Mar 3, 2026
I can document a similar issue for me. I run a AORUS RTX 5060 Ti AI BOX connected on a Thunderbolt 4 port on a Framework Laptop 13 (Intel Core Ultra Series 1 / Meteor Lake) . I use the original Thunderbolt cable and PSU that came in the GPU box.
I run kernel 6.18.13-arch1-1 on Archlinux with nvidia-open 590.48.01 and a GNOME session.
The GPU is detected correctly and
nvidia-smiworks at idle. However, any CUDA initialization crashes the GPU immediately with Xid 79 ("GPU has fallen off the bus"), followed by the xHCI host controller dying and all USB devices disconnecting.Even the most minimal CUDA call reproduces the crash:
$ python3 -c "import torch; print(torch.cuda.is_available()); t = torch.zeros(1).cuda(); print(t)"GNOME does not use the eGPU for rendering (switcherooctl confirms only the Intel iGPU is used for display).
I have tried several things but none helped:
pcie_ports=native pcie_aspm=off pci=assign-busses,realloc,hpmmiosize=128M,hpmmioprefsize=16GSome related logs:
lspci -k -d ::03xx
nvidia-smi
dmesg
adrianhoehne commentedon Mar 16, 2026
@azmeuk You brought me into a good direction so I could solve my Xid 79 issue with an eGPU setup and my RTX 2060. I was then also able to reproduce it. As long as there is no CUDA access, the connection stays stable. After I load nvidia_uvm, and call nvidia-smi, the card falls off the bus. I guess the problem is between the nvidia_uvm module and ASPM.
However, pcie_aspm=off doesn't mean really off. I also relied on it. But it also depends on what policy is used on your system and your BIOS settings. In my system it was still enabled for this pcie branch; I saw it by trying to reproduce what you explained.
sudo lspci -vv -s 3d:00.0 | grep -iE 'LnkCtl'I've got:
LnkCtl: ASPM L1 Enabled; RCB 64 bytes, Disabled- CommClk+I got my setup stable by disabling ASPM via setpci.
sudo setpci -s 3d:00.0 CAP_EXP+10.wgave me 0142Which means ASPM L1 enabled, CommClk enabled and ClockPM enabled.
So, I changed it to 0140 with the command:
sudo setpci -s 3d:00.0 CAP_EXP+10.wRemember, your card is on 2d not 3d.
I guess the driver has some problems with ASPM.
System Details:
NVIDIA-SMI 580.126.09 Driver Version: 580.126.09 CUDA Version: 13.0
System:
Kernel: 6.8.0-94-generic x86_64 bits: 64 compiler: N/A Console: pty pts/0
Distro: Ubuntu 22.04.5 LTS (Jammy Jellyfish)
Machine:
Type: Laptop System: Dell product: Precision 7520 v: N/A serial:
Mobo: Dell model: 0NP5CM v: A00 serial: UEFI: Dell v: 1.26.0
Graphics:
Device-1: Intel HD Graphics 530 vendor: Dell driver: i915 v: kernel bus-ID: 00:02.0
Device-2: NVIDIA GM107GLM [Quadro M1200 Mobile] vendor: Dell driver: nvidia v: 580.126.09
bus-ID: 01:00.0
Device-3: NVIDIA TU106 [GeForce RTX 2060 12GB] vendor: ASUSTeK driver: nvidia v: 580.126.09
bus-ID: 3d:00.0
Cyrille37 commentedon Mar 16, 2026
Hi & thanks for reports :-)
I did many tries with grub flags & modprob configs but cannot have my RTS 5060 Ti to be stable for long runs.
I looked for @adrianhoehne tip, but the ASPM seems to already off (but I'm not expert) :
Is it a possible solution around the
LnkCtl2: Target Link Speed: 32GT/s, EnterCompliance- SpeedDis-like reducing the speed ?adrianhoehne commentedon Mar 16, 2026
@Cyrille37 Yes, at least for me it was possible. But you need to google the right hex value for it or ask your LLM. The register is visible with:
sudo setpci -s 00:1d.0 CAP_EXP+30.w
My value is 0003 which is 8GT/s. I tried, and it worked to reduce the speed, but at the time it didn't solve my problem. However, I forgot to mention that I didn't use the open driver, so it may behave differently.
Cyrille37 commentedon Mar 18, 2026
Hello
Same for me, I downgraded the speed too, but after undred of inferences with Yolo, the bus as fallen 😩
bom-singiali commentedon Mar 31, 2026
Hello,
nvidia-bug-report.log_crashed.gz
nvidia-bug-report.log_safe_mode.gz
nvidia-bug-report.log.gz
Additional data point — different hardware, same Xid 79
Setup: Minisforum MS-02 Ultra 9 (285 HX) + Gigabyte AORUS RTX 5060Ti AI BOX via Intel JHL9580 TB5 (USB4 v2 80Gbps). CachyOS, kernel 6.19.10, nvidia-open 595.58.03.
Symptoms: Identical Xid 79 on every boot at ~t=6.2s. GPU detected, then immediately falls off the bus.
Root cause found: The Linux Thunderbolt driver's
host_reset=true(default) resets the host router at ~6.2s, tearing down the PCIe tunnel right after NVIDIA driver init.Workaround:
GPU boots stable with this — no Xid 79, nvidia-smi works, PRIME offload and gaming functional.
Additional finding: PCIe tunnel stuck at Gen1 (2.5 GT/s) despite 80 Gbps TB5 link. JHL9580 downstream ports advertise
LnkCap2: 2.5GT/s ONLY. Measured H2D bandwidth: ~0.69 GB/s vs expected ~6-7 GB/s.Windows 11 on same hardware: eGPU works for gaming but system hard-freezes after exiting a game — suggests this is cross-platform, not Linux-specific.
nvidia-bug-report attached.
Many Thanks
Bom Singiali
pwoznet commentedon Apr 24, 2026
Hello,
For anyone struggling with RTX 5060Ti + WKG-L1970C TB3/4 dock, it seems that (at least with my setup) limiting the PCIe to Gen2 makes the CUDA computation workloads pretty stable. By "stable" I mean no xid79 events.
My laptop HP840 G10 doesn't support limiting PCIe speeds in the BIOS, so the only solution is to force it via setpci command:
Steps:
lspci |grep "RTX 5060"
05:00.0 VGA compatible controller: NVIDIA Corporation GB206 [GeForce RTX 5060 Ti] (rev a1)
https://alexforencich.com/wiki/en/pcie/set-speed
For example:
Next, create the /usr/local/bin/nvidia-egpu-setup.sh script, replace the "/root/speedpci.sh 05:00.0 2" with your system-specifc value (most likely you can skip the gpu clocks locking etc.):
GPU Link Info
PCIe Generation
Max : 2
Current : 2
Device Current : 2
Device Max : 5
Host Max : 1
Link Width
Max : 8x
Current : 4x
Both Max and Current should be "2", if Max is "3" as soon as any cuda load starts, the driver re-trains the link back to Gen3.
To summarise, before I've tried all the tricks mentioned here and there related to pcie power management, locking clocks but nothing really helped. With PCIe speed locked to 5GT (gen2), long AI/ML cuda sessions seem feasible. Of course, running a Gen5 GPU in Gen2 mode isn't perfect, but surely better than "falling of the bus" every 5-15 min.
Config info:
HP EliteBook 840 G10 (Intel)
WKG--L19c70 egpu dock tb3/4, "reagle" 50cm TB4 cable.
Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
MSI Ventus 2x, 5060Ti
Linux pwozg10l 6.17.0-22-generic #22~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 26 15:25:54 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
GRUB_CMDLINE_LINUX_DEFAULT="pcie_aspm=force pcie_aspm.policy=performance thunderbolt.host_reset=false intel_iommu=off iommu=pt pci=assign-busses hpbussiz
e=0x33 hpmmiosize=256M hpmmioprefsize=16G realloc pcie_port_pm=off thunderbolt.clx=0"
Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
Driver Version : 595.58.03
CUDA Version : 13.2
Regards,
Pawel W.
Cyrille37 commentedon Apr 24, 2026
Hi @pwoznet . Thank you for this new proposition, I'll try today :-)
Before trying your solution, I can tell that upgrading
nvidia-driverfrom 590 to 595 is important : I've just done and can chat withllama.cppand successfully doing some code refactoring withopencodeusinggpt-oss-20b-UD-Q4_K_XL.gguf. The "Xid 79 GPU has fallen off the bus" only came when make ~3000 loops for image detection withYolo26.Let's give your solution a go! I'll come back soon :-)
C5 v4: sink primitive + 4 detectors + 7 guards + telemetry consolidation
Evildenny commentedon Oct 12, 2026
Another AORUS RTX 5060 Ti AI Box data point, with some measurements that I think explain the Xid 79 and why capping the link speed helps.
Setup: Framework Laptop 13 Pro (Intel Core Ultra Series 3 / Panther Lake, BIOS 03.02), USB4 40 Gb/s. AORUS RTX 5060 Ti AI Box (JHL9480 Barlow Ridge bridge
[8086:5786], enclosure TB NVM 67.81). CachyOS, kernel 7.2.9, nvidia-open 615.78.08 (also seen on 615.71.09 and kernel 6.18 LTS). Same hardware is stable in Windows.The link that fails is the one inside the enclosure (bridge downstream port
2d:00.0↔ GPU2e:00.0). It trains at Gen4 x4 through the enclosure's retimers, with ASPM already disabled on it.What happens at Gen4 (default)
error status/mask=00001000/0000e000,[12] Timeout) in about half the compute runs.AER: Multiple Uncorrectable (Non-Fatal)from the GPU, then Xid 79 within ~0.6 s, then Xid 154 (OS Reboot) and a system hang.Capping the internal link to Gen3 before the driver loads fixes it
This uses the same idea as @pwoznet's modprobe
installhook, with Gen3 on both ends of the link:So at Gen4 the link is mostly busy replaying, and capping it is ~4× faster as well as stable. It has also been stable in games (WoW via Proton) at ~87% of Windows FPS.
The cap is lost across s2idle suspend
The enclosure's bridge loses its config during suspend and retrains at Gen4 on resume. Link Control 2 on
2d:00.0reads0x0043before suspend and0x0041after, with the link at 16 GT/s, and Xid 79 followed ~23 s later. Re-applying the cap and retraining in asystemd-sleeppost hook (driver still bound) fixed that: suspend/resume with a game running, then load, 0 AER/Xid.It would be great if the driver itself could fall back to a lower link speed when it sees replay timeouts or a failed retrain, or re-check the link after resume, instead of losing the GPU.
nvidia-bug-report attached (from the fixed configuration; the Gen4 failure logs are from a netconsole capture and I can post them if useful).