Files
nvdriver/tests/hardware
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
..

Native kernel acceptance test

make native-hello
CUDA_VISIBLE_DEVICES=<GPU-UUID> make test-native-hello \
  PCI_BDF=0000:1a:00.0 EXPECT_PCI_DRIVER=nvidia EVIDENCE_LABEL=original-580

The standalone Rust host uses the installed CUDA Driver API to load an sm_70
native cubin. It allocates256 bytes, poisons them, launches64 threads, waits,
copies the output back and verifies every word against two distinct inputs.
It then frees the memory, unloads the module and destroys the context. It uses
neither the CUDA runtime nor PTX JIT. Compilation needs nvcc supporting sm_70.

The runner records PCI binding before/after, kernel, exact libcuda and workload
hashes, per-run results and strace logs under reports/native-hello-<label>.
It refuses a mismatched expected PCI driver. It does not change driver bindings.
CUDA_VISIBLE_DEVICES is recorded; use the actual target UUID to limit runtime
visibility. Device discovery may still inspect other boards.

An original-driver pass establishes the acceptance workload and baseline only.
The Rust replacement must independently pass the same workload with its own
actual target binding, device interfaces, initialization and submission path.
Remaining original-bound devices or a successful baseline are not replacement
execution evidence. A failed or incomplete run never counts as a pass.

tools/native_hello_ioctl_trace.js optionally instruments this exact spawned
host through REA Frida. It records NVIDIA ioctl headers and up to4096 bytes of
RM allocation/control payload before/after calls, without changing arguments.
These are real user/kernel interface observations, not a trace of kernel MMIO
or proof that each observed command is necessary. Preserve capture truncation,
read errors, cleanup state and original-driver status when interpreting them.