mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 06:28:39 +00:00
- 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
125 lines
9.0 KiB
JSON
125 lines
9.0 KiB
JSON
{
|
|
"evidence_category": "original-instruction emulation, host tests and module build; nothing in this report was observed on hardware except the cited run reports",
|
|
"date": "2026-11-20",
|
|
"task": "Level 8 first hardware run: diagnose the Unsupported stop, establish the original's handling of a running PMU, implement it with an oracle",
|
|
"original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
|
|
"hardware_run_analysed": {
|
|
"report": "reports/hardware-first-open-b3-20261120T032846Z.json",
|
|
"module_sha256": "e7a5e15836f1077d73c7c528575158b77af60dfe1877043a6b9d20e04f41db85",
|
|
"variant_reached": "acr_load::Unsupported::PmuNotHalted",
|
|
"basis": "code walk of acr_load::init_locked/load/run_hs with the kernel's inputs: it is the only Unsupported variant reachable (properties GV100_CPU_COPY, one mapped request with id 1); it needs PMU CPUCTL bit 4 clear (observed 0x20) and scratch register 6 (0x1598) field 15:12 == 1. The scratch register was not logged by that build, so its value is inferred from the stop, not observed; 14 microseconds between notes 4143000c and 41430030 agree with a stop before any image write"
|
|
},
|
|
"original_behaviour": {
|
|
"a_acr_path": {
|
|
"evidence": "A (REA Ghidra listings of _nv052412rm, _nv052403rm, _nv052260rm; objdump of _nv016956rm+0x10f..+0x129 and +0x380), E (153 P rows, 3 L rows)",
|
|
"finding": "OBJACR Load calls PMU+2f8 _nv052412rm: OBJVBIOS+238 index 6 (R 0x1598), PMU halted test (R 0x10a100 bit 4). Not halted with field 15:12 == 1: PMU+2f0 _nv052403rm sets bit 9 of scratch register 1 (R/W 0x1584) and waits up to 10000 us for the halt through _nv052260rm (line 0x101; on timeout the PMU class vtable +508 capture and status 0x65). Load logs a nonzero status and continues. No reset, no halt request, no use of GPU+1ec8+160 or GPU+e00 on this branch"
|
|
},
|
|
"b_released_gpu": {
|
|
"evidence": "O (14 hardware run reports, levels 2 to 8), T, D, S by analogy, I",
|
|
"finding": "PMU CPUCTL 0x20 and SCTL 0x3002 at entry and after every level; the level-3 engine reset _nv043609rm does not change them. The original's unload pass _nv031040rm runs VBIOS command 0x19 through OBJVBIOS+130 _nv060114rm (D); the public source of a later chip names that step as putting the pre-OS applications back (analogy). That the 0x20 state is that application running, and that field 15:12 == 1 is its running state, are inferences"
|
|
},
|
|
"c_original_first_open": {
|
|
"evidence": "A (objdump of _nv060152rm+0xe0..+0x1e5 and _nv060116rm+0x39d), T (lines 24754-37278), D (launcher call site in _nv060146rm), E (launcher body _nv052043rm in the unload oracle)",
|
|
"finding": "The pre-stage devinit policy _nv060116rm calls OBJVBIOS+138 _nv060152rm, which runs VBIOS command 0xe on the PMU (OBJVBIOS+180 _nv060146rm -> PMU+2e0 _nv052043rm: PMU reset, load, start, wait for halt), checks it (OBJVBIOS+188 _nv059895rm reads scratch 5) and reads its reply from PMU DMEM (0x40 then 0x90 bytes). The transcript shows the wait, W 0x10a004 = 0x10, R 0x1594 and the two DMEM reads; the launcher's writes fall in the trace's lost events. This answers open question Q3 of first-open-spine.md. It is a query, not a devinit script run"
|
|
}
|
|
},
|
|
"implemented": {
|
|
"core": [
|
|
"gpu::acr_load::pmu_slot_2f8, pmu_slot_2f0 (replace Unsupported::PmuNotHalted); Services::vbios_slot_240, pmu_slot_508 (moved from acr_unload::Services), pmu_slot_2f8_status",
|
|
"gpu::acr_inputs::vbios_slot_240",
|
|
"gpu::pmu_ls_start: the PMU Load's own call of _nv052412rm no longer refuses a halted PMU with field 1"
|
|
],
|
|
"kernel": [
|
|
"kernel/acr_bringup.rs: notes 41430027..4143002e, 41430031, 41430044; one clock tick added to explicit wait intervals"
|
|
],
|
|
"tools": [
|
|
"tools/run_hardware_first_open.py: note names, unsupported-variant meaning, pmu_stop_request",
|
|
"tools/bringup_verdict.py: names an unsupported branch (22 cases)"
|
|
],
|
|
"levels_1_to_7": "unchanged: the edited code is reached only at bringup >= 8"
|
|
},
|
|
"oracles": {
|
|
"acr_load": {
|
|
"harness": "tools/check_gpu_acr_load_binary.py",
|
|
"cases": 730,
|
|
"cases_by_kind": {
|
|
"I": 224,
|
|
"H": 248,
|
|
"C": 35,
|
|
"R": 50,
|
|
"L": 20,
|
|
"P": 153
|
|
},
|
|
"oracle_sha256": "b2171e34245e8907ef2a1ec1d759ecc554abf5bc9c79bc5a56b5e43552be093c",
|
|
"first_573_rows_sha256": "cff0fd5f597ba1254b23e51961cbe9c76afa4587c726c159fb84eaf2b31c6ad6",
|
|
"first_573_rows_equal_previous_oracle": true,
|
|
"rust_test": "gpu::acr_load::tests::compare_original_acr_load (ignored test, passed)"
|
|
},
|
|
"pmu_ls_start": {
|
|
"harness": "tools/check_gpu_pmu_ls_start_binary.py",
|
|
"cases": 81,
|
|
"oracle_sha256": "4573c99a94e3e06e62f82833ffd17efb9a7b4d280f8e9f7ea1cedee185388616",
|
|
"first_70_rows_sha256": "83998b9a447d6a89948fe8997bb069625827e9c67e2a9298227fef0edd55239d",
|
|
"first_70_rows_equal_previous_oracle": true,
|
|
"rust_test": "gpu::pmu_ls_start::tests::load_matches_the_original_instruction_oracle (ignored test, passed)"
|
|
},
|
|
"acr_unload": {
|
|
"harness": "tools/check_gpu_acr_unload_binary.py",
|
|
"cases": 171,
|
|
"oracle_sha256": "ec05ccc1f296559ed03ee92353ebca06e673f537eb583aa55abe33f929128548",
|
|
"unchanged": true,
|
|
"rust_test": "gpu::acr_unload::tests::compare_original_acr_unload (ignored test, passed)"
|
|
}
|
|
},
|
|
"transcript": {
|
|
"test": "gpu::acr_load::tests::pmu_function_reproduces_transcript_lines_140590_and_147278 (ignored test, passed)",
|
|
"note": "the traced first open called the function twice with a halted PMU; the branch into PMU+2f0 has no transcript counterpart",
|
|
"other_transcript_tests_passed": [
|
|
"gpu::acr_load_bar2::tests::physical_transcript_is_reproduced_from_the_container",
|
|
"gpu::pmu_ls_start::tests::load_reproduces_transcript_lines_147279_to_147456"
|
|
]
|
|
},
|
|
"ignored_tests_run": {
|
|
"command": "cargo test -p nv-rs-core --lib -- --include-ignored acr_load acr_unload pmu_ls_start acr_inputs level_guard (with the oracle, firmware and transcript environment variables)",
|
|
"passed": 23,
|
|
"failed": 0,
|
|
"plus": "a_running_pmu_is_asked_to_stop_before_the_load and pmu_function_reproduces_transcript_lines_140590_and_147278, added afterwards: 2 passed"
|
|
},
|
|
"validate_all": {
|
|
"command": "bash tools/validate_all.sh",
|
|
"steps_passed": 30,
|
|
"steps_failed": 0,
|
|
"workspace_tests_passed": 742,
|
|
"workspace_tests_failed": 0,
|
|
"module_sha256": "cde5dc2767ac6ef2e68aa897eb511c8e57bc9e8715376b1be63d65d91b82315f",
|
|
"guest_module_sha256": "2f1f57e1fd4ece4aa4ac3419db71f58a551da27d64bd4dca09d0e4c4dc152e09",
|
|
"kernel": "5.15.0-203-generic",
|
|
"taint_after": 12289,
|
|
"taint_meaning": "proprietary, out-of-tree and unsigned module bits only; no oops bit",
|
|
"stuck_driver_tasks": 0
|
|
},
|
|
"edited_files_sha256": {
|
|
"src/nvidia/src/gpu/acr_load.rs": "8e0edbf2119474d485a13e5e49673e97b581b21b933c612938d1273b60e870e6",
|
|
"src/nvidia/src/gpu/acr_load_tests.rs": "a2d1b9fc845f71bbb779848204604bdf6c6e2222bc4a4c15a4ce3b84d14eb2b9",
|
|
"src/nvidia/src/gpu/acr_load_bar2.rs": "5d1050f5218faffd19ee8deee2ff49e2e877f2da2d63707baddcc954a9042809",
|
|
"src/nvidia/src/gpu/acr_load_bar2_tests.rs": "42b01e973ec6fac83172b2daf19db65aaf92455665170958800a2e1174b2b788",
|
|
"src/nvidia/src/gpu/acr_unload.rs": "1ee347df2c7b70179bd9c81130394bb681569a921a24b3dac99d28e57f804b1d",
|
|
"src/nvidia/src/gpu/acr_unload_tests.rs": "1b3ae6a8d01c4f815fe2ac6cd3b95244cd5cbe1143fcc3ea671e847ef2cc21a0",
|
|
"src/nvidia/src/gpu/acr_inputs.rs": "8566928bf9878dcd5a38151f14d7b59d3a95edea718f22069b326fe300d41962",
|
|
"src/nvidia/src/gpu/pmu_ls_start.rs": "7747de4ba2664679eccaf465bb11bbdc550a179d6e96aef993ea4f7740347faf",
|
|
"src/nvidia/kernel/acr_bringup.rs": "7364a319b2e4b5f683911cc6c0efa1e74034eb124383e106503e346c061c3ac4",
|
|
"tools/check_gpu_acr_load_binary.py": "78ea37f27fff474933da771a7ad020ec311b836f7fe19b3db3f2a4bd77276c8e",
|
|
"tools/check_gpu_pmu_ls_start_binary.py": "3d525cd40e30e1c93700f09ed4c4e011fb3bd1003c97223974f931d259669cc2",
|
|
"tools/run_hardware_first_open.py": "7074400a2b663c158a50a53b97d213e9265ef118d9d2b08d80b29e29c96f5515",
|
|
"tools/bringup_verdict.py": "3c5d98a0dd381aeb4ecf4095c68907c80728368a54cd3682be09cd8947796e84"
|
|
},
|
|
"not_done": [
|
|
"no hardware run: the branch, the application's response to the request, its timing and scratch register 6 afterwards are unobserved",
|
|
"level 9 was re-checked only at the PMU Load's first test; its other refusals were not walked against hardware data",
|
|
"0x80 (read by OBJMC+198) is not in the inventory; the write branch for bits 6:4 all set stays compared by pseudocode only",
|
|
"the launcher inside the VBIOS command executor is identified by pseudocode call site, not by an instruction listing of _nv060146rm",
|
|
"reports/gpu-acr-load-validation.json and reports/gpu-pmu-ls-start-validation.json still describe the previous oracles (573 and 70 cases); this report carries the new hashes"
|
|
],
|
|
"residual_risk": "After the PMU step the GPU returns to the original driver with its PMU halted even when the load stops before SEC2 starts. The completed path of level 8 already ends with a halted PMU, but no hardware run has yet handed the original a GPU in that state; what the original then does is known from instructions and emulation only (acr-load-implementation-notes.md section 12.4)."
|
|
}
|