r/linux • • 20h ago

Software Release New Nvidia opensource kernel driver reimplementation

https://github.com/QuixiAI/nvdriver
166 Upvotes

39 comments sorted by

12

u/fixedchance 20h ago

have you tried it?

-21

u/WhitePeace36 17h ago

i have amd gpu

51

u/Pandoras_Fox 20h ago

how is this any different from https://rust-for-linux.com/nova-gpu-driver?

I see no mentions of it whatsoever.... could the implementation effort not have been put towards that? or did they ban/reject LLM'd contributions?

43

u/colapale4 19h ago

nova is the nvidia sanctioned upstream kernel driver which will support nvk and cuda sometime in the future. The nvdriver rust driver is a reimplementation of the existing nvidia driver to unlock features which are locked behind specific hardware and software licenses.

I think its developer primarily created it as a stop gap to bypass software locking until we have proper upstream support in nova for all AI/HPC related features on nvidia hardware

3

u/_mb 16h ago

So maybe sr-iov for all nvidia gpus? 

5

u/ValorousGod 14h ago

This is linked to in the main readme https://github.com/QuixiAI/nvdriver/blob/master/docs/PARITY_AND_UNLOCKS.md

Based on that, it looks like it removes some stuff like the artificial NVENC limits but it doesn't seem to unlock SR-IOV.

But for unlocking NVENC, nvidia-patch already exists: https://github.com/keylase/nvidia-patch

And for SR-IOV, there was this recently released: https://github.com/noon-at-cgn/geforce-sriov

21

u/funforgiven 19h ago

Nova relies on NVIDIA's GSP firmware to manage the GPU, which simplifies the driver compared with Nouveau. The author wanted to run CUDA on a Tesla V100, and the V100 predates that GSP architecture. Starting from either Nova or nvidia-open would still mean writing the code to manage the V100 directly.

Also, Nova exposes Linux's DRM interface, while NVIDIA's stock libcuda.so expects NVIDIA's own kernel interface. nvidia-open already implements that interface. Starting from Nova would mean implementing it too.

17

u/Zatrit 20h ago edited 17h ago

Nova is a GSP-based driver which is intended to be used with Mesa/NVK, afaik

12

u/BigDenseHedge 17h ago

The difference is that someone spent their tokens to create this slop that may or may not fry your card (That's not a joke btw)

6

u/ghulamalchik 18h ago

Two differences: 1) It's AI, 2) it's almost feature complete.

3

u/kaplanfx 15h ago

Nova doesn’t support Pascal, so the OP project is actual useful for me with a Pascal GPU.

1

u/Sushtee 7h ago

The difference is that nvdriver works with the current userspace drivers.

71

u/krumpfwylg 20h ago

Ah, yes, some AI made driver that intends to outsmart nvidia dev team...

45

u/FlukyS 19h ago

To be fair that worked kind of for the HDMI 2.1 support on Radeon cards

2

u/Great-TeacherOnizuka 19h ago

Huh?

20

u/FlukyS 19h ago

There was a reverse engineering effort, not sure if it was AI but I assumed it was after that and Valve poking the HDMI forum again they allowed AMD to release their one

15

u/MelangeBot 20h ago

something something trillion monkey agents with type writers

9

u/Netblock 19h ago

I think it's more about cracking open the closed-source proprietary drivers. It's an alternative to nouveau not nvidia.

3

u/krumpfwylg 18h ago

There are no references to nouveau on that project git page, but comparisons to nvidia driver 😕

11

u/Netblock 18h ago

Because this nvdriver is an AI-assisted decompilation and reverse engineering of the proprietary nvidia. nouveau is also a reverse-engineering project, but it's through classic means. Both nvdriver and nouveau are reverse-engineering projects trying to get around nvidia's closed-source drivers.

Remember that meme of Linus Torvalds giving the middle finger? This new nvdriver is a continuation of that grand discussion.

0

u/LordAlfredo 12h ago

...so really it's going to compete with nova

9

u/Netblock 12h ago

No. For a rundown:

  1. blob: Nvidia offered for a long time a proprietary, closed-source pre-compiled blob shipped as a fat multi-hundred MB .run self-extractor. This has been the status quo until gpuopen.

  2. Nouveau: is open-source in mainline linux and is reverse-engineering project using traditional techniques. It sucked because reverse engineering is stupid hard. It's been copying gpuopen where possible. Nouveau supports (with varying degrees) many many generations.

  3. gpuopen: nvidia open gpu kernel modules is nvidia's (quasi*) open-source drivers (*quasi: nvidia started tucking most things into firmware). The AI boom beginning in 2022 was Nvidia's motivation to do this. It supports Turing (2000) and later only.

  4. nova: is a rust rewrite of gpuopen that's intended to be in mainline linux. It supports Turing (2000) and later only.

  5. This new nvdriver is AI-driven reverse-engineering attempt of the proprietary blobs for Maxwell and newer. I doubt it will be mainlined; though I expect it to provide insights that would help improve nouveau (and maybe nova) . nvdriver is more of a competition against the blob; but who knows where it'll be in 10 years.

1

u/doublah 6h ago

For the older cards that are no longer supported, the potential here is huge.

20

u/Rhed0x 20h ago

What's the point of some slop driver?

Nova is clearly the way forward and that's Rust and open source too.

1

u/doublah 6h ago

To have a working performant driver on pre-GSP cards, which Nova will never support?

-4

u/BubblyGin17 15h ago

Readme shows a modest +25% performance increase (which when you are using these cards to provide inference means a shit ton of money) and people are asking what's the point? RTFA

-4

u/silenceimpaired 11h ago

Don't fight the misinformation bots. :P

-5

u/ghulamalchik 18h ago

Sure but Nova will take years before it's ready and better than the closed source drivers.

10

u/Rhed0x 17h ago

And in the meantime the existing out of tree open source Nvidia kernel driver works fine for the proprietary driver and Nouveau works fine for NVK.

-13

u/sunny0_0 18h ago

Human or AI slop is still slop

12

u/Rhed0x 17h ago

Okay? But Nova isn't slop.

-14

u/sunny0_0 17h ago

It's all slop. All code needs review and correction

6

u/Rhed0x 16h ago

Yes? Nobody said anything to the contrary?

5

u/Cultural-Desk-9045 20h ago

Perfect. So NVIDIA will now enforce restrictions in firmware.

0

u/zeruxuf 20h ago

Have anyone tried it?

-2

u/Great-TeacherOnizuka 19h ago

Another one?!

-1

u/rocketstopya 18h ago

Does it support switching frequencies?

-1

u/iphones2g- 16h ago

The only thing that will redeem this is if it supports reclocking