Rust Linux kernel driver meant as a drop-in replacement for Nvidia's closed 580.178.04 kernel module, with Nvidia's software limits removed
- Language
- Rust
- License
- MIT
- Stars
- 2K
- Try it
git clone https://github.com/QuixiAI/nvdriver && cd nvdriver && sh tools/validate_all.sh
nvdriver, a new open-source project from Eric Hartford's QuixiAI, is a Rust kernel module meant to replace Nvidia's closed Linux kernel driver. The goal is that CUDA, PyTorch, NCCL, llama.cpp and nvidia-smi keep working with Nvidia's own unmodified userspace libraries. The README says it also removes limits Nvidia builds into its closed driver: PCIe peer-to-peer (P2P) on consumer cards, NVENC session caps, and the allowlists and licence timers around vGPU. The repo went public on November 27. By about 03:50 UTC on December 1 it had about 2,000 stars, according to GitHub's search API. A DEV write-up says Monday's Hacker News thread reached #1, with 767 points and 383 comments.
Why it matters
People who run their own AI hardware have complained about these locks for years. One example is P2P, which lets GPUs copy memory to each other directly without going through the CPU. Nvidia's closed driver blocks it on GeForce cards. Hartford's launch post says the gates were found by decompiling the 580.178.04 kernel binary. He lists a 50-entry PCIe table that blocks P2P on RTX 3090/4090/5090 cards, a 256 MiB default for BAR1 (the window through which the CPU sees GPU memory), and checks that detect virtual machines. A working open replacement would let owners use all of the hardware they paid for. XDA calls it an AI-generated driver, and the repo ships AGENTS.md and CLAUDE.md instruction files for coding agents.
What the project claims
All figures below are QuixiAI's own, measured against Nvidia's 580.178.04 driver on Tesla V100-SXM2-32GB cards:
| Test (V100) | Nvidia 580.178.04 | nvdriver |
|---|---|---|
| PyTorch STREAM Triad | 821.85 GB/s | 1,041.72 GB/s (+26.8%) |
| FP16 Tensor Core GEMM | 97.69 TFLOPS | 107.17 TFLOPS (+9.7%) |
| llama.cpp prompt eval (pp512) | 31,067 tok/s | 34,884 tok/s (+12.3%) |
| PCIe pinned host-to-device copy | 12.39 GB/s | 12.40 GB/s |
These speedups don't come from better code. They come from overclocking. The driver raises the V100's HBM2 memory clock from 877.5 MHz to 1,107 MHz, the factory speed of the V100S, and adds a GPU core boost. Where clocks don't matter, as in PCIe copies, the numbers match stock. Notebookcheck summed it up as "up to 23%" faster, but that comes from the overclock too.
What we checked in the repo
We cloned the repo at commit c9c4706 (December 1, 01:55 UTC). We did not build it or load it.
- Hardware coverage. The README marks only Volta (V100, Titan V) as verified on real silicon. Maxwell, Pascal and everything from Turing to Blackwell and Rubin is listed as "verified offline": tested against Nvidia's binary in the Unicorn CPU emulator, but still "awaiting physical silicon test." Display-attached and gaming GPUs have not been validated.
- Two READMEs that disagree.
README.txtwas last changed on November 23 and is still in the repo. It says the code "is not yet a functional GPU or CUDA driver" and that no card is supported. The newerREADME.mddescribes a working drop-in replacement. - "Clean-room." The README uses this label, which normally means the people writing the code never saw the original. But step 2 of
AGENTS.mdtells contributors to decompile or disassemble each original 580.178.04 function before writing it.NOTICE.txtsays the code includes data derived from Nvidia's package, though not Nvidia's proprietary objects, libcuda or firmware. The DEV author argues "reverse-engineered port" is the honest label. As quoted there, Hartford's answer on HN is that analysis and writing can stay separate. - Licence. For its first four days the repo had no licence. An MIT
LICENSEarrived at 00:20 UTC on December 1, closing issue #12. The kernel modules declare "Dual MIT/GPL" so they can link against Linux symbols that are restricted to GPL code. - Size and pace. The repo holds about 315,000 lines of Rust and about 10,000 lines of C shim. It has 94 commits, and outside contributors started landing fixes on November 30.
- Bugs are being fixed fast. The DEV write-up flagged issue #19: NCCL corrupted data on four V100s because freed VRAM wasn't wiped before reuse. A merged commit from November 30 says it resolves #19 by zeroing new VRAM allocations with the GPU's copy engine. Other cited issues, including failures on a GTX Titan X and a Proxmox host, show how far it is from covering other cards.
Defaults to know before you try it
The module ships with v100_hbm_ndiv=82, which means V100 memory runs overclocked by default. Set it to 0 for stock clocks. unpriv_profiling=1 is also on by default. It lets non-root users read hardware performance counters, a feature Nvidia's driver limits to administrators unless you change it. P2P, Resizable BAR and other unlocks are on by default too. The ECC toggle and the Ada tensor unlock are opt-in.
Who should care
Anyone who wants to experiment with a spare V100 box, or study how Nvidia gates features in software, has a lot to dig into here. The README recommends testing inside a disposable VFIO virtual machine first, which is sound advice for any kernel module this new. For production machines, or any non-Volta GPU, this is a research project for now: the only hardware results come from the authors. None of the coverage we read reported a response from Nvidia. What to watch next: independent test reports on RTX 30/40-series cards, where the consumer P2P unlock would matter most.
Sources
- GitHub — QuixiAI/nvdriver (README.md, README.txt, AGENTS.md, NOTICE.txt, LICENSE, commit history) github.com
- Eric Hartford — QuixiAI/nvdriver erichartford.com
- XDA Developers — Someone used AI to rewrite Nvidia's Linux driver in Rust, and its unlocked clocks already beat the original xda-developers.com
- Notebookcheck — Reverse-engineered open-source Nvidia driver for Linux improves performance by up to 23% over official driver notebookcheck.net
- wpnews (republishing DEV) — This Rust Nvidia driver isn't clean-room. It's a diff against the blob. wpnews.pro