{ "scope": "GV100 OBJMC ConstructEngine, StatePreInitUnlocked, StateInitLocked and StateInitUnlocked bodies", "original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b", "implemented": [ "Core gpu::mc_init::construct_engine is _nv043560rm with the GV100 bindings: _nv043561rm and the function the binder stores at OBJMC+120, _nv043558rm, both return 0, so the body returns success and calls nothing else.", "Core gpu::mc_init::pre_init_unlocked is _nv043631rm: when _nv031034rm(GPU, 5, 0xd334df00) returns 0 and the registry value DisableGrAuto is present and non-zero, OBJMC+1b9 is set and _nv031133rm(GPU, 5, 0xd334df00, 0) is called. The status is always success.", "Core gpu::mc_init::init_locked is _nv043628rm with its tail call _nv043627rm: status 0x2f after a log and an assert when _nv054113rm returns a zero byte; otherwise _nv044918rm when GPU+1ec0 exists, slot 1b0 of the GPU+20e8 object when it exists, and OBJMC+1bb set when GPU+2120 exists and OBJMC+1b8 is non-zero.", "Core gpu::mc_init::init_unlocked is _nv043629rm: status 0x2f when _nv054113rm returns a non-zero byte; otherwise GPU+98d takes GPU+90f, and the registry values EnableCoreVoltage, RmOverrideIdleSlowdownSettings, RmEnablePreException and RMSkipRCOnExceptions set byte 337 of the GPU+2068 object, OBJMC+1c4..1c7 and 1b8, GPU+99e and GPU+99c." ], "verification": { "original_mc_init_cases": 3066, "cases_by_body": { "_nv043560rm": 1, "_nv043631rm": 15, "_nv043628rm": 48, "_nv043629rm": 3002 }, "original_functions_executed": [ "_nv006001rm", "_nv043558rm", "_nv043560rm", "_nv043561rm", "_nv043627rm", "_nv043628rm", "_nv043629rm", "_nv043631rm", "_nv049734rm" ], "fixture_supplied": [ "_nv049786rm", "_nv054113rm", "_nv031034rm", "_nv031133rm", "_nv044918rm", "_nv047869rm", "_nv046745rm", "GPU+20e8 object slot 0x1b0" ], "binder_selected_slots": { "0x120": "_nv043558rm" }, "branch_counts": "reports/gpu-mc-init-original.json, key branch_counts", "oracle_sha256": "307bcedc7b0751f9fa615197bdae5d0a09d7b86d0e80fce1af6d36554a2ed862", "mc_init_tests_passed_including_oracle": 5, "workspace_tests_passed": 539, "strict_clippy_and_format_passed": true }, "binary_corrections_to_pseudocode": [ "The pseudocode shows _nv054113rm, _nv043561rm and the GPU+20e8 slot 1b0 call without arguments; the instructions pass (GPU, object) to slot 1b0 and nothing meaningful to the other two.", "Both Init bodies test only the low byte of the _nv054113rm result; the fixture returns 0xffffff00 for false to prove it.", "The pseudocode sets OBJMC+1b8 when the 16-bit word at 1c4 is non-zero; that is bytes 1c4 and 1c5, which the Rust tests individually.", "_nv049734rm(GPU+9d8, GPU+90f) is a seven-byte body returning its second argument; it is executed, not hooked, and modelled as a copy." ], "limits": [ "None of these bodies is called from first open; no engine object set exists yet. The kernel module is unchanged by this increment.", "The failure branch of _nv043560rm (non-zero result from OBJMC+120, then _nv047869rm and _nv046747rm) cannot be reached with the GV100 binding and is neither implemented nor exercised. A different chip HAL would need it.", "_nv044918rm, _nv031034rm, _nv031133rm, _nv054113rm and slot 1b0 of the GPU+20e8 object are fixture-supplied; their own behaviour, and which class and function the GPU+20e8 slot holds, are not established here.", "_nv054113rm is treated as an opaque boolean. Its reading as a lock-ownership query comes from its instructions and the 0x2f status, not from a test.", "The original writes byte 337 through GPU+2068 without a null check; the oracle always supplies that object and the Rust State carries the byte unconditionally.", "Registry failures were exercised with statuses 0x57 and 0x1a only; the bodies test for non-zero. _nv031034rm was exercised with 0, 2 and 0x56.", "A fixture-side provider failure (the outer Err) has no counterpart in the original and is covered by Rust unit tests only." ], "tested_sources_sha256": { "src/nvidia/src/gpu/mc_init.rs": "9198d8e192848929b37cb1998af49fcd5975c4f8dc3deafcfe00ae912cf9df23", "tools/check_gpu_mc_init_binary.py": "6a8c5b318e5b1a00c322955795093fde2202db55a6ac021351702d8ca1ea5d3a" }, "reports": [ "reports/gpu-mc-init-original.json", "reports/gv100-engine-hal-bindings.json", "reports/gv100-hal-stub-bodies.json" ] }