mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 06:28:39 +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
193 lines
14 KiB
JSON
193 lines
14 KiB
JSON
{
|
|
"scope": "RM API slice 3b (five more information controls with Rust producers), the control cache, and the classification of the slice 3c commands. No CUDA program was run, no node of the original driver was opened, nothing was run against libcuda, and no GPU register was accessed by this work. This is not a working userspace interface: no engine exists behind the nodes; 36 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",
|
|
"tool_sha256": "7cb8519b32ae96625eaad694092ae813b7667b86e13ee8ece2b8bc5d06cfd84f",
|
|
"slice1_record": {
|
|
"path": "target/rmapi/original-rmapi.txt",
|
|
"sha256": "354d1f9244060af687c581637c45b9e2a4ac9ea9fad965ffd1d5a3485baa2a52",
|
|
"unchanged_from_slice1": true
|
|
},
|
|
"gpu_record": {
|
|
"path": "target/rmapi/original-rmapi-gpu.txt",
|
|
"sha256": "0bca0a5d351dd9b2b7f18c48d4c02384f7be7afa33f013a00f30ce3a72f59982",
|
|
"cases": 3,
|
|
"operations": 428,
|
|
"controls_per_case": {
|
|
"gpu-classes": 102,
|
|
"gpu-control-cache": 73,
|
|
"gpu-slice3b": 67
|
|
},
|
|
"regenerated_identically": "tools/check_rmapi_binary.py --check passed after the final edit"
|
|
},
|
|
"changes": [
|
|
"the control cache runs in the original's default mode (1); the mode-2 workaround is removed; 'flush' steps call the original's rmapiControlCacheFreeAllCacheForGpu (_nv054205rm) for instance 0 and the system-wide key 0x20 where a case wants the handler",
|
|
"step 'sweep': the original base PreInit pass _nv031220rm executed on the constructed GPU with the per-engine PreInit dispatcher _nv026850rm replaced by status 0 (prologue and missing-engine sweep are original code); returns 0; removes engines ce681800, d1755e00, 55952e00, d3bfb400; reads 146 distinct registers (values: first read of each in target/trace/b3-bar0.txt); would write 0x200=0x42001120 and 0x1100=8 (recorded, not applied)",
|
|
"record lines 'descriptors' and 'classdb' (class descriptor list GPU+0xd90 and class database GPU+0xdc8 of the original object), peeks of the chipset object (system+0x208), OBJBIF (GPU+0x1e88) and KernelRc (GPU+0x20f8)"
|
|
],
|
|
"rust_comparison": "rmapi::gpu_tests::original_gpu_object_record: 116 allocations, 60 frees, 242 controls, 10 descriptor registrations, 163 peeked words, 4 class tables; every status, reply byte, parameter byte, destruction order, peeked word and table record equal; no mask; nothing skipped (the 13 control-cache operations of slice 2 are part of the rewritten cache case); 39 replies entered the Rust cache. Not compared: the diagnostics column",
|
|
"fault_injection": [
|
|
"cache never hits for GPU instance 0",
|
|
"cache replaces an existing entry",
|
|
"watchdog flag condition inverted",
|
|
"host bridge device range widened by one",
|
|
"sweep polarity inverted",
|
|
"class list de-duplication removed",
|
|
"atomics first-word test narrowed to one byte"
|
|
],
|
|
"fault_injection_result": "each of the seven made the comparison fail; the restored sources pass",
|
|
"limits": [
|
|
"the GPU is constructed, not initialized; the sweep step runs no engine PreInit body, so the state is 'after the sweep', not 'after PreInit'",
|
|
"sweep register values are the first transcript read of each register; 0x200 changes later in the transcript; the KernelNvlink removal seen in the sweep depends on such values and is recorded as observed only",
|
|
"a GPU whose display fuse is clear is not covered (its attach reads display registers the transcript lacks)",
|
|
"host caps for multi-GPU devices, GPU+0x92b set, the enable/disable watchdog commands, privileged cacheable commands and the non-persistent cache free are not exercised",
|
|
"one GPU, no concurrency; RM API lock is a fixture"
|
|
]
|
|
},
|
|
"capture_replay": {
|
|
"requests_compared": 823,
|
|
"previously_compared": 687,
|
|
"requests_not_replayed": 3599,
|
|
"mask": [
|
|
{
|
|
"field": "client handles",
|
|
"treatment": "translated"
|
|
},
|
|
{
|
|
"field": "gpuFlags bit 0 (IN_USE) of 0x202/0x205",
|
|
"treatment": "masked; 216 bit differences",
|
|
"reason": "as slice 2: produced by _nv030934rm on the initialized GPU"
|
|
}
|
|
],
|
|
"new_in_this_slice": {
|
|
"0x800292": 16,
|
|
"0x801402": 16,
|
|
"0x2080182a": 72,
|
|
"0x2080220c": 16,
|
|
"0x20802210": 16
|
|
},
|
|
"notes": "0x2080182a: 16 queries of the GPU itself (zero records) and 56 peer queries (status 0x56) match; 0x800292: the 99-class list equals the captured list of each of the eight GPUs; the node's control cache is active during the replay",
|
|
"inputs_taken_from_the_capture_machine": "as slice 2, plus the Jtag and display-fuse words of 0000:b3:00.0 from the physical transcript (0x1373a0=0xa, 0x21c04=1), assumed equal on the seven other boards of the same model; the class database is taken as swept (initialized GPUs)"
|
|
},
|
|
"rea_readings": [
|
|
"procedure_assembly _nv013519rm (class database delete)",
|
|
"procedure_assembly _nv030260rm",
|
|
"procedure_assembly _nv028946rm (display presence fuse query 0xff00003b, present when 0)",
|
|
"procedure_assembly _nv039407rm (host capabilities)",
|
|
"procedure_callers _nv030258rm, _nv030259rm, _nv030260rm (writers of the class database)",
|
|
"exported pseudocode (decompiler level) for the other routines named in the notes; public source for the cache rules, confirmed by execution"
|
|
],
|
|
"implemented_in_this_slice": {
|
|
"controls": {
|
|
"0x800292": {
|
|
"handler": "_nv022202rm -> _nv030463rm",
|
|
"producer": "rmapi::providers::class_db (+ class_db_gv100, generated)",
|
|
"inputs": "GV100 class descriptor list (original constructor output, 121 entries); BAR0 0x1373a0 and 0x21c04 read at the first open of the device node"
|
|
},
|
|
"0x801402": {
|
|
"handler": "_nv022229rm -> _nv013913rm -> _nv039407rm",
|
|
"producer": "rmapi::providers::kernel_bus",
|
|
"inputs": "chipset I/O-coherent property (constructor value), first host bridge vendor/device from the PCI core, GPU+0x93f (clear)"
|
|
},
|
|
"0x2080182a": {
|
|
"handler": "_nv057446rm -> _nv057447rm",
|
|
"producer": "rmapi::providers::bif",
|
|
"inputs": "OBJBIF+0xbf0 records: zero after the constructors and in the capture; writer not searched for"
|
|
},
|
|
"0x2080220c": {
|
|
"handler": "_nv058617rm -> _nv042163rm",
|
|
"producer": "rmapi::providers::kernel_rc",
|
|
"inputs": "request-time bookkeeping"
|
|
},
|
|
"0x20802210": {
|
|
"handler": "_nv058619rm -> _nv042163rm",
|
|
"producer": "rmapi::providers::kernel_rc",
|
|
"inputs": "request-time bookkeeping"
|
|
}
|
|
},
|
|
"control_cache": "rmapi::cache; rules in the implementation notes 7.4",
|
|
"workload_commands": {
|
|
"total": 68,
|
|
"implemented": 32,
|
|
"unavailable": 36,
|
|
"unavailable_needing_engine_state": 26,
|
|
"unavailable_other_classes": 10
|
|
}
|
|
},
|
|
"not_done": [
|
|
"0x20800170 and 0x20802a0a (listed for 3b): their state is not constructor state; it needs the copy-engine PCE-LCE mapping of KernelCE InitLocked (chain in notes 7.5)",
|
|
"slice 3c: no command implemented; the 26 commands are classified from executed statuses and pseudocode, without assembly-level confirmation and without running stage bodies in front of the handlers",
|
|
"NV_ESC_NUMA_INFO on the device node",
|
|
"the kernel register-reader path has never run on a real GPU"
|
|
],
|
|
"kernel": {
|
|
"nodes": "unchanged: /dev/nvidia-rs-rmapi-ctl and /dev/nvidia-rs-rmapi-gpu<minor>",
|
|
"registers_read_on_hardware": {
|
|
"0x1373a0": "Jtag status word, read before the fuse word as the original does",
|
|
"0x21c04": "display fuse word (bit 0 set: no display engines)"
|
|
},
|
|
"when": "once per bound GV100, at the first open of its device node, under the node mutex, through nv_rs_pci_read32 (registered by the PCI probe with nv_rs_rmapi_node_gpu_reader)",
|
|
"registers_written": "none",
|
|
"registers_read_at_control_time": "none",
|
|
"other_inputs": "PCI vendor/device id of the first host bridge (pci_get_class), at node init",
|
|
"shared_files_edited": [
|
|
"kernel-open/nvidia/pci_driver.c (two static wrappers and one call after the node registration)",
|
|
"src/nvidia/Makefile (five symbols in the -u list)",
|
|
"Makefile (one check line in the rmapi target)",
|
|
"tools/vm/build_guest_test.sh (five symbols)",
|
|
"tests/vm/edu_adapter_test.c (fixture register reader)",
|
|
"tests/vm/test_result_gate.py and tools/vm/guest_results.py (assertion count 313)"
|
|
]
|
|
},
|
|
"source_sha256": {
|
|
"src/nvidia/src/rmapi/cache.rs": "aa9aa58316a669d1a9c18ed050eee18acee29db7057e40bed546eff62addad2b",
|
|
"src/nvidia/src/rmapi/gpu.rs": "7b485289cb5725e9f898d11788b5bbb3109f8ef55786d9ef1bcda488f8152413",
|
|
"src/nvidia/src/rmapi/node.rs": "4bc25cb76471a5d855708f6facbd6063a4d77edc3391521bbb290e02cbdea3c2",
|
|
"src/nvidia/src/rmapi/system.rs": "22ab206b762e38b2d1c27c1f2a7e912ce1827585c69210deaac815ffe0f647bc",
|
|
"src/nvidia/src/rmapi/gpu_tests.rs": "d4b8613162f159f22d6bfc5110f5ea2d66572084a1167215332e1d5d41afd8a9",
|
|
"src/nvidia/src/rmapi/replay_tests.rs": "fa86cb4aedc20e0255e54b44c066ae68c4c1d0e71585610d44f2c1a178bf36b4",
|
|
"src/nvidia/src/rmapi/providers/mod.rs": "0e3ebb8c421140467929644b5d9b61dc6aa1314cba353c6d72ce59444b55afec",
|
|
"src/nvidia/src/rmapi/providers/class_db.rs": "26d4b613a55ad06566560a51f36ecdd240f275ea9c8569efb87babb2b75a0a0b",
|
|
"src/nvidia/src/rmapi/providers/class_db_gv100.rs": "709b3557aefd04e88adff26dd15fef565077f09c6e0868021846ab6ffab6ae66",
|
|
"src/nvidia/src/rmapi/providers/kernel_bus.rs": "2284a6624089447c118cdc6139a2c539c235b43889be2a514d029178ff135828",
|
|
"src/nvidia/src/rmapi/providers/bif.rs": "36b95b94a5fe51b9368a5bf5dbd4975122aafa9e0e527bf56f290a415812cedc",
|
|
"src/nvidia/src/rmapi/providers/kernel_rc.rs": "dde699ed60330f4f5517a11a478e2ae78546e49390b1ad55023fd260484e0e42",
|
|
"src/nvidia/kernel/rmapi_node.rs": "cf2719ae3559329ad22ad3c4318d2220e698c2eb004a1561b51786456a6ac3f1",
|
|
"kernel-open/nvidia/rmapi_node.c": "fd646f632e737b99199c02275d891f3544e01f9e2822ae94e46281b7e513cd2b",
|
|
"kernel-open/nvidia/rmapi_node.h": "bd4c596dcf73768332154cec89357c806c316e79480926ac97d1acaffab9db06",
|
|
"tests/vm/rmapi_user_test.c": "cb1b7d840772fd6feb03caf5bb55ba5944d6c5602b54e316c17a6036643e51f8",
|
|
"tools/generate_rmapi_class_db.py": "c098e03e49b7984b74a62cc8f4b506092f097bf0c39751bb81350b8858a28de3"
|
|
},
|
|
"guest_and_validation": {
|
|
"validate_all_main_tree": {
|
|
"script": "tools/validate_all.sh, run twice in the working tree (logs target/validate-logs/rmapi3-validate-run1.txt and -run2.txt)",
|
|
"result": "26 of 30 steps pass in both runs: fmt, clippy, test (673 workspace tests, 0 failed), the 18 tools/test_*.sh steps, modules, audit, native_codegen, initramfs, live. guest_build, guest, guest_iommu and result_gate FAIL",
|
|
"cause_of_the_four_failures": "another agent's in-progress change: src/nvidia/kernel/adapter_start.rs imports crate::pmu_bringup, and tests/vm/rust_backing.rs (the guest's Rust crate root) does not declare that module, so the guest module does not build (error E0432 in target/validate-logs/guest_build.log); guest, guest_iommu and result_gate then run against a stale guest module. Waited about 25 minutes after the failure was first seen (the import dates from 20:42 UTC, the last check was at 21:35 UTC); not fixed in the working tree when this report was written. The file belongs to the bring-up path and was not edited",
|
|
"module_sha256_run1": "6770c745228d8d27c3cdf49a4a1fe62e294078945f0c7794c768b3f9e46b2c8a",
|
|
"module_sha256_run2": "458a3a54d80ea5b36eedfe7eb89924e689ef27b4c70cb54bc3256683ecd20ef1",
|
|
"module_note": "kernel-open/nvidia_rs.ko; the hash differs between the runs because another agent's sources changed in between. tools/check_kernel_module.py passes (no GOT relocations, after the cache storage was rewritten to avoid memcpy and memset)",
|
|
"stale_guest_module_sha256": "8cdd95bb5904e80845ef9cfe6df85f620e813f94cdb38322ce122901d43aac01",
|
|
"live_step": "passes; it loads the module on the host and opens no RM API node, so the register-reader path did not run on hardware"
|
|
},
|
|
"guest_private_copy": {
|
|
"what": "the same guest steps run from a private copy of the sources (scratchpad), identical to the working tree except for tests/vm/rust_backing.rs, which there has the two lines '#[path = \"../../src/nvidia/kernel/pmu_bringup.rs\"] mod pmu_bringup;' that the other agent's change needs (and one file of that agent that changed after the copy, src/nvidia/src/gpu/acr_unload.rs)",
|
|
"results": {
|
|
"guest_build": "pass",
|
|
"initramfs": "pass",
|
|
"guest": "pass",
|
|
"guest_iommu": "pass",
|
|
"result_gate": "pass"
|
|
},
|
|
"rmapi_user_test": "NV_RS_VM_RMAPI_PASS {\"checks\":313,\"gpus\":1,\"gpu_id\":1} twice per run (once per module load), with and without the emulated IOMMU; 299 before this slice",
|
|
"guest_module_sha256": "5a6b384e815514520749f29f2fbfa2be84e177d18c2e73fc08be7ae205b73802",
|
|
"covers": "the device node's first open reading the two attach registers through a fixture reader of the guest adapter (values of the V100 transcript), the 99-class list, 0x56 on the subdevice, host capabilities, atomics (self and peer), watchdog requests, a cache hit on the device handle, the normal path for an object without a GPU attribute, the size rule on a cached command",
|
|
"two_existing_assertions_changed": "0x801402 on the device no longer answers 0x56 (now implemented), and 0x20801701 on the device handle now answers from the cache as the original does; both lines were replaced by commands that are still refused (0x801307, and the non-cacheable 0x20800131 on the device)"
|
|
}
|
|
}
|
|
}
|