Files
nvdriver/reports/gpu-intr-table-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

104 lines
11 KiB
JSON

{
"scope": "GV100 host interrupt table builder _nv037657rm (Intr+0x310) with the slot functions it calls: _nv037672rm (Intr+0x318), _nv037647rm (Intr+0x330) and _nv037665rm (Intr+0x338), which tail-calls _nv037659rm (Intr+0x308)",
"original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
"implemented": [
"Core gpu::intr_table::build_table implements _nv037657rm: initialises the vector at Intr+0x430 (capacity 0x80, element size 0x10), rejects flag bit 0 with Intr+0x3f8 set or flag bit 1 with Intr+0x3f9 set with 0x40, stores the two flag bits to Intr+0x3f8 and +0x3f9, appends the fixed rows, reports (without failing) any fixed row whose PMC0 mask has more than one bit, appends the per-engine rows, trims the vector and, when Intr+0x3f2 is set, reports every row whose nonstall vector is valid and has bit 5. Every failure after the init destroys the vector.",
"static_rows_318 is the constant-zero _nv037672rm.",
"The fixed-row step implements _nv037647rm: on flag bit 1 it appends the 15 rows of .rodata+0x4d3bf60 (typed as FIXED_ROWS, all four columns); a failed append returns 0x51 and leaves the rows already appended.",
"The per-engine step implements _nv037665rm and all of _nv037659rm: engine count, scratch allocation of count*8 bytes, optional GPU+0x1ea0 slot 0x190 call when Intr+0x3f3 is set, one row per engine {engine index, mask 0, both vectors 0xffffffff} from the index lookup of column 8, the descriptor lookup of column 0, the interrupt-service lookup and its registration in Intr+0x15e8, all nonstall providers (flag bit 1) before all stall providers (flag bit 0), routing through Intr+0x2e0 and +0x2e8 when Intr+0x1569 is set, and the final mask 1 << (stall & 31), zero when Intr+0x3f1 is set or the stall vector is invalid.",
"Row is the typed 16-byte element: u16 engine at +0, PMC0 mask at +4, nonstall vector at +8, stall vector at +0xc."
],
"reused_from_existing_modules": [
"bringup::ExecutedStatus for executed callee statuses and mmu::engine_discovery::Column (MC_ENGINE, DESCRIPTOR) as the column argument of the engine lookup service.",
"The engine table is consumed only through the Services::engine_info and engine_count trait methods; the test model answers the physical case with the existing engine_discovery::translate(Selector::Index) and hardware_engine_count over EngineRecord::from_bytes, which matched the original _nv040256rm for all 15 engines and both columns.",
"gv100_stall_routes is not modified or duplicated for dispatch: a unit test checks FIXED_ROWS against StallRoutes::decode/encode (its private 15-row table holds only the engine and mask columns) and the final-mask rule against Route::device for 71 vectors with the leaf-tree flag clear and set. The mask is computed locally because Engine::new rejects indices >= 0xb3 while the original stores any 16-bit engine value.",
"Nothing in gv100_stall or gv100_nonstall is reached by the builder; nothing in intr_init is changed. intr_init's PreInitServices::build_table_310 is the call site this module can back."
],
"services_not_implemented": [
"Vector operations on Intr+0x430 (_nv060222rm init, _nv060220rm length, _nv060217rm append, element access through _nv060218rm/_nv060226rm/_nv060225rm, _nv060228rm trim, _nv060221rm destroy) are trait methods; the oracle executes the original helpers.",
"Engine count (_nv040331rm), the KernelFifo+0x1b8 lookup, scratch allocation and free (_nv052687rm, _nv052701rm), GPU+0x1ea0 slot 0x190, the engine object lookup and class cast (_nv030522rm, _nv005245rm, one trait method), registration in Intr+0x15e8, the vector providers (_nv013840rm with _nv013839rm or _nv013838rm), the routing slots Intr+0x2e0 (_nv037726rm) and Intr+0x2e8 (_nv037723rm) and diagnostics are trait methods.",
"The temporary array of service pointers is caller-supplied scratch; one shorter than the engine count is the outer Err(INVALID_ARGUMENT), not an executed status."
],
"binary_corrections": [
"The fixed rows of .rodata+0x4d3bf60 have nonstall and stall vector columns of 0, not the invalid vector 0xffffffff that per-engine rows start with.",
"Slot 0x330 appends the fixed rows on flag bit 1 only; a build with flags 1 produces no fixed rows.",
"_nv037659rm never uses its third argument (the object from _nv030544rm that _nv037665rm passes); the table is argument 4 and the flags argument 5. The pseudocode drops the provider argument (_nv013839rm for flag bit 1, _nv013838rm for flag bit 0) of _nv013840rm.",
"The failed append to Intr+0x15e8 (line 0x3dc) and the failed scratch allocation return 0x51 without calling _nv052701rm; every other exit of _nv037659rm frees the scratch array. The pseudocode shows the 0x3dc return but not that it is the only leak.",
"When Intr+0x1569 is set and flag bit 1 is set, Intr+0x2e0 is called for every engine with a service even if its nonstall vector is 0xffffffff; Intr+0x2e8 is called only for a valid stall vector.",
"The mask shift uses the low five bits of the stall vector (vector 32 gives mask 1, 0x47 gives 0x80).",
"A failed table init (0x465) returns without destroying the vector and without the 0x471 report; precondition and slot 0x330 failures report both their own line and 0x471. Intr+0x3f8 and +0x3f9 stay written when slot 0x330 or 0x338 fails."
],
"physical_gv100_table": {
"source": "reports/engine-cache-binary.json physical_gv100.table_bytes (16 records, 15 engines plus SOFTWARE), flags 3",
"executed": "original builder, slot functions, vector helpers and the original _nv040256rm lookup over the records",
"fixture": "engine count 15; every engine has an interrupt service; the stall provider returns column 7 of the engine's own record (the rule validated in reports/gv100-stall-provider-validation.json for these five descriptor classes); the nonstall provider stores nothing, so that column is the initial 0xffffffff and is NOT a statement about the real nonstall vectors",
"rows": [
"0: engine 0x4 pmc 0x00000100 nonstall 0x0 stall 0x0 (fixed)",
"1: engine 0x3 pmc 0x00002000 nonstall 0x0 stall 0x0 (fixed)",
"2: engine 0x1 pmc 0x00100000 nonstall 0x0 stall 0x0 (fixed)",
"3: engine 0x8 pmc 0x00200000 nonstall 0x0 stall 0x0 (fixed)",
"4: engine 0xe pmc 0x01000000 nonstall 0x0 stall 0x0 (fixed)",
"5: engine 0x2b pmc 0x02000000 nonstall 0x0 stall 0x0 (fixed)",
"6: engine 0x2 pmc 0x04000000 nonstall 0x0 stall 0x0 (fixed)",
"7: engine 0x7 pmc 0x10000000 nonstall 0x0 stall 0x0 (fixed)",
"8: engine 0xb pmc 0x20000000 nonstall 0x0 stall 0x0 (fixed)",
"9: engine 0xd pmc 0x40000000 nonstall 0x0 stall 0x0 (fixed)",
"10: engine 0x2d pmc 0x00080000 nonstall 0x0 stall 0x0 (fixed)",
"11: engine 0x2e pmc 0x00000200 nonstall 0x0 stall 0x0 (fixed)",
"12: engine 0x31 pmc 0x00400000 nonstall 0x0 stall 0x0 (fixed)",
"13: engine 0x9c pmc 0x00000000 nonstall 0x0 stall 0x0 (fixed)",
"14: engine 0x32 pmc 0x08000000 nonstall 0x0 stall 0x0 (fixed)",
"15: engine 0x54 pmc 0x00001000 nonstall 0xffffffff stall 0xc (GRAPHICS)",
"16: engine 0xf pmc 0x00000020 nonstall 0xffffffff stall 0x5 (CE0)",
"17: engine 0x10 pmc 0x00000040 nonstall 0xffffffff stall 0x6 (CE1)",
"18: engine 0x11 pmc 0x00000080 nonstall 0xffffffff stall 0x7 (CE2)",
"19: engine 0x41 pmc 0x00020000 nonstall 0xffffffff stall 0x11 (NVDEC)",
"20: engine 0x2f pmc 0x00008000 nonstall 0xffffffff stall 0xf (SEC2)",
"21: engine 0x26 pmc 0x00010000 nonstall 0xffffffff stall 0x10 (NVENC0)",
"22: engine 0x27 pmc 0x00000002 nonstall 0xffffffff stall 0x1 (NVENC1)",
"23: engine 0x12 pmc 0x00000400 nonstall 0xffffffff stall 0xa (CE3)",
"24: engine 0x13 pmc 0x00000800 nonstall 0xffffffff stall 0xb (CE4)",
"25: engine 0x14 pmc 0x00000004 nonstall 0xffffffff stall 0x2 (CE5)",
"26: engine 0x28 pmc 0x00000010 nonstall 0xffffffff stall 0x4 (NVENC2)",
"27: engine 0x15 pmc 0x00004000 nonstall 0xffffffff stall 0xe (CE6)",
"28: engine 0x16 pmc 0x00000001 nonstall 0xffffffff stall 0x0 (CE7)",
"29: engine 0x17 pmc 0x00000008 nonstall 0xffffffff stall 0x3 (CE8)"
]
},
"verification": {
"original_intr_table_cases": 457,
"cases_per_kind": {
"T: builder preconditions, original fixed rows": 114,
"R: fixed rows replaced in the emulated .rodata": 8,
"D: modelled engines": 332,
"V: physical V100 engine records": 3
},
"oracle_sha256": "9cce16f762abfbea22d6c725dc0c84590bc3b2bf35a209a8b11a92c2787724cb",
"original_functions_executed": 22,
"original_functions_hooked": 15,
"of_the_executed_observed_at_entry_for_the_trace": 5,
"branch_counts": "reports/gpu-intr-table-original.json field `branches`",
"module_tests_passed": 5,
"workspace_tests_passed": 552,
"strict_clippy_and_format_passed": true
},
"limits": [
"The builder is not called from first open; intr_init still takes Intr+0x310 as a trait method and was not modified. Every service result in the comparison is fixture-supplied.",
"The null-table branches (0x1f, lines 0x463 and 0x22) of _nv037657rm and _nv037647rm are not representable (the table is a service) and were not executed. The failure branch of Intr+0x318 (line 0x46e) cannot occur with the GV100 binding _nv037672rm, was not executed and is not implemented.",
"The two-bit-mask report (line 0x2fb) cannot occur with the original fixed rows; its 4 cases, and 4 of the bit-5 cases, replace three fixed rows in the emulated .rodata copy (kind R). The original file is not modified.",
"Vector growth past the initial 0x80 rows and allocation failure inside the vector helpers were not executed; append failure is injected at the entry of _nv060217rm and init failure at the entry of _nv060222rm. The trim status is ignored by the original and was always success here.",
"The vector helpers print their own diagnostic (module 0xef90c6e, line 0x6b) when _nv037659rm asks for the element one past the end with zero engines and a non-empty table; these 44 occurrences are counted in the original report and not compared, since the Rust builder does not make that out-of-range request.",
"_nv040331rm, _nv030522rm, the class cast and _nv013840rm with both providers are hooked, so the lock and provider logic inside _nv013840rm/_nv013838rm/_nv013839rm (including _nv013838rm resetting the stall vector before its callee) is represented only by what the fixture stores.",
"In the modelled cases the engine lookup is a fixture; the original _nv040256rm ran only in the 3 physical cases, always successfully.",
"The physical rows depend on the provider fixture described above; real nonstall vectors and whether every engine object exists on a live V100 are not established.",
"The scratch-too-short Err and unavailable-service Err paths have no original counterpart and are covered by unit tests only."
],
"tested_sources_sha256": {
"src/nvidia/src/gpu/intr_table.rs": "46b3d7946c6bbdea466c2050b6df6c9afb421393ddfd9ed0b7c97dc742f17d84",
"tools/check_gpu_intr_table_binary.py": "661c23badfa4816e3e9fce5cfe897e097cf8f1f30406de3e0c7154d5204e33a6"
},
"reports": [
"reports/gpu-intr-table-original.json"
]
}