Files
nvdriver/reports/rmapi-slice1-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

186 lines
8.3 KiB
JSON

{
"scope": "RM API slice 1 (client level): escape dispatcher, handle database, client controls, control node. No CUDA program was run and no GPU or node of the original driver was opened. This is not a working userspace interface: no class other than the client exists and no GPU is ever reported attached.",
"date": "2026-11-19",
"original": {
"object": "nv-kernel.o_binary 580.178.04",
"sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b"
},
"oracle": {
"kind": "instruction emulation of the original escape path (Unicorn), tools/check_rmapi_binary.py",
"record": "target/rmapi/original-rmapi.txt",
"record_sha256": "354d1f9244060af687c581637c45b9e2a4ac9ea9fad965ffd1d5a3485baa2a52",
"dispatcher_cases": 12344,
"allocations": 626,
"frees": 19,
"controls": 616,
"string_buffers": 180,
"rust_comparison": "rmapi::oracle_tests::original_escape_path_record: every reply byte, parameter byte, destruction order and purge count equal; no mask",
"fixtures": "OS boundary, RM API and GPUs locks, diagnostics, registry lookup, administrator query, event purge, system object with fabricated GPU manager tables and GPU objects, six GPU property services",
"limits": [
"no class constructor replaced: only client, MpsApi, GpuManagementApi and ConfidentialComputeApi construct; trees one level deep",
"free-priority reordering not reachable (no channel can be built); it rests on REA readings of _nv054370rm and _nv019571rm and the public source",
"no concurrency, lock order or kernel-privileged callers"
]
},
"capture_replay": {
"kind": "captured ioctl payloads of the original driver on the eight-GPU host (observations, not executions)",
"files": [
"cuda-compute-exact-allocation-ioctl-payloads.jsonl",
"cuda-compute-allocation-ioctl-payloads.jsonl",
"cuda-compute-ioctl-payloads.jsonl"
],
"requests_compared": 426,
"requests_not_replayed": 3996,
"compared_per_file": {
"alloc NV01_ROOT": 2,
"free client": 1,
"free of a handle that names nothing": 8,
"escape 0xd6": 2,
"escape 0xc8": 2,
"0x101": 1,
"0xd04": 2,
"0x1f0": 1,
"0x214": 1,
"0xa04": 1,
"0x215": 8,
"0x288": 1,
"0x205": 16,
"0x201": 16,
"0x202": 80
},
"mask": [
{
"field": "client handles in requests and replies",
"treatment": "translated",
"reason": "the original's generator index is system-wide history"
},
{
"field": "gpuFlags bit 0 (IN_USE) of 0x202/0x205",
"treatment": "masked; 216 bit differences",
"reason": "follows device allocations, which this slice cannot make"
}
],
"inputs_taken_from_the_capture": "PCI facts of the eight GPUs, sliStatus, boardId, device and GPU instances, flag bit 4, IMEX channel count",
"not_covered": "contents of the three 0x101 string buffers (not captured); they are covered by the emulation oracle"
},
"rea_readings": [
"procedure_pseudo_code _nv000800rm",
"procedure_pseudo_code _nv054370rm",
"procedure_assembly _nv019571rm"
],
"implemented": {
"escapes": {
"0x29": "_nv000641rm",
"0x2a": "_nv000653rm -> _nv014199rm",
"0x2b": "_nv000646rm / _nv000647rm",
"0xc8": "nvidia_read_card_info (nv.c)",
"0xd2": "rm_perform_version_check (existing)",
"0xd6": "nv.c NV_ESC_SYS_PARAMS"
},
"classes": {
"0x0000/0x0001/0x0041": "RmClientResource (root client)"
},
"controls": {
"0x101": "deprecated converter (_nv000745rm lookup) over 0x13e",
"0x13e": "_nv019691rm",
"0x1f0": "_nv019699rm",
"0x201": "_nv019623rm",
"0x202": "_nv019626rm",
"0x205": "_nv019625rm",
"0x214": "_nv019633rm",
"0x215": "_nv019618rm",
"0x288": "_nv019622rm",
"0xa04": "_nv019686rm",
"0xd04": "_nv019597rm"
}
},
"unavailable": {
"classes": "all 278 other class records: NV status 0x56 from the constructor step",
"client_commands": "118 other RmClientResource commands: 0x56",
"routed_escapes_without_body": "EOPNOTSUPP"
},
"guest": {
"passed": true,
"userspace_results": [
"NV_RS_VM_RMAPI_PASS {\"checks\":129,\"gpus\":1,\"gpu_id\":1}",
"NV_RS_VM_RMAPI_PASS {\"checks\":129,\"gpus\":1,\"gpu_id\":1}"
],
"inputs": {
"target/vm/vmlinuz": "ec7fcd2dfc0c188551bcf5feda116aedab1cb9dd7fef3837d11a27cd2757a877",
"target/vm/initramfs.cpio.gz": "0737be2ed32b64bdb6593281b0d23b7ef608d0c03fae67cdb383b2344bb5a922",
"target/vm-module/nv_rs_edu_test.ko": "7f377327198ddcb19798e3ae0e4f41f1ce6ab4d473d9d17e81bf9e100d912d2f"
},
"iommu_inputs": {
"target/vm/vmlinuz": "ec7fcd2dfc0c188551bcf5feda116aedab1cb9dd7fef3837d11a27cd2757a877",
"target/vm/initramfs.cpio.gz": "0737be2ed32b64bdb6593281b0d23b7ef608d0c03fae67cdb383b2344bb5a922",
"target/vm-module/nv_rs_edu_test.ko": "7f377327198ddcb19798e3ae0e4f41f1ce6ab4d473d9d17e81bf9e100d912d2f"
}
},
"validate_all": {
"steps": {
"fmt": "PASS",
"clippy": "PASS",
"test": "PASS",
"test_device_software": "PASS",
"test_software_manager": "PASS",
"test_timeout_runtime": "PASS",
"test_pf_software": "PASS",
"test_dma_bridge": "PASS",
"test_clock_store": "PASS",
"test_file_cleanup": "PASS",
"test_gpu_arch_codegen": "PASS",
"test_gpu_registry": "PASS",
"test_native_compute": "PASS",
"test_pci_bridge": "PASS",
"test_registry_bridge": "PASS",
"test_rom_capture_bridge": "PASS",
"test_system_memory_bridge": "PASS",
"test_thread_state_bridge": "PASS",
"test_wpr_shadow_owner": "PASS",
"test_gpu_firmware_owner": "PASS",
"test_lsf_image_owner": "PASS",
"modules": "PASS",
"audit": "PASS",
"native_codegen": "PASS",
"guest_build": "PASS",
"initramfs": "PASS",
"guest": "PASS",
"guest_iommu": "PASS",
"result_gate": "PASS",
"live": "PASS"
},
"failed": [],
"summary": [
"tests passed 647 failed 0"
],
"runs": [
{
"run": 1,
"result": "27 of 30 steps passed; test_device_software (rust-lld crashed while linking), test_software_manager and guest_build (a dependency file of target/vm-module vanished during the kernel build) failed. Each passed when rerun alone; other agents were building in the same tree at the time. The cause was not established beyond that."
},
{
"run": 2,
"result": "all 30 steps printed PASS (the steps recorded above). The script's exit status was not captured: the shell that wrapped it was terminated by the tool; the script sets a non-zero status only on a FAIL line."
}
],
"live_step": "tools/run_live_control.py loaded and unloaded kernel-open/nvidia_rs.ko with an empty PCI target on the host; the new control node was registered and removed but not opened there"
},
"modules": {
"kernel-open/nvidia_rs.ko": "91e3c49e2a578186f12094057d09ea04232ef1ba2fb9ceeb8d3a975591eaffa8",
"target/vm-module/nv_rs_edu_test.ko": "7f377327198ddcb19798e3ae0e4f41f1ce6ab4d473d9d17e81bf9e100d912d2f"
},
"sources": {
"src/nvidia/src/rmapi/escape.rs": "ddcffdffc9b062784ed544d7fc6be2725465e630d317493d033e1c6502f44ff5",
"src/nvidia/src/rmapi/server.rs": "e12f404386f1f64ecb2416e7a794b83680617d2cee92f64a6957f628bd73a1a9",
"src/nvidia/src/rmapi/client.rs": "22a791976abad6f68ac699be7fc90b84a52a78010c1a2591c51b60c0584509a4",
"src/nvidia/src/rmapi/node.rs": "74209ed91721eec1eb72b29565bb094b39aca62683b46d39e19022a14829868f",
"src/nvidia/src/rmapi/system.rs": "4b94aef005207e112a7088ec79a416c922c822a7a4a796f47e6db4b743ca3d54",
"src/nvidia/src/rmapi/control_table.rs": "f7e092edf8601233515ec3eacce9dc097ef15506b8711a7b5d62018c0f9ecbfc",
"src/nvidia/kernel/rmapi_node.rs": "9db95e06e59c812e233b0a00ec8606e09042b8d1b00c10c6126ace08ce2535b1",
"kernel-open/nvidia/rmapi_node.c": "7882be8cb2b880de524fcbdc84be140aeb8b8d6a974bab3b29a240d86c0b93f9",
"tools/check_rmapi_binary.py": "483497de6aa6915080974dbbb1278fe770fe510de6172af6104f2e69a1176e33",
"tools/rmapi_binary_emulator.py": "e29ff96ac9dc6b05d1f72fa05eabee132e5430b38583d75cbe78205cf0f76450",
"tests/vm/rmapi_user_test.c": "7482e202c896c658a58d061846ba739d732120e99839fb9697b14f1f1194bfb0"
}
}