{ "scope": "Base GPU StateLoad pass _nv031217rm in core (matching source gpuStateLoad_IMPL with gpuStatePreLoad inlined)", "original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b", "implemented": [ "Core gpu::base_load implements the control flow of _nv031217rm: the two performance-counter reads, the GPU+4138 reset, the SR-IOV prelude (_nv060495rm, GPU+2f8, GPU+358 or the _nv030693rm +528 method), the per-engine PreLoad loop (vtable +60, transition 4) and Load loop (vtable +68, transition 5) with lock release and reacquire after each engine, the first-failure record at GPU+6990/GPU+6994 with categories 0x10, 0x11, 0x12 and 0x13 and the _nv013524rm transition details, GPU+52f1 and GPU+52f3, GPU+4218 from control 0x2080017e or from the _nv000672rm instance entry, the single-GPU and broadcast PostLoad dispatch on the _nv031447rm count, and the _nv036619rm/_nv031288rm and _nv043825rm tail.", "The two paths that end in UD2 (GPU+4de7 set with byte GPU+e00 clear and GPU+e02 set, or with a null _nv000672rm entry) are a caller-supplied invalid-instruction sink that ends the pass with an outer error; the oracle records them as trap cases." ], "verification": { "original_cases": { "scalar": 4950, "engine_list": 2500 }, "original_trap_cases": 706, "original_oracle_sha256": "ba60fa16c8e5d4ac55f889f6cbc49bf7f89aaca5f4727ce3082a5941192ced08", "original_instructions": 760, "original_instructions_executed": 742, "original_instructions_not_executed": "16 alignment NOPs and the two instructions of the UD2 block, which the harness stops at its entry", "oracle_branch_counts": { "d:bdc1000": 240, "d:b8e1000": 201, "d:bf21000": 18, "d:c011000": 245, "d:c0e1000": 17, "d:c250000": 716, "d:bac0000": 779, "d:c3c1000": 44, "d:c650000": 226, "d:c6e0000": 662, "d:c960000 l:4:c96": 840, "d:c9c1000:0": 248, "d:1d5d0000 a:1d5d trap": 64, "trap without diagnostic": 642, "d:cfe1100": 180, "d:d1d1000": 237, "store:4": 438, "store:5": 239, "bcset:0": 908, "bcset:1": 183, "31478": 1382, "31494": 182, "info": 326, "31475": 401, "postload on another GPU object": 456, "final GPU+6990": { "0": 2446, "10": 207, "11": 399, "12": 163, "13": 1015, "15 (fixture PostLoad)": 249, "77 (preset)": 2971 }, "cases with GPU+948/GPU+9a6 cleared on at least one GPU object": 862 }, "workspace_tests_passed": 528, "workspace_tests_ignored": 39, "strict_clippy_and_format_passed": true, "kernel_module_changed": false }, "binary_corrections": [ "The pseudocode drops register arguments that the instructions load: GPU+cac in EDI before _nv031395rm, and GPU+1fc8 in RSI before _nv041837rm. It also presents the RBP-relative locals as an unknown frame; RBP is a second stack that the function lowers by 0x50. Its branch structure otherwise matched the instructions.", "The public source calls the Load unknown-failure store after a failed PreLoad; the binary never writes category 0x13 on that path. It writes 0x10 then, only if GPU+6990 reads zero after _nv013524rm, 0x11.", "The public gpuStateLoad_IMPL has no broadcast branch. The binary runs three broadcast loops when _nv031447rm reports more than one: a count, a clear of GPU+948 and GPU+9a6, and PostLoad on each selected GPU object.", "GPU+4218 is initialised inline (control 0x2080017e or the _nv000672rm entry) where the public source calls gpuInitVmmuInfo, and the null-entry and GPU+e00 cases end in UD2 rather than returning." ], "limits": [ "Every callee is fixture-supplied in the instruction comparison, including the PostLoad pass _nv031219rm. No callee body, engine callback, lock or hardware access is covered, and PostLoad itself is not implemented.", "The UD2 block is detected at its entry (text+5dc220) and recorded as a trap. Its absolute load and the UD2 are not executed, and the Rust pass represents the trap as an outer error named by a caller-supplied sink.", "State is a snapshot of the GPU fields. Only GPU+2f8, _nv013524rm and _nv031219rm receive it, matching the fixture, which changes GPU+4de7 and GPU+6990 from those hooks. A real callee that writes any other field the pass reads later is not modelled.", "The fixture's GPU iterator ignores the mask and returns its listed objects in order; the mask is only compared as an argument.", "A failed performance-counter read leaves the original's zero start time; the fixture never writes the counter on failure.", "Own instance GPU+c9c is limited to 0..15, the size of the _nv000672rm table; the original does no bounds check.", "Production first open does not reach this pass. Nothing in the kernel module calls it and no service implementation exists outside the test model." ], "tested_sources_sha256": { "src/nvidia/src/gpu/base_load.rs": "95357b5fdc4133ef61a90c7a736c819445fe3ca047650cb3a9b287bf3ec7d11b", "src/nvidia/src/gpu/base_load_tests.rs": "8a39dda29f32bdcefc8b4baba0f96aeec1444080dd54bdaa0274626f18a0e213", "tools/check_gpu_base_load_binary.py": "304ccf53ba86e10917a14269ed73f7910b9d863a464efa413fbfe6b5337a2a2f" }, "reports": [ "reports/gpu-base-load-original.json" ] }