Files
nvdriver/reports/gpu-acr-unload-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

122 lines
18 KiB
JSON

{
"scope": "GV100 (Tesla V100) OBJACR Unload (_nv016962rm -> OBJACR+130 _nv016972rm): the run of the second HS ACR image, which clears the protected-region registers the Load step leaves set. Core module gpu::acr_unload. Kernel level 7 exists only as a refusing level (src/nvidia/kernel/acr_bringup.rs): no register access, no hardware was touched.",
"original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
"evidence_classes": "A = instructions read (REA Ghidra procedure_assembly or objdump of the symbol), D = decompiler pseudocode only, T = physical transcript, E = original instructions executed by the harness, I = inference.",
"evidence_limit": "The physical transcript (target/trace/b3-bar0.txt) contains no unload: the capture ended first. Everything about the unload run itself is instruction-emulation evidence only. Whether the PMU accepts the image and clears the registers on hardware is not observed anywhere in this repository.",
"corrections_to_the_earlier_description": [
"The unload image does not run on SEC2. OBJACR+38b is 0 on a GV100 (_nv005809rm) [E: property byte read in the harness; A: cmpb $0x0,0x38b(%r15) at 0x6baf1be selects the PMU function at +2e0], so _nv016972rm calls PMU+2e0 (_nv052043rm) with (descriptor, 4, 1, 1, 0, 1, 6, 0, 0) and the image runs on the PMU Falcon (0x10a000) after a PMU reset.",
"The image is not uploaded to framebuffer memory and no Falcon address space, instance block or BAR2 mapping is used: it is copied into a system-memory allocation (descriptor space 1, owner tag 0xa7) and the boot descriptor carries DMA index 4 with the allocation's bus address [A: mov $0x1,%r9d before _nv043694rm; movl $0x4 at descriptor+0x20].",
"The status check OBJACR+158 (_nv016730rm) is called with type 6 and reads MAILBOX0/MAILBOX1 of the SEC2 Falcon (0x87040, 0x87044), not the PMU's, because OBJACR+37f is 1 [E]. With OBJACR+37f clear it reads 0x10a040 and 0x10a044 [E].",
"The original does not read the region registers back after the unload run [E: no 0x100cd4 access after the start in any case].",
"The image needs no descriptor of regions; its signature records come from another bundle (OBJACR+2e0 _nv016844rm, 0x1141058) than the image and layout (OBJACR+2d0 _nv016853rm, 0x1141350) [D for the getter choice in _nv016905rm type 6; E for the result]. Placing the signature leaves the image bytes equal to the container record."
],
"function_chain": {
"Unload": "_nv016962rm [A]: GPU+91d set, or GPU+69e4 == 1 with byte +1eb of the GPU+22c0 object clear, skips OBJACR+130; a zero status clears OBJACR+37d; then the function at +1b8 of the GPU+20c8 object when its byte +2d8 is set",
"OBJACR+130": "_nv016972rm [A]: OBJACR+391 -> _nv016970rm (not implemented); PMU+9a2 set -> 0; gate _nv016925rm [A] (OBJACR+37b clear, region 1 through OBJACR+150 _nv016745rm: end != 0 and start <= end); _nv016965rm (PMU+3d8 _nv052308rm reads 0x10ac08, OBJACR+370 _nv016945rm = 0); OBJACR+390 with GPU+20c8 +270 true -> SEC2 path (not implemented); _nv043694rm(size rounded to 0x100, alignment 0x100, contiguous, space 1, cache 1 or GPU+252c when GPU+914, flags 0), tag 0xa7, _nv043691rm; section, _nv043739rm, word copy, _nv043773rm, section; _nv043721rm(descriptor, 1, 0); boot descriptor; GPU+22c8 child +178 when byte +234; GPU+1e70 +100 when byte +108; MemorySystem+f10 when +8ccf; PMU+2e0; on status 0 OBJACR+158 with type 6; PMU+f60 = 0x14; _nv043704rm, _nv043699rm",
"PMU+2e0": "_nv052043rm [A for the call order, E]: OBJMC absent -> 0x56; vtable +60 of the PMU+b08 object (_nv004583rm -> _nv051835rm: state word above 1) -> 99; PMU+a00+60 _nv052224rm (constant 1); PMU+2d0 _nv052261rm (reads 0x10a040 once); boot loader records PMU+17d0/+17d8; Falcon+3a7 and +3aa saved and cleared; OBJMC+198 _nv043581rm; reset _nv052192rm(\u2026, 0) then (\u2026, 1); _nv052197rm(\u2026, 0); PMU+278/+280 (0x10ae00 = 4, 0x10ae04 = 0, 0x10ae08 = 4, 0x10ae0c = 5, 0x10ae10 = 6); 0x10a10c bit 0 cleared; PMU+c20+70 _nv052291rm (0x10ae24 |= 0x80); descriptor to DMEM (_nv028452rm -> _nv028457rm); 0x10a108; boot loader to IMEM (_nv028523rm); 0x10a104 = entry << 8; start _nv052256rm (0x10a100 |= 2); PMU+42f = 1, PMU+f60 = 6; wait _nv052647rm (_nv052260rm, line 0x101; on halt _nv052215rm writes 0x10a004 = 0x10 and clears +42f)",
"PMU reset": "_nv052192rm [E; D for structure]: only with GPU+915 set and GPU+918 clear. Hold: _nv052223rm (0x10a3c0 bit 0), _nv052197rm (0x10a014 = 0xffff), with GPU+4de4 the idle wait, the halt request _nv028516rm/_nv028520rm (section, _nv041589rm -> GPU+1ec8 +160 when GPU+e00 == 0, 0x10a0a4 = 2, wait for bit 9, line 0x5b), _nv052194rm (GPU+7c0 _nv030971rm reads 0x1221fc, _nv052248rm 0x10a3c4 bit 4 else 0x1b, _nv052252rm 0x10a3c0 = 1 and ten reads), wait for 0x10a3c0 bit 0 (line 0xc4). Release: _nv052194rm (0x10a3c0 = 0 and ten reads), Falcon+1a0 _nv028785rm (scrub wait), _nv052188rm (GPU+5c8 _nv030977rm and _nv030976rm on table 0x10a000), idle wait _nv052213rm (0x10a04c, _nv031481rm per busy reading, line 0x16b, PMU vtable +508 on timeout), read of register 0, _nv052197rm(\u2026, 1) (0x10a014 = 0xffff, 0x10a01c = 0xff81ff52, 0x10a010 = 0xf3)"
},
"first_open_with_regions_already_set": {
"answer": "The original clears them itself: OBJACR PreInitLocked (_nv004038rm -> _nv016961rm) calls the same OBJACR+130 (_nv016972rm) as Unload. Its gate reads region 1; when the region reads as set the unlock image is run on the PMU during PreInit, before any Init or Load. It neither refuses nor reuses the region.",
"evidence": [
"A (REA Ghidra procedure_assembly of _nv016961rm): calls OBJACR+108, +118, +100 in that order, returns at the first nonzero status, then tests cmpb $0x0,0x37b and cmpb $0x0,0x391 and tail-calls OBJACR+130 with a zero third argument; its status is the body's result.",
"E: _nv016961rm executed in the harness with the PMU feature bytes of PMU+330 (_nv052503rm) applied: with the transcript's region readings it performs exactly the eight accesses of transcript lines 37715-37722 and nothing else; with region 1 set its event list (251 events) is identical to the default Unload case; when the PMU never halts it returns 0x65.",
"T: transcript lines 37715-37722 are that gate at the traced first open (0x100cd4 indexes 2, 3, 0, 1 read 0xfffe02, 0x3, 0x8000000, 0x8000001: end below start, region empty), so nothing ran.",
"D: OBJACR+100 (_nv016960rm) sets OBJACR+37b, which disables the gate, when the PMU object is absent, PMU+d8c is not 0, PMU+43c and OBJACR+388 are both clear, or the PMU ucode address space word is not 2. On the traced V100 none of these holds (the gate ran) [T].",
"D: what a failed PreInit unlock does to first open (the stage pass above the body) was not executed."
],
"consequence": "A GPU returned to the original driver with region 1 still set is handed to the same unlock run at the original's next first open. If that run also fails, the body returns its status to the PreInit pass; a secondary bus reset or power cycle is then the remaining recovery. Region 2 is not examined by the gate."
},
"evidence": [
{
"evidence_category": "instruction emulation",
"harness": "tools/check_gpu_acr_unload_binary.py",
"what_ran": "tools/check_gpu_acr_load_binary.py executed unchanged up to the end of its traced V100 case (OBJACR InitLocked, OBJLSFM Load, OBJACR Load with the transcript's values); then, from that emulated state, the image preparation _nv016905rm(gpu, acr, 6, OBJACR+3c0) as the constructor calls it, and _nv016962rm per case.",
"original_functions_first_executed_on_the_default_case": 39,
"cases": 171,
"oracle": "target/gpu-stage/original-acr-unload.txt",
"oracle_sha256": "ec05ccc1f296559ed03ee92353ebca06e673f537eb583aa55abe33f929128548",
"oracle_regenerates_identically": true,
"original_unload_image": {
"file": "target/gpu-stage/original-acr-unload-image-gv100.bin",
"bytes": 6144,
"sha256": "47ad00b8cf61cd80f83b582bdf6b7a2811920d815cff81b87cfddcb28b7a5eb1",
"what": "The bytes the original copied into the system-memory allocation with bit 20 of 0x10ac08 clear: container record tag 0x26 of bundle 0x1141350 after the signature placement (equal to the record). With the bit set the image is tag 0x24 (SHA-256 a648ed3d99469afccbe2a95511b03bfee7998ac7e05edb4678d2e2aa315ef537)."
},
"default_case": {
"register_accesses": 227,
"boot_descriptor_words": "0, 0, 0, 0x800, 0, 0, 0, 0, 4, bus address low, bus address high, 0, 0x100, 0x100, 0x1100, 0, bus address + 0x1200 (low, high), 0x600, 0, 0; words 1 to 3 and 19, 20 are never stored by the original (0, 0, 0x800 and 0, 0 are what the emulated stack held)",
"boot_loader": "512 bytes of descriptor 0x114fb18 at IMEM 0x100fe00 with tags 0x100, 0x101; boot vector 0x10000",
"status": 0
},
"comparison_test": "gpu::acr_unload::tests::compare_original_acr_unload (ignored; NV_RS_ACR_UNLOAD_ORACLE, NV_RS_ACR_UNLOAD_IMAGE, NV_RS_GV100_FIRMWARE)",
"comparison_result": "171 of 171 rows: executed status, the ordered event list (register reads and writes, delays, time calls, sections, every memory service call with its arguments, the upload extent, every cross-object service), OBJACR+37d, PMU+f60, +42f, +f34/+f38, Falcon+3a7/+3aa and the SHA-256 of the uploaded bytes. The image of every fuse-clear case that uploads is also compared byte for byte (6,144 bytes).",
"covered_variation": "Wrapper: GPU+91d, GPU+69e4 with and without the GPU+22c0 byte, VBIOS+2d8. Gate: PMU+9a2, OBJACR+37b, a failing GPU check, seven region readings (empty, zero, inverted, set). Signature fuse bit. OBJACR+390. Cache argument (GPU+914, GPU+252c). Failure of the descriptor creation, the allocation and the mapping. The three optional service calls. Four bus addresses including above 4 GiB. Launcher: missing OBJMC, PMU state words 1 to 4, GPU+915/+917/+918/+926/+97c/+4de4/+e00, a failing GPU+1ec8 function, Falcon+3a7/+3af/+3bb, OBJACR+37f clear, four 0x80 values. Reset: already held, halt request late, timed out and stopped by another status, reset not allowed (0x10a3c4), hold wait late and timed out, seven scrub waits, six idle waits including timeouts, saved mailbox values, 0x10ae24 values. DMEM boundary values and the fault check above the boundary, HWCFG values, eight start and halt-wait sequences (halt at once, late, never, after another status), 40 MAILBOX0 values of the SEC2 Falcon with the second MAILBOX1 read for 0xb, three of the PMU's.",
"fixture_supplied": "Everything the load harness supplies, plus: the function at +160 of the GPU+1ec8 object, _nv031481rm, _nv031415rm, the PMU class function at vtable +508, MemorySystem+f10, the GPU+20c8 function at +1b8, and the system-memory descriptor (bus address as a case input).",
"stored_by_harness": "The vtable and self pointers of the PMU+a00 object (as _nv006737rm), of the PMU+c20 object (as _nv006738rm, with +80 = 0 and +84 = 3) and of the PMU+b08 object (as _nv006726rm; its state word is a case input); the boot loader records unpacked by the original unpacker as _nv051982rm does. The creators need the object tree and were not executed.",
"not_executed": "The OBJACR and PMU constructors; _nv016970rm (OBJACR+391); the SEC2 paths (OBJACR+38b, OBJACR+390 with a true GPU+20c8 +270); Falcon+3b6 (GPU+608), +3be and +28c4; GPU+919; a boot loader size that is not a multiple of 256; the real bodies behind the fixtures."
},
{
"evidence_category": "assembly read",
"items": [
"_nv016962rm (REA Ghidra): the two skip conditions, the call through OBJACR+130, movb $0x0,0x37d only on the zero-status path, the GPU+20c8 call.",
"_nv016972rm (REA Ghidra): gate, the six stack arguments of _nv016965rm, descriptor creation arguments, movl $0xa7 at +0xa0, the word copy loop, the stores that build the boot descriptor (4 bytes at +0, 8 at +0x10 and +0x18, 4 at +0x20, 8 at +0x24, 4 each at +0x2c to +0x3c, 8 at +0x40, 4 at +0x48; nothing at +4 to +0xf and +0x4c to +0x53), the order of the three optional calls, the eleven arguments of PMU+2e0, the type argument of OBJACR+158 (sbb/and/add giving 6), movl $0x14 at PMU+0xf60 before the release.",
"_nv016925rm (REA Ghidra): test of +37b, the call through +150 with region 1, end != 0 and setae on end against start.",
"_nv016961rm (REA Ghidra): see first_open_with_regions_already_set.",
"_nv052043rm (objdump, call order): +a60, +2d0, +17d0, +17d8, +3a7/+3aa cleared, OBJMC+198, +a58 twice, +a88, +278, +280, +278 three times, 0x10a10c read and write, +c90, 0x10a108, 0x10a104, +ad8, movb $0x1 at +42f."
]
},
{
"evidence_category": "original-driver observation",
"result": "None for the unload. Transcript lines 37715-37722 show the PreInit gate with an empty region 1; lines 147254-147279 show the regions set after the Load."
}
],
"defects_found_in_the_load_evidence": [
"tools/check_gpu_acr_load_binary.py merges a case's read values after the default list instead of replacing it, so a value read once keeps its default. No row of target/gpu-stage/original-acr-load.txt has a nonzero MAILBOX0 after the run (the report's '115 MAILBOX0 values' never reached the read) and none has a DMEM boundary other than 0x100. The load harness and oracle were not changed.",
"Those two branches are now compared by execution through the unload cases, which reach the same original functions (_nv016730rm; _nv028457rm, bound to the same bodies for both Falcons): gpu::acr_load::run_status gained the second MAILBOX1 read for MAILBOX0 == 0xb, and gpu::acr_load::dmem the control-word check after every data word at or above the boundary (status 0x3f). All 548 load rows still pass."
],
"firmware_container": {
"file": "target/firmware/nvidia-rs/580.178.04/gv100.fw",
"records": 81,
"sha256": "ff0f4eaac162b07a8945bee68693243ee37d38558157e3e5132ca6c677a499d8",
"change": "One record appended (descriptor 0x114fb00, 24 bytes: entry and size of the PMU HS boot loader, tag 0x12 of bundle 0x11432e0). Its code record 0x114fb18 was already present. The 80 earlier records are unchanged except for payload offsets (previous SHA-256 949c532b...dd741a). tools/run_hardware_first_open.py installs the container before a run.",
"records_used": "bundle 0x1141350 tags 0x26/0x24 (image), 0x1a/0x19 (layout); bundle 0x1141058 tags 0x3d, 0x39, 0x3b, 0x3a (signatures and patch words); descriptors 0x114fb00 and 0x114fb18 (PMU boot loader)"
},
"rust_api": {
"gpu::acr_unload": [
"trait Services: acr_load::Services + acr_wpr_region::Services (power_slot_160, interrupt_service, pmu_slot_508, memory_slot_f10, vbios_slot_1b8)",
"records_present(&Pack) -> bool, scratch_bytes(&Pack)",
"prepare(io, &Pack, &mut Workspace, scratch) -> (Image, rest of scratch): the constructor's image preparation",
"region_set(io, AcrBytes) -> bool: the gate",
"unload(io, &Pack, &mut Workspace, &mut Image, scratch, &mut PmuFalcon, &mut PmuState, &mut acr_37d, &Inputs) -> Result<NvStatus, Error>"
],
"changes_to_existing_modules": "gpu::nvdec_hs_run::prepare_tagged takes the signature bundle separately (NVDEC and the ACR load pass the image bundle twice; 754 and 548 oracle rows pass); gpu::acr_load: helpers visible to the sibling module, records_present, run_status and dmem as described above; the load test model emits clock-gating events for the unload rows."
},
"kernel_level_7": {
"file": "src/nvidia/kernel/acr_bringup.rs",
"state": "Refusing level. bringup=7 runs levels 1 to 6 exactly as bringup=6, then, without any register access, logs whether the container holds the records of both steps (note 0x41430003, expected 3), one note 0x41430002 per unresolved input (1 to 13) and stage 0xffff0002, and returns -95. Neither the load nor the unload is wired: BAR2 lifetime, the request order of the placement model and the FIFO buffer addresses are unchanged for every level.",
"unresolved_inputs": {
"1": "load: directory and page entry values of the Falcon address space and the attributes of its mapping (_nv026096rm with flags 0x10) [I in gpu::acr_load_bar2]",
"2": "load and unload: byte +108 of the GPU+1e70 object and its function at +100 [I]",
"3": "load: address of the HS image allocation (traced 0x7fdf79000, one page below the heap model's choice) [I]",
"4": "load and unload: the GPU check _nv031156rm that OBJACR+150 calls first (no provider)",
"5": "load: the function at +238 of the GPU+20c8 object (no provider)",
"6": "unload: the function at +160 of the GPU+1ec8 object and the word GPU+e00 (no provider; the class of GPU+1ec8 was not identified)",
"7": "unload: the interrupt service _nv031481rm of the PMU idle wait (no provider; reached only while 0x10a04c reads busy)",
"8": "unload: the PMU class function at vtable +508 (not identified; reached only after a timed-out wait)",
"9": "unload: a system-memory allocation whose bus address the PMU Falcon reaches through DMA index 4 (0x10ae10 = 6); whether the kernel DMA allocation and the bus-master state of this path satisfy it was not examined",
"10": "unload: OBJACR+37b/+37f/+38b/+390/+391, PMU+9a2, the state word of the PMU+b08 object and the PMU Falcon bytes, as the constructors and PreInit leave them with this machine's registry (emulated defaults only)",
"11": "unload: byte +234 of the GPU+22c8 object, MemorySystem+8ccf, byte +2d8 of the GPU+20c8 object (objects not constructed)",
"12": "load and unload: the boot descriptor words the original leaves uninitialised (12 bytes for the load, 20 for the unload)",
"13": "wiring: BAR2 bound from level 4 through level 7 and the request order primary, shadow, runlist buffers of the placement model"
},
"report_tool": "tools/run_hardware_first_open.py names the level's notes under acr_load_unload, compares the load part with transcript lines 147254-147279 when it runs, and writes the top-level regions_cleared_after_unload (null while no unload ran)."
},
"validation": "see the final report of the session that wrote this file; tools/validate_all.sh and the ignored oracle tests were run after the last source change",
"notes": "analysis/closed-driver-580/acr-load-implementation-notes.md, section 'Unload and level 7'",
"correction_2026_11_19_level_renumbering": {
"date": "2026-11-19",
"change": "The ACR level is bring-up level 8 from this date; level 7 is the Graphics InitLocked + load + unload level (reports/gpu-graphics-level-validation.json). Where this report says level 7 or bringup=7, read level 8 and bringup=8. Its stage note values 4143_0001 = 0007_0000 / 0007_0001 are now 0008_0000 / 0008_0001; every other note code and value is unchanged. bringup=8 does not run the Graphics level, so the sequence described here is unchanged."
}
}