Files
nvdriver/reports/gpu-pmu-fbq-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

235 lines
13 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 PMU command and message transport over fixed-element queues in the PMU surface, and the Falcon bootstrap requests of first open",
"original_chain": [
"message function of the transport object (PMU+f68 - 8, vtable +68) _nv052433rm [E]",
"INIT branch: tail read (must be 0, else 0x40), 0x3c-byte copy from surface 0x10200, byte 0 = 0x0f and byte 6 = 0 required, tail = 1, _nv051847rm: status byte +0x26 through _nv028473rm, _nv052268rm (0x34 bytes at 0x10610), _nv052416rm (three _nv028635rm queue constructions with constant geometry), _nv052431rm (command memory from +0x20/+0x22), _nv028435rm (+0x24 to Falcon+5d0), Falcon+583 = 1, kernel state 4, _nv051824rm [E]",
"reply branch: _nv028644rm with _nv013398rm (head, tail), _nv013399rm (tail), _nv013410rm/_nv013403rm (head; 0x40-byte element copy; 16-bit number at +0xc against the expected number; 16-bit sum over (length + 7) & ~3 bytes; both only reported), _nv013384rm (tail + 1 modulo 16); classification (word at +4 & 0xffff00 == 0x040f00), sequence byte +0x14, flags byte +0x15 (bit 1: copy 0x10 bytes); copy of the request out of the command element at +0x14; low-priority head read [E][T register order, lines 147657-147665]",
"post: _nv052461rm (ready test 0x55, size limit 0x7f0 -> 0x3f, status preset 0x1b, bytes 0xc-0xf cleared, timeout record) -> transport vtable +60 _nv052441rm (sequence _nv028648rm, command memory _nv055424rm, element build, _nv028630rm: three head reads, 0x800-byte copy, KernelBus+4a8(3), head + 1 modulo 16; wait _nv052635rm/_nv055427rm line 0x3d7 with one interrupt service pass per iteration and one more after expiry) [E][T lines 147609-147612]",
"requests: _nv043191rm -> _nv016743rm: range checks (Falcon > 0x1e or flags out of range 0x3b; Falcon 0 0x56), region command once (OBJACR+37d), Falcon lookup _nv043198rm, bootstrap command; any failed exchange returns 0xffff [E]"
],
"queues": {
"0": {
"logical": 0,
"physical": 0,
"elements": 16,
"element_bytes": 2048,
"kind": 2,
"surface_offset": 512,
"next_message_number": 1
},
"1": {
"logical": 1,
"physical": 1,
"elements": 16,
"element_bytes": 2048,
"kind": 2,
"surface_offset": 33280,
"next_message_number": 1
},
"2": {
"logical": 2,
"physical": 0,
"elements": 16,
"element_bytes": 64,
"kind": 2,
"surface_offset": 66048,
"next_message_number": 1
}
},
"registers": {
"hpq_head": "0x10a800",
"lpq_head": "0x10a804",
"msgq_head": "0x10a4c8",
"msgq_tail": "0x10a4cc",
"command_tails_read_only_in_the_dump_path": [
"0x10a820",
"0x10a824"
]
},
"command_element": {
"bytes": 2048,
"fields": [
{
"offset": "0x00",
"bytes": 4,
"meaning": "element index (queue position)",
"evidence": "[E] by value over 25 exchanges including the wrap"
},
{
"offset": "0x04",
"bytes": 2,
"meaning": "(request bytes + 0x17) & ~3; must be below 0x800, else 0x1a"
},
{
"offset": "0x06",
"bytes": 2,
"meaning": "offset of the allocation in the PMU's command memory (INIT +0x20/+0x22)"
},
{
"offset": "0x08",
"bytes": 12,
"meaning": "command: unit (request byte 1), 0x0c, 0x01, sequence number, 0, request byte 0, 0, 0, 32-bit allocation offset + 0x14"
},
{
"offset": "0x14",
"bytes": "request",
"meaning": "the request: byte 0 flags (bits 0-1: 0 synchronous), byte 1 unit, byte 2 function, word +4 status (preset 0x1b; byte 5 is the firmware status of the reply), bytes 0xc-0xf zero"
}
],
"no_checksum_in_commands": "bytes 2-3 stay zero [E]"
},
"requests": {
"region": {
"unit": "0x0a",
"function": 0,
"bytes": 24,
"+0x10": "region id (1)",
"+0x14": "offset (0)",
"source": "_nv016932rm",
"sent": "once, before the first bootstrap request"
},
"bootstrap": {
"unit": "0x0a",
"function": 2,
"bytes": 24,
"+0x10": "Falcon number (7 SEC2, 2 FECS, 3 GPCCS)",
"+0x14": "1 unless the Falcon's byte +3ac is set",
"flags_argument": "validated only (0-7 for FECS and GPCCS, 0 otherwise); not transmitted"
},
"reply": "the request bytes copied back from the command element; byte 5 through _nv028473rm; nonzero -> 0xffff from the request function"
},
"harness": {
"file": "tools/check_gpu_pmu_fbq_binary.py",
"cases": 56,
"cases_by_kind": {
"I": 13,
"R": 18,
"P": 25
},
"oracle": "target/gpu-stage/original-pmu-fbq.txt",
"oracle_sha256": "f73abeb86b04bced34179b05cbc09398c8037f627772e22a4bbcf09c910e963f",
"firmware_side": "fixture: message elements and reply bytes are written by the harness so that the original's checks pass; the real firmware's message bytes are not in the trace (mmiotrace recorded the copies without data)"
},
"rust": {
"module": "src/nvidia/src/gpu/pmu_fbq.rs",
"tests": "src/nvidia/src/gpu/pmu_fbq_tests.rs",
"module_sha256": "43d9184ba1573a7a1d78157a2c59ca65706d37b8d716a381f3b69630692d961e",
"oracle_rows_matched": 56,
"compared_per_row": "every register access, surface copy (offset, length, SHA-256 prefix of the bytes written), service call, the status, the first 0x40 bytes and the SHA-256 of every posted element, the request bytes after the reply",
"reused": [
"gpu/pmu_command_memory.rs (allocator)",
"gpu/pmu_reply.rs firmware_status (_nv028473rm)"
],
"transcript": "INIT, first command, first reply, second command, second reply: head and tail register accesses equal lines 147607-147612, 147657-147665, 147704-147707, 147780-147788; all 239 low-priority head writes and all message tail writes of lines 147457-164712 advance by one modulo 16; BAR2 extents: commands 0x800 bytes from 0x10200 = 0x8000 + 0x8200, INIT 60 bytes at 0x18200, replies 64 bytes from 0x18240, reply read-back at element + 0x14",
"refused": [
"event messages (not replies)",
"reply for an unknown sequence",
"rewind element",
"command memory not immediately available",
"callback and no-wait request forms",
"anything after a timed-out request",
"the high-priority queue"
]
},
"traced_exchange_counts": {
"lines": "147457-185956",
"low_priority_commands": {
"before SEC2 Load (to 164965)": 239,
"SEC2 start (164966-165083)": 2,
"between": 19,
"FECS start (166380-166428)": 1,
"GPCCS start (166429-167028)": 1,
"later": 8
},
"high_priority_commands": {
"before SEC2 Load": 2,
"between": 1
},
"messages_consumed": {
"before SEC2 Load": 243,
"SEC2 start": 2,
"between": 20,
"FECS start": 2,
"GPCCS start": 1,
"later": 8
},
"note": "messages exceed commands plus INIT by one before SEC2 Load and by one in the FECS window: the PMU sent at least two event messages. The Rust transport refuses events, so it would stop there. [T]"
},
"classification_of_other_commands": {
"done": false,
"why": "the trace has no data for the 2,048-byte command copies, so unit and function numbers of the 239 + 19 other commands cannot be read from it; identifying them needs the PMU client engines' post-INIT functions (the list at Pmu+18d8, vtable +68, and each client's Load), which were not executed or read",
"what_is_established": [
"the region and bootstrap commands need only INIT and the transport: in emulation the original posts them directly after INIT with no other command before them [E]",
"whether the PMU firmware itself requires any of the other commands before it honours a bootstrap request is not established"
]
},
"open_questions": [
"Real firmware message bytes (INIT fields, reply header bytes other than those the original tests) are unknown: no data in the trace.",
"Event message handling (_nv052036rm, _nv052457rm) is not reproduced; two events occur in the traced first open.",
"The PMU's interrupt entry above the message function (reads of 0x10a008, 0x10a018, 0x10a01c, 0x10a094, IRQSCLR 0x40 write, then a head and tail read) is known from the transcript only [T] and is not implemented here.",
"Sequence numbers above 17 and their wrap at 64 are not exercised; the allocation wait (line 0x4ea) is not exercised."
],
"addendum_2026_11_19_service_events_unload": {
"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",
"original_chain": [
"_nv052477rm -> PMU+290 _nv052485rm -> PMU+288 _nv052510rm [A][E]: pending _nv028663rm, bit 5 _nv052467rm, mailbox marker 0xfeedfeed, _nv052479rm -> _nv052433rm, IRQSCLR _nv052215rm, queue test and IRQSSET, pending again",
"event branch: _nv052036rm (list at PMU+d98 always empty [A]) and _nv052457rm with _nv052459rm; 40 functions by byte 5 << 8 | byte 6 [E 432 keys]",
"reader _nv028644rm/_nv013410rm/_nv013403rm/_nv013384rm: per-field outcomes executed at each boundary [E]",
"_nv052461rm on the high-priority queue (head 0x10a800, surface 0x200) [E]",
"Unload _nv052517rm -> _nv052000rm (detach command unit 0x0f function 1 on the high-priority queue, event (0x0f, 1) _nv021459rm, IRQMCLR 0x40 _nv052235rm, state word 0 _nv051831rm, _nv052443rm) [E]"
],
"rust": {
"modules": {
"src/nvidia/src/gpu/pmu_fbq.rs": "01d26e290f0ea3f5113b57e21e29318e81b0c03da8b51f3e863bc2bf93d15d1c",
"src/nvidia/src/gpu/pmu_irq_service.rs": "e7363b704bf88499932e7d1923abdad081bc85a6abf199b51f1f49db86e603a2",
"src/nvidia/src/gpu/pmu_events.rs": "4adb4fd71a00e91e36f3dff04da643f7c7dd7bae4f5c22fa563750c8cbee5f3d",
"src/nvidia/src/gpu/pmu_unload.rs": "ea5def0f5fc37a76f6eb5887871538472da7c052acc08c93e19fef1cac2ebbf0"
},
"oracle_rows_matched": 599,
"earlier_oracle_rows_still_matched": 56,
"api_changes": [
"pmu_fbq::Queue; Transport::execute_on(io, queue, request); Transport::wait; Transport::shut_down, has_failed; fields statistics, rejected_messages, detach_pending, interrupt_entry",
"pmu_fbq::Io gained defaulted event_time, event, state_dump, halted (a provider without them refuses events as before)",
"Transport::receive follows the original's checks: a rejected message stays queued (Ok, rejected_messages); unit 0, length beyond size and length 0 with a body are refused; a short reply (flags bit 1) no longer overwrites the request",
"pmu_irq_service::{Gate, Pass, service}; pmu_events::{HANDLERS, handler, is_reply, Statistics}; pmu_unload::{Io, Inputs, Outcome, unload, detach_request}"
]
},
"supersedes": {
"refused": "event messages and the high-priority queue are no longer refused",
"firmware_side": "still a fixture, but every field is now classified as examined or not examined (notes 8.3)",
"classification_of_other_commands": "partly done from the trace and the group constructors (notes 8.4); unit and function numbers of the non-group commands are still not identified"
},
"required_or_optional": "driver side: nothing gates the unit-0x0a requests on other traffic [A _nv016743rm, _nv052461rm; E rows R]; firmware side not established; see notes 8.5",
"earlier_oracle_unchanged": "target/gpu-stage/original-pmu-fbq.txt regenerates with SHA-256 f73abeb8...910e963f after the harness environment gained the optional service entry",
"original_hazards_observed": [
"a first message that is not an accepted INIT makes the service call a null function pointer of the unbuilt message queue",
"a message with unit 0, with length + 4 above the bytes taken, or with length 0 and a body, is re-read or mis-read without end"
],
"open": [
"unit and type of the two traced events",
"real firmware bytes of the unexamined fields",
"halt function _nv052476rm, PostUnload PMU+3a0, Destroy _nv051856rm not executed",
"the reset after a failed detach is a provider call"
]
}
}