mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[GH-ISSUE #260] Unlock failure: 5× RTX 3090 (10de:2204) behind a PEX880xx switch: whole switch lost to DPC / Xid 79 after a successful unlock #229
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#229
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dmagyar on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/260
Result
Unlocked at first, but the speedup was lost later (idle, suspend, driver reload)
Card
5× RTX 3090 24 GB: 2× Zotac (25:00.0, 26:00.0, NVLink-bridged), 2× MSI (29:00.0, 2d:00.0), 1× Founders Edition (2c:00.0)
PCI IDs
VBIOS version
25:00.0 94.02.42.80.9F, 26:00.0 94.02.42.80.9F, 29:00.0 94.02.42.00.2F, 2c:00.0 94.02.4B.00.0B, 2d:00.0 94.02.42.00.2F
Is the card modified?
Stock
Distribution
Proxmox VE 9.2.21
Kernel
7.0.14-25-pve
NVIDIA driver
595.71.05, open kernel modules
Initramfs generator
initramfs-tools
gpu-unlock version and install method
1fc6d62, make install (Debian packages gpu-unlock-dkms + gpu-unlock-firmware), firmware assets 610.43.03Kernel command line
BOOT_IMAGE=/boot/vmlinuz-7.0.14-25-pve root=/dev/mapper/pve-root ro quiet amd_iommu=on iommu=pt gpu_unlock.targets=all initcall_blacklist=nvidiafb_init nomodeset
Setup
0000:20:03.1). The display GPU is a separate GTX 960 at4a:00.0, not targeted.25:00.0and26:00.0(both Zotac) are joined by an NVLink bridge. They sit on two ports of the same switch group (24:00.0/24:10.0).PCIe topology (
lspci -tv):Both fatal errors came from
0000:24:10.0, the switch port directly above the GPU at26:00.0.Kernel log
Benchmark before and after
No response
Suspend and resume
Not tested
Anything else
None of the Result options fit exactly: the unlock completed on all five cards and gave the speedup, but the PCIe link behind one switch port then failed with a fatal error, taking down the whole switch and all five GPUs. It happened twice: once ~7½ hours after boot, and once ~14½ minutes after boot with the cards idle. The same port was involved both times. This rig had run for months on the same hardware with no Xid 79 or DPC events, and nothing else changed when gpu-unlock was installed.
24:10.0and the GPU at26:00.0. The root port's DPC then takes down the whole switch, so the other four cards are collateral. The specific AER error type isn't logged, because DPC fires first.0xffffffffwhile the stock driver runs.nvidia_uvmteardown when the vLLM process exited also loggedWARNING ... nvidia_dev_put_uuidandBUG uvm_gpu_chunk_5: Objects remaining on __kmem_cache_shutdown(). I take these to be follow-on damage from the lost GPUs.I've gone back to stock for now (packages purged,
gpu_unlock.targetsremoved, full power-off, all five cards confirmed back to stock). I'm happy to help narrow this down. I can test:29,2c,2d), or only the four cards other than26:00.0@Lukium commented on GitHub (Oct 29, 2026):
A data point from a similar setup, in case it helps narrow this down (I wrote #252).
Setup: 8× RTX 3090 on Proxmox (AMD host), vLLM in an LXC on the host driver, like yours. The cards are cabled the same way: C-Payne SlimSAS gen4 host adapters (x16 → 2× 8i, with DS160PR810 redrivers) and 75 cm SlimSAS 8i cables to C-Payne x8/x16 device adapters. Two differences may matter here:
All 8 cards were unlocked with #252 (direct mode) from a cold boot. After about 9 hours (mostly idle, plus some benchmark runs) there's no Xid 79 and no lost GPUs. That's a short window, not proof. My platform also handles AER firmware-first, so the OS-side error counters reading zero means little.
Some thoughts on your logs:
20:03.1), which is the cable link to the switch. The link that failed,24:10.0→26:00.0, is trained by the switch itself. To cap that one, set Target Link Speed to 8 GT/s (Link Control 2) on the switch's downstream ports and retrain, for example withsetpcifrom an early boot script. The switch vendor's configuration tools may also offer it. Capping both the root port and the downstream ports covers either link being the marginal one.untouched=1to confirm the masks stayed at their power-on values.If you test both, changing one thing at a time would make the result conclusive.
@dmagyar commented on GitHub (Oct 29, 2026):
Thanks @Lukium - the exact same setup runs without the unlock in place rock solid for months. I do not intend to lock the PCI-E of the adapter card to 3.0 as that would essentially cripple the speed to all cards on my switch. I am confident in my hardware setup the only thing changed is that I've added this gpu-unlock shiv. Once removed everything went back to normal/stable state.
@Zagitta commented on GitHub (Oct 29, 2026):
Thanks for the detailed report, and for going back to stock to confirm it. Two failures in about 8 hours, after months without one, is enough for me to treat this as linked to the unlock until we can show otherwise. I agree that capping the link at Gen3 isn't a reasonable fix for your setup.
I went through what the module does to the PCIe side on GA102. On its own, none of it explains a fatal error on a switch port hours later:
pcie_flr()followed bypci_restore_state(). That's the same reset VFIO does on every passthrough, and #139 shows it working on an NVLink-bridged pair.So if the unlock is involved, it's indirect. I see three candidates:
The most useful missing piece is the error type itself. DPC fires before AER can log it, so we can't tell a Surprise Down (the GPU dropped the link) from a link-layer error (signal integrity). Those point in quite different directions.
If you're willing to test, these would narrow it down quickest. Please run them one at a time, each on a cold boot:
24:10.0still fails while 26 is at stock, the unlock on that card isn't what's breaking the link. If it stays stable, that strongly implicates it.One more question: #114, the host-reset comment in it, and your setup are all TRX40 Threadripper boards. Do you know whether PCIe AER is handled by the BIOS ("firmware first") or by the OS on your board? Has anything in the BIOS PCIe settings (ASPM, Gen4 equalization, Advanced Error Reporting (AER)/DPC options) been changed from the defaults?