Skip to content
Nvdriver is a clean-room, open

Nvdriver is a clean-room, open

News.Ycombinator • November 30, 2026

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 .

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.

Performance vs. Proprietary NVIDIA 580.178.04 (Tesla V100-SXM2-32GB)

Single-GPU & 2-GPU NVLink Head-to-Head (Identical VFIO VMs, 0000:b2/b3:00.0 )

Bare-Metal 8× Tesla V100-SXM2-32GB ( geodd03 , 256 GiB VRAM)

See docs/PARITY_AND_UNLOCKS.md for the complete 3-way benchmark breakdown (including stock-clock 877.5 MHz vs. unlocked 1107 MHz HBM2).

Supported GPUs (At a Glance)

For the full 43-chip architecture matrix , verified workload parity table , and disassembly-backed table of unlocked NVIDIA restrictions , see docs/PARITY_AND_UNLOCKS.md .

Linux x86_64 or arm64 ( aarch64 ) with kernel headers ( /lib/modules/$(uname -r)/build )

Rust toolchain with x86_64-unknown-none (or aarch64-unknown-none for ARM64/SBCs) target

Existing NVIDIA userspace libraries ( libcuda.so , nvidia-smi , etc.)

Install & Useful Module Options

Use ./install.sh (supports Secure Boot MOK signing) or configure /etc/modprobe.d/nvidia_rs.conf :

Key tunable parameters:

v100_hbm_ndiv=82 (default, runtime-writable 0644 ) — GV100 / CMP 100-210 HBM2 clock divider ( 82 = 1107 MHz V100S spec / +26.2%, 80 = 1080 MHz / +23%, 78 = 1053 MHz / +20%, 0 = stock 877.5 MHz ).

v100_p0_gpc_ndiv=190 (default, runtime-writable 0644 , auto-capped to 172 / 1290 MHz unless Level-3 HS voltage scaling succeeds) — GV100 dynamic P0 boost GPC NAFLL divider; can be updated live via /sys/module/nvidia_rs/parameters/v100_p0_gpc_ndiv without reloading the module.

v100_p0_volt_uv=0 (default, experimental) — Optional GV100 LOGIC rail voltage target in µV (hard-clamped to [800_000, 1_050_000] µV in <= 25 mV steps; 0 keeps VBIOS boot voltage and caps GPC to 1290 MHz ).

unlock_ada_tensor=0 (opt-in) — Pre-GSP Ada Lovelace ( AD10x / RTX 40-series) SM Speed-Select FP32-accumulate Tensor Core unlock ( SS0 = 0x88888888 , SS1 = 0x8 , PLM-guarded).

dyn_bar1_p2p=1 (default) — Enables Dynamic BAR1 P2P ( RMDynBar1P2PEnable=1 + RMDisableFeatureDisablement=1 + RMForceP2PType=2 ) in the GSP-RM registry alongside EnableResizableBar=1 .

unpriv_profiling=1 (default) — Allows non-root userspace CUPTI / ncu / nsys hardware performance counters ( RMRestrictProfilingToAdminUsers=0 ).

disable_ecc=0 (opt-in) — Zero-reboot dynamic ECC disable toggle across RMAPI, UVM, and GSP-RM without flashing InfoROM.

live_pci_irq=1 (default) — Enables storm-guarded hardware MSI-X/PCI IRQ servicing across PFIFO, PGRAPH, PMU, THERM, and HUB/MMU ( live_pci_irq=0 to disable).

enable_resizable_bar=1 (default) — Automatically expands BAR1 to the largest supported ReBAR aperture.

force_p2p=0x11 (default) — Enables PCIe P2P Read+Write ( 0x211 opts into PCIe P2P Atomics).

gsp_abi=620 (default) — Selects GSP-RM 620.70.06 framing for Turing–Blackwell–Rubin ( 580 for 580.178.04 compat).

system_memory_pool_retain_mb=0 (default) — Trims cached system-memory pages on client close so MemAvailable stays accurate.

Live /sys/class/hwmon Telemetry & Runtime Clock Tuning

Every GPU exposes a native Linux hwmon sensor node ( name = nvdriver ) readable by lm-sensors , btop , nvtop , and Prometheus node_exporter , and GV100 clocks can be adjusted live without reloading nvidia_rs.ko :

Safe Live Testing in a Disposable VFIO VM

580.178.04 Subsystem Parity & Kernel Module Suite

nvdriver ships 4 standalone Linux kernel modules ( nvidia_rs.ko with integrated UVM, nvidia_rs_modeset.ko , nvidia_rs_drm.ko , and nvidia_rs_peermem.ko ) with 100% Linux UVM ioctl parity ( 73/73 ) , 2,096/2,096 RM controls dispatched , and 899 passing Rust unit/oracle tests :

Documentation & Deep Dives

docs/PARITY_AND_UNLOCKS.md — Full 43-GPU architecture matrix, verified workload & digest parity table, and complete NVIDIA artificial-restrictions unlock reference.

docs/blog-nvidia-artificial-restrictions.md — Deep-dive write-up on the software locks discovered in NVIDIA's closed driver.

reports/nvidia-580-artificial-restrictions-rea.md — Full reverse-engineering notes, disassembly, .rodata tables, and struct offsets.

HANDOFF.md — Detailed engineering log and verified artifact digests.

Known Limitations & Roadmap

GV100 Dynamic V/F Above 1290 MHz: Raising NV_THERM_VID0_PWM_1 ( 0x20344 , Priv Level 3) above VBIOS boot voltage ( ~0.72 V ) for 1425–1530 MHz across all silicon bins requires full PMU VFE + THERM + CLK + VOLT prerequisite bring-up. Until complete, nvidia_rs.ko safely caps GPC to 1290 MHz by default whenever voltage scaling is inactive.

Non-Volta & Display-Attached Silicon: Maxwell, Pascal, and Turing–Blackwell–Rubin GSP-RM/Display HALs are implemented and verified offline ( 119/119 mock_gv100_diff.py + 19/19 oracle_gsp_620.py ), but have not yet been validated on physical non-Volta or display-attached GPUs.

Discrete PCIe GPUs Only (x86_64 & ARM64): Tegra integrated SoCs (Jetson Orin / Thor) are not supported.

Credits & Acknowledgments

arikamidotnet & FBR-ROM/FBR-RAM-Downloader (MIT): Live GV100 / Tesla V100 HBM2 memory-clock unlock ( 0x98BC98 multicast HBMPLL coefficient programming, PMC_BOOT_0 canary, PRI-ring write-only safety window, 16-partition lock + readback verification, and 36-bit hardware DRAM cycle-counter metering), along with the upstream research it credits ( cmpunlocker , 170tune , CMP100-210 ).

Zagitta/gpu-unlock & JustAResearcher/gpu-unlock-ada : Ada Lovelace ( AD10x ) pre-GSP SM Speed-Select ( SS0 / SS1 ) FP32-accumulate Tensor Core unlock research.

Cinderella-Man/geforce-dynbar1-p2p & tinygrad/open-gpu-kernel-modules : Consumer GeForce Dynamic BAR1 P2P ( RMDynBar1P2PEnable ) & P2P unlock research.

us4us/nvidia-open-gpu-kernel-modules & scottjg/nvidia-armsbc : Mainline Linux dma-buf / P2PDMA export and non-coherent ARM64 SBC PCIe support inspiration.

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.