报道正文
nvdriver
<img width="2172" height="724" alt="image" src="/api/v1/file/hot_img_28aad4b0718b83881c53b89f73e64257.webp" />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.
Why nvdriver?
- Drop-In Compatibility: Runs unmodified
libcuda.so,libnvidia-ml.so,nvidia-smi,libnvidia-encode.so,libnvcuvid.so, PyTorch, cuDNN, NCCL, andllama.cpp— plus unmodified stocknvidia-uvm.koandnvidia-modeset.ko/nvidia-drm.kovia exactCONFIG_MODVERSIONSbridges. - 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 Linuxdma-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=1default for non-rootncu/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/son 8× V100): Safely raises GV100 HBM2 clocks from the stock877.5 MHzcap to1107.0 MHz(v100_hbm_ndiv=82, V100S factory spec) with dynamic P0 boost (1290 MHzall-bin stable GPC /1380 MHzXBAR + 1 Hz thermal guard,1425 MHzconfigurable), 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 Linuxhwmonsensors (temp1_input,power1_average,in0_input,gpc_clock_mhz,mem_clock_mhz,gpu_util_pct,mem_util_pctforlm-sensors,btop,nvtop, and Prometheusnode_exporter) alongside NVML/RMAPI telemetry (PROM BIT VBIOS version88.00.80.00.01, hardwareNV_PPWR_PMU_IDLE_COUNTGPU & memory utilization counters0x2080a097/0x20802087, and PMGR I2C INA3221 power probe). - x86_64 & ARM64 / SBC PCIe Support (
ARCH=arm64): Builds for bothx86_64-unknown-noneandaarch64-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.06GSP-RM default,580compat), 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 a10/10kernel ABI audit (zero GOT relocations, zero SIMD/x87, zeromemcpy/memset/memmove, zero unwind sections, every stack frame<= 1,024bytes). - Verified on Real 8-GPU Hardware: Battle-tested side-by-side against stock NVIDIA
580.178.04on 8× physical Tesla V100-SXM2-32GB (256 GiB VRAM) — passing 77/77 CUDA Parity Suite checks, 8-GPU PyTorch/NCCLAllReduce(59.71 GB/sBusBW,max_err = 0.0), 8-GPU8.33 TB/sHBM2 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.
(注:更多技术实现细节与完整 API 文档请查阅原项目 README)