Files
nvdriver/reports/gpu-bus-stage-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

153 lines
12 KiB
JSON

{
"scope": "GV100 OBJBUS ConstructEngine, StatePreInitLocked, StateInitLocked, StateLoad and StatePostLoad bodies",
"original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
"implemented": [
"Core gpu::bus_stage::construct_engine is _nv018445rm: _nv018446rm calls the GV100 function at OBJBUS+358, _nv018545rm, which stores 0x8c0001f0 in OBJBUS+668, and returns 0. Then RmDisableFastFlush is read only when OBJBUS+467 is non-zero and clears it when the value is 1; RmXalEpEgressForward, when present, sets OBJBUS+469 to value != 0; RmFbhubRelaxedOrderingOverride is read into OBJBUS+5e4 and OBJBUS+5e8 records whether the read succeeded. The status is always success.",
"Core gpu::bus_stage::pre_init_locked is _nv018656rm with the GV100 function at OBJBUS+300, _nv018541rm: slot 168 of the GPU+1f80 object with third argument 0, then reads of 120070 (discarded), 120078, 22430, 22438 (bits 4:0 stored in OBJBUS+664) and 22434, and _nv034073rm(GPU, GPU+1fb8, r120078&1f, r22430&1f, r22434&1f, product of the last two) when GPU+1fb8 exists. The status is always success.",
"Core gpu::bus_stage::init_locked is _nv018653rm: status 0x40 after a log and an assert when GPU+4dd8 is above 2; otherwise the function at GPU+598 once per index with the record at OBJBUS+470+index*30, a log for each non-zero result, and success.",
"Core gpu::bus_stage::load is _nv018654rm; load_slot_188 is _nv018574rm (OBJBUS+188) including _nv018683rm (OBJBUS+1a8, register 24a070); load_slot_220 is _nv018640rm (OBJBUS+220) including _nv018450rm (OBJBUS+210), _nv018468rm (OBJBUS+370), _nv018641rm (OBJBUS+230) and _nv018636rm (OBJBUS+228, returns 0). OBJBUS+458, _nv018539rm, is empty.",
"Core gpu::bus_stage::post_load is _nv018655rm: the direct callee _nv045390rm returns 0, so _nv045461rm is not called; the GV100 function at OBJBUS+308, _nv018459rm, is empty; the body returns success."
],
"register_sequence_plain_physical_case": {
"conditions": "OBJBUS+5f0 = 0 (no BAR2 block), OBJBUS+460 = OBJBUS+461 = 0 (GV100 property binder values per reports/gv100-engine-hal-bindings.json), StateLoad flags bit 0 clear, register 1100 bit 3 clear. ConstructEngine and StateInitLocked and StatePostLoad access no register directly.",
"rows": [
{"stage": "StatePreInitLocked", "body": "_nv018541rm", "access": "read", "register": "0x120070", "use": "value discarded"},
{"stage": "StatePreInitLocked", "body": "_nv018541rm", "access": "read", "register": "0x120078", "use": "bits 4:0 to _nv034073rm when GPU+1fb8 exists"},
{"stage": "StatePreInitLocked", "body": "_nv018541rm", "access": "read", "register": "0x22430", "use": "bits 4:0 to _nv034073rm"},
{"stage": "StatePreInitLocked", "body": "_nv018541rm", "access": "read", "register": "0x22438", "use": "bits 4:0 stored in OBJBUS+664"},
{"stage": "StatePreInitLocked", "body": "_nv018541rm", "access": "read", "register": "0x22434", "use": "bits 4:0 to _nv034073rm"},
{"stage": "StateLoad", "body": "_nv018574rm", "access": "write", "register": "0x1140", "value": "OBJBUS+668 (0x8c0001f0 after ConstructEngine)"},
{"stage": "StateLoad", "body": "_nv018574rm", "access": "write", "register": "0x1900", "value": "0"},
{"stage": "StateLoad", "body": "_nv018574rm", "access": "write", "register": "0x1904", "value": "0"},
{"stage": "StateLoad", "body": "_nv018574rm", "access": "write", "register": "0x1908", "value": "0"},
{"stage": "StateLoad", "body": "_nv018574rm", "access": "write", "register": "0x190c", "value": "0"},
{"stage": "StateLoad", "body": "_nv018574rm", "access": "write", "register": "0x1910", "value": "0"},
{"stage": "StateLoad", "body": "_nv018574rm", "access": "write", "register": "0x1914", "value": "0"},
{"stage": "StateLoad", "body": "_nv018574rm", "access": "write", "register": "0x1918", "value": "0"},
{"stage": "StateLoad", "body": "_nv018574rm", "access": "write", "register": "0x191c", "value": "0"},
{"stage": "StateLoad", "body": "_nv018640rm", "access": "read", "register": "0x1100", "use": "bit 3 tested"},
{"stage": "StateLoad", "body": "_nv018468rm", "access": "write", "register": "0x1140", "value": "OBJBUS+668 | 0xe (0x8c0001fe)"},
{"stage": "StateLoad", "body": "_nv018641rm", "access": "read", "register": "0x9080", "use": "bits 23:13 tested"},
{"stage": "StateLoad", "body": "_nv018641rm", "access": "write", "register": "0x9080", "value": "(read & 0xff000000) | 0x2000", "condition": "only when bits 23:13 read as zero"},
{"stage": "StateLoad", "body": "_nv018641rm", "access": "read", "register": "0x88714", "use": "bits 3:0, 10:4 and 11"},
{"stage": "StateLoad", "body": "_nv018641rm", "access": "write", "register": "0x88714", "value": "(read & 0xfffff80f) | 0xcf", "condition": "only when bit 11 is set and ((bits 10:4) + 0x80) << (bits 3:0) is at most 0x45ffff"}
],
"other_cases": "With OBJBUS+5f0 set, 24a070 is written between the first 1140 write and 1900. With register 1100 bit 3 set, reads of 9084, 9088 and 1100 and a write of 1100 (value | 8) follow the first 1100 read. 1538 = 0x80004fec is written after 191c when OBJBUS+460 is set and word 4384 of the GPU+1ec0 object is 7, and again when _nv036619rm is non-zero and OBJBUS+461 is set. Registers touched inside the fixture-supplied callees (_nv030976rm, GPU+5c8, _nv039553rm, the GPU+1f80 slots, _nv019282rm, _nv019141rm, _nv034073rm) are not in this table."
},
"verification": {
"original_bus_stage_cases": 4254,
"cases_by_body": {
"_nv018445rm": 180,
"_nv018656rm": 10,
"_nv018653rm": 30,
"_nv018654rm": 4032,
"_nv018655rm": 2
},
"original_functions_executed": [
"_nv005953rm",
"_nv018445rm",
"_nv018446rm",
"_nv018450rm",
"_nv018459rm",
"_nv018468rm",
"_nv018539rm",
"_nv018541rm",
"_nv018545rm",
"_nv018574rm",
"_nv018636rm",
"_nv018640rm",
"_nv018641rm",
"_nv018653rm",
"_nv018654rm",
"_nv018655rm",
"_nv018656rm",
"_nv018683rm",
"_nv045390rm"
],
"fixture_supplied": [
"_nv053907rm",
"_nv053912rm",
"_nv049786rm",
"_nv047869rm",
"_nv046745rm",
"_nv046747rm",
"_nv046752rm",
"_nv034073rm",
"_nv030976rm",
"_nv043721rm",
"_nv040815rm",
"_nv039553rm",
"_nv036619rm",
"_nv019282rm",
"_nv019141rm",
"GPU+1f80 object slots 0x168 and 0x4e8",
"GPU slots 0x598 and 0x5c8"
],
"hooked_but_never_reached": ["_nv045461rm"],
"binder_selected_slots": {
"0x188": "_nv018574rm",
"0x1a8": "_nv018683rm",
"0x210": "_nv018450rm",
"0x220": "_nv018640rm",
"0x228": "_nv018636rm",
"0x230": "_nv018641rm",
"0x300": "_nv018541rm",
"0x308": "_nv018459rm",
"0x358": "_nv018545rm",
"0x370": "_nv018468rm",
"0x458": "_nv018539rm"
},
"branch_counts": "reports/gpu-bus-stage-original.json, key branch_counts",
"oracle_sha256": "17929365b4870a1e14f6a0eefacc67df258e21589870987ff57b26b5b080fee6",
"bus_stage_tests_passed_including_oracle": 6,
"workspace_tests_passed": 548,
"strict_clippy_and_format_passed": true
},
"relation_to_existing_modules": [
"mmu::bar2: the instance-block address (_nv043721rm) and aperture code (_nv040815rm) come from the descriptor that module plans; they are LoadServices::bar2_instance_address and bar2_instance_aperture and are fixture-supplied in the harness. bar2::encode_bind is the register 1714 word of _nv039307rm; the register 24a070 word of _nv018683rm has a different layout and is computed in bus_stage.",
"mmu::rm_tlb: _nv039553rm (kbusSendSysmembar) is LoadServices::nv039553, called twice and not reimplemented. Whether rm_tlb's flush covers all of _nv039553rm was not established here.",
"fifo::reset: its private tail already contains the same register logic as _nv018640rm, _nv018468rm and _nv018641rm (1100, 1140, 9080, 88714). It is fused to the FIFO reset and not callable on its own, and that file may not be modified, so bus_stage implements the sequence itself and the oracle proves it separately. The two copies agree on the 88714 predicate and value.",
"gpu::gv100_register_policy documents _nv030976rm; here it is LoadServices::nv030976."
],
"sub_steps_left_as_services": [
"_nv030976rm(GPU, 0x1000) and the function at GPU+5c8 (_nv030977rm)",
"GPU+1f80 object slots 168 and 4e8",
"_nv034073rm",
"function at GPU+598 (_nv030482rm), which fills the 48-byte records at OBJBUS+470",
"_nv043721rm, _nv040815rm, _nv039553rm",
"_nv036619rm (a jump to os_is_vgx_hyper)",
"_nv019282rm and _nv019141rm on the object at 11d8 of GPU+22c8",
"registry reads and diagnostics"
],
"binary_corrections_to_pseudocode": [
"The pseudocode shows the OBJBUS+188 call in _nv018654rm without arguments; the instructions leave rdi, rsi and edx untouched, so StateLoad's third argument reaches _nv018574rm as its flags word, whose bit 0 selects the GPU+1f80 slot 4e8 call.",
"The pseudocode declares _nv018640rm void; it tail-calls OBJBUS+228 and _nv018654rm tests that result. With the GV100 binding (_nv018636rm) it is always 0.",
"The pseudocode shows _nv018446rm() without arguments; it calls OBJBUS+358 with the object, which stores OBJBUS+668 = 0x8c0001f0. ConstructEngine therefore sets the value StateLoad writes to register 1140.",
"The pseudocode's third timeout read at '37000' is register 0x9088.",
"_nv018574rm uses only the low byte of _nv040815rm and of _nv036619rm; the fixture returns 0xffffff00 | value to prove it. Only two aperture bits reach register 24a070.",
"_nv018655rm: _nv045390rm is a seven-byte body returning 0, so the OBJBUS+5e0 test and _nv045461rm are dead with this binary.",
"_nv018653rm re-reads GPU+4dd8 on every iteration; the Rust takes it once, which is equivalent while the GPU+598 callee does not change it."
],
"limits": [
"None of these bodies is called from first open; no engine object set exists yet. The kernel module is unchanged by this increment.",
"Not reachable with the GV100 bindings and exercised by no oracle case: a non-zero result from OBJBUS+220 in _nv018654rm (implemented in Rust as the log 0x641000 and _nv046752rm(4, status, 0x64), untested against the original), a non-zero result from _nv018446rm in _nv018445rm (not implemented), and the _nv045461rm call in _nv018655rm (not implemented).",
"The property bytes OBJBUS+460, 461 and 467 are taken as inputs and exercised with both values; the property binder _nv005812rm was not run by this harness, and their GV100 value 0 is quoted from reports/gv100-engine-hal-bindings.json. With 467 = 0, RmDisableFastFlush is never read.",
"On a failed RmFbhubRelaxedOrderingOverride read the Rust leaves OBJBUS+5e4 unchanged, as the fixture does; whether the real _nv049786rm writes the destination on failure is not established.",
"The functions at GPU+598 and GPU+5c8, both GPU+1f80 slots, _nv030976rm, _nv034073rm, _nv039553rm, _nv019282rm and _nv019141rm are fixture-supplied; their own behaviour and register traffic are not established here. Which class the GPU+1f80, GPU+1fb8 and GPU+22c8 objects are is not established here.",
"The byte shared by the four _nv019282rm/_nv019141rm calls is modelled as passed in and returned; the fixture mutates it to prove the chaining. What the real callees do with it is not established.",
"The original reads word 4384 through GPU+1ec0 without a null check when OBJBUS+460 is set; the oracle always supplies that object and State carries the word unconditionally.",
"StateLoad flags were exercised with 0, 1 and 0xfffffffe; the meaning of bit 0 is not established. GPU+598 results 0, 0x1f and 0xffff; GPU+1f80 slot 4e8 results 0 and 0x56; registry failures 0x57 and 0x1a.",
"Register values are fixture-chosen (7 sets for Load, 5 for PreInit), not captured from hardware. Names given to registers in the Rust constants are descriptive, not from a manual.",
"A fixture-side provider failure (the outer Err) has no counterpart in the original and is covered by Rust unit tests only."
],
"tested_sources_sha256": {
"src/nvidia/src/gpu/bus_stage.rs": "4ce754d665ac9a20be7edfafe155d135c51071f3ddcd303b093d553f21d63440",
"tools/check_gpu_bus_stage_binary.py": "d483fcc47c7ed1c9e9126d3d962577eea9db8d1e7a08c6e2d28226fe02ce7692"
},
"reports": [
"reports/gpu-bus-stage-original.json",
"reports/gv100-engine-hal-bindings.json",
"reports/gv100-hal-stub-bodies.json"
]
}