Skip to content

Fix ECC boot failures on 10GB CMP 170HX cards - #68

Closed
AlexBrandes wants to merge 1 commit into
amoghmunikote:masterfrom
AlexBrandes:ecc-10gb-opt-in
Closed

AlexBrandes wants to merge 1 commit into
amoghmunikote:masterfrom
AlexBrandes:ecc-10gb-opt-in

Conversation

@AlexBrandes

@AlexBrandes AlexBrandes commented Nov 10, 2026 •

Copy link
Copy Markdown

Summary

Current master runs the 8GB ECC sequence on every 10GB CMP 170HX, and both 10GB cards I tested fail GSP boot with it. One card runs ECC with a 10GB-specific register order but the other fails whenever ECC is armed, so this PR leaves ECC off by default, adds a per-GPU opt-in for cards that can use it, and leaves 8GB behavior unchanged.

Changes

  • Run the existing ECC sequence only on 8GB (10de:20c2) cards.
  • On an opted-in 10GB (10de:2082) card, arm ECC before the CFG1/LMR write, with the FBPA/LTC controls first and the DRAM ECC override (0x82380c) last. Report ECC only when FEAT_READOUT bit 16 is set.
  • Add --ecc-10gb=BDF[,BDF...], backed by NVreg_RegistryDwordsPerDevice. The installer validates each BDF, rebuilds the initramfs, and avoids loading the driver until the next boot. It stops rather than replacing or ambiguously combining an existing per-device setting.
  • On 610.x, parse per-device options again after the GPU joins the device list so the last-probed GPU receives its key with the default NVreg_GpuInitOnProbe=0. NVIDIA 615.x already passes the current GPU to the parser.

Usage: sudo ./install.sh --ecc-10gb=0000:81:00.0, followed by a cold reboot.

Testing

I tested 2 10GB cards and 2 8GB cards in the same host with NVIDIA open 610.43.02.

  • 10GB card A, opted in: GSP booted with 40960 MiB, FEAT_READOUT was 0xec8ff233, nvidia-smi reported ECC enabled, and no Xid was logged.
  • 10GB card B, not opted in: booted with 40960 MiB and nvidia-smi reported ECC N/A.
  • 10GB card B, opted in: failed GSP boot with Xid 1, 119, and 140. The other 3 cards still booted, including card A with ECC enabled.
  • Both 8GB cards were unchanged at 65536 MiB with ECC enabled.
  • At the stock HBM clock, repeated cuda_memtest runs and a 600-second gpu_burn run completed with 0 errors on card A.

For error injection I raised card A's HBM clock to 1647 MHz:

ECC HBM temperature cuda_memtest errors per run Driver result
Off 63 to 72 °C 2025 to 2229, all single-bit A later run ended with Xid 1, 119, and 154
On 59 to 64 °C 3, 6, 0, and 3; the remaining errors included multi-bit words No Xid

The hardware test build also had the PLM entries needed for HBM overclocking and the signature-size guard from #67. The card B failure run had the 610.x per-device parser call now included in this PR.

pytest tests/test_patches.py passed on all 6 versions in driver/VERSION. The modules built on 610.43.02 and 615.78.08. I did not load the 615.78.08 build on hardware. shellcheck install.sh remove.sh driver/build.sh tools/passthrough-setup.sh passed.

Limits: I tested only 2 10GB cards, both on 610.43.02. On 610.x with NVreg_GpuInitOnProbe=1, the last-probed GPU still starts before the compatibility parse; the default value is 0. A card that fails ECC enters RM's bootstrap retry, which can hit the signature overflow fixed by #67 on current master.

Hardware tested on (if applicable):

  • GPU variant: 2× CMP 170HX 10GB (10de:2082), unlocked to 40GB; 2× CMP 170HX 8GB (10de:20c2), unlocked to 64GB
  • PCIe slot / host: Intel Z890 board; 8GB cards on CPU lanes, 10GB cards on chipset M.2 slots through OCuLink; all Gen2 x4
  • Kernel / OS: Ubuntu 24.04.4, kernel 7.0.0-31-generic, NVIDIA open 610.43.02

AI used to help with this PR, but hopefully not slop. Happy to make changes if needed.

The 8GB ECC sequence crashes 10GB cards (0x2082) at boot (GSP fault or
Xid 140). Of two 10GB cards tested, one runs ECC and the other fails GSP
boot whenever ECC is armed.

- ecc-enable: run the existing sequence on 8GB cards only. On a 10GB card,
  arm ECC only when RmCmpHbmEcc=1 is set for that GPU, before the CFG1/LMR
  write, with the DRAM ECC override last. On 610.x, parse per-device keys
  again after the GPU joins the device list, so the last-probed GPU gets
  its keys with the default NVreg_GpuInitOnProbe=0 (615.x passes
  current_nv).
- ecc-fbpa-static, ecc-reporting: on 10GB cards, only when ECC_DRAM
  (FEAT_READOUT bit 16) is set.
- install.sh: --ecc-10gb=BDF[,BDF...] writes the per-device key before the
  initramfs rebuild, or stops if an existing NVreg_RegistryDwordsPerDevice
  lacks it or is set in more than one file. While any RmCmpHbmEcc key is set, the install neither reloads
  the driver nor starts the passthrough service, so ECC first applies at
  the next boot. remove.sh deletes the key.
@amoghmunikote

Copy link
Copy Markdown
Owner

NO SLOP!

@AlexBrandes

Copy link
Copy Markdown
Author

@amoghmunikote Want me to open an issue instead? The latest release is broken on 10 GB cards due to the ECC changes in that release. This PR fixes it for two different configurations of 10GB hardware (one works, other needs it switched off).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants