Files
nvdriver/reports/gpu-operation-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

162 lines
9.0 KiB
JSON

{
"status": "per_owner_process_sequence_lock_and_removal_drain_implemented",
"scope": "GPU/storage/module lifetime and mechanical process-context operation serialization. No actual HAL policy, full RM lock hierarchy or physical GPU quiescence claim.",
"source_snapshot_sha256": {
"src/nvidia/kernel/gpu.rs": "8db659ca83da552967f63755392fc0f30bbbae5ca0587cc6768ef885dfacded7",
"kernel-open/nvidia/gpu_owner.c": "833cd9fe4bc73bd73c0581e479b08b42bccf5c97b05be0477fa319f32607242b",
"kernel-open/nvidia/gpu_owner.h": "6babcd798c3f2a82589bd7cc44b74fe11b4ba7bf79b9c991374a74f2188032a8",
"kernel-open/nvidia/gpu_bridge.h": "ecb1f08d7067ce3374495753406e6bb54af6ef040ce46fd4f722d4e859b9efa8",
"tests/dma-mock/ffi.rs": "41a2814dd7d5a1fcdee2b68a0cc1d0c6444055edccf21113ab06445a91e61bd0",
"tests/dma-mock/system_memory_real_lease.rs": "f949732d3a92331ad42c91197893bbb0c08ff4c78927e9345626eb30b8e6eb6f",
"tests/vm/edu_adapter_test.c": "92586ec23088ad19b0feaee21616ccd705f224779678d2d290b5de8f895bbe64",
"tests/vm/rust_backing.rs": "d4de2ab2c8ece64f832beb236b50fe20c39caaf14075fa08ca8f0903896a8dd8",
"tools/vm/build_guest_test.sh": "724be443b88ecdfb177c3a10783e07a62eacfe5b4b87343512179f57980f6fec",
"tools/vm/guest_results.py": "9c697d4797a5e2234b1beb181608701bd8e7f322b9519fe4861b7527836955e4",
"tests/vm/test_result_gate.py": "5eb7879775cea09a7840edb367e4754d7c1c7ff8507229ed6426119dabef2097"
},
"snapshot_limit": "Current root-owned source snapshot. Tested binary hashes are separately recorded; not a complete retroactive build-input manifest.",
"implementation": [
"Production C GPU owner initializes mutex and waiter counter, providing paired lock/unlock callbacks in the private8-argument prepare API. NULL pair makes locked acquisition unavailable; half-pair rejected before DMA construction.",
"GpuLease::lock_register_io clones owned module/GPU lifetime before waiting, rejects unavailable lock services, preserves callback errors and rechecks GPU removal after acquisition.",
"LockedGpuRegisters grants sequence serialization, implements RegisterIo and unlocks on Drop before releasing its owned lease. Acquiring task must perform final unlock.",
"Owner removal marks GPU removed, drains operation mutex, marks PCI removed, unlocks, then consumes driver base as final owner access.",
"Linux callback rejects interrupt, disabled-IRQ or detected atomic context; callers must independently ensure sleepable context with no spinlock/RCU read-side critical section.",
"Read-only GpuLease::identity returns admitted boot-derived raw architecture/implementation and rejects removed state. It does not prove runtime/factory/readiness."
],
"validation": {
"host_Rust_GPU_DMA_tests": 8,
"host_C_DMA_checks": 4305,
"new_host_test": "locked_register_owner_unlocks_before_cleanup_and_rechecks_removed_after_lock",
"host_log": "reports/gpu-operation-host.log",
"full_host_adapter_log": "reports/build-current-host-adapters.log",
"host_cases": [
"invalid lock callback pair",
"missing operation services",
"lock error with no unlock",
"removal inside acquisition followed by post-lock rejection/unlock",
"unlock before final owner destruction",
"existing module-pin/removal/retry tests"
],
"VM_cases": [
{
"report": "reports/vm-adapter-validation.json",
"results": [
{
"checks": 107,
"rust_backing_checks": 35,
"gpu_cleanup_retries": 1,
"gpu_register_checks": 11,
"gpu_operation_checks": 22,
"dma_poll_reads": 16,
"dma_roundtrip_bytes": 64,
"irq_mode": 2,
"iommu_dma_domain": false,
"gpu_parity": false
},
{
"checks": 107,
"rust_backing_checks": 35,
"gpu_cleanup_retries": 1,
"gpu_register_checks": 11,
"gpu_operation_checks": 22,
"dma_poll_reads": 16,
"dma_roundtrip_bytes": 64,
"irq_mode": 4,
"iommu_dma_domain": false,
"gpu_parity": false
}
],
"artifacts": {
"target/vm/vmlinuz": "d820688f039cb28deea210c1c75eb377437ba832ddd415460b79b88d4bb02761",
"target/vm/initramfs.cpio.gz": "7b49d334c66a96d5d73b11c190e78aa973f8fd51cf17839500662319a3f4fba9",
"target/vm-module/nv_rs_edu_test.ko": "e29ee7c964ff52abae9aeaaa4f6fbf565d0c7a37c80f8f0acb2d1841a82f21ac"
}
},
{
"report": "reports/vm-adapter-iommu-validation.json",
"results": [
{
"checks": 107,
"rust_backing_checks": 35,
"gpu_cleanup_retries": 1,
"gpu_register_checks": 11,
"gpu_operation_checks": 22,
"dma_poll_reads": 16,
"dma_roundtrip_bytes": 64,
"irq_mode": 2,
"iommu_dma_domain": true,
"gpu_parity": false
},
{
"checks": 107,
"rust_backing_checks": 35,
"gpu_cleanup_retries": 1,
"gpu_register_checks": 11,
"gpu_operation_checks": 22,
"dma_poll_reads": 16,
"dma_roundtrip_bytes": 64,
"irq_mode": 4,
"iommu_dma_domain": true,
"gpu_parity": false
}
],
"artifacts": {
"target/vm/vmlinuz": "d820688f039cb28deea210c1c75eb377437ba832ddd415460b79b88d4bb02761",
"target/vm/initramfs.cpio.gz": "7b49d334c66a96d5d73b11c190e78aa973f8fd51cf17839500662319a3f4fba9",
"target/vm-module/nv_rs_edu_test.ko": "e29ee7c964ff52abae9aeaaa4f6fbf565d0c7a37c80f8f0acb2d1841a82f21ac"
}
}
],
"VM_predicates_per_case": {
"unique_outer_assertions": 107,
"register_owner_checks": 11,
"operation_checks": 22,
"Rust_backing_checks": 35,
"minimum_DMA_poll_reads": 2,
"minimum_cleanup_retries": 1
},
"VM_sequence": [
"holder acquires/writes/reads actual EDU inversion register through LockedGpuRegisters",
"IRQs-disabled nested acquire rejects without attempting held mutex",
"ordinary acquisition worker reaches waiting callback before removal (one waiter)",
"removal worker marks GPU removed and waits (two waiters)",
"new and existing Rust accesses reject removed state while C PCI read still succeeds",
"holder unlocks on its acquiring task",
"ordinary waiter acquires then rejects removed state with ENODEV",
"removal marks PCI removed and returns",
"both tasks explicitly joined; parent refs and cleanup retry then drain"
],
"VM_codegen": "reports/vm-rust-object-validation.json",
"VM_scope": "Actual production Rust guard/C owner/PCI adapter code on EDU with synthetic V100 admission metadata and one injected close failure. No host PCI passthrough.",
"independent_review": "reports/gpu-operation-independent-review.json",
"workspace_tests_checkpoint": 287,
"workspace_log": "reports/build-current-tests.log",
"make_check": "passed reports/build-current-check.log",
"production_module_build": "passed reports/build-current-module.log",
"production_object_checks": "reports/kernel-object-validation.json",
"tested_production_module_sha256": "9907e48d7e8c717f1c9562f346e10d50b17a88879785bcee3c774b317d74af49",
"live_control_checks": 116,
"live_software_differential_cases": 42,
"live_module_unloaded": true,
"physical_NVIDIA_bindings_unchanged": true,
"negative_gate": "tests/vm/test_result_gate.py passed with missing operation coverage and wrong assertion totals rejected"
},
"lock_and_lifecycle_contracts": [
"Not original RM global/multi-GPU lock hierarchy. Only participating locked operations serialize; unsafe unlocked/C accesses require their own actual policy/serialization.",
"No recursive same-task acquisition; pass one guard down nested HAL operations. Existing operations must not need registry locks held by removal.",
"Hardware producers and IRQs must be stopped/quiescent under a correct surrounding protocol. Mutex drain is not engine stop or DMA completion.",
"External leases pin module text. Final Drop executes in active VFS/probe/removal or exit-joined worker context; !Send alone does not prove this.",
"External acquisition may fail after MODULE_STATE_GOING. Future hardware shutdown needs an exit-owned/internal access protocol; prepared-state code enables no engines today.",
"This is a blocking, uninterruptible mutex primitive. Cancellation, fairness, original concurrency/performance parity and real hotplug are unverified.",
"Retained permanent cleanup failure can block teardown; one injected finite failure proves only this bounded retry path."
],
"build_fix": {
"file": "kernel-open/nvidia/rom_buffer.c",
"change": "Include linux/mm.h for installed5.15 kvzalloc/kvfree declarations; module rebuilt successfully. Host allocation algorithm unchanged.",
"source_sha256": "6313fb667fff7d74e41f326b0adb0bd515bdbd5225bb20e5ef52390f58a4c4c5"
},
"GPU_execution": false,
"CUDA_supported": false,
"full_parity": false
}