Files
nvdriver/reports/first-open-integration-step1-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

121 lines
10 KiB
JSON

{
"evidence_category": "instruction emulation of the original object (oracle) and modelled Rust tests; no hardware execution, no GPU access",
"date": "2026-11-19",
"scope": "step 1 of analysis/closed-driver-580/first-open-integration-plan.md: the per-device engine set and stage dispatcher in core, with the verified bodies of the first engines as callbacks. Production first open and direct_bringup are unchanged: nothing in the kernel crate uses the new modules, and the default path makes no new register access.",
"original": {
"object": "nv-kernel.o_binary",
"sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b"
},
"implemented": {
"gpu/engine_set_tables.rs": "generated by tools/gen_engine_set_tables.py from analysis/closed-driver-580/first-open-spine.json: CLASSES (95 child fields with their 14 stage slots) and ORDER (100 entries); six slot bodies corrected to what the constructed objects hold (Pmu x4, OBJDPAUX x2)",
"gpu/engine_set.rs": "EngineSet (four lists as _nv030646rm builds them, engine states Constructed / Absent(NotConstructed | Omitted | Missing | PreInitNotSupported), tombstone removal of _nv030262rm), Slot, Binding, Bodies and Locks traits, Dispatcher (default slots return 0 without a provider; an unavailable body is an outer Err and is recorded as Callback{descriptor, slot, wrapper, body}; pre_init = _nv026850rm, init = _nv026844rm). no_std, no unsafe",
"gpu/engine_bodies.rs": "FirstEngines: fifteen verified GV100 bodies as callbacks (OBJMC PreInitUnlocked, InitUnlocked, InitLocked, Load; KernelMc InitLocked, Load; Intr PreInitLocked, InitUnlocked, InitLocked, Load; OBJTMR InitLocked; OBJBUS PreInitLocked, InitLocked, Load, PostLoad), matched by class, slot and body symbol; every other callback is an outer Err"
},
"oracle": {
"tool": "tools/check_gpu_engine_dispatch_binary.py",
"file": "target/gpu-stage/original-engine-dispatch.txt",
"sha256": "052ef95ad8c0f8d9053d569ab45f61a8da4d74aa284aea9b4aed928536ffade3",
"regenerated_identically": "three runs gave the same file",
"lines": 2983,
"cases": [
"first-open (every callback returns 0)",
"pre-init-not-supported (Graphics PreInitLocked and OBJCIPHER PreInitUnlocked return 0x56)",
"pre-init-unlocked-error",
"pre-init-locked-error",
"init-not-supported (Therm InitLocked, ClockManager InitUnlocked)",
"init-unlocked-error",
"init-locked-error",
"pre-load-not-supported",
"pre-load-error",
"load-not-supported",
"load-error",
"post-load-not-supported",
"post-load-error"
],
"method": "the GPU object is built by the original's core init, probe and gpumgrAttachGpu (gpu_world of tools/check_rmapi_binary.py, imported unchanged). On it the original _nv031220rm, _nv031215rm and _nv031217rm (with _nv031219rm inside) execute from their entries; the per-engine dispatchers _nv026850rm and _nv026844rm and the GPUs lock are original code. Every non-default PreInit/Init/PreLoad/Load/PostLoad slot of every engine's stage table is replaced by a recorder; IsPresent bodies run as original code. Register reads are answered with the first value the physical transcript of 0000:b3:00.0 holds for the register; writes are recorded, not applied.",
"first_open_callbacks": {
"IsPresent_non_default": 13,
"PreInitUnlocked": 3,
"PreInitLocked": 26,
"InitUnlocked": 23,
"InitLocked": 53,
"PreLoad": 13,
"Load": 49,
"PostLoad": 22,
"total_stage_callbacks": 189
},
"all_cases_stage_callbacks": 1664,
"constructed_set": "81 list entries; no object for KernelNvlink (0xce6818), OBJDISP (0xd1755e), OBJHDA (0xd3bfb4) after the attach; KernelDisplay destroyed by the sweep because GPU+128 (_nv030195rm) answers no for it"
},
"comparisons": {
"gpu::engine_set::tests::tables_equal_the_constructed_objects": "all 14 slots of the 60 constructed engine classes: 300 non-default slots equal in wrapper, body and class-block/HAL-slot kind; default body symbols equal; the stage defaults return 0",
"gpu::engine_set::tests::lists_equal_the_constructed_gpu": "the four lists built from ORDER and the GV100 instance counts equal GPU+da0/+db0/+db8/+da8 of the constructed object, 81 entries each",
"gpu::engine_set::tests::the_passes_reach_the_callbacks_in_the_original_order": "gpu::base_pre_init::pre_init, gpu::bringup::initialize_engines and gpu::base_load::load (with gpu::base_post_load::post_load) run over the dispatcher with a recording provider: the same sequence of IsPresent calls, destroys, list deletions, callbacks (descriptor, slot, wrapper, body, lock held, status) and pass statuses in all 13 cases, and the same final lists",
"gpu::engine_set::tests::a_dispatch_without_the_gpus_lock_calls_nothing": "_nv026850rm and _nv026844rm without the lock: status 0x2f, assertion sites 0xc6 and 0xf6, no callback",
"tests without an oracle": "a missing body is named and is not a status; an absent engine has no callbacks; list shape; the fifteen plugged bodies answer and the other 186 non-default slots of the seven stage slots are refused with their callback recorded; a body symbol of another chip is not answered; the lock is dropped only for an Unlocked body"
},
"instruction_level_readings": {
"_nv026850rm": "REA Ghidra listing, evidence ev_75f97ea76f8f716f...: matches Dispatcher::pre_init including the branch for a failed re-acquisition, which no oracle case reaches",
"_nv031833rm": "REA Ghidra listing, evidence ev_007652e36b514b52...: the repeated poll of part A"
},
"findings": [
"Removed engines are replaced by descriptor 0xb33b1500 in all four lists (this is the class base_pre_init.rs skips), so list positions never shift.",
"The default IsPresent _nv026838rm is not a constant: it returns GPU+128 (_nv030195rm) of the engine descriptor; KernelDisplay is removed through it.",
"Byte +0x48 of an engine (which makes the sweep destroy it without asking) is 0 for every engine of the constructed GV100.",
"Every stage wrapper is a tail-jump thunk of one of two shapes (class block slot, or a HAL slot of the object); the harness resolves the body per object by interpreting the thunk.",
"The spine dossier's JSON names bodies for Pmu ConstructEngine, PreInitLocked, Unload and StateDestroy that the constructed object does not dispatch to (_nv051982rm, _nv052516rm, _nv052517rm, _nv004598rm are the ones it does), and still has the uncorrected OBJDPAUX InitLocked and StateDestroy.",
"The emulated attach leaves no KernelNvlink object, while the live capture of the worklist has it; the cause is not established."
],
"not_established": [
"the engine list of a physical V100 at the start of PreInit (KernelNvlink)",
"anything about a callback body beyond its existing oracle; no body ran on hardware through the dispatcher",
"the PF wrappers _nv031221rm and _nv031218rm over a constructed GPU, and the unload and destroy passes",
"the class-database part of _nv030262rm and of the sweep (not modelled in the engine set)",
"the non-engine services of the passes: in the Rust comparison they are a test fixture answering as a lone physical GPU; in the oracle they are original code"
],
"part_a": "reports/hardware-first-open-b3-level7-analysis.json, key review_2026_11_19_one_read_and_read_backs",
"makefile_check_lines": [
"python3 tools/gen_engine_set_tables.py --check",
"$(REA_PYTHON) tools/check_gpu_engine_dispatch_binary.py",
"NV_RS_ENGINE_DISPATCH_ORACLE=... cargo test -p nv-rs-core --lib gpu::engine_ -- --include-ignored"
],
"sha256": {
"src/nvidia/src/gpu/engine_set.rs": "6fc6ff8ab4304bb33c424bc7b7be31c089a0b4e440b53d6d9179a014af540823",
"src/nvidia/src/gpu/engine_set_tables.rs": "ccc82c1c17b28a18100f3ca2a516fa494ccb6696bc38bb75934c87b564c7ccd5",
"src/nvidia/src/gpu/engine_bodies.rs": "26b214a91a65df059df7dd2937d130083c3f44046fe7feaa66ab62d91e3c2939",
"src/nvidia/src/gpu/engine_set_tests.rs": "a4396b19bbac7a18898372b87d580d1dcf314bcc90b2bb1f5a827cc6cb281aed",
"src/nvidia/src/gpu/engine_bodies_tests.rs": "12c724fc7f529c6e0c8da2265c44862d83e8828f49eff13d2718a3f677db7dd9",
"tools/check_gpu_engine_dispatch_binary.py": "e3dc7883b2bfd213c11e05c0398d3f7353dbbdf9907eff8af20c642afad9307e",
"tools/gen_engine_set_tables.py": "5c8b99289ddc45ef2cbb9c736dc878d0c0823a31d25671b060407266513feaa5",
"analysis/closed-driver-580/first-open-integration-plan.md": "2aa8d635b4e5c2bf8f80e9053a033b645e298105cc7ea0bb1bf838f8b71822df",
"src/nvidia/kernel/gr_bringup.rs": "5b15fbae306fe3131cecd6b7a7b53c191e0e6a6788ed6409b89fd03c58eafcfd",
"src/nvidia/src/gpu/gr_init_tests.rs": "ad94114ebcd8a76a53a0b3f22b61eef3c9342101fbb8d04374424d5be81a7772",
"tools/run_hardware_first_open.py": "d8e987318af65326e99fb7e3fc8ee425059785c9086286d936beccd0e11a6364",
"target/gpu-stage/original-engine-dispatch.txt": "052ef95ad8c0f8d9053d569ab45f61a8da4d74aa284aea9b4aed928536ffade3"
},
"validation": {
"tool": "tools/validate_all.sh",
"runs": [
{
"when": "2026-11-19 22:46-22:52 UTC, after parts A and B",
"steps_passed": 30,
"steps_failed": 0,
"workspace_tests_passed": 700,
"nvidia_rs_ko_sha256": "42f120634e19ddafac484f40b6daf0edbd14214746870790f2d2f273b0862939",
"guest_module_sha256": "917b6b57051956cf0273e067cea08cedb90221710b9826fb8c49e43a6aba6ae1"
},
{
"when": "2026-11-19 about 23:10-23:17 UTC, after the review fixes of reports/bringup-level8-9-code-review.md (final state)",
"steps_passed": 30,
"steps_failed": 0,
"workspace_tests_passed": 708,
"nvidia_rs_ko_sha256": "16bb434b1b1565a4f230e9388e0cc12a7a03f1621ee16274319d4917ab26d934",
"guest_module_sha256": "99f6f7b0ad69b3d1ecaf1f8d1eb1e65f851dd919c0d2b34fdb35340a00d0edf5"
}
],
"vermagic": "5.15.0-203-generic SMP mod_unload modversions",
"note": "other agents were editing src/nvidia/src/rmapi and src/nvidia/src/uvm during the session; each module contains their files as they were at that time. The tree formatted and linted cleanly at the start of both runs.",
"ignored_oracle_tests": "with --include-ignored: gpu::engine_ 10 passed; gr_init 8; gr_level 5; pmu_fbq 8; pmu_events 2; pmu_irq_service 5; pmu_unload 3; acr_unload 2; acr_load 6 passed (the filter also selects acr_load_bar2's vaspace test, which needs another oracle variable and fails for that reason under this Makefile line, as before); pmu_ls_start 6 passed (its unbind test likewise needs another variable)"
}
}