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
38 lines
2.5 KiB
Plaintext
38 lines
2.5 KiB
Plaintext
Implemented bounded Rust event lifetime core and Linux5.15 diagnostic integration.
|
|
|
|
Evidence origin: /home/geodd/nvidia-driver/analysis-580.178.04/reports/
|
|
deep-rm-abi-lifetime.txt and .json, fresh REA identifiers there, original RMblob
|
|
SHA2565269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b.
|
|
Exact official580.178.04 os.c/osapi.c/escape.c and packagednv.h/nv.c corroborate
|
|
reference acquisition, active/unlinked state, deferred destruction, two posting
|
|
references and close's posting drain. This Rust implementation is newly authored
|
|
and is not a transcription of inferred C or complete NVIDIA RM reconstruction.
|
|
|
|
Implemented in src/nvidia/src/events.rs: fixed event/file capacities, owner namespace
|
|
and generation checks, duplicate(client,fd) rejection across files, associated RM
|
|
references distinct from in-flight posting references, inactive deferred reaping,
|
|
client purge, file close/drain, checked counters and pin-preserving failure.
|
|
AtomicU64 owner allocation is monotonic/nonwrapping; table mutation needs exclusive
|
|
access. Generation exhaustion retires a slot. No allocator or unsafe code used.
|
|
|
|
Seven focused tests pass: deferred free/reuse; teardown during unlocked delivery;
|
|
multiple associated/post refs; duplicate key and underflow; overflow transaction
|
|
and retired generation; cross-instance event/file/post-pin alias rejection with
|
|
pin recovery; ordinary release cannot consume a posting pin. Standalone verification:
|
|
rustc --edition=2021 --test src/nvidia/src/events.rs -o /tmp/nv-rs-events-test
|
|
/tmp/nv-rs-events-test
|
|
|
|
make modules compiled actual freestandingRustobject, linked C adapter, ran Kbuild
|
|
modpost and produced nvidia_rs.ko for5.15.0-202-generic. verify-object.py passed all
|
|
nine machine-code/artifact checks; JSON includes hashes/vermagic. No undefinedRust
|
|
symbols, SIMD/x87 register use, unwind sections, negativeRSP redzone references,
|
|
or PCI aliases found. No module was loaded and no running driver changed.
|
|
|
|
Kernel integration only provides diagnostic protocol/capability values plus event
|
|
selfcheck and read-only module parameters. NoCUDA/GPU, hardwarebinding, NVIDIA
|
|
nodes/IOCTLs, UVM or DRM implemented. Kernelruntime and concurrency stress remain
|
|
untested. FullLinux queued/dataless delivery semantics remain a future adapter.
|
|
modules_install requires staging and DEPMOD=true; final staging verification is
|
|
owned by root agent. Paths support KERNEL_UNAME/KERNEL_SOURCES/KERNEL_OUTPUT and
|
|
SYSSRC/SYSOUT compatibility aliases. Only NV_KERNEL_MODULES=nvidia_rs accepted.
|