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
107 lines
9.6 KiB
JSON
107 lines
9.6 KiB
JSON
{
|
|
"scope": "UVM slice 2 (2026-11-20): the RM side of the UVM interface for the workload's per-context path (rm_gpu_ops_* beyond session and GPU information), as core Rust over provider traits, compared with the original's instructions. No kernel file was added or changed; nothing of this slice is reachable from the module. No hardware was touched, no node of the loaded driver was opened and the loaded driver was not traced.",
|
|
"original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
|
|
"dossier": "analysis/closed-driver-580/uvm.md, section 'Slice 2 (2026-11-20)'",
|
|
"progress_log": "analysis/closed-driver-580/uvm-slice2-progress.md",
|
|
"evidence_classes": {
|
|
"E2": "original entry points executed under Unicorn by tools/check_uvm_gpu_ops2_binary.py on the GPU object the original constructs for the traced V100 (loader and fixtures of tools/check_rmapi_binary.py and tools/rmapi_binary_emulator.py imported unmodified); client, device, subdevice, VA space, DupObject and the controls 0x801806, 0x801813, 0x801814 are original code; requests marked 'canned' in the record are answered by the case",
|
|
"A": "REA Ghidra procedure_assembly of _nv034568rm (gvaspaceExternalRootDirCommit): externally owned branch and the single TLB-invalidate call site",
|
|
"D": "on-disk Ghidra export for _nv046795rm, _nv046796rm and helpers, _nv046800rm, _nv046771rm, _nv029315rm, _nv046772rm, _nv046861rm, _nv046867rm, _nv046799rm, _nv014211rm, _nv014212rm, _nv034568rm, _nv034570rm, _nv026760rm, _nv046808rm, _nv046816rm, _nv046777rm (first half), _nv046811rm, _nv046853rm, _nv014215rm, _nv046776rm, _nv046863rm, _nv057863rm, _nv033820rm (part), _nv057935rm, _nv032909rm",
|
|
"S": "public nv_gpu_ops.c, kernel_graphics_context.c, kernel_graphics.c, kernel_channel.c, kern_mem_sys_gv100.c of 580.178.04"
|
|
},
|
|
"implemented": {
|
|
"src/nvidia/src/uvm/device.rs": "device_create (_nv046795rm), device_destroy (_nv046796rm)",
|
|
"src/nvidia/src/uvm/address_space.rs": "dup_address_space (_nv046800rm), address_space_create (_nv046771rm), address_space_destroy (_nv046772rm), set_page_directory (_nv046861rm), unset_page_directory (_nv046867rm)",
|
|
"src/nvidia/src/uvm/external_ptes.rs": "dup_memory (_nv046802rm -> _nv026760rm), free_duped_handle (_nv046808rm), get_external_alloc_ptes (_nv046815rm -> _nv046816rm -> _nv046777rm), build_ptes; trait Memory (interface required from the memory slice)",
|
|
"src/nvidia/src/uvm/channel.rs": "get_channel_resource_ptes (_nv046811rm), release_channel (_nv046853rm -> _nv014215rm)",
|
|
"src/nvidia/src/uvm/objects.rs": "provider traits Objects and Locks",
|
|
"src/nvidia/src/uvm/gpu_ops.rs": "RmApi gained interface selection, DupObject, MapToCpu, UnmapFromCpu (default bodies; slice 1 unchanged); ENTRY_POINTS marks 15 implemented entry points",
|
|
"kernel": "none"
|
|
},
|
|
"oracle": {
|
|
"tool": "tools/check_uvm_gpu_ops2_binary.py",
|
|
"record": "target/uvm/original-gpu-ops2.txt",
|
|
"record_sha256": "742bf6438583745835683d23b728e49e0a3da836bff3fa22e3fd38a4e7ad071c",
|
|
"regenerates_identically": true,
|
|
"cases": 211,
|
|
"operations": 734,
|
|
"rm_api_and_lock_lines": 4989,
|
|
"cases_by_group": {
|
|
"device": 105,
|
|
"address space": 68,
|
|
"memory": 36,
|
|
"channel": 2
|
|
},
|
|
"calls_by_entry_point": {
|
|
"device_create": 214,
|
|
"device_destroy": 34,
|
|
"dup_address_space": 109,
|
|
"address_space_create": 9,
|
|
"address_space_destroy": 9,
|
|
"set_page_directory": 63,
|
|
"unset_page_directory": 25,
|
|
"dup_memory": 16,
|
|
"free_duped_handle": 10,
|
|
"get_external_alloc_ptes": 228,
|
|
"get_channel_resource_ptes": 11,
|
|
"release_channel": 6
|
|
},
|
|
"register_access_in_record": "none in 673 operations; 61 operations (non-volatile system-memory mappings) read 0x70000, 0x70010, 0x70004 and write 1 to each",
|
|
"rust_test": "uvm::gpu_ops2_tests::original_gpu_ops2_record_is_reproduced (ignored; NV_RS_UVM_GPU_OPS2_ORACLE): every request in order with interface, handles, parameter bytes, lock sets, status and result summary (device structures, UvmGpuAddressSpaceInfo, UvmGpuMemoryInfo, PTE buffer bytes); passed",
|
|
"not_compared_bytes": "request block of control 0x20801109 beyond its first 8 bytes (the original leaves the rest uninitialized)",
|
|
"mutation_checks": "seven seeded changes (aperture flag of 0x801813, missing Free on INVALID_FLAGS, missing already-set check; ATOMIC_DISABLE bit, volatility rule, L2 flush rule, remaining count) each made the test fail; sources restored byte-identical",
|
|
"fixture_supplied": [
|
|
"canned replies per case: 0x274, class list, 0xc361 + MapToCpu, 0x2080012f, 0x20803001, 0x90e6, 0x90e60101, class 0x7e, 0x20800301, 0x20801303, 0x20801320, 0x20800188, 0x20801354 (device); 0x20801109 (address space); DupObject of memory handles",
|
|
"Memory objects: fixture memory returned from memGetByHandle (_nv043666rm) with a descriptor built by the original's memdescCreate / memdescDescribe / memdescSetPageSize / memdescSetPteKindForGpu, GPU cache attribute poked at +0x74; gpuGetGidInfo (_nv030562rm) answered by the case",
|
|
"retained-channel structure and context-buffer descriptors for release_channel and get_channel_resource_ptes",
|
|
"nv_register_phys_pages / nv_unregister_phys_pages, os_page_size / os_page_shift / os_page_mask, flush registers 0x70004..0x70010 reading 0",
|
|
"Rust replay: the object provider is a model of the world the harness constructed (lines world, object, memory, same, gid), not recorded lookups"
|
|
],
|
|
"not_generated": [
|
|
"dup_address_space of a VA space under a subdevice (the original faults)",
|
|
"mapping page size 0x8000 (the original faults)",
|
|
"compression and format requests of get_external_alloc_ptes (need attributes of a real Memory object)",
|
|
"peer, fabric, EGM and other-GPU memory; MIG; architectures other than Volta",
|
|
"a committed directory on a shared-management VA space (the fixture has no page-table memory: the control answered 0x40; lines marked fixture-limited)"
|
|
]
|
|
},
|
|
"answers": {
|
|
"a_tlb_invalidate": "set_page_directory and unset_page_directory on an externally owned VA space issue none (assembly of _nv034568rm; no register access in 63 + 25 executed calls). On a shared-management space the commit calls gvaspaceInvalidateTlb (vtable +0x1d8, argument 1) once before the root migration (assembly; not executed). The PTE paths issue none; a non-volatile system-memory mapping evicts the framebuffer L2 cache (0x70000, 0x70010, 0x70004 = 1).",
|
|
"b_instance_block": "externally owned space: no instance block byte is written at commit or later by this path; the root descriptor is stored at GVAS+0xf8 and nothing is deferred. Channels of the session's own client bound to the space would be bracketed by 0x2080110b (none for a user's space). Shared-management space: rewritten inside the walker's root migration; that callback was not read.",
|
|
"c_context_buffers": "list rule, total formula, size-source functions and UVM's layout rule are established (uvm.md S2.2); the per-buffer sizes of a V100 compute channel and the decomposition of 0xea7000 are NOT established (three sizes executed on an uninitialized Graphics object: PATCH 0x5000, FECS_EVENT 0x10000, PRIV_ACCESS_MAP 0x80000, alignment 0x1000)."
|
|
},
|
|
"not_done": [
|
|
"retain_channel (_nv046857rm), bind_channel_resources (_nv046776rm), stop_channel (_nv046863rm): not implemented, no oracle; chains read at decompiler / public-source level only",
|
|
"the option-B Backend of uvm::va_space was not extended and the capture replay is unchanged",
|
|
"no kernel-side provider for any trait; no kernel node",
|
|
"uvm.json not updated",
|
|
"default UpdatePdb walker callback (shared-management commit) not read; PROMOTE_CTX body read only as far as the dispatch to _nv033820rm"
|
|
],
|
|
"validation": {
|
|
"date": "2026-11-20",
|
|
"rustfmt": "rustfmt --edition 2021 --check src/nvidia/src/uvm/*.rs: clean",
|
|
"clippy": "cargo clippy --workspace --all-targets -- -D warnings: clean",
|
|
"cargo_test_workspace": "713 passed, 0 failed, 119 ignored",
|
|
"uvm_tests_with_ignored": "19 passed, 0 failed (four oracle variables set)",
|
|
"harness_check_mode": "tools/check_uvm_gpu_ops2_binary.py --check and tools/check_uvm_gpu_ops_binary.py --check: identical records",
|
|
"makefile": "check: gained the slice-2 harness --check line and the replay test line",
|
|
"validate_all_sh": "not run: no kernel file was touched"
|
|
},
|
|
"tested_sources_sha256": {
|
|
"src/nvidia/src/uvm/address_space.rs": "1cfc3d50490d7093ec4cb4d2788247b960f880886acb85df1ae4d3d7ecddad47",
|
|
"src/nvidia/src/uvm/channel.rs": "de31c6ddee4bf7c2d2460eb3cd3dc566cc35ea7504e8f828c6e891a5fbe9f6c9",
|
|
"src/nvidia/src/uvm/device.rs": "69330cd44f10f237a6def5a87d3cf4d0d5c359c83142a7e496388479c1705762",
|
|
"src/nvidia/src/uvm/external_ptes.rs": "82b4bd5832c331fffba81fe5f3e42604dcd21d004132643ad8884b61bc6f1b1d",
|
|
"src/nvidia/src/uvm/gpu_ops.rs": "df2c30644a94edbf6d2acd60d880c3f20589dec0163ce647e8b1635d003995e0",
|
|
"src/nvidia/src/uvm/gpu_ops2_tests.rs": "cd49f76989f24f0458cce20cc53e1fde3f1cb804065a33c813c2518a14c0333d",
|
|
"src/nvidia/src/uvm/gpu_ops_tests.rs": "0de1e17b8ed6dc6202e3d342374990a86b2e2da39351eb2283105bf59aae11cc",
|
|
"src/nvidia/src/uvm/ioctl.rs": "2e7b4b33b8ab38f29e4c9e0a7e29c1fd455e0a3ad2dc8d74d3cdb2b88ba4f5d9",
|
|
"src/nvidia/src/uvm/mod.rs": "d16338ff99f8a005fa0d01b7ed6c8a59c009dd5882b76372f0fdfe4944cd87dd",
|
|
"src/nvidia/src/uvm/objects.rs": "5dd86679abedaf76151471239e981e63e200161309924b21afecfd67a1694556",
|
|
"src/nvidia/src/uvm/status.rs": "9dbb53d48d0b0e39e6b6abc642a05e1b14db2fb59daa7886dd5a7e73f5b08eb1",
|
|
"src/nvidia/src/uvm/va_space.rs": "b5d7bf32fad4470d5dc5416d4095467f60b8b2b4b443ed942b0dcca7cbb13d62",
|
|
"src/nvidia/src/uvm/va_space_tests.rs": "560789dee30b7370d76abea9abe3610deaee811568a34004f37b145cd56a1b5f",
|
|
"tools/check_uvm_gpu_ops2_binary.py": "e33cd4f8eb744630f89cfd71cf1b45c71079731327867b90634a9f92f3ed7834"
|
|
}
|
|
}
|