Nvdriver project offers clean-room Rust Linux driver for Nvidia GPUs

Nvdriver project offers clean-room Rust Linux driver for Nvidia GPUs

Nvdriver (the module is nvidia_rs.ko) is described in its GitHub README as a clean-room, open-source #![no_std] Rust Linux kernel driver for NVIDIA GPUs. The README says it is built to be a drop-in replacement for NVIDIA's proprietary kernel driver, and that it works out of the box with unmodified NVIDIA userspace (CUDA, PyTorch, cuDNN, NCCL, llama.cpp, nvidia-smi, NVENC/NVDEC) and with the unmodified stock companion modules nvidia-uvm.ko, nvidia-modeset.ko and nvidia-drm.ko. The stated difference is that it does not reproduce what the README calls artificial software locks in NVIDIA's closed driver.

The list of removed restrictions is long. It covers PCIe and Dynamic BAR1 peer-to-peer across consumer and datacenter GPUs (optionally with PCIe P2P Atomics), Resizable BAR1 enabled by default, native Linux dma-buf and P2PDMA with GPUDirect RDMA, unrestricted NVENC sessions and telemetry, and full compute unlock on CMP mining cards (CMP 100-210, 170HX, 90HX, 70HX, 50HX, 40HX, 30HX). It also lists an opt-in Tensor Core unlock on Ada Lovelace (RTX 40-series) through unlock_ada_tensor=1, unprivileged hardware profiling for ncu, nsys and CUPTI (on by default), a zero-reboot dynamic ECC toggle (disable_ecc=1, opt-in), and vGPU / SR-IOV without CPUID checks or GRID licensing timers. Hardware coverage is said to run from pre-GSP Maxwell, Pascal and Volta (handled natively in Rust) through Turing, Ampere, Hopper, Ada Lovelace and Blackwell to Rubin (GR100), on both x86_64 and ARM64, including SBC PCIe boards such as RK3588, Ampere Altra and Apple Silicon Linux, with explicit non-coherent DMA cache sync.

The headline performance feature is for Tesla V100 (GV100) cards. The driver raises HBM2 memory clocks from the stock 877.5 MHz to 1107 MHz, the V100S factory spec. That is +26.2% memory bandwidth: 1,041.7 GB/s per card and 8.33 TB/s across 8x V100. It also adds dynamic P0 boost, with a 1290 MHz GPC default that the README calls stable on all silicon bins, 1425 MHz as a configurable golden-bin overclock, a 1380 MHz XBAR clock and a 1 Hz on-die thermal guard. Clocks are runtime-writable through sysfs without reloading the module, and the README lists per-partition lock verification, automatic rollback on error and clean restore on unload. It credits this memory-clock unlock to hardware research by arikamidotnet and FBR-ROM/FBR-RAM-Downloader. Every GPU also gets a native Linux hwmon sensor node (name nvdriver) with temperature, power, clocks and utilisation that lm-sensors, btop, nvtop and Prometheus node_exporter can read, alongside NVML telemetry.

The README reports verification against stock NVIDIA 580.178.04 on 8x physical Tesla V100-SXM2-32GB (256 GiB VRAM). Results listed: 77/77 CUDA Parity Suite checks, 8-GPU PyTorch/NCCL AllReduce at 59.71 GB/s bus bandwidth with max_err = 0.0, an 8-GPU HBM2 STREAM Triad at 8.33 TB/s, multi-GPU FP16/FP32 GEMM and llama.cpp runs, 25.781 Gbps NVLink 2.0, H.264/HEVC NVENC and NVDEC, S3/S4 suspend and resume, and automatic Xid 31 fault recovery with clean module unload. A fuller 3-way benchmark breakdown is said to be in docs/PARITY_AND_UNLOCKS.md.

The project ships four standalone kernel modules: nvidia_rs.ko (with integrated UVM), nvidia_rs_modeset.ko, nvidia_rs_drm.ko and nvidia_rs_peermem.ko. It claims 100% Linux UVM ioctl parity (73/73), 2,096/2,096 RM controls dispatched and 899 passing Rust unit and oracle tests. The Rust core is statically linked into a minimal Linux C shim and, per the README, passes a 10/10 kernel ABI audit: zero GOT relocations, zero SIMD/x87, no memcpy/memset/memmove, no unwind sections, and every stack frame at or under 1,024 bytes.

The README is open about what is unfinished. Raising GV100 voltage above the VBIOS boot voltage (about 0.72 V) for 1425 to 1530 MHz needs a full PMU VFE, THERM, CLK and VOLT bring-up that is not complete, so the driver caps the GPC at 1290 MHz by default whenever voltage scaling is inactive. The Maxwell, Pascal and Turing-through-Rubin GSP-RM and display paths are implemented and checked only offline (119/119 mock_gv100_diff.py and 19/19 oracle_gsp_620.py checks), not on physical non-Volta or display-attached GPUs. Only discrete PCIe GPUs are supported; Tegra SoCs such as Jetson Orin and Thor are not.

Key facts

  • Nvdriver (nvidia_rs.ko) is a clean-room, open-source #![no_std] Rust Linux kernel driver that the README says is a drop-in replacement for NVIDIA's proprietary driver and works with unmodified CUDA, PyTorch, NCCL, llama.cpp and nvidia-smi.
  • It claims to remove NVIDIA's software locks: P2P and Resizable BAR1 by default, GPUDirect RDMA, unrestricted NVENC sessions, CMP card compute unlock, an opt-in Ada tensor unlock and vGPU without licensing timers.
  • On Tesla V100 it raises HBM2 from 877.5 MHz to 1107 MHz, reported as +26.2% memory bandwidth (1,041.7 GB/s per card, 8.33 TB/s across 8 cards), with a 1290 MHz default GPC cap.
  • Reported testing is on 8x Tesla V100-SXM2-32GB against stock NVIDIA 580.178.04: 77/77 CUDA Parity Suite checks and 59.71 GB/s NCCL AllReduce bus bandwidth.
  • Non-Volta GPU and display paths are verified offline only (119/119 and 19/19 mock and oracle checks), and Tegra SoCs are not supported.

Why it matters

The README's pitch is a Rust alternative to NVIDIA's closed Linux driver, with the same userspace interface and fewer restrictions. If the claims hold, it would let owners of consumer and datacenter cards use features the README says the stock driver gates by product tier, such as peer-to-peer over PCIe, GPUDirect RDMA and unlimited NVENC sessions. The V100 memory-clock unlock is the most concrete payoff: 877.5 MHz to 1107 MHz HBM2 is +26.2% bandwidth on a memory-bound card.

Who it affects

The README's tested audience is people running Tesla V100 boxes, especially multi-GPU servers using PyTorch, NCCL or llama.cpp. It also targets owners of CMP mining cards, RTX 40-series (Ada) users interested in the Tensor Core unlock, anyone wanting P2P on GeForce cards, people running vGPU or SR-IOV, and ARM64 and SBC PCIe builders (RK3588, Ampere Altra, Apple Silicon Linux). Jetson and other Tegra SoCs are explicitly out of scope.

How to use it

The README lists these requirements: Linux on x86_64 or arm64 with kernel headers, a Rust toolchain with the x86_64-unknown-none (or aarch64-unknown-none) target, and existing NVIDIA userspace libraries. sh tools/validate_all.sh builds nvidia_rs.ko and runs a 30-step unit, oracle, QEMU guest and kernel-hygiene gate; ARCH=arm64 make modules builds for ARM64. ./install.sh handles installation and supports Secure Boot MOK signing, or you can configure /etc/modprobe.d/nvidia_rs.conf with options such as nvidia_rs pci_target=* runtime_engines=1. A dkms.conf is included for rebuilds across kernel upgrades. Key parameters: v100_hbm_ndiv (82 is the default, 1107 MHz; 80 gives 1080 MHz, +23%; 78 gives 1053 MHz, +20%; 0 is stock 877.5 MHz) and v100_p0_gpc_ndiv, which can be changed live through /sys/module/nvidia_rs/parameters without reloading. unlock_ada_tensor and disable_ecc are opt-in; dyn_bar1_p2p, enable_resizable_bar and unpriv_profiling are on by default. No licence for nvdriver itself is stated in the text.

How solid is it

The performance and parity figures are the project's own; no independent verification or third-party review is mentioned. Real-hardware testing is stated only for 8x Tesla V100-SXM2-32GB. The README says non-Volta hardware is implemented and verified offline only, with no results reported on consumer GeForce, CMP, Ada, Blackwell or Rubin cards. The claim to be clean-room is the project's description; no legal analysis of it is given. The README points to docs/PARITY_AND_UNLOCKS.md, a reverse-engineering report and HANDOFF.md for the underlying evidence.

Risks and caveats

The GV100 voltage scaling needed for clocks above 1290 MHz is unfinished, so the default GPC cap stays at 1290 MHz and the 1425 MHz golden-bin overclock is configurable only. The README describes the memory overclock as safe and mentions automatic rollback on error, but it gives no stability or warranty guidance beyond that. Display-attached GPUs and non-Volta silicon are unvalidated on real hardware. No NVIDIA response is given, and no plan for upstreaming into the Linux kernel is mentioned. Anyone loading a replacement kernel driver on production GPUs is taking on the risk of an unproven third-party project.

“built to be a drop-in replacement for NVIDIA's proprietary kernel driver”

— nvdriver project README