github QuixiAI/nvdriver v0.2.0
nvdriver v0.2.0 — Multi-Gen GSP-RM (Turing–Blackwell), Maxwell/Pascal ACR, Drop-in UX & Rust Lifecycle Ledgers

one hour ago

Highlights

nvdriver v0.2.0 removes every architecture boot refusal stub across Maxwell through Blackwell, introduces drop-in ./install.sh UX, moves RMAPI allocation/DMA/file-mapping/GPU-slot lifecycle bookkeeping out of C into #![no_std] Rust, and lands dozens of real-silicon fixes from community testing.

Multi-Generation GPU Support (Zero Boot Refusal Stubs)

  • Unified Turing–Blackwell GSP-RM Split-RM Runtime (TU10x/TU11x, GA100/GA10x, AD10x, GH100, GB10x/GB20x):
    • Every GSP-RM family now routes through the unified ga10x*.rs + gsp_route.rs split-RM runtime via a single GspFirmwareChipFamily::boot_mode() (FwsecBooter for Turing/Ampere/Ada; Fmc BootROM handshake for Hopper/Blackwell).
    • Real-silicon Ada Lovelace & strict-IOMMU fixes (ported from RTX 4060 AD107 testing in #145, @morebrackets): NV_USABLE_FB_SIZE_IN_MB (0x1183a4) priority preventing FWSEC-FRTS error 0xbf, persistent 4 KiB coherent DMA sysmem flush page (0x100c40/0x100c10) eliminating strict-IOMMU IO_PAGE_FAULTs, and cold-boot AD10x SEC2 scrubber (0x1180fc).
    • Per-GPU GSP-RM forwarding (ControlNode::escape_target_gpu_id()) enabling heterogeneous pre-GSP + GSP-RM hosts (#127).
  • Maxwell & Pascal Pre-GSP Firmware Extraction & Boot (GM107–GP108):
    • Extended tools/extract_gv100_firmware.py (--family gm20x|gp100|gp10x|all) to extract REA-verified 580.178.04 ACR/PMU firmware packs (gm20x.fw, gp100.fw, gp10x.fw).
    • Wired LoadedPack::request_legacy + HS Falcon IMEM/DMEM upload & execution into boot_maxwell_pascal_pre_gsp, fixed pre-GSP unload deadlock (ApiGuard, #140 @gdevenyi), and added P102-100 (10de:1b07, #135 @bromt9).

Zero-Friction First-Run UX (#133)

  • nvidia_rs.ko now defaults to runtime_engines=1 and pci_target=* (with explicit bringup=N diagnostic staging precedence).
  • ./install.sh now auto-extracts pre-GSP firmware packs and copies local GSP blobs, configures /etc/modprobe.d/nvdriver.conf (install nvidia /bin/false, alias char-major-195-* nvidia_rs), /etc/modules-load.d/nvdriver.conf, and /etc/udev/rules.d/70-nvdriver.rules (automatic /dev/nvidia* symlinks across reboots), and enables BIND_DEV_NODES=1 by default so nvidia-smi and PyTorch/CUDA work immediately without a mount-namespace wrapper.

GV100 / RMAPI / UVM Stability & Parity

  • Rust-Owned RMAPI Lifecycle Ledgers (#142 Phases 1–4): Moved OS allocation refcounting (AllocLedger), DMA map tracking (DmaMapLedger), per-file mmap contexts (FileMappingLedger), and per-minor GPU slot/generation/BAR/NUMA state (GpuSlotLedger) out of kernel-open/nvidia/rmapi_node.c into #![no_std] Rust — eliminating LIST_POISON double-unlink GPFs (#118, #126) by construction.
  • Shared Pinned User-Page Refcounting (#144, @Scottcjn): Backing::UserPages (0x71) now participates in has_backing_ref by lock token.
  • CUDA Graphs Partial Unmap/Split (#134): Implemented uvm_unmap_external_in_range + uvm_ext_gpu_map_split (full cover, head/tail trim, middle hole-punch split).
  • GV100 Power, Clocks & ECC (#136, #130, #121):
    • Implemented 0x2080e61e (nvidia-smi -pl <watts> power limit set + stateful readback) and expanded INA3221 PMGR I2C port probing (0..10).
    • Added runtime-writable per-PCI-BDF clock overrides (v100_hbm_ndiv_map, v100_p0_gpc_ndiv_map).
    • Fixed GV100 FBPA ECC BAR0 register offsets (+0x478/+0x47c status, +0x480/+0x484 SEC, +0x488/+0x48c DED across both subpartitions) and surveyed baseline.ndiv() restore on v100_hbm_ndiv=0.
  • Toolchain & Portability (#124, #64): Migrated workspace to Rust Edition 2024 (@LIghtJUNction), made tools/validate_all.sh host-portable (PATH rustc, Python 3.14 ctypes ioctl, transparent .ko.zst/.ko.xz conformance checks).

Verification on 37d716a

  • Offline & Kernel Hygiene: cargo fmt/clippy/test (958 + 2 passed), tools/generate_hardware.py --check, NV_RS_KERNEL_IBT=0 & NV_RS_KERNEL_IBT=1 make modules + tools/check_kernel_module.py (largest_stack = 1000, 0 GOT, 0 SIMD, 0 naked ret/retpoline/SLS/ENDBR violations), tests/kernel-module-gate/test_gate_cases.py (18/18 passed), QEMU EDU verify_rust_guest.py (maxframe = 984).
  • Live Silicon (1× Tesla V100-SXM2-32GB VFIO VM, 0000:b3:00.0): Full CUDA/cuBLAS/cuBLASLt/cuFFT/cuRAND/cuSPARSE/cuSOLVER/NVRTC/UVM/Graphs/IPC/Multi-Context suite PASSED in 25.1 s (guest_run_rc = 0, rmmod_ok = true, clean_unload = true).

Don't miss a new nvdriver release

NewReleases is sending notifications on new releases.