r/linux • • 1d ago

Software Release New Nvidia opensource kernel driver reimplementation

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

40 comments sorted by

13

u/fixedchance 1d ago

have you tried it?

-20

u/WhitePeace36 21h ago

i have amd gpu

0

u/Adept_Percentage6893 2h ago

I don't understand your interest in the project if you don't really use nvidia at all.

53

u/Pandoras_Fox 1d 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?

45

u/colapale4 23h 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 19h ago

So maybe sr-iov for all nvidia gpus? 

5

u/ValorousGod 18h 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 23h 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 1d ago edited 21h ago

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

12

u/BigDenseHedge 21h 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)

7

u/ghulamalchik 22h ago

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

3

u/kaplanfx 19h ago

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

1

u/Sushtee 11h ago

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

74

u/krumpfwylg 1d ago

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

47

u/FlukyS 23h ago

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

2

u/Great-TeacherOnizuka 23h ago

Huh?

22

u/FlukyS 23h 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 23h ago

something something trillion monkey agents with type writers

9

u/Netblock 23h 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 22h ago

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

11

u/Netblock 22h 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 16h ago

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

10

u/Netblock 16h 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.

2

u/doublah 9h ago

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

19

u/Rhed0x 23h ago

What's the point of some slop driver?

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

3

u/doublah 9h ago

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

-4

u/BubblyGin17 19h 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 15h ago

Don't fight the misinformation bots. :P

-5

u/ghulamalchik 22h ago

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

10

u/Rhed0x 21h 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 22h ago

Human or AI slop is still slop

12

u/Rhed0x 21h ago

Okay? But Nova isn't slop.

-14

u/sunny0_0 21h ago

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

6

u/Rhed0x 20h ago

Yes? Nobody said anything to the contrary?

5

u/Cultural-Desk-9045 1d ago

Perfect. So NVIDIA will now enforce restrictions in firmware.

0

u/zeruxuf 23h ago

Have anyone tried it?

-3

u/Great-TeacherOnizuka 23h ago

Another one?!

-1

u/rocketstopya 22h ago

Does it support switching frequencies?

-2

u/iphones2g- 20h ago

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