Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

QuixiAI/nvdriver

System Tools

Clean-room Rust Linux kernel driver for NVIDIA GPUs, unlocking P2P, ReBAR and V100 HBM clocks.

122
17
Rust
1 day old

What it does

nvdriver (nvidia_rs.ko) is a clean-room, #![no_std] Rust kernel driver intended as a drop-in replacement for NVIDIA's proprietary Linux kernel driver. It keeps the unmodified NVIDIA userspace stack working — CUDA, PyTorch, cuDNN, NCCL, llama.cpp, nvidia-smi, NVENC/NVDEC — and bridges to stock companion modules such as nvidia-uvm.ko, nvidia-modeset.ko and nvidia-drm.ko through CONFIG_MODVERSIONS symbol bridges.

The driver focuses on removing restrictions it attributes to NVIDIA's closed driver: PCIe and BAR1 P2P, Resizable BAR1 by default, GPUDirect RDMA, unrestricted NVENC sessions, vGPU/SR-IOV without CPUID or licensing gates, and native support for pre-GSP GPUs (Maxwell, Pascal, Volta). On Tesla V100 (GV100), it also raises HBM2 clocks from the stock 877.5 MHz cap to 1107 MHz, the V100S specification, and applies an optional dynamic P0 boost. The V100 clock unlock builds on prior hardware research from arikamidotnet and FBR-RAM-Downloader.

The README reports bare-metal testing on 8× Tesla V100-SXM2-32GB against stock driver 580.178.04, with 77/77 CUDA parity checks and aggregate HBM2 STREAM at 8.33 TB/s. Those numbers are the maintainer's own measurements, not an independent benchmark.

Build and install

Prerequisites: Linux x86_64 with kernel headers at /lib/modules/$(uname -r)/build, a Rust toolchain with the x86_64-unknown-none target, and existing NVIDIA userspace libraries. Then run:

rustup target add x86_64-unknown-none
sh tools/validate_all.sh

The script builds nvidia_rs.ko and runs the unit, oracle, QEMU guest and kernel-hygiene checks. Optional companion-module bridges are built with make uvm-bridge / make modeset-bridge. Installation uses ./install.sh, which supports Secure Boot MOK signing. Module options go in /etc/modprobe.d/nvidia_rs.conf, for example:

options nvidia_rs pci_target=* runtime_engines=1

For V100 tuning, v100_hbm_ndiv=82 is the default 1107 MHz setting (0 restores stock), and v100_p0_gpc_ndiv controls the dynamic GPC boost; v100_p0_volt_uv=0 keeps the VBIOS voltage and caps GPC at 1290 MHz. A disposable VFIO VM test is available through sudo python3 tools/vm/run_vfio_guest.py --bdf <PCI_BDF> --driver rust. The repository's parity and unlock reference contains the full 43-chip matrix and unlock details.

Constraints and risks

This is a kernel module that replaces the GPU driver, so a bad install can affect boot, display and GPU state; the recommended live test path is a throwaway VFIO VM. Only Volta (GV100) is stated as physically verified. Maxwell, Pascal and Turing–Blackwell–Rubin HALs are described as implemented and offline-verified but awaiting physical silicon tests, and display-attached GPUs are not yet validated. Tegra SoCs (Jetson Orin/Thor) are explicitly unsupported. Above 1290 MHz, GV100 voltage scaling is incomplete by design and GPC frequency is capped unless the voltage bring-up succeeds. The repository declares no license, so redistribution and commercial use terms are unclear.

HotRepo's take

The repository appeared on the Rust new-project list on 2026-11-29 with 112 stars and 16 forks, gaining 10 stars in the roughly 1.5-hour window ending 06:15 UTC; no GitHub daily rank is recorded. The subject matter — a from-scratch Rust replacement for a vendor kernel driver with hardware-level frequency unlocks — explains the attention better than any measured adoption signal. The gap between the broad 43-chip support claim and the single verified GV100 hardware platform is the main thing to resolve before treating it as production-ready, especially since there is no license and no declared compatibility beyond x86_64 discrete PCIe GPUs.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

Hacker News

You might also like

  1. oosexgang/hackios-xnu-kernelPort of Apple's open-source Darwin XNU kernel to Android phones, with its own loader and drivers, running from RAM.C2,726