Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs

By hackernews · · Repos

Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs

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.

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.

Install & Useful Module Options

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

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:

What Hacker News is saying

  • “Genuine question: how can you claim your code is a clean-room re-implementation when you're using LLMs?”
  • “Proprietary drivers were a problem for running consumer-tier Nvidia GPUs (like RTX series) in datacenters.”
  • “MIG? No. Still needs a license.”
  • “This project is very underrated…”

Read the full discussion on Hacker News →

Source: https://github.com/QuixiAI/nvdriver

More stories