nvdriver: This Open-Source NVIDIA Linux Driver Promises to Remove Software Locks
A Linux kernel driver for NVIDIA graphics cards, rewritten in Rust from the official disassembled driver: meet nvdriver, whose first version has just been released by Eric Hartford. Compatible with CUDA and PyTorch, it would also remove the software locks imposed by NVIDIA. Here’s what we know.
Eric Hartford, creator of the open source AI models Dolphin and founder of Quixi AI, has just released version 0.1.0 of nvdriver on GitHub. The goal is to provide a kernel module written in Rust (nvidia_rs.ko) that replaces NVIDIA’s main module (nvidia.ko). The entire user-space side remains NVIDIA’s, with no changes whatsoever: PyTorch, llama.cpp, and hardware video encoding and decoding (NVENC and NVDEC). As a result, the official companion modules (nvidia-uvm.ko, nvidia-modeset.ko and nvidia-drm.ko) can be kept as-is.

So why create this kernel module in Rust? As a reminder, NVIDIA has been publishing its own open source kernel modules since 2022, but they only support Turing GPUs (GeForce RTX 20) and newer. They rely on GSP, an integrated GPU processor that only exists starting with that generation (see NVIDIA’s documentation). Maxwell, Pascal, and Volta therefore depend on the proprietary driver, and NVIDIA has announced that the 580 branch would be the last to support them.
This is where nvdriver comes in, since it is based specifically on driver 580.178.04 and offers an open source module for these older architectures. But that’s not all: it targets all generations, from Maxwell to Rubin (GeForce RTX 20 to 50, A100, H100, B200, etc.), while promising to eliminate software restrictions.
A driver rewritten function by function, with AI agents
Artificial intelligence was used to achieve this result, as explained in the GitHub repository. To do this, each function of the proprietary 580.178.04 driver is first decompiled and disassembled, then rewritten in Rust. To validate it, the project runs the original code and its Rust version in Unicorn, a CPU emulator, and requires a bit-for-bit identical result. Final validation takes place on real cards, assigned via VFIO to disposable virtual machines, with the official driver on one side and nvdriver on the other.
The AI agents are therefore driven in a way that includes a loop of analysis and verification before any modification, which makes it possible to proceed gradually while validating as the project advances. The project presents itself as a clean-room reimplementation (a method where, in principle, the people writing the new code do not have access to the original), while openly relying on direct analysis of NVIDIA’s binary. There is therefore no proprietary NVIDIA binary.
What nvdriver unlocks
According to nvdriver, the proprietary driver would contain a series of software locks that limit certain cards, regardless of their hardware capabilities. If you’re interested, all of this is detailed in a long post available on GitHub. For its part, nvdriver takes a more hard-hitting approach since it reproduces none of these locks, with the aim of "giving you full control over the hardware you own".
Here are the main unlocks:
- License-free virtualization : NVIDIA vGPU, which allows a GPU to be shared between multiple virtual machines, is paid software, and each VM must obtain a license from an NVIDIA license server. Without a license, the driver degrades vGPU in stages, as described in NVIDIA’s documentation: after 20 minutes, display is limited and CUDA slows down, then after 24 hours, CUDA stops working. nvdriver removes these timers, effectively doing away with the license.
- Multi-GPU on consumer cards : PCIe P2P exchanges (from one card to another, without going through system memory) would be blocked on recent GeForce cards (RTX 3090, 4090, 5090), even behind a compatible PCIe switch. nvdriver allows them on all cards, as well as GPUDirect RDMA (direct access to GPU memory by another device).
- Fully accessible video memory : the window that allows the CPU to access video memory (BAR1) is expanded to the maximum as soon as the driver is loaded, instead of the 256 MB left by default on consumer cards.
- Video encoding : the number of simultaneous NVENC sessions is no longer limited.
On the performance side, the measurements are based on the Tesla V100, the only card tested on real hardware. By default, nvdriver increases its HBM2 memory frequency from 877.5 MHz to 1,107 MHz, which is the factory frequency of the V100S, based on the same chip. This looks like a hardware unlock, but it is done in a controlled way: there is a check at load time and an automatic rollback to the original frequency in case of error. And this translates into better performance, with a memory throughput of 1,041.72 GB/s on the STREAM Triad test, compared with 821.85 GB/s with the official driver (+26.8%), and a 12.3% gain on prompt processing with llama.cpp. Huge!
The project’s own tables also show that at identical memory frequency, the two drivers are almost tied (831.78 GB/s versus 821.85 GB/s).
For now, only the Tesla V100 has been validated on real hardware, on a machine equipped with eight cards. Support for Maxwell, Pascal, and Turing through Rubin has only been verified in emulation so far, pending tests on real cards. So if you have the hardware on hand and the time, you can run tests and contribute to this open source project!
What do you think?


