{ "scope": "The original's Graphics StateLoad on a GV100 (_nv033665rm -> _nv033664rm -> _nv033298rm): the sequence with the source of every write, the exact transcript range, a core executor and its oracle.", "date": "2026-11-19", "evidence_category": "instruction emulation of the original; one physical register transcript of the original; assembly read of the bodies listed. No hardware was touched and nothing here has run on a GPU.", "evidence_labels": { "A": "instructions read (capstone listing of the relocated object, --disassemble of the harness; _nv033549rm and _nv033433rm cross-checked with REA Ghidra procedure_assembly, evidence ev_20884ec2... and ev_0ac7d343...)", "D": "pseudocode only", "T": "physical transcript", "E": "original instructions executed by the harness", "I": "inference" }, "original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b", "core": { "module": "src/nvidia/src/gpu/gr_load_sequence.rs", "sha256": "9c4d1b8494f7960a060c588f0ebc53be850cec884578708a475b0c51e03c8601", "tests": "src/nvidia/src/gpu/gr_load_sequence_tests.rs", "tests_sha256": "8f4c25866fd9fef90ea3fde3ee8e8b6717b5cd8e131723009cb3d36b4b192cab", "api": [ "run(io: &mut impl Io, inputs: &Inputs) -> Result> (_nv033298rm(.., 1))", "load(io: &mut impl LoadIo, inputs: &Inputs, flags: u32, done: bool) -> Result, Error> (_nv033665rm over gpu::gr_load)", "trait Io: read, write, timeout_start, timeout_check, yield_now, engine_busy, idle_wait_trace, idle_timeout_dump, vbios_overrides, zbc_tables, lpwr_feature_supported", "trait LoadIo: Io + report_init_error, fecs_027641, gpccs_method_80, clock_gating_033505", "Inputs (state read by the load, each field named by original offset), Refused (branches rejected before any access), Outputs (feature bytes of the GraphicsManager record, KernelGraphics+1a9, GRinfo+608/+614)" ] }, "oracle": { "tool": "tools/check_gpu_graphics_load_binary.py", "tool_sha256": "fcbc7673db1e0d6051506d93c70594e30804e5b0f2de8f119949fbb66cb1e89c", "file": "target/gpu-stage/original-graphics-load.txt", "sha256": "23919b0b6614b772f37ac154f62a5cc02d0d6283445359b69c1ee069b11d3304", "rows": 508, "rows_by_kind": { "T": 1, "V": 1, "S": 24, "I": 482 }, "init_rows_with_nonzero_status": 5, "original_report": "reports/gpu-graphics-load-original.json", "regenerates_identically": true }, "comparison": { "test": "gpu::gr_load_sequence::tests::compare_original_graphics_load", "result": "passed: 482 _nv033298rm rows and 24 _nv033665rm rows, every event in order (register reads and writes, time, services), status and outputs" }, "transcript": { "file": "target/trace/b3-bar0.txt", "sha256": "348f232f9604a06b86b9d8574e6a3883e4cecc2e727ee3cf25aa593d76c055be", "graphics_load_lines": "156720-158348", "accesses": 1629, "original_in_emulation": "equal on all 1,102 lines outside the ZBC service (harness assertion)", "rust_test": "gpu::gr_load_sequence::tests::traced_read_values_reproduce_the_physical_transcript", "rust_result": "passed: offsets, values and order of the 996 accesses the executor makes equal the transcript; the three services consume the other 633 lines", "lines_consumed_by_services": { "FIFO engine status _nv027871rm": "157079-157080 (R 0x3080, R 0x2640; offsets checked)", "MemorySystem+fa8 ZBC": "157715-158241 (527 lines, not reproduced by any Rust code)", "_nv033505rm clock gating": "158245-158348 (104 lines, checked equal to the PreInit lines 37609-37712 that gpu/clock_gating.rs reproduces)" }, "lost_event_gaps_inside_the_range": "none (the segment map lists none between 138662 and the end of Load)", "not_graphics_load": "156714-156719 (six timer reads 0.4 s earlier) precede the first access of _nv033664rm", "container": "target/firmware/nvidia-rs/580.178.04/gv100.fw", "container_sha256": "ff0f4eaac162b07a8945bee68693243ee37d38558157e3e5132ca6c677a499d8" }, "step_table": [ { "step": "wrapper", "body": "_nv033665rm: done-mask test (GRMgr record +25c bit instance), instance select only for a non-zero instance or MIG, _nv059509rm, _nv033664rm, Graphics+1620 = 1, returns 0 whatever the child returned", "transcript_lines": "-", "evidence": "A E" }, { "step": "parent", "body": "_nv033664rm: 0x400500 &= ~1; _nv033468rm only with flag 4; _nv033298rm(.., 1); on 0: _nv027641rm, GPCCS +80 when a GPC exists, _nv033505rm, Graphics+1591 = 1", "transcript_lines": "156720-156721, 158245-158348", "evidence": "A E T (gpu/gr_load.rs)" }, { "step": 1, "body": "Graphics+ef8 _nv033078rm: 2 unless GPU+90e", "transcript_lines": "-", "evidence": "A E" }, { "step": 2, "body": "Graphics+1350 _nv033522rm: empty", "transcript_lines": "-", "evidence": "E" }, { "step": 3, "body": "_nv033207rm: GPC+880 = 0xf300187f (Graphics+e80 _nv032957rm) & read 0x100c80 (MemorySystem+a78 _nv045039rm); Graphics+e70 _nv033204rm GPC+890 = 0; +e78 empty; GPC+894 = 0", "transcript_lines": "156722-156725", "evidence": "A E T" }, { "step": 4, "body": "MemorySystem+af0 _nv045272rm: +af8 _nv045271rm -> _nv045270rm writes 0x100cc8/0x100ccc from the two KernelGmmu buffers, +b00 _nv046031rm mirrors both to 0x1facc8/0x1faccc; +b90 _nv045789rm -> _nv045788rm sets bits 18:17 of 0x100cc4 from the buffer size and mirrors it to 0x1facc4", "transcript_lines": "156726-156734", "evidence": "A E T" }, { "step": 5, "body": "inline: GPC+8b4 and GPC+8b8 = target | (address >> 12) << 4 | flag << 2 (skipped with GPU+52fc)", "transcript_lines": "156735(read of step 4)-156737", "evidence": "A E T" }, { "step": 6, "body": "Graphics+e88 _nv033559rm: GPC+8b0 bits 18:17 = 0/1/2 for 4K/64K/128K", "transcript_lines": "156738-156739", "evidence": "A E T" }, { "step": 7, "body": "Graphics+ce0 _nv033396rm: 338 netlist region 6 writes; with a GPC present every entry is written", "transcript_lines": "156740-157077", "evidence": "A E T" }, { "step": 8, "body": "Graphics+10c0 _nv033629rm: VBIOS override table _nv000194rm; nothing unless version >= 0x20 and a count", "transcript_lines": "none", "evidence": "A E; which answer the V100 gives is not known" }, { "step": 9, "body": "_nv059509rm; _nv033729rm: read 0x400700, FIFO engine status _nv027871rm (reads 0x3080, 0x2640), read 0x409b00, PMC bit 12 (Graphics+d10), done when bit 31 of 0x409b00 is clear", "transcript_lines": "157078-157082", "evidence": "A E T" }, { "step": 10, "body": "KernelGraphics+198 _nv041053rm(.., 0) with +180 _nv041021rm: 0x409044 bit 31 cleared, KernelGraphics+1a9 = 0", "transcript_lines": "157083-157084", "evidence": "A E T" }, { "step": 11, "body": "Graphics+c20 _nv033278rm: _nv033609rm (PPC0 of GPC0 +18 |= 1), _nv033643rm (tile map GPC+980.. through +ea8 _nv033420rm; per GPC +914 via +eb0 _nv033424rm, +910, +918; PPC+1d4), +fb8 _nv033291rm (0x100800 -> GPC+8ac, 0x100804 -> GPC+33c), +fc0 _nv033281rm (LTC count into 0x408850 and 0x408958), +fd8 _nv033393rm (GPC+c50 nibbles -> GPC+1d0)", "transcript_lines": "157085-157127", "evidence": "A E T" }, { "step": 12, "body": "_nv051499rm only with a GPU+22e8 object", "transcript_lines": "not taken", "evidence": "D" }, { "step": 13, "body": "0x400500 = 0x10001", "transcript_lines": "157128", "evidence": "A E T" }, { "step": 14, "body": "FECS already running (+1f8 of Graphics+15e8): _nv033633rm", "transcript_lines": "not taken", "evidence": "D; refused by core" }, { "step": 15, "body": "0x400100 = 0x40013c = 0xffffffff; 0x400124 = 2 with GPU+911", "transcript_lines": "157129-157131", "evidence": "A E T" }, { "step": 16, "body": "Graphics+bf0 _nv032221rm: 0x409c24 = 0xe0002", "transcript_lines": "157132", "evidence": "A E T" }, { "step": 17, "body": "Graphics+f48 _nv032226rm: +f50 _nv032215rm (0x40584c |= 2), _nv032225rm (+f58/+f60 empty), _nv032224rm (0x404000, 0x404600, 0x408030, 0x406018, 0x404490, 0x407020, 0x405840, 0x405844)", "transcript_lines": "157133-157142", "evidence": "A E T" }, { "step": 18, "body": "five feature steps: +750 _nv031926rm (0x419b54 = 0xff, verify TPC+354), +7c0 _nv031920rm (0x419b68 = 3, TPC+368), +7d0 _nv031922rm (0x419e20 = 3, TPC+620), +7d8 _nv031915rm (marked done without a write because Graphics+15c9 is set), +7e0 _nv031918rm (GraphicsManager+1e0 returns 0); each reads 0x409660 except the fifth; +770, +648, +7f8..+810 empty", "transcript_lines": "157143-157269", "evidence": "A E T" }, { "step": 19, "body": "_nv032397rm: PPC+38 = 0xc0000000 for every PPC", "transcript_lines": "157270-157287", "evidence": "A E T" }, { "step": 20, "body": "per GPC: +420, +900, +824, +1028; per TPC: +508, +50c, GPC+84, +270 _nv032403rm (TPC+430), +bc8 _nv033549rm twice (TPC+610 = 1, TPC+72c + 0x80*i = 4); then GPC+2c90, +2c94", "transcript_lines": "157288-157643", "evidence": "A E T" }, { "step": 21, "body": "Graphics+bb8 _nv033185rm: LTC count (MemorySystem+b08 _nv044740rm, read 0x12006c) blocks of four writes from 0x410144, stride Graphics+188c", "transcript_lines": "157644-157708", "evidence": "A E T" }, { "step": 22, "body": "0x400108, 0x400138, 0x400118, 0x400130 = 0xffffffff; +4e0 _nv032727rm 0x40011c; +4e8 _nv032725rm 0x400134", "transcript_lines": "157709-157714", "evidence": "A E T" }, { "step": 23, "body": "Graphics+10b0 _nv033425rm returns 0; 0x400610 &= GRinfo+528 when non-zero", "transcript_lines": "none", "evidence": "E; the caller's test of Graphics+15a2 and GRinfo+528 read in assembly" }, { "step": 24, "body": "with Graphics+160c: Graphics+1593 = 1, MemorySystem+fa8 _nv045299rm (ZBC tables: LTC and PGRAPH 0x4180xx writes with idle waits), +1593 = 0, +ff0 empty, _nv033722rm (returns 0 unless the LPWR feature query succeeds)", "transcript_lines": "157715-158241 (service)", "evidence": "A for the caller, D for the service; the service is a trait method, not implemented" }, { "step": 25, "body": "+9e0 empty; +d90 _nv033075rm reads TPC+330 (GRinfo+608); +1230 _nv033717rm GPC+8a4 |= 0x3000000; +1400 _nv033448rm returns 0 (GRinfo+614)", "transcript_lines": "158242-158244", "evidence": "A E T" }, { "step": 26, "body": "_nv037825rm: 0 while dword +38 of the Graphics+100 base object is -1, else the GV100 Graphics+14c8 (_nv033561rm) = 0x56; +1048 only with Graphics+18d4; +1500 empty", "transcript_lines": "none", "evidence": "D E (pseudocode of _nv037825rm and _nv033561rm; executed)" }, { "step": 27, "body": "back in _nv033664rm: _nv027641rm -> _nv028572rm (no register access in the traced state), GPCCS +80 _nv029884rm (same), _nv033505rm", "transcript_lines": "158245-158348", "evidence": "E T; clock gating is gpu/clock_gating.rs" } ], "input_sources": { "netlist": "region 6 (sw_non_ctx_load, 338 pairs) of record 0x1148528 in the container, through gpu/gr_netlist.rs", "constants": "0xf300187f (Graphics+e80), the enable words, the divisor words at _nv053876rm (2^23 / total TPCs rounded up; all 96 compared)", "hardware_reads_during_the_load": [ "0x100c80", "0x100cc8/0x100ccc/0x100cc4 read-backs", "0x4188b0", "0x400700, 0x409b00, 0x200, 0x40060c", "0x409044", "0x503018", "0x100800, 0x100804", "0x12006c (LTC count)", "0x408850, 0x408958", "GPC+c50", "0x40584c", "0x409660 (four times)", "TPC+354/+368/+620 of every TPC", "0x400610 when masked", "0x419b30", "0x4188a4", "0x400500" ], "state_from_earlier_stages": { "GRinfo+570 records (per GPC +0, +4, +8, +1c)": "InitLocked _nv033193rm from GPC+2608 (bits 4:0 and 20:16), GPC+c30/c34/c38 and the fuse words 0x21c38+4*gpc through OBJBUS+2c0/_nv018518rm", "GRinfo+548, +554": "_nv033193rm: count of GPCs and of TPCs Graphics+cd0 accepts (_nv033254rm accepts every GPC on GV100)", "GRinfo+538 tile map, +544, +55c": "_nv033212rm (Graphics+e90) in InitLocked; V100 values 3 and 4", "GRinfo+528": "0 after the traced preparation; producer not located", "GRinfo+1f0/+1f8": "netlist list pointer and count, _nv033232rm (Graphics+ce8) in InitLocked", "Graphics+160c": "Graphics+1348 _nv033433rm (PreInitLocked and InitLocked)", "Graphics+15c9": "class initializer _nv005782rm (argument order object, RM, chip)", "Graphics+15a2, +1620": "_nv033662rm, _nv033663rm", "Graphics+188c (0x400), register units at +1658": "_nv031723rm in the constructor", "dword +38 of Graphics+100": "base constructor _nv037808rm (-1); no other store found among _nv0378xx", "GraphicsManager+28b..+294": "initializer _nv005783rm: +28c, +28e, +290, +292 = 1", "GraphicsManager record +c (GPC count) and +1c": "_nv034073rm from OBJBUS+300 _nv018541rm (0x120078, 0x22430, 0x22434)", "KernelGmmu+410, +408": "fault buffer descriptors (memory dossier); address, target and size are inputs", "GPU+911, +52fc, +915..+926, +90e, +e00": "GPU object state; +911 is stored by first open" }, "registry": "none read by the load itself. The constructor reads 20 keys (RMSkipGrResetForInstSys, RmEnableWar2702359, ...) whose bytes only matter with load flag 4 or the refused branches", "hal_properties": "reports/gv100-engine-hal-bindings.json is wrong for the initializers that take (object, RM, chip): _nv005782rm (Graphics), _nv005822rm (OBJGMMU), _nv005812rm (OBJBUS) were run there with the selectors swapped. With the right order Graphics+158f, +1590, +159b, +15c0, +15c1, +15c9, +15cc, +15df are 1; the report shows only +15df. The transcript confirms +15c9 (no 0x419e34 write after the fourth 0x409660 read)." }, "v100_inputs_not_in_the_transcript": { "0x502608 + 0x8000*gpc": "0x40007 / 0x40006: the low five bits are the TPC count the load writes to +914; bits 20:16 = 4 is the value +910 shows (0x40028). Both fields are forced by transcript lines 157093-157110.", "0x1070, 0x40960c, 0x500920": "read by InitLocked, value 0 used; no effect on the load's register sequence was seen", "_nv000194rm": "status or table of the VBIOS override service; the traced run shows no override write" }, "compute_only": { "question": "can a GV100 legitimately run with Graphics+160c clear?", "answer": "No original path does it. The only GV100 store to +1608..+160f is Graphics+1348 = _nv033433rm, two unconditional dword stores of 0x01010101 [A, REA Ghidra]. _nv033662rm clears +160c, +160d and +160f only when GRinfo+548 is 0 [A], and GRinfo+548 counts GPCs for which Graphics+cd0 returns true; the GV100 body _nv033254rm always returns 1 [A]. The other writer, _nv034047rm, is GraphicsManager+188 on other chips; GV100 binds _nv034046rm, which returns 0x56 [A]. No registry key and no class or capability check is involved. The alternative Graphics+1348 body _nv033432rm (bits of 0x400614) is not selected for GV100.", "stores_observed_in_emulation": [ [ "_nv033433rm", "+0x1608", 4, "0x1010101", "binders" ], [ "_nv033433rm", "+0x160c", 4, "0x1010101", "binders" ], [ "_nv033433rm", "+0x1608", 4, "0x1010101", "binders" ], [ "_nv033433rm", "+0x160c", 4, "0x1010101", "binders" ] ], "what_the_byte_gates_in_the_load": { "how": "Graphics+160c written 0 by the fixture before _nv033665rm; no original GV100 path stores 0 there", "register_events": 870, "traced_events_without_the_zbc_service": 1102, "is_a_subsequence_of_the_traced_events": true, "events_removed": 232, "zbc_service_called": false, "registers_no_longer_written": [ "0x405860", "0x405864", "0x40590c", "0x405910", "0x406000", "0x406004", "0x4078c0", "0x4078c4", "0x408040", "0x408044", "0x408810", "0x408814", "0x4089a8", "0x4089ac", "0x408a24", "0x408a80", "0x408a84", "0x410070", "0x410144", "0x410204", "0x410208", "0x410470", "0x410544", "0x410604", "0x410608", "0x410870", "0x410944", "0x410a04", "0x410a08", "0x410c70", "0x410d44", "0x410e04", "0x410e08", "0x411070", "0x411144", "0x411204", "0x411208", "0x411470", "0x411544", "0x411604", "0x411608", "0x411870", "0x411944", "0x411a04", "0x411a08", "0x411c70", "0x411d44", "0x411e04", "0x411e08", "0x412070", "0x412144", "0x412204", "0x412208", "0x412470", "0x412544", "0x412604", "0x412608", "0x412870", "0x412944", "0x412a04", "0x412a08", "0x412c70", "0x412d44", "0x412e04", "0x412e08", "0x413070", "0x413144", "0x413204", "0x413208", "0x413470", "0x413544", "0x413604", "0x413608", "0x413870", "0x413944", "0x413a04", "0x413a08", "0x413c70", "0x413d44", "0x413e04", "0x413e08", "0x4181d0", "0x418500", "0x418504", "0x418608", "0x41860c", "0x418688", "0x41868c", "0x418718", "0x41871c", "0x418828", "0x41882c", "0x418970", "0x418974", "0x418bbc", "0x418bc0", "0x418d70", "0x418d74", "0x418e0c", "0x418e10", "0x418f0c", "0x418f10", "0x419868", "0x41986c", "0x41be28", "0x41be2c", "0x41bed0", "0x41bed4", "0x41bfe8", "0x41bfec", "0x500084", "0x500420", "0x500824", "0x500900", "0x500910", "0x500914", "0x500918", "0x503018", "0x503038", "0x503238", "0x503438", "0x508084", "0x508420", "0x508824", "0x508900", "0x508910", "0x508914", "0x508918", "0x50b038", "0x50b238", "0x50b438", "0x510084", "0x510420", "0x510824", "0x510900", "0x510910", "0x510914", "0x510918", "0x513038", "0x513238", "0x513438", "0x518084", "0x518420", "0x518824", "0x518900", "0x518910", "0x518914", "0x518918", "0x51b038", "0x51b238", "0x51b438", "0x520084", "0x520420", "0x520824", "0x520900", "0x520910", "0x520914", "0x520918", "0x523038", "0x523238", "0x523438", "0x528084", "0x528420", "0x528824", "0x528900", "0x528910", "0x528914", "0x528918", "0x52b038", "0x52b238", "0x52b438" ] }, "gated_steps": "step 11 except +fb8 (so no +914/+910/+918 TPC counts and no tile map), step 17 partly (0x40584c, 0x408030, 0x406018, 0x405840, 0x405844), step 19, the GPC +420/+900/+824/+84 writes of step 20, step 21, step 24 (ZBC and _nv033722rm), and entries of the clock-gating pass", "status": "Clearing the byte would be a deliberate deviation from the original; whether FECS and a compute channel work without the gated writes is not established." }, "kernel_wiring": { "preconditions": [ "PMC enable with Graphics out of reset (bit 12); level-3 reset state", "BAR0 register access; the FIFO engine table for the engine status query (or a provider of _nv027871rm)", "KernelGmmu fault/debug buffers allocated (addresses 0x7fdf80000 and 0x7fdf90000 on the traced board)", "Graphics constructed and InitLocked done: geometry records, tile map, netlist inflated", "GPU+911 stored", "no PMU exchange is needed by the load itself: FECS and GPCCS are not started here; the traced run has PMU traffic before and after, none inside 156720-158348" ], "leaves_on_hardware": "PGRAPH interrupt and exception enables set (0x40013c, 0x400138, 0x400130 = 0xffffffff, non-stall 0x400124 = 2, FECS host interrupts 0x409c24), 0x400500 = 0x10001, MMU debug buffer addresses in PFB and GPC, floorsweep counts, SM exception enables per TPC, clock gating tables. FECS/GPCCS still halted.", "unload_body": "_nv033671rm -> _nv033670rm [D only, not implemented]: 0x400500 = 0; with flag 1 and Graphics+e68: _nv033702rm; per TPC +508 = +50c = 0; per GPC +2c90 = +2c94 = 0; Graphics+da8; 0x40013c, 0x400138, 0x400118, 0x400130, 0x40011c, 0x400134, 0x400124 = 0; Graphics+bf8; _nv027643rm on FECS and the GPCCS +88 function; Graphics+1591 = 0. It disables interrupts and exception reporting; it does not undo the netlist writes, the buffer addresses or the counts." }, "not_done": [ "MemorySystem ZBC service (_nv045299rm) and the Graphics ZBC functions it calls: 527 transcript lines are not reproduced", "_nv033722rm beyond its LPWR query; _nv033633rm; _nv033468rm (load flag 4); _nv051499rm; MIG; Graphics+15c9 clear; GPU+90e, +e00", "VBIOS override entries (Graphics+10b8 body not read)", "the Falcon functions _nv028572rm / _nv029884rm (services)", "the producers (constructor, InitLocked) run only inside the harness: no Rust implementation; their outputs are Inputs fields", "the idle wait's multi-GPU broadcast branch", "Graphics unload", "kernel wiring and any hardware run" ], "validation": { "cargo_fmt_check": "clean", "cargo_check_workspace_all_targets": "clean", "cargo_clippy": "gr_load_sequence clean; the workspace run stops on chunks_exact_to_as_chunks in src/nvidia/src/gpu/pmu_ls_start.rs:360 and pmu_ls_start_tests.rs:208, files of another agent that were not touched", "cargo_test_workspace": "606 passed, 0 failed, 70 ignored", "ignored_tests_of_this_module": "2 passed with the oracle, container and transcript" }, "correction_2026_11_19_level_wiring": { "date": "2026-11-19", "change": "Core sources changed without a change of behaviour the oracle sees: gr_load_sequence.rs (refusal() public; tile-map counts without a table on the stack) and memsys_zbc.rs (Tables::reset). The oracle regenerates identically and the comparison tests pass.", "gr_load_sequence_sha256_after": "d7d30c28a2e3b8d07a4c94daa4349c89c4f01693348d370526e26a2c9429f47a", "memsys_zbc_sha256_after": "afdb5ce48f990a95c3560e22ce644b8462cec84e7e593139e32afb88731cf95b", "also": "The GPU+22e8 object (Pmgr) exists on a GV100; its _nv051499rm call in the load returns at once (reports/gpu-graphics-level-validation.json, pmgr_call_in_the_load). _nv000194rm returns a version 0x20 table without entries on the V100 image, not an error status." } }