Your GPU Vanished on Linux? A 7-Step Checklist to Find Out Why (PCIe Triage Runbook)

10 min read

Your GPU Vanished on Linux? A 7-Step Checklist to Find Out Why (PCIe Triage Runbook)

The problem

You have a Linux box, an NVIDIA GPU, and this in the kernel log, the running diary of messages from the core of the operating system and its drivers:

NVRM: Xid (PCI:0000:01:00): 79, GPU has fallen off the bus.

New to these terms? Every word is explained in the series glossary.

That line is Xid 79: the NVIDIA driver tried to reach the graphics card over PCIe, the slot and wiring that connect it to the rest of the computer, and got no answer.

The tempting move is to reboot and hope. That throws away the evidence, and if the cause is a bad riser (a cable that extends the slot) or a tired power supply, it will happen again. This runbook is the order I would work in: collect first, read what came before the failure, then change one thing at a time.

Every command here is read only unless the step says otherwise. You type them in a terminal, the text window for running commands.

flowchart TD
    A[Xid 79 in the kernel log] --> B[Step 1: confirm with journalctl, lspci, nvidia-smi]
    B --> C[Step 2: save evidence, nvidia-bug-report.sh]
    C --> D[Step 3: read the lines before the Xid]
    D --> E{GPU still answering?}
    E -- yes --> F[Step 4: compare LnkCap with LnkSta]
    E -- no --> G
    F --> G[Step 5: rule out power and heat]
    G --> H[Step 6: change one thing at a time]
    H --> I{Fault gone after the same workload?}
    I -- no --> H
    I -- yes --> J[Step 7: recover and report]
    J --> K[Drain, reboot or full power off, file report]

Diagram: The seven steps of this runbook in order: collect first, read what came before, then change one thing at a time.

Step 1: Confirm what you are looking at

First, find every Xid and every PCIe error the kernel saw, with timestamps. sudo runs the command as administrator, journalctl -k prints kernel messages, and the pipe | sends them into grep, which keeps only matching lines:

bash
sudo journalctl -k --no-pager | grep -E "NVRM: Xid|AER|PCIe Bus Error|Hardware Error"

NVIDIA's docs say Xid messages (NVIDIA's numbered error reports) go to the kernel log, and the usual way to find them is to grep for NVRM: Xid. (NVRM is the prefix on every NVIDIA driver message.) Older drivers print the event without a number, like this line from a 2018 forum report on a GTX 1080 Ti:

NVRM: GPU at 00000000:01:00.0 has fallen off the bus.

So also grep for the plain text of this old format message:

bash
sudo journalctl -k --no-pager | grep -Ei "fallen off the bus|GPU is lost"

Then check whether the GPU is still on the bus at all, with lspci, which lists PCIe devices, and nvidia-smi, NVIDIA's GPU status tool:

bash
lspci -D -d 10de:
nvidia-smi

If nvidia-smi says Unable to determine the device handle ... Unknown Error, the driver has given up on that GPU. (The device handle is how the tool refers to one GPU.)

Know your neighbouring Xids. These are the meanings from NVIDIA's own docs:

XidMeaning (NVIDIA docs)Why it matters here
79GPU has fallen off the busThe event itself
154GPU recovery action changedTells you if a reset is enough or the node needs a reboot
48Double bit ECC errorMemory fault, a different failure path
63, 64Row remapping event, row remapping failureMemory repair working, or out of spare rows
119, 120GSP RPC timeout, GSP errorGPU firmware trouble, often printed near a 79 on newer cards
54Auxiliary power not connectedCheck the power cables
74NVLink errorInterconnect between GPUs, not PCIe

Each of these has its own glossary entry: Xid 154, Xid 48, Xid 63, Xid 64, Xid 119, Xid 120, Xid 54, Xid 74. The terms behind them are explained there too: ECC, row remapping, GSP, RPC, auxiliary power and NVLink.

Step 2: Save the evidence before anything else

bash
sudo nvidia-bug-report.sh

This script writes nvidia-bug-report.log.gz in the current directory. NVIDIA asks for it in any GPU issue report. If it hangs on a broken GPU, NVIDIA's docs suggest:

bash
sudo nvidia-bug-report.sh --safe-mode --extra-system-data

Also copy the full kernel log for this boot, meaning since the last restart:

bash
sudo journalctl -k -b --no-pager > kernel-$(date +%F-%H%M).log

Step 3: Read the lines just before the Xid

This is the most useful step. The minutes before the failure usually point to one of three stories.

Story A: a marginal link. Corrected errors pile up on the root port above the GPU, the connection point on the CPU or chipset where the GPU's link starts. This example is from a public NVIDIA forum thread about an RTX 3060:

pcieport 0000:00:01.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
pcieport 0000:00:01.0:    [ 0] RxErr

The kernel AER guide (Advanced Error Reporting, the PCIe feature that logs these errors) says corrected errors are fixed by hardware without data loss. Lots of them on one port still tell you the signal is weak. (RxErr means the receiver saw a bad signal.) Suspects: riser, slot, cable, a PCIe speed too high for the path.

Story B: firmware reported errors. On some servers the BIOS, the motherboard's built-in program, handles PCIe errors first and the kernel prints them as [Hardware Error] records. This setup is called firmware-first. From a forum report on a dual RTX 4090 desktop:

{1}[Hardware Error]:  fru_text: PcieError
{1}[Hardware Error]:   port_type: 4, root port
{1}[Hardware Error]:   device_id: 0000:40:01.1
{1}[Hardware Error]:   secondary_bus: 0x41
pcieport 0000:40:01.1:    [ 6] BadTLP

secondary_bus: 0x41 matches the GPU at 0000:41:00.0, so you know which slot to look at. (The secondary bus is the bus on the far side of the port, and 0000:41:00.0 is the GPU's PCI address.) BadTLP means a damaged packet at the data link layer, the PCIe level that checks each packet arrived intact (see BadTLP).

Story C: nothing at all, or firmware noise. No PCIe warnings, then the GPU is gone. That points to sudden power loss, heat, or the GPU itself not answering. On newer cards you may see GSP firmware lines first, like this from an RTX 5090 report. A GSP heartbeat is a regular "I am alive" check between the driver and the GPU's own small processor:

NVRM: GPU0 _kgspRpcRecvPoll: GSP RM heartbeat timed out
NVRM: Xid (PCI:0000:01:00): 79, GPU has fallen off the bus.
NVRM: Xid (PCI:0000:01:00): 154, GPU recovery action changed to Node Reboot Required
flowchart TD
    A[Lines just before the Xid 79] --> B{What do you see?}
    B -- Corrected RxErr on the root port --> C[Story A: marginal link]
    B -- Hardware Error records, BadTLP --> D[Story B: firmware reported errors]
    B -- Nothing, or GSP heartbeat lines --> E[Story C: power, heat or GPU itself]
    C --> C1[Suspect riser, slot, cable, link speed]
    D --> D1[secondary_bus points to the slot]
    E --> E1[Suspect power loss, heat, GPU firmware]

Diagram: What the lines before the Xid tell you: a marginal link, firmware reported errors, or nothing at all.

Step 4: Check the link the GPU trained at

On a GPU that is still answering, compare what the link can do with what it is doing, using lspci -vvv, lspci's most detailed mode:

Animation: LnkCap is what the link can do, LnkSta is what it is doing now: here x16 at 8GT/s dropped to x4 at 2.5GT/s.

bash
sudo lspci -vvv -s 0000:01:00.0 | grep -E "LnkCap:|LnkSta:|DevSta:"

LnkCap is the maximum speed and width. LnkSta is the current state (see LnkCap and LnkSta; DevSta shows the device's error bits). A thunderbolt eGPU example published online shows what a downgrade looks like:

LnkCap: Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <512ns, L1 <16us
LnkSta: Speed 2.5GT/s (downgraded), Width x4 (downgraded)

(An eGPU is a desktop card in an external box. Speed is in GT/s, and width is the number of lanes, see link width.)

Two cautions. First, NVIDIA GPUs lower their link speed when idle to save power, so a low speed at idle is normal. Check again under load. Second, a lower width is more serious than a lower speed, because lane count does not scale down for power saving the way speed does. A card that should be x16 running at x8 points at the slot, riser or BIOS lane settings.

Also check the GPU's own view and the topology, the tree of what connects to what, with an nvidia-smi query:

bash
nvidia-smi --query-gpu=index,name,pcie.link.gen.gpucurrent,pcie.link.gen.gpumax,pcie.link.gen.hostmax,pcie.link.width.current,pcie.link.width.max --format=csv
nvidia-smi topo -m

Step 5: Rule out power and heat

bash
nvidia-smi -q -d TEMPERATURE,POWER,PERFORMANCE

Look at temperature, power draw against the limit, and whether HW Slowdown, Thermal Slowdown or Power Brake are active. These are throttle reasons, the GPU's report of why it is slowing itself down. On a server with a BMC, a small separate computer on the motherboard that watches power and temperature, check its event log for power supply and voltage events with ipmitool sel:

bash
sudo ipmitool sel elist | grep -Ei "power|psu|volt|temp"

Power deserves real suspicion. In a public 2018 thread, a user with three GTX 1080 Ti cards on one 1000 W supply saw all three fail under load, and only a setup with the GPUs spread across more supplies worked.

Step 6: Change one thing at a time

These are the tests people report in public threads, roughly cheapest first. Change one, then run the same workload long enough to know.

  1. Reseat the card and power cables. Remove any riser if you can.
  2. Move the card to another slot, or swap in another card. If the fault follows the card, it is the card.
  3. Force a lower PCIe generation in the BIOS, for example Gen3. A signal that fails at Gen4 or Gen5 can pass at Gen3. (See PCIe generation.)
  4. Turn off PCIe power saving with the kernel parameter pcie_aspm=off, then reboot. (This turns ASPM off; ASPM is the feature that puts an idle link into low power states.)
  5. Enable persistence mode so the driver keeps the GPU initialised: sudo nvidia-smi -pm 1. (See persistence mode.)
  6. Lower the power limit for a test, for example sudo nvidia-smi -pl 400 (pick a value inside your card's allowed range). (See power limit.)
  7. Update the motherboard BIOS and try another driver branch. (A driver branch is a family of driver versions.)
  8. Run NVIDIA's diagnostics: sudo dcgmi diag -r 3. NVIDIA describes level 3 as the long test, about 30 minutes. (dcgmi diag is the test tool in DCGM, NVIDIA's GPU fleet manager.)

Be honest about results. In one public RTX 5090 thread, the original poster tried pcie_aspm=off and a 400 W power limit with no effect, while a later poster said pcie_aspm=off plus a BIOS update fixed theirs, and another fixed it by replacing the power supply. Same error, three different answers. That is why one change at a time matters.

Step 7: Recover and report

  • If a newer driver printed Xid 154, read what it asks for. NVIDIA's catalog says to follow the accompanying 154 for recovery guidance. (This is the recovery action.)
  • Drain the node if it runs jobs. NVIDIA's triage guide lists the action for Xid 79 as drain, then report the GPU issue. (Draining means the node, the machine, stops getting new work.)
  • Reboot, and if the GPU is still missing, power the machine off fully so the card loses power (a power cycle).
  • File the report with the nvidia-bug-report.log.gz from Step 2 and your kernel log.

The kernel has a sysfs interface (device files under /sys) to remove a device and rescan the bus. tee is used here to write to those files as administrator:

bash
echo 1 | sudo tee /sys/bus/pci/devices/0000:01:00.0/remove
echo 1 | sudo tee /sys/bus/pci/rescan

The kernel docs describe these as hot remove and rescan. Do not count on them after a real Xid 79. Public reports show the GPU often stays unusable until a reboot or power cycle.

Quick answers

Should I update the NVIDIA driver first? Not first. Collect evidence first. A driver change is a fair test once you know the link and power look clean, especially when GSP firmware errors appear near the Xid.

Does pcie_aspm=off fix Xid 79? Sometimes. It is a test, not a cure. Public reports show it helping in some systems and doing nothing in others.

How do I find which physical slot a PCI address is? Start from the root port in the AER lines and the secondary_bus field in firmware records, then match it to your board manual or lspci -tv tree.

Sources