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
161 lines
9.7 KiB
JSON
161 lines
9.7 KiB
JSON
{
|
|
"original_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
|
|
"chip_hal": "0x23",
|
|
"rm_hal": 2,
|
|
"evidence_labels": "[A] assembly read, [D] decompiler pseudocode, [T] physical transcript, [E] original instructions executed in the Unicorn harness, [I] inference",
|
|
"hardware": "none executed; no GPU access by these harnesses or tests",
|
|
"scope": "GV100 light-secure PMU start: PMU class Load _nv051860rm for a first open with the PMU managed by the light-secure manager, instance block and surface in framebuffer memory",
|
|
"original_chain": [
|
|
"Pmu Load wrapper _nv004586rm -> _nv051860rm [E][A for the address-mode branch at +0x25e]",
|
|
"prefix PMU+2f8 _nv052412rm (VBIOS+238, CPUCTL read) when GCX exists [E]",
|
|
"reset PMU+a58 _nv052192rm(0) then (1), results ignored; _nv052253rm: idle wait +48 _nv052213rm, reset(0), reset(1) checked [E]",
|
|
"reset(1): GPU+7c0 _nv030971rm (read 0x1221fc), +80 _nv052248rm (0x10a3c4 bit 4, else 0x1b), +78 _nv052252rm (0x10a3c0 = 0, ten reads), Falcon+1a0 _nv028785rm (mailbox rewrite, DMACTL scrub wait, line 0x56), +a8 _nv052188rm (gating _nv030977rm/_nv030976rm), idle wait (line 0x16b, dump on expiry), BOOT0 read, +88 _nv052197rm (IRQMCLR 0xffff, IRQDEST 0xff81ff52, IRQMSET 0xf3) [E]",
|
|
"surface mapping _nv052584rm -> _nv052610rm -> _nv052346rm -> _nv052341rm (MemoryManager+358, _nv026096rm); first use of the PMU address space runs _nv052399rm -> _nv052304rm (instance block _nv040832rm, KernelBus+4a8(1), _nv039553rm) -> bind _nv052272rm (_nv052277rm instance word, _nv052288rm, wait _nv052284rm line 0x72, +ac0 _nv052215rm IRQSCLR 8) [E; that the address space calls _nv052399rm through _nv013511rm is [D], the position in the sequence is [T]]",
|
|
"CPU mapping of the surface, its framebuffer address stored at +0x10600 (two words) [E][T BAR2 writes at 0x18600/0x18604]",
|
|
"buffer mapping _nv052321rm (0x19d0 bytes), results do not change the Load status [E]",
|
|
"transfer indices PMU+278/+280 (_nv051924rm, _nv051927rm): 0x10ae00..0x10ae10 = 4, 0, 4, 5, 6 [E][T]",
|
|
"boot vtable +3f0 _nv051841rm: HWCFG read, state 1, second bind, argument builder _nv051947rm, writer _nv051929rm (_nv052607rm, DMEM port Falcon+1e0), +a90 _nv052204rm (BOOTVEC), +ad8 _nv052256rm (CPUCTL |= 2, CPUCTL_ALIAS |= 2), OS word, state 2 [E]",
|
|
"gating PMU+aa8 _nv052188rm when the Lpwr child at +11d8 exists with +183 clear [E][T lines 147453-147456]"
|
|
],
|
|
"earlier_stages_executed_in_the_harness": {
|
|
"class constructor": "_nv051986rm (creates +a00, +b08, +b10, +c20, +f68 transport, +df8, +e88); sets PMU+58c = 1 (queues in the surface) [E]",
|
|
"ConstructEngine": "_nv051982rm; 'PMU inst' placement from GPU+5300 bits 28-29 (3 -> framebuffer) selects the instance block target through _nv052295rm [E; the traced value of GPU+5300 is [I] from the traced instance word 0x407fdf7e]",
|
|
"InitLocked": "_nv051858rm: address space create (flags 0x90f1, limit 0x1fffffff, 0x4000810), instance block 0x1000 bytes tag 0xe (_nv052270rm/_nv052601rm), surface 0x207a00 bytes tag 0xe page size 0x1000 not contiguous (_nv052583rm -> _nv052522rm -> _nv052518rm -> _nv052601rm), zero fill in 1 MiB CPU mappings, system-memory buffer 0x19d0 bytes (_nv006739rm) [E]",
|
|
"events": [
|
|
"vc:90f1:1:0:1fffffff:4000810:0",
|
|
"dc:1000:0:1:2:1:4:0",
|
|
"da:e:1000:0:7fdf7e000",
|
|
"z:7fdf7e000:1000:0",
|
|
"dc:207a00:0:0:2:1:4:0",
|
|
"da:e:207a00:0:7fdb98000",
|
|
"dc:19d0:0:0:1:1:200000000004:0",
|
|
"da:e:19d0:0:7fdf7d000",
|
|
"ci:88cace",
|
|
"n:2c"
|
|
]
|
|
},
|
|
"argument_block": {
|
|
"bytes": 48,
|
|
"dmem_offset": "DMEM bytes - 0x30 = 0xffd0 on the traced board (HWCFG 0x400e0100)",
|
|
"fields": [
|
|
{
|
|
"offset": "0x00",
|
|
"bytes": 4,
|
|
"meaning": "clock domain 0x13 frequency in Hz",
|
|
"source": "ClockManager+198(gpu, clk, 0x13) in kHz times 1000 (540000 kHz traced); zero or a failed query returns 0x40",
|
|
"evidence": "[E][T]"
|
|
},
|
|
{
|
|
"offset": "0x04",
|
|
"bytes": 24,
|
|
"meaning": "zero",
|
|
"source": "memset in _nv051947rm",
|
|
"evidence": "[E][T]"
|
|
},
|
|
{
|
|
"offset": "0x1c",
|
|
"bytes": 8,
|
|
"meaning": "address of the surface in the PMU address space",
|
|
"source": "result of the address-space mapping (0x4000000 traced)",
|
|
"evidence": "[E] for the field, [T] for the value"
|
|
},
|
|
{
|
|
"offset": "0x24",
|
|
"bytes": 4,
|
|
"meaning": "transfer index << 29 | surface bytes",
|
|
"source": "_nv052607rm: index 1 (virtual) and 0x207a00 -> 0x20207a00",
|
|
"evidence": "[E][T]"
|
|
},
|
|
{
|
|
"offset": "0x28",
|
|
"bytes": 4,
|
|
"meaning": "flags",
|
|
"source": "bit 0 GPU+90c; value 2 in bits 0-1 on resume (GPU+69e4 = 4, not exercised); bit 2 OBJFUSE+150 result; bit 3 GPU+916; bit 5 GPU+6d59; bits 4, 6, 7 clear for PMU+d8c = 0",
|
|
"evidence": "[E] except resume [D]"
|
|
},
|
|
{
|
|
"offset": "0x2c",
|
|
"bytes": 4,
|
|
"meaning": "PMU+cb0",
|
|
"source": "copied; zero in the harness and in the trace",
|
|
"evidence": "[E][T]"
|
|
}
|
|
],
|
|
"traced_bytes": "00bf2f200000000000000000000000000000000000000000000000000000000400000000007a20200000000000000000"
|
|
},
|
|
"harness": {
|
|
"file": "tools/check_gpu_pmu_ls_start_binary.py",
|
|
"environment": "tools/pmu_original_environment.py on top of tools/check_gpu_acr_load_binary.py",
|
|
"cases": 70,
|
|
"cases_by_kind": {
|
|
"T": 1,
|
|
"V": 69
|
|
},
|
|
"oracle": "target/gpu-stage/original-pmu-ls-start.txt",
|
|
"oracle_sha256": "83998b9a447d6a89948fe8997bb069625827e9c67e2a9298227fef0edd55239d",
|
|
"physical_transcript": {
|
|
"lines": [
|
|
147279,
|
|
147456
|
|
],
|
|
"register_accesses_compared": 105,
|
|
"not_compared": {
|
|
"147278": "read of 0x1598 inside the VBIOS function at +238 (fixture)",
|
|
"147426-147431": "clock manager reads behind ClockManager+198 (fixture)",
|
|
"service registers": "0x100c80, 0x100cb8, 0x100cec, 0x100cbc, 0x70000, 0x1373a0 belong to memory services"
|
|
},
|
|
"sha256_of_compared_lines": "c62ccff143e1c24e3fb561a611dedff648eb6064abb28da0432a53ecc991375d",
|
|
"file": "target/trace/b3-bar0.txt",
|
|
"reproduced_by_original_instructions": true
|
|
},
|
|
"order_deviations": [
|
|
"the class constructor and ConstructEngine run after the image harness configured the Falcon; Falcon+511 and Falcon+650 are restored around the constructor",
|
|
"InitLocked runs after the light-secure manager's Load; Falcon+3a4 (stored 0 by that Load) is restored after InitLocked",
|
|
"the PMU property initialiser _nv005852rm is run again with the owners in the constructor's order (object, RM owner, chip owner); the shared image harness passes them swapped, which changes only PMU+42b on this chip"
|
|
]
|
|
},
|
|
"rust": {
|
|
"module": "src/nvidia/src/gpu/pmu_ls_start.rs",
|
|
"tests": "src/nvidia/src/gpu/pmu_ls_start_tests.rs",
|
|
"module_sha256": "5607d50dc06bc1b3b69d8f0734e9e30653251238c9efc8dbe6009c551c6aff68",
|
|
"oracle_rows_matched": 70,
|
|
"compared_per_row": "every register access and service call in order, the status, the 48 argument bytes and the state word",
|
|
"transcript": "lines 147279-147456: 105 register accesses reproduced by the Rust executor fed the traced reads (ignored test load_reproduces_transcript_lines_147279_to_147456)",
|
|
"refused_or_not_modelled": [
|
|
"non-light-secure start (Falcon+3a7 = 0)",
|
|
"resume (GPU+69e4 = 4)",
|
|
"the branch of PMU+2f8 into PMU+2f0 when VBIOS+238 reports type 1",
|
|
"DMEM larger than 64 KiB",
|
|
"the wait for readiness inside Load when GPU+4de2 or GPU+90e is set"
|
|
]
|
|
},
|
|
"open_questions": [
|
|
"Transcript line 147278 (read of 0x1598) is inside the VBIOS function at +238 [I]; not executed.",
|
|
"InitLocked's devinit test (VBIOS+2d6 or MAILBOX0 bits 8 and 9) was bypassed with VBIOS+2d6 = 1; the Init-stage PMU register accesses fall into the transcript's lost events.",
|
|
"The virtual address of the second mapping (0x19d0-byte buffer) is not in the transcript; 0x5000000 is a fixture value.",
|
|
"The surface size formula was executed, not re-derived here (another module, gpu/pmu_surface_size.rs, exists for it and was not verified by this work)."
|
|
],
|
|
"addendum_2026_11_19_unload_and_conventions": {
|
|
"date": "2026-11-19",
|
|
"harness": "tools/check_gpu_pmu_service_binary.py",
|
|
"oracle": "target/gpu-stage/original-pmu-service.txt",
|
|
"oracle_sha256": "5b117e30b69ba595ba3e58c1ab1065608c3601e0c308aa0bd308c825ec48e5b4",
|
|
"cases": 599,
|
|
"cases_by_kind": {
|
|
"S": 111,
|
|
"I": 6,
|
|
"K": 432,
|
|
"P": 35,
|
|
"R": 4,
|
|
"U": 11
|
|
},
|
|
"hardware": "none",
|
|
"notes": "analysis/closed-driver-580/pmu-implementation-notes.md section 8",
|
|
"oracle_unchanged": "target/gpu-stage/original-pmu-ls-start.txt regenerates with SHA-256 83998b9a...dd55239d; module SHA-256 unchanged (5607d50d...)",
|
|
"property_initialiser": "tools/pmu_original_environment.py calls _nv005852rm(PMU, RM, CHIP), i.e. (object, RM owner, chip owner); PMU+42b reads 1 in the harness. No oracle byte changed.",
|
|
"pmu_42b_gates": "with PMU+5c7: the 0x19d0-byte buffer (allocation in InitLocked _nv051858rm, mapping in Load _nv051860rm, unmapping in Unload _nv052517rm, release in Destroy _nv051856rm) [A cmpb 0x42b in each]",
|
|
"state_left_by_load_and_how_it_is_undone": "Unload _nv052517rm: detach command, IRQMCLR 0x40, kernel-side state word 0, surface and buffer unmapped (11 rows, gpu/pmu_unload.rs); the PMU is reset by the ACR unload launcher PMU+2e0, which needs that state word <= 1; memory released by Destroy (not executed)",
|
|
"init_delivery": "INIT consumed by the class interrupt service _nv052477rm (6 rows; accesses equal transcript 147603-147608); PostLoad _nv051861rm waits for INIT (line 0x32c) only if the state word is still 2 [D]"
|
|
}
|
|
}
|