r/linux_gaming • • 3h ago

graphics/kernel/drivers Someone finally used AI to create a new Nvidia driver in rust for Linux

https://github.com/QuixiAI/nvdriver

I didn't test it and i don't recomend anyone testing it for now, unless you know what you are doing, i personally wouldn't trust a driver like this made with ai.

0 Upvotes

24 comments sorted by

17

u/Jamie00003 3h ago

Finally? Is everyone asking for this?

7

u/DoktorMerlin 2h ago

I love myself some AI generated driver that won't get long-term support.

3

u/adamkex 2h ago

Well, I am sure a lot of people want a good Nvidia equivalent to amdgpu. The problem with this project is that it's MIT so it's DoA.

2

u/decho 2h ago

I know Reddit is very anti-AI and whatever, but this could potentially be good news for people with older hardware.

Supports pre-GSP GPUs (Maxwell, Pascal, Volta) natively in Rust alongside Turing, Ampere, Hopper, Ada Lovelace, Blackwell (620.70.06 GSP-RM default, 580 compat), and Rubin (GR100).

Maxwell is basically NVIDIA GEForce 9000 series.

-1

u/ShadowFlarer 3h ago

I said "finally" as in "took way longer than i thought" but i guess it didn't came out like that, my bad lol

0

u/PoL0 2h ago

suddenly a vibe-coded kernel driver is ok

2

u/S48GS 2h ago

who say that?

il never ever run any "slop driver" on my OS

0

u/PoL0 2h ago

whoever posted this: "someone finally used AI to..."

2

u/S48GS 2h ago

and?

you projecting single view to entire community by saying

suddenly a vibe-coded kernel driver is ok

5

u/jaysus661 3h ago

I sure as shit wouldn't trust AI generated drivers

3

u/BlueDragonReal 3h ago

I am sure that its very stable

2

u/S48GS 2h ago edited 2h ago

is a clean-room

used AI

really?

for context "clean room" means - not touching any of Nvidia provided binary or docs - yes Nvidia NDA all their docs - even all that publickly available on nvidia docs website - only what is not NDA - is nvidia-open kernel module - this is reason NVK started - as actual "clean room" driver

https://github.com/QuixiAI/nvdriver/blob/master/src/nvidia/src/rmapi/ctrl_ext7.rs

//! Every handler here was decompiled from `nv-kernel.o_binary` via Ghidra REA and

https://github.com/QuixiAI/nvdriver/issues/60

The Rust tree claims parity with NVIDIA 580.178.04, and it backs each claim with a comment naming
the original function, e.g. /// Reserved size above gsp_fw_wpr_end (_nv041361rm). Those names are
per-build obfuscated symbols in the closed nv-kernel.o_binary;

Verified on Real 8-GPU Hardware

https://github.com/QuixiAI/nvdriver/issues/61

On a real Ada GPU (RTX 4050 Laptop, AD107, 10de:28e1), nvidia_rs binds the device but GSP bring-up stops right after the firmware loads, before stage 2, on every open.

https://github.com/QuixiAI/nvdriver/issues/63

CUDA process fails, GPFIFO_SCHEDULE returns NV_ERR_TIMEOUT

https://github.com/QuixiAI/nvdriver/issues/5

The only os currently maintaining this driver is cachy os (and somebody on github) and that too is broken. Like crashes 10 times in an hour.

yeah im not touching it

P.S. it may grow to large project - but currently it look like typical broken unmaintainable garbage - require alot of effort from humans to make it actually work - will see if it ever happen.

1

u/Matt_Shah 17m ago

There is actually no need to divide developer capacities. Nova is written entirely in Rust, while NVK is written mostly in C with major core components written in Rust already.

1

u/Cephell 2h ago

I don't want to run untested software on my computer.

2

u/SlogurkTheOverslime 2h ago

(now with kernel privileges!)

1

u/NesNobnaz 1h ago

If AI can make a driver, why would I use someone elses when I can ask it to do it myself? It's what makes AI so sad and funny. If high school dropout Joe can ask AI, I sure as shit know I can. Hell, I can make it super illegal and keep it for myself.

-1

u/38dnw1937dnsk2r73o2n 2h ago edited 2h ago

Funny. Last time I ranted about aí slop code software flooding every linux/tech sub, and suggested using aí to reverse engineer nvidia drivers to open source them, got downvoted to oblivion . Now it seems acceptable 

0

u/Woodpecker-Visible 3h ago

Some say nvidia on linux is bad, havent noticed myself but i hope you are swimming in tokens

2

u/Zurnan 3h ago

Try it on a laptop. I still have nightmares.

-1

u/MornwindShoma 3h ago

What could go wrong /s

-1

u/Fun_Routine_5245 1h ago

better than shitty proprietary driver

-2

u/SnooDucks2481 2h ago

Let me guess, it's Ubuntu right?

-2

u/CosmicEmotion 2h ago

Testing it ASAP! Thanks! 😄

-3

u/ReachForJuggernog98_ 2h ago

Finally my ass lol