Files
nvdriver/reports/gpu-mc-reset-validation.json
nvidia-driver-rs 4526e6a816 Baseline: validated 30/30 tree with passing Level 7 hardware regression
- Updated tools/post_reboot.sh to check kernel oops taint bit and stuck driver tasks instead of <86400s uptime
- Level 7 hardware regression passed on 0000:b3:00.0 (module 37e6fa430835eee2b426019db3ad70eeb7a9e9070c09c84bd9b973cf56cbe529, 107 inventory words, 0 static mismatches, CUDA baseline verified before and after)
- Updated .gitignore to exclude build archives (*.a, *.rlib), __pycache__, and raw trace dumps
2026-11-23 23:48:38 +00:00

106 lines
7.4 KiB
JSON

{
"scope": "GV100 OBJMC engine reset, the function at OBJMC+130 (_nv043609rm)",
"evidence_category": "instruction emulation",
"original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
"implemented": [
"Core gpu::mc_reset implements _nv043609rm with both branches. Every engine listed: PMC enable bits 8 and 12 are cleared and set again with 2 microsecond delays, OBJMC+1c0 and the Intr+16d0 interrupt-enable class are stored, 0xbfffffff or 0xffffffff (without bit 20 when GPU+52fc and GPU+6d29 are set) is written and the readback goes to GPU+de8. Otherwise the bits of the listed engines 0x54, 4, 2, 0xd and of the CE engines 0xf to 0x22 are cleared, the timer function is called with the delay argument times 1000, and the bits are set again and masked with the value read at entry.",
"The same module implements the bodies it reaches: OBJMC+138 _nv043605rm, +140 _nv043583rm, +148 _nv043623rm, OBJBIF+608 _nv017686rm and +610 _nv017682rm (bus master off and restore through the BAR0 configuration window at 0x88004), and _nv037727rm with Intr+3a0 _nv037574rm and Intr+150 _nv037527rm.",
"tools/check_gpu_mc_reset_binary.py runs the original instructions and writes target/gpu-stage/original-mc-reset.txt; the ignored test gpu::mc_reset::tests::compare_original_mc_reset compares trace, status and the five stored fields for every case."
],
"verification": {
"original_mc_reset_cases": 1843,
"full_reset_cases": 881,
"partial_reset_cases": 962,
"oracle_sha256": "5ec81af72aba3df44ea763cb5ae3089ebb0da6a733c482bd0e2366337440e628",
"oracle_regenerates_identically": true,
"original_functions_executed": [
"_nv006001rm",
"_nv017682rm",
"_nv017686rm",
"_nv017895rm",
"_nv017899rm",
"_nv017901rm",
"_nv031092rm",
"_nv031094rm",
"_nv031264rm",
"_nv037527rm",
"_nv037574rm",
"_nv037727rm",
"_nv043583rm",
"_nv043605rm",
"_nv043609rm",
"_nv043623rm"
],
"binder_selected_slots": {
"0x130": "_nv043609rm",
"0x138": "_nv043605rm",
"0x140": "_nv043583rm",
"0x148": "_nv043623rm"
},
"pointers_stored_by_harness_and_checked_against_bindings_report": {
"GPU+0x208": "_nv031264rm",
"GPU+0x210": "_nv031094rm",
"GPU+0x218": "_nv031092rm",
"OBJBIF+0x608": "_nv017686rm",
"OBJBIF+0x610": "_nv017682rm",
"Intr+0x3a0": "_nv037574rm",
"Intr+0x150": "_nv037527rm"
},
"fixture_supplied": [
"_nv053907rm register read and _nv053912rm register write",
"_nv049598rm delay",
"_nv047869rm, _nv046747rm, _nv046745rm diagnostics",
"_nv030608rm FIFO lookup and the FIFO function at +1b8 (CE engine descriptor 0x793ceb00|instance, input type 0, output type 6, to reset bit number)",
"timer function at +180 of the GPU+1f60 object (GV100 binding _nv059553rm)",
"bus function at +220 of the GPU+1f78 object (GV100 binding _nv018640rm, covered by check_gpu_bus_stage_binary.py and bus_stage::load_slot_220)",
"_nv052705rm memory fill, performed as such"
],
"memory_write_check": "After every case the harness compares the GPU, OBJMC, GPU+1e90, Intr, OBJBIF, GPU+1f70, GPU+2328 and list images with their state before the call; only GPU+96c, GPU+de8, OBJMC+1c0, word 2358 of the GPU+1e90 object and Intr+16d0 change.",
"physical_trace_reproduced": "With reads 88004=100506, 200=42001120, 200=42001120, 140=0, 200=1fecdff1 the original instructions and the Rust unit test first_open_reset_reproduces_the_physical_register_sequence both give R 88004, W 88004=100502, R 200, W 200=42000020, W 200=42001120, R 200, R 140, W 200=bfffffff, R 200, W 88004=100506, then the bus function, matching the traced V100 sequence up to the bus function's own accesses (R 1100, W 1140).",
"mc_reset_tests_passed": 4,
"workspace_tests_passed": 555,
"strict_clippy_and_format_passed": true
},
"callers_on_first_open": {
"function": "_nv000790rm",
"call_sites": [
"0xd6f23e",
"0xd6f478"
],
"arguments": "(gpu, OBJMC at GPU+1ea0, list built by _nv017895rm(list, 0xb3) with every engine set, delay argument 0)",
"context": "Both sites are skipped when GPU+1ea0 is null and are followed by the function at +168 of the vtable of the GPU+1f60 object and by GPU+96f = 1. The site at 0xd6f478 follows the VBIOS copy _nv059933rm and _nv060116rm when GPU+20c8 is present and GPU+9a0 is clear; the site at 0xd6f23e is the other arm. Confirmed in the disassembly; which arm ran in the physical trace was not determined."
},
"binary_versus_pseudocode": [
"The pseudocode shows locals relative to an unassigned RBP; the binary uses RBP as a second stack pointer (sub $0x30,%rbp). Order and values agree with the pseudocode.",
"The function at +220 is called with (gpu, bus object); the pseudocode shows one argument.",
"On the partial path the engine 0xd bit 5 is cleared through +148 and never set again, so the final write leaves it clear. The pseudocode shows the same single call; it is recorded here because it is easy to mistake for an omission."
],
"limits": [
"Production first open does not call the reset. The kernel module is unchanged by this increment.",
"Only the OBJMC binder ran. The OBJBIF, Intr and GPU-object pointers were stored by the harness from reports/gv100-engine-hal-bindings.json.",
"The class of the GPU+2328 object is inferred, not verified: byte 7f9 is set by the property initializers _nv052490rm to _nv052504rm of the PMU-derived class (engine ordinal 38), and the GV100 binding of that class's +330 is _nv052503rm, which stores 1 there. No object layout or live read confirms that GPU+2328 holds that object.",
"GPU+1e88 as OBJBIF, GPU+1f78 as OBJBUS, GPU+1f60 as OBJTMR and GPU+2110 as Intr are identified by the register accesses of their bound functions matching the physical trace (88004, 1100/1140, 140) and by earlier work in this repository, not by reading a GPU child table.",
"A null engine list is not modelled; the original helpers log and report the engine as not listed.",
"_nv017686rm returns 0x42 without writing when the configuration read fails. The GV100 read for index 4 cannot fail, so that arm is not reachable here and is not implemented.",
"The results of the timer and bus functions are discarded by the original; the fixture returned 0 and 0x56 and the trace did not change. Their own register accesses are outside this oracle.",
"The comparison with the physical trace covers register order and values only; the 2 microsecond delays are not visible in it."
],
"tested_sources_sha256": {
"src/nvidia/src/gpu/mc_reset.rs": "43f0aa18cafbd74b82339c3e2b64f4c9645b95ffeb7acb379d9cbf3e524455f2",
"tools/check_gpu_mc_reset_binary.py": "8b8a4cc50e1e60ae2f7cb881c3abb0e230c23d263cc4508c0b6476bad5044642"
},
"reports": [
"reports/gpu-mc-reset-original.json"
],
"independent_verification": {
"date": "2026-11-19",
"oracle_regenerated_identically": true,
"comparison_test_passed": true,
"production_wiring": "Reached from first open only with module parameter bringup>=3 (direct bring-up path), with every engine listed and delay 0. The partial-reset services have no provider and return NOT_SUPPORTED.",
"validation_list": "passed on kernel 5.15.0-203: fmt, clippy, 555 workspace tests, host fixture scripts, make modules, both codegen audits, guest and guest --iommu, result gate, live smoke",
"module_sha256": "0ee9c778d24647c3a3bfc0fe7d49f99db49d7517dee9199c7021170bc56628ad",
"guest_module_sha256": "e3eae66c068047284bd9047fb5d20f1a698eed0e86726f421ac366924e2008ac",
"hardware_execution": "none yet for this body"
}
}