Open-Source Rust Driver nvdriver Unlocks Nvidia GPU Hardware

Original title: Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs
71AI Score

nvdriver is a clean-room, open-source no_std Rust Linux kernel driver positioned as a drop-in replacement for Nvidia's proprietary driver, working with unmodified CUDA, PyTorch, llama.cpp and stock companion modules. It removes software locks to enable PCIe/BAR1 P2P, GPUDirect RDMA and unlimited NVENC sessions, and raises V100 HBM2 clocks to 1107 MHz for a 26.2% bandwidth gain to 1041.7 GB/s per card.

Full Report

nvdriver

<img width="2172" height="724" alt="image" src="/api/v1/file/hot_img_28aad4b0718b83881c53b89f73e64257.webp" />

nvdriver (nvidia_rs.ko) is a clean-room, open-source #![no_std] Rust Linux kernel driver for NVIDIA GPUs — built to be a drop-in replacement for NVIDIA's proprietary kernel driver while giving you back full control of the hardware you own. It works out of the box with unmodified NVIDIA userspace (CUDA, PyTorch, cuDNN, NCCL, llama.cpp, nvidia-smi, NVENC/NVDEC) and unmodified stock companion modules (nvidia-uvm.ko, nvidia-modeset.ko, nvidia-drm.ko), without reproducing the artificial software locks NVIDIA ships in its closed driver. That means PCIe & BAR1 P2P across consumer and datacenter GPUs, Resizable BAR1 enabled by default, GPUDirect RDMA, unlocked NVENC sessions, no vGPU/hypervisor/CSP allowlists, and native support for pre-GSP architectures (Maxwell, Pascal, Volta) alongside modern Turing–Blackwell–Rubin GSP-RM GPUs. On Tesla V100 (GV100) cards, nvdriver also unlocks HBM2 memory clocks to 1107 MHz (V100S factory spec, +26.2% memory bandwidth, 1,041.7 GB/s per card / 8.33 TB/s across 8× V100) alongside dynamic P0 boost (1290 MHz all-bin stable default / 1425 MHz golden-bin OC, 1380 MHz XBAR, and a 1 Hz on-die thermal guard) and live hardware nvidia-smi telemetry — made possible by the pioneering hardware research of arikamidotnet and FBR-ROM/FBR-RAM-Downloader.


Why nvdriver?

  • Drop-In Compatibility: Runs unmodified libcuda.so, libnvidia-ml.so, nvidia-smi, libnvidia-encode.so, libnvcuvid.so, PyTorch, cuDNN, NCCL, and llama.cpp — plus unmodified stock nvidia-uvm.ko and nvidia-modeset.ko / nvidia-drm.ko via exact CONFIG_MODVERSIONS bridges.
  • Unlocks Artificial Software Restrictions: Removes NVIDIA's closed-driver product-tier and chipset gates — enabling PCIe & Dynamic BAR1 P2P (RMDynBar1P2PEnable=1 + RMDisableFeatureDisablement=1, including optional PCIe P2P Atomics), Resizable BAR1 by default, Native Linux dma-buf + P2PDMA / GPUDirect RDMA, unrestricted NVENC sessions/telemetry, CMP Mining Card Full Compute Unlock (CMP 100-210, 170HX, 90HX, 70HX, 50HX, 40HX, 30HX), Ada Lovelace SM Speed-Select Tensor Unlock (unlock_ada_tensor=1), Unprivileged Hardware Profiling (unpriv_profiling=1 default for non-root ncu/nsys/CUPTI), Zero-Reboot Dynamic ECC Toggle (disable_ecc=1), and vGPU / SR-IOV without CPUID or GRID licensing timers.
  • +26.2% Tesla V100 Memory Bandwidth Out of the Box (1,041.7 GB/s / 8.33 TB/s on 8× V100): Safely raises GV100 HBM2 clocks from the stock 877.5 MHz cap to 1107.0 MHz (v100_hbm_ndiv=82, V100S factory spec) with dynamic P0 boost (1290 MHz all-bin stable GPC / 1380 MHz XBAR + 1 Hz thermal guard, 1425 MHz configurable), live runtime-writable sysfs clocks (no module reload), per-partition lock verification, automatic rollback on error, and clean restore on unload — thanks to arikamidotnet and FBR-ROM/FBR-RAM-Downloader.
  • Live Hardware Telemetry (nvidia-smi / NVML + Native Linux /sys/class/hwmon): Exposes per-GPU Linux hwmon sensors (temp1_input, power1_average, in0_input, gpc_clock_mhz, mem_clock_mhz, gpu_util_pct, mem_util_pct for lm-sensors, btop, nvtop, and Prometheus node_exporter) alongside NVML/RMAPI telemetry (PROM BIT VBIOS version 88.00.80.00.01, hardware NV_PPWR_PMU_IDLE_COUNT GPU & memory utilization counters 0x2080a097 / 0x20802087, and PMGR I2C INA3221 power probe).
  • x86_64 & ARM64 / SBC PCIe Support (ARCH=arm64): Builds for both x86_64-unknown-none and aarch64-unknown-none (-C target-feature=-neon,-fp-armv8) with explicit non-coherent DMA cache sync (dma_sync_single_for_cpu/device) for ARM64 PCIe boards (RK3588, Ampere Altra, Apple Silicon Linux).
  • Maxwell Through Blackwell & Rubin in One Driver: Supports pre-GSP GPUs (Maxwell, Pascal, Volta) natively in Rust alongside Turing, Ampere, Hopper, Ada Lovelace, Blackwell (620.70.06 GSP-RM default, 580 compat), and Rubin (GR100).
  • Built in #![no_std] Rust with Strict Kernel Hygiene: Pure #![no_std] Rust core statically linked into a minimal Linux C shim, passing a 10/10 kernel ABI audit (zero GOT relocations, zero SIMD/x87, zero memcpy/memset/memmove, zero unwind sections, every stack frame <= 1,024 bytes).
  • Verified on Real 8-GPU Hardware: Battle-tested side-by-side against stock NVIDIA 580.178.04 on 8× physical Tesla V100-SXM2-32GB (256 GiB VRAM) — passing 77/77 CUDA Parity Suite checks, 8-GPU PyTorch/NCCL AllReduce (59.71 GB/s BusBW, max_err = 0.0), 8-GPU 8.33 TB/s HBM2 STREAM Triad, multi-GPU FP16/FP32 GEMM & llama.cpp, 25.781 Gbps NVLink 2.0, H.264/HEVC NVENC & NVDEC, S3/S4 suspend/resume, and automatic Xid 31 fault recovery with clean module unload.

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)