mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 14:38:47 +00:00
- 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
392 lines
17 KiB
JSON
392 lines
17 KiB
JSON
{
|
|
"scope": "RM API slices 2 and 3a: device (0x80), subdevice (0x2080), BinaryApi (0x2081) and confidential-compute (0xcb33) classes, 16 further control commands, per-GPU device nodes, NV_ESC_REGISTER_FD, mmap/poll stubs, namespace launcher prototype. No CUDA program was run, no node of the original driver was opened, nothing was run against libcuda. This is not a working userspace interface: no engine exists behind the nodes, 41 of the 68 workload commands and 16 of its 20 classes are unavailable.",
|
|
"date": "2026-11-19",
|
|
"original": {
|
|
"object": "nv-kernel.o_binary 580.178.04",
|
|
"sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b"
|
|
},
|
|
"oracle": {
|
|
"kind": "instruction emulation of the original (Unicorn), tools/check_rmapi_binary.py",
|
|
"slice1_record": {
|
|
"path": "target/rmapi/original-rmapi.txt",
|
|
"sha256": "354d1f9244060af687c581637c45b9e2a4ac9ea9fad965ffd1d5a3485baa2a52",
|
|
"unchanged_from_slice1": true
|
|
},
|
|
"gpu_record": {
|
|
"path": "target/rmapi/original-rmapi-gpu.txt",
|
|
"sha256": "3a8d8467dde151b158af3dfa4e09f04d7654b76c936dcb138a75d55db9ad5852",
|
|
"cases": 2,
|
|
"operations": 280,
|
|
"regenerated_identically": "tools/check_rmapi_binary.py --check passed after the final edit"
|
|
},
|
|
"gpu_object": "built by the original: _nv021662rm (core init), _nv000794rm (RmInitPrivateState), _nv031506rm, _nv031359rm, _nv054107rm, _nv031377rm, _nv031364rm (gpumgrAttachGpu, status 0, all GV100 engine children constructed), _nv031505rm. The state stages after the attach are NOT executed: the GPU is constructed, not initialized; byte GPU+0x90d is set by the cases to reach constructors and handlers",
|
|
"attach_register_reads": [
|
|
"0x0",
|
|
"0xa00",
|
|
"0x4",
|
|
"0x1070",
|
|
"0x88084",
|
|
"0x88008",
|
|
"0x8802c",
|
|
"0x88000",
|
|
"0x8",
|
|
"0x1373a0",
|
|
"0x21c04",
|
|
"0x1078",
|
|
"0x21434",
|
|
"0x10ac08",
|
|
"0x15f8",
|
|
"0x140"
|
|
],
|
|
"attach_register_writes": "0xd96c + 0x50*i = 0xc80 for i = 0..6",
|
|
"register_values": "first read of each register in target/trace/b3-bar0.txt; 0x1070, 0x8 and 0x1078 are absent from the transcript and are case inputs with value 0",
|
|
"fixtures_added": "register read/write (_nv049612rm, _nv049615rm), nv_is_gpu_accessible (case input), nv_get_file_private/nv_put_file_private, platform queries answered no, probe-time BAR0 page for PMC_BOOT_0/1/42; RM API lock remains a fixture, GPUs lock is original code; control-cache mode word set to 2 (lookup misses, store compares)",
|
|
"rust_comparison": "rmapi::gpu_tests::original_gpu_object_record: 101 allocations, 54 frees, 102 controls, 10 descriptor registrations; every status, reply byte, parameter byte, destruction order and reservation word equal; no mask. Not compared: the diagnostics column, and the 13 operations of the case gpu-control-cache (the original's control cache is not modelled)",
|
|
"fault_injection": "a deliberately wrong value in gpu::cc_capabilities made the comparison fail at the first affected record",
|
|
"limits": [
|
|
"constructed, uninitialized GPU: replies that depend on the state stages are not established here",
|
|
"one GPU, one file per case, no concurrency",
|
|
"values of registers 0x1070, 0x8, 0x1078 assumed 0",
|
|
"device paths for virtual GPUs, multi-GPU devices and statuses 0x10/0xffff not exercised",
|
|
"REGISTER_FD status 0x17 (calling file referenced by an fd-carrying control) is from pseudocode only"
|
|
]
|
|
},
|
|
"capture_replay": {
|
|
"requests_compared": 687,
|
|
"requests_not_replayed": 3735,
|
|
"previously_compared": 426,
|
|
"mask": [
|
|
{
|
|
"field": "client handles",
|
|
"treatment": "translated"
|
|
},
|
|
{
|
|
"field": "gpuFlags bit 0 (IN_USE) of 0x202/0x205",
|
|
"treatment": "masked; 216 bit differences",
|
|
"reason": "produced by _nv030934rm on the initialized GPU; not set by a device allocation on the constructed GPU of the oracle"
|
|
}
|
|
],
|
|
"new_in_this_slice": {
|
|
"alloc 0x80": 16,
|
|
"alloc 0x2080": 16,
|
|
"alloc 0x2081": 16,
|
|
"alloc 0xcb33": 2,
|
|
"0x136": 3,
|
|
"0x27b": 24,
|
|
"0x800280": 16,
|
|
"0x800289": 16,
|
|
"0x20800119": 16,
|
|
"0x20800131": 16,
|
|
"0x20800145": 2,
|
|
"0x20800146": 2,
|
|
"0x20801701": 16,
|
|
"0x20801801": 16,
|
|
"0x2080182b": 16,
|
|
"0x20803601": 18,
|
|
"0x20808159": 16,
|
|
"0x20808162": 16,
|
|
"0x20810108": 16,
|
|
"0xcb330101": 2
|
|
},
|
|
"inputs_taken_from_the_capture_machine": "as slice 1, plus PMC_BOOT_0 of a V100 (0x140000a1) and the PCI identity read from sysfs (device 0x1db5, subsystem 10de:1249, revision 0xa1); the caller is given access to all eight device nodes",
|
|
"not_covered": "0x216 does not occur in the captures; the third capture file has no allocation parameters, its GPU objects are not replayed"
|
|
},
|
|
"rea_readings": [
|
|
"procedure_assembly _nv022272rm",
|
|
"procedure_assembly _nv030823rm",
|
|
"capstone on the relocated object: 0xc9 branch of _nv000800rm",
|
|
"exported pseudocode (decompiler level) for every handler and constructor named in the notes"
|
|
],
|
|
"implemented": {
|
|
"classes": {
|
|
"0x0080": "Device: prologue _nv054074rm, constructor _nv022139rm, _nv022272rm",
|
|
"0x2080": "Subdevice: _nv057381rm",
|
|
"0x2081": "BinaryApi",
|
|
"0xcb33": "ConfidentialComputeApi"
|
|
},
|
|
"escapes": {
|
|
"0xc9": "NV_ESC_REGISTER_FD (_nv000800rm 0xc9 branch)"
|
|
},
|
|
"controls": {
|
|
"0x136": "_nv019698rm",
|
|
"0x216": "_nv019619rm",
|
|
"0x27b": "_nv019630rm",
|
|
"0x800280": "_nv022207rm",
|
|
"0x800289": "_nv022213rm",
|
|
"0x20800119": "_nv057843rm",
|
|
"0x20800131": "_nv057864rm",
|
|
"0x20800145": "_nv057773rm",
|
|
"0x20800146": "_nv057886rm",
|
|
"0x20801701": "_nv058218rm",
|
|
"0x20801801": "_nv057435rm",
|
|
"0x2080182b": "_nv057419rm -> _nv057420rm",
|
|
"0x20803601": "_nv057956rm -> _nv057957rm",
|
|
"0x20808159": "_nv057845rm -> _nv030743rm",
|
|
"0x20808162": "_nv057749rm",
|
|
"0x20810108": "_nv017850rm -> _nv029325rm",
|
|
"0xcb330101": "_nv021482rm"
|
|
},
|
|
"workload_commands": {
|
|
"total": 68,
|
|
"implemented": 27,
|
|
"unavailable": 41
|
|
}
|
|
},
|
|
"unavailable": {
|
|
"status": "NV status 0x56 after the entry checks",
|
|
"commands_needing_engine_state": {
|
|
"0x13a": {
|
|
"handler": "_nv019705rm",
|
|
"missing": "per-pair P2P capabilities: KernelBif and NVLink state of each attached GPU"
|
|
},
|
|
"0xd01": {
|
|
"handler": "_nv019591rm",
|
|
"missing": "address-space type of a mappable object; no mappable class exists yet"
|
|
},
|
|
"0x800292": {
|
|
"handler": "_nv022202rm",
|
|
"missing": "class database after the engine removals of the state stages (the constructed GPU lists 118 records, the initialized one 99 classes)"
|
|
},
|
|
"0x801307": {
|
|
"handler": "_nv022176rm",
|
|
"missing": "MemoryManager capability table (MemoryManager state init)"
|
|
},
|
|
"0x801402": {
|
|
"handler": "_nv022229rm",
|
|
"missing": "KernelFifo host capabilities (executes; equal to the capture; KernelFifo construction is not in this driver)"
|
|
},
|
|
"0x80170d": {
|
|
"handler": "_nv022183rm",
|
|
"missing": "KernelFifo channel list"
|
|
},
|
|
"0x801909": {
|
|
"handler": "_nv022243rm",
|
|
"missing": "KernelPerf CUDA limit state"
|
|
},
|
|
"0x20800102": {
|
|
"handler": "_nv057817rm",
|
|
"missing": "static GPU information built during the state stages (INVALID_STATE on the constructed GPU)"
|
|
},
|
|
"0x20800110": {
|
|
"handler": "_nv057825rm",
|
|
"missing": "name string from the board identification of the state stages (INVALID_STATE on the constructed GPU)"
|
|
},
|
|
"0x20800111": {
|
|
"handler": "_nv057842rm",
|
|
"missing": "short name string (INVALID_STATE on the constructed GPU)"
|
|
},
|
|
"0x2080012f": {
|
|
"handler": "_nv057871rm",
|
|
"missing": "ECC units and counters: MemorySystem, Graphics, FIFO, PMU, NVLink objects after init"
|
|
},
|
|
"0x2080014a": {
|
|
"handler": "_nv057810rm",
|
|
"missing": "GPU UUID: PMU-provided identity (status 0x31 on the constructed GPU)"
|
|
},
|
|
"0x20800170": {
|
|
"handler": "_nv057800rm",
|
|
"missing": "engine list: KernelFifo engine table from the device info registers (executes; 8 bytes differ from the capture)"
|
|
},
|
|
"0x20800195": {
|
|
"handler": "_nv057789rm",
|
|
"missing": "compute policy configuration: PMU object state"
|
|
},
|
|
"0x20801201": {
|
|
"handler": "_nv058173rm",
|
|
"missing": "KernelGraphics static information"
|
|
},
|
|
"0x20801210": {
|
|
"handler": "_nv058205rm",
|
|
"missing": "graphics context of a channel group"
|
|
},
|
|
"0x20801218": {
|
|
"handler": "_nv058163rm",
|
|
"missing": "KernelGraphics context buffer sizes"
|
|
},
|
|
"0x2080121b": {
|
|
"handler": "_nv058169rm",
|
|
"missing": "KernelGraphics static information (SM order)"
|
|
},
|
|
"0x20801227": {
|
|
"handler": "_nv058160rm",
|
|
"missing": "KernelGraphics capability table"
|
|
},
|
|
"0x2080122a": {
|
|
"handler": "_nv058170rm",
|
|
"missing": "KernelGraphics static information (GPC mask)"
|
|
},
|
|
"0x2080122b": {
|
|
"handler": "_nv058182rm",
|
|
"missing": "KernelGraphics static information (TPC masks)"
|
|
},
|
|
"0x20801303": {
|
|
"handler": "_nv057667rm",
|
|
"missing": "framebuffer information: MemoryManager, heap and KernelMemorySystem after init (executes; 1 byte differs)"
|
|
},
|
|
"0x20801803": {
|
|
"handler": "_nv057434rm",
|
|
"missing": "PCI BAR information: KernelBus aperture state (executes; 7 bytes differ)"
|
|
},
|
|
"0x20801823": {
|
|
"handler": "_nv057427rm",
|
|
"missing": "bus information: OBJBIF/KernelBif link state after init (executes; 1 byte differs)"
|
|
},
|
|
"0x2080182a": {
|
|
"handler": "_nv057446rm",
|
|
"missing": "PCIe atomics capability words of OBJBIF (executes; equal to the capture for the GPU itself)"
|
|
},
|
|
"0x2080200a": {
|
|
"handler": "_nv058209rm",
|
|
"missing": "KernelPerf boost state"
|
|
},
|
|
"0x2080220c": {
|
|
"handler": "_nv058617rm",
|
|
"missing": "KernelRc watchdog request counters (executes; no reply bytes)"
|
|
},
|
|
"0x20802210": {
|
|
"handler": "_nv058619rm",
|
|
"missing": "KernelRc watchdog request counters (executes; no reply bytes)"
|
|
},
|
|
"0x20802a0a": {
|
|
"handler": "_nv057478rm",
|
|
"missing": "copy-engine capabilities: KernelCE objects and the device info table (executes; 9 bytes differ)"
|
|
},
|
|
"0x20803002": {
|
|
"handler": "_nv057433rm",
|
|
"missing": "NVLink status: KernelNvlink link state"
|
|
},
|
|
"0x20803801": {
|
|
"handler": "_nv057954rm",
|
|
"missing": "graphics-manager floorsweeping information: KernelGraphicsManager and KernelMIGManager"
|
|
}
|
|
},
|
|
"commands_of_later_classes": [
|
|
"0x90e60101",
|
|
"0x503c0102",
|
|
"0x503c0104",
|
|
"0x503c0105",
|
|
"0x906f0101",
|
|
"0xc36f0108",
|
|
"0xa06c0101",
|
|
"0xa06c0103",
|
|
"0xa06c0105",
|
|
"0x83de0309"
|
|
],
|
|
"classes": "all classes other than 0x0000/0x0001/0x0041, 0x0080, 0x2080, 0x2081, 0xcb33",
|
|
"device_node_escapes_not_done": [
|
|
"NUMA_INFO (0xd7)",
|
|
"WAIT_OPEN_COMPLETE",
|
|
"ALLOC_OS_EVENT/FREE_OS_EVENT",
|
|
"STATUS_CODE"
|
|
]
|
|
},
|
|
"node_semantics": {
|
|
"nodes": "/dev/nvidia-rs-rmapi-ctl and /dev/nvidia-rs-rmapi-gpu<minor> (misc devices, mode 0600, no name or major of the original)",
|
|
"device_node_open": "succeeds without engine initialization; the first open attaches the GPU (listed by 0x201, answered by 0x202/0x205, devices allocatable by processes that hold the node open); the last close detaches it and frees its devices. Declared deviation from the original, whose open runs the adapter initialization and fails without it",
|
|
"mmap": "-EINVAL (no mapping context can exist yet)",
|
|
"poll": "queues the caller, reports no event",
|
|
"assumptions": [
|
|
"simulation/emulation properties clear without reading BAR0 0x1070",
|
|
"bytes GPU+0x6d66.. and GPU+0x541f as the constructors leave them (zero)",
|
|
"system properties +0x67, +0x6c..+0x6e, +0xa4..+0xa8 clear; no CPU confidential-computing probe"
|
|
]
|
|
},
|
|
"launcher": {
|
|
"file": "tools/rmapi_namespace_launcher.py",
|
|
"tested": [
|
|
"--self-check",
|
|
"--dry-run",
|
|
"--dry-run --json",
|
|
"argument validation"
|
|
],
|
|
"not_tested": "real mode (unshare, mounts, exec) has never run, on the host or in the guest; the claim that libcuda accepts the redirected nodes is a static reading",
|
|
"recommendation": "params overlay with ModifyDeviceFiles: 0 plus /dev/char/195:<minor> links, inside a read-only nodev tmpfs /dev that holds only generic and redirected nodes"
|
|
},
|
|
"guest": {
|
|
"passed": true,
|
|
"userspace_results": [
|
|
"NV_RS_VM_RMAPI_PASS {\"checks\":299,\"gpus\":1,\"gpu_id\":1}",
|
|
"NV_RS_VM_RMAPI_PASS {\"checks\":299,\"gpus\":1,\"gpu_id\":1}"
|
|
],
|
|
"iommu_userspace_results": [
|
|
"NV_RS_VM_RMAPI_PASS {\"checks\":299,\"gpus\":1,\"gpu_id\":1}",
|
|
"NV_RS_VM_RMAPI_PASS {\"checks\":299,\"gpus\":1,\"gpu_id\":1}"
|
|
],
|
|
"namespace_mechanics_in_guest": "not done: the guest image has no Python interpreter"
|
|
},
|
|
"validate_all": {
|
|
"run": "bash tools/validate_all.sh once on the final tree, exit status 0",
|
|
"steps_passed": [
|
|
"fmt",
|
|
"clippy",
|
|
"test",
|
|
"test_device_software",
|
|
"test_software_manager",
|
|
"test_timeout_runtime",
|
|
"test_pf_software",
|
|
"test_dma_bridge",
|
|
"test_clock_store",
|
|
"test_file_cleanup",
|
|
"test_gpu_arch_codegen",
|
|
"test_gpu_registry",
|
|
"test_native_compute",
|
|
"test_pci_bridge",
|
|
"test_registry_bridge",
|
|
"test_rom_capture_bridge",
|
|
"test_system_memory_bridge",
|
|
"test_thread_state_bridge",
|
|
"test_wpr_shadow_owner",
|
|
"test_gpu_firmware_owner",
|
|
"test_lsf_image_owner",
|
|
"modules",
|
|
"audit",
|
|
"native_codegen",
|
|
"guest_build",
|
|
"initramfs",
|
|
"guest",
|
|
"guest_iommu",
|
|
"result_gate",
|
|
"live"
|
|
],
|
|
"failed": [],
|
|
"summary": "tests passed 650 failed 0",
|
|
"live_step": "tools/run_live_control.py loaded and unloaded kernel-open/nvidia_rs.ko with an empty PCI target on the host; no rmapi node was opened there",
|
|
"after": "kernel taint 12289 (no oops bit), no D-state nv_open_q or nvidia task"
|
|
},
|
|
"additional_runs": {
|
|
"oracle_slice1": "12344 dispatcher cases, 626 allocations, 19 frees, 616 controls, 180 string buffers: pass",
|
|
"generate_rmapi_tables --check": "pass"
|
|
},
|
|
"modules": {
|
|
"kernel-open/nvidia_rs.ko": "e5380fe6dc61f562391d25165768d89b114d599d3aecbef383d4edabbf989c7b",
|
|
"target/vm-module/nv_rs_edu_test.ko": "8cdd95bb5904e80845ef9cfe6df85f620e813f94cdb38322ce122901d43aac01"
|
|
},
|
|
"sources": {
|
|
"src/nvidia/src/rmapi/gpu.rs": "7a4a941a2711ee328d83434fb519226bd5802b1688a4d4adc0c674cc21eca141",
|
|
"src/nvidia/src/rmapi/gpu_tests.rs": "24c5bdee58a664ecc0241d76377700d8497812b61555c83129dbd8021fc9ebcc",
|
|
"src/nvidia/src/rmapi/node.rs": "134951012141bbaa2feb0641f0069ab2d63c02e12aa43f10d60cd98a979606b2",
|
|
"src/nvidia/src/rmapi/system.rs": "c41f7ecfec6252c831dd3d49f29f80cba277d26cec100a65239679975d68c947",
|
|
"src/nvidia/src/rmapi/server.rs": "180f71bf8043a48e5f02b96a9dff99910fb182962d17d693ef98cb082d5ad7c8",
|
|
"src/nvidia/src/rmapi/client.rs": "af9ae703f158b7954f1a50466f40361890c3cbce66ca4b34c3e0c42987709264",
|
|
"src/nvidia/src/rmapi/status.rs": "5be431a7183eb4b1d47114ba66e426976b49431b2dfbc19e19596989d1bc0d9f",
|
|
"src/nvidia/src/rmapi/replay_tests.rs": "7c25209ca66ae57f5ce594b095dc82ff603a97587a10dcda3d63322da60adc13",
|
|
"src/nvidia/kernel/rmapi_node.rs": "126515a1a430d84028eefc2c4a227d453aadfb420ef83dec447b4e3e75ac76ed",
|
|
"kernel-open/nvidia/rmapi_node.c": "69272e10d9fd672d2e87907d9aa283bbe2422570153eb532cbdd2c1cc492134f",
|
|
"kernel-open/nvidia/rmapi_node.h": "04a085d380b04437e6d770619281ae0c734715500404b49505a24a516987269b",
|
|
"tools/check_rmapi_binary.py": "0d03f905708f893b91b07ca61f618fa78c4af3cbd7dbc80e4f2a04c4030f42da",
|
|
"tools/rmapi_binary_emulator.py": "4af55188783d640c5c40044f60e4f2f59a194d61f1039ef97ea9384459f89050",
|
|
"tools/rmapi_namespace_launcher.py": "d344c32d53d922543ee1c1ae716a4cf17e7ec0cd37d672f3c726571e7fc953a7",
|
|
"tests/vm/rmapi_user_test.c": "baaef4f0ecd4e13a559a6e2c32087c1f7d6a2ca820690bb5e7481f0c7eeaddea"
|
|
},
|
|
"shared_files_edited": {
|
|
"kernel-open/nvidia/pci_driver.c": "one call: nv_rs_rmapi_node_gpu_add(pdev, info.boot0)",
|
|
"tests/vm/edu_adapter_test.c": "one call: GV100 PMC_BOOT_0 for the EDU stand-in",
|
|
"src/nvidia/Makefile": "four -u symbols",
|
|
"tools/vm/build_guest_test.sh": "four -u symbols",
|
|
"Makefile": "one line: GPU oracle test in the rmapi target",
|
|
"tools/vm/guest_results.py": "expected check count 299",
|
|
"tests/vm/test_result_gate.py": "fixture count 299/298",
|
|
"tools/vm/build_initramfs.sh": "comment"
|
|
}
|
|
}
|