Remediation: Fallen off the bus
How to get back on it
Runbook: Blackwell GPU Passthrough Recovery (Proxmox)
Host: jnb3srvdscocsbullgpuprx36 | Applies to: RTX PRO 5000 / 6000 Blackwell passed through with vfio-pci
All commands run as root on the Proxmox host. Set these first and adjust them for the affected card:
GPU=0000:e7:00.0 # GPU function
AUDIO=0000:e7:00.1 # audio function (omit for 3D-controller cards with no audio)
BRIDGE=$(basename $(readlink -f /sys/bus/pci/devices/$GPU/..))
Find a card's address with lspci -nnk | grep -A3 -i nvidia.
When: guest shows NVRM: GPU ... has fallen off the bus, or nvidia-smi finds no device
1. Stop the VM.
2. Check whether the card still responds on the host.
- If it starts withde 10: the card is alive. Go to step 3.
- If it is all ff: the card is dead. Go to "When: config space is all ff" below.
3. Check whether the BARs are populated.
- If Region 0 shows[virtual], or the hexdump at 0x10 is zeros: the card has lost its BARs. Go to step 4.
- If the addresses look normal: go to "When: host looks healthy but the guest still fails" below.
4. Check that only this GPU sits behind the bridge.
Only$GPU and $AUDIO should be listed. If anything else is listed, stop and escalate, because a rescan would affect those devices too.
5. Remove and rescan the card.
echo 1 > /sys/bus/pci/devices/$AUDIO/remove
echo 1 > /sys/bus/pci/devices/$GPU/remove
sleep 2
echo 1 > /sys/bus/pci/devices/$BRIDGE/rescan
sleep 2
6. Rebind both functions to vfio-pci. This step is needed because the host audio driver can grab the audio function during the rescan.
for f in $GPU $AUDIO; do
[ -e /sys/bus/pci/devices/$f/driver ] && echo $f > /sys/bus/pci/devices/$f/driver/unbind
echo vfio-pci > /sys/bus/pci/devices/$f/driver_override
echo $f > /sys/bus/pci/drivers_probe
done
lspci -nnk -s ${GPU#0000:} | grep "driver in use"
lspci -nnk -s ${AUDIO#0000:} | grep "driver in use"
vfio-pci.
7. Disable power management on the card.
for f in $GPU $AUDIO; do
echo on > /sys/bus/pci/devices/$f/power/control
echo 0 > /sys/bus/pci/devices/$f/d3cold_allowed
done
cat /sys/bus/pci/devices/$GPU/power_state
lspci -vvv -s $GPU | grep Region
D0, and Region 0 has no [virtual] tag.
8. Start the VM and verify inside the guest.
When: config space is all ff (Unknown header type 7f)
- Try steps 4 to 7 once.
- If the config space is still
ff, the card cannot be recovered in software. Schedule a full host power cycle, which means cold power off, not a warm reboot. - Before the power cycle, live-migrate or shut down the other VMs on the host.
When: host looks healthy but the guest still fails
Collect the guest-side error from inside the VM:
- If modeset is
Y: setoptions nvidia-drm modeset=0in/etc/modprobe.d/, remove anynvidia-drm.modeset=1from the kernel cmdline, runupdate-initramfs -u, and reboot the guest. - If the failure persists: escalate with the dmesg output and
qm config <vmid>.
When: host dmesg shows Unable to change power state from D3cold to D0
The card went into deep sleep and failed to wake up. Run steps 1 to 8 above, then confirm the permanent settings below are in place.
When: host dmesg shows not ready 65535ms after FLR; giving up
The card did not respond to its reset. Treat this the same as "config space is all ff".
Prevention (one-time setup)
Host: keep vfio-pci from powering down idle GPUs, and disable runtime PM on all NVIDIA functions.
grep -q disable_idle_d3 /etc/modprobe.d/*.conf || echo "options vfio-pci disable_idle_d3=1" >> /etc/modprobe.d/vfio.conf
cat > /etc/udev/rules.d/99-gpu-nopm.rules <<'EOF'
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{power/control}="on", ATTR{d3cold_allowed}="0"
EOF
update-initramfs -u -k all
Guest: in every Linux VM with a Blackwell GPU, set options nvidia-drm modeset=0 and keep the NVIDIA driver on 580 or newer.
Operations: shut VMs down from inside the guest or with qm shutdown. Avoid qm stop and qm reset on GPU VMs.
Quick reference
| Symptom | Action |
|---|---|
Guest: fallen off the bus |
Steps 1–8 |
Host: Region 0 [virtual] or BARs are zero |
Steps 4–8 |
Host: audio function on snd_hda_intel |
Step 6 |
Host: D3cold to D0 ... inaccessible |
Steps 1–8, then check prevention settings |
Host: config space ff or FLR giving up |
Host power cycle |
| Host healthy, guest fails | Check guest dmesg and modeset |
| Another device behind the same bridge | Do not rescan; escalate |