Troubleshooting

Xid 48: double-bit ECC error

Annotated macro photograph of the Tesla P100 GPU package and high-bandwidth memory stacks
Macro photograph of the Tesla P100 package with its high-bandwidth memory. Memory repair behavior depends on the GPU generation. FritzchensFritz · Wikimedia Commons · CC0 1.0 · Resized for web.

Xid 48 means the GPU found an error in its memory that error-correcting code (ECC) could not fix. The affected data cannot be corrected, and the driver reports the error to the application using it. NVIDIA’s Xid Catalog lists Xid 48 for all five product families it covers: A100, H-x00, B-x00, GB-x00 and Rubin.

Other Xids in the same event burst can change what you should do. Read the whole burst before acting.

What does a double-bit ECC error mean?

GPU memory is protected by ECC. NVIDIA’s nvidia-smi documentation explains the two kinds of error it counts:

  • Single-bit errors are corrected automatically by the hardware and do not corrupt data.
  • Double-bit errors are detected but cannot be corrected. Xid 48 reports one of these.

The error can be in the GPU’s main memory (DRAM, the HBM stacks) or in on-chip SRAM such as caches. On newer drivers, NVIDIA’s catalogue says a second Xid tells you which: Xid 171 for DRAM, Xid 172 for SRAM. The difference matters, because only DRAM can be repaired by row remapping.

Which Xids come with it, and what do they mean?

Since the Ampere generation, a GPU can repair bad DRAM in hardware by row remapping: each memory bank has spare rows, and a faulty row is swapped for a spare. NVIDIA’s row-remapping page says the swap takes effect only after a GPU reset, and lasts for the life of the GPU. It replaced the page retirement used on older GPUs.

The Xids that appear alongside Xid 48 report on that repair and on the damage:

Xid Meaning
63 The repair was recorded. It will apply at the next GPU reset
64 The repair could not be recorded
94 The error hit one application, and the damage was contained to it
95 The error could not be contained and may affect other applications
154 The driver’s summary of the recovery the GPU now needs
160 / 161 On B-x00, GB-x00 and Rubin: a memory channel or cache slice was marked for repair (160), or that failed (161)
177 On Rubin only: a memory bank was marked for remapping, which takes effect after a GPU reset

You may also see Xid 45, which NVIDIA says is logged in relation to 94 and 95 when the driver cleans up the affected application’s work. It does not change the action.

What should I do after Xid 48?

NVIDIA’s workbook gives Xid 48 the action WORKFLOW_XID_DBE. First apply the highest-priority XID Parsing Policy rule that matches the full burst, including context in the messages. This table shows examples. An accompanying Xid 154 overrides a matching rule’s in-operation action. Its investigation or escalation step still applies.

Matching rule In-operation action Investigation
48 + 63 with 94 or 95 (rule 7) Restart the app (94) or reset the GPU (95) No action
48 + 63 without 94 or 95 (rule 8) Reset the GPU when convenient Deferred reset
48 + 64 with a failed row remap (rules 9–10), or 48 + 64 + 161 with a failed HBM channel repair (rules 13–14) Return the system to the provider Return the system to the provider
48 + 160 with successful HBM channel or SRAM L2 slice repair, with 94 or 95 (rules 11, 15) Restart the app (94) or reset the GPU (95) No action
48 + 160 with the same repair, without 94 or 95 (rules 12, 16) Reset the GPU when convenient Deferred reset
48 + 161 with a failed SRAM L2 slice repair (rules 17–18) Return the system to the provider Return the system to the provider
48 with matching SRAM conditions where L2 slice repair does not apply (rules 19–20) Return the system to the provider Return the system to the provider
48 + 177 (Rubin), with 94 or 95 (rule 21) Restart the app (94) or reset the GPU (95) No action
48 + 177 (Rubin), without 94 or 95 (rule 22) Reset the GPU when convenient Deferred reset
48 with a qualifying decoded NVLink fault (rule 27) Reset the GPU Return the system to the provider

Two details in the rules are easy to miss. First, the 48 + 63 rule with 94 or 95 allows an Xid 64 that says the row is already pending remapping, which happens when the same row is hit again before the reset. When that earlier rule matches, use its recovery action. Second, in the deferred-reset rules, the absence of 94 or 95 indicates no local consumption of bad data. The workbook gives remote access as one example.

“Reset when convenient” is NVIDIA’s RESET_GPU_DEFERRED: the reset is not needed straight away, running jobs can finish, and you reset at the next maintenance window so the repair takes effect.

If Xid 48 has no repair Xid with it, check the source and the complete event burst before running a reset. Rules 19–20 are labelled SRAM cases without L2 slice repair. They allow Xid 172 as an optional marker, so a burst with only 48, or with just 48 and 172, can match rule 20. If the log does not identify the memory, confirm the rule with support before assuming SRAM or returning hardware. Rule 57 calls for contacting support when an Xid 48 burst matches that rule after the more specific rules have been checked.

If no parsing rule matches, check the standalone action. For an unmatched GPU-memory DBE without a repair or retirement Xid, WORKFLOW_XID_DBE says to follow Xid 154, then a non-None GPU Recovery Action from nvidia-smi -q if Xid 154 is absent. Reset the GPU if neither gives an action. The workflow adds support for DRAM faults and a job rerun for SRAM faults, with support on recurrence. It has separate branches for the SRAM threshold flag and decoded NVLink DBEs.

The GPU Debug Guidelines give a separate triage path. For Xid 48 followed by 63 or 64, the Xid 48 row says to drain, wait for work to finish and reset. For Xid 48 without either code, it refers to Field Diagnostics. The Xid 64 row specifies immediate GPU reset for legacy GPUs and immediate node reboot for A100. Use the workbook’s platform and event qualifiers when applying its parsing rules.

How do I check ECC errors and row remapping?

nvidia-smi shows both. The display filters below are listed in NVIDIA’s nvidia-smi documentation:

nvidia-smi -q -d ECC,ROW_REMAPPER

Look for:

  • ECC error counts. NVIDIA reports them on two timescales, volatile and aggregate.
  • Row remapping pending. A repair is waiting for the next GPU reset.
  • Row remapping failure. A repair could not be made. This flag matters for RMA.
  • GPU Recovery Action in nvidia-smi -q. Possible values include None, Reset, Reboot, Drain P2P and Drain and Reset.

For SRAM errors, NVIDIA’s catalogue says to check the SRAM threshold-exceeded flag in the XML output (nvidia-smi -q -x) and to contact support if it is set.

To reset a GPU, NVIDIA documents nvidia-smi -r, with -i to pick one GPU. It needs root, and no process may be using the GPU. NVIDIA’s triage guide adds platform limits: inside a VM a GPU reset may not be allowed, in which case you restart the VM, and on some NVSwitch systems GPUs must be reset together.

When does a GPU qualify for RMA?

NVIDIA’s RMA policy for GPU memory says its Field Diagnostic tool decides. For DRAM, the RMA criteria are met when the row-remapping failure flag is set and the field diagnostic confirms it. The flag is set when:

  • a bank that already has eight rows remapped for uncorrectable errors needs another,
  • a row that was already remapped fails again, or
  • the GPU reaches 512 remappings for uncorrectable errors in total.

On Blackwell, a third attempt to remap an uncorrectable error in a bank can trigger HBM channel repair if a spare channel is available. For SRAM, the policy sets a threshold flag after more than four unique uncorrectable events in one address bank for parity-protected SRAM, or more than two for ECC-protected (SECDED) SRAM. NVIDIA’s triage guide adds that the field diagnostic usually has to be run before an RMA can start, and to ask your system vendor for instructions on running it.

What to collect before contacting support

NVIDIA’s triage guide asks for the OS and driver version, the Xid lines with the full log around them, the steps you have taken, nvidia-bug-report.sh output, Fabric Manager logs on HGX systems, and DCGM diagnostics logs. For Xid 48, we suggest you also add the nvidia-smi -q -d ECC,ROW_REMAPPER output from before and after any reset.

For the other memory codes, see our guide to Xid 94 and 95, or browse every code in the Xid error reference table.

Questions

Is Xid 48 a hardware fault?

It reports an uncorrectable GPU memory error. NVIDIA uses Field Diagnostic to determine RMA eligibility. For DRAM row remapping, the tool confirms the row-remapping failure flag. SRAM has different criteria.

What is the difference between a single-bit and a double-bit ECC error?

According to NVIDIA's nvidia-smi documentation, single-bit errors are corrected by the hardware and do not corrupt data. Double-bit errors are detected but cannot be corrected, so the data in that location is lost.

Do I need to reset the GPU after Xid 48?

Use NVIDIA’s first matching rule for the full burst. A successful row remap with no local impact can wait for a reset. With successful repair and local impact, the usual actions are application restart for Xid 94 and GPU reset for Xid 95. Some failed or unavailable repairs require return to the provider. Follow an accompanying Xid 154 for immediate recovery and keep the rule’s escalation step.

What are Xid 171 and Xid 172?

Newer drivers log one of them with Xid 48 to say where the error was: 171 for DRAM (the HBM memory) and 172 for on-chip SRAM. The location changes the action.

Sources