Repository navigation
Fix ECC boot failures on 10GB CMP 170HX cards - #68
Closed
AlexBrandes wants to merge 1 commit into
Closed
AlexBrandes wants to merge 1 commit into
AlexBrandes wants to merge 1 commit into
Conversation
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.
Owner
|
NO SLOP! |
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). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
10de:20c2) cards.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.--ecc-10gb=BDF[,BDF...], backed byNVreg_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.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.
0xec8ff233,nvidia-smireported ECC enabled, and no Xid was logged.nvidia-smireported ECC N/A.cuda_memtestruns and a 600-secondgpu_burnrun completed with 0 errors on card A.For error injection I raised card A's HBM clock to 1647 MHz:
cuda_memtesterrors per runThe 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.pypassed on all 6 versions indriver/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.shpassed.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 is0. 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):
10de:2082), unlocked to 40GB; 2× CMP 170HX 8GB (10de:20c2), unlocked to 64GBAI used to help with this PR, but hopefully not slop. Happy to make changes if needed.