r/linux • • 1d ago

Software Release New Nvidia opensource kernel driver reimplementation

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

44 comments sorted by

12

u/fixedchance 1d ago

have you tried it?

-20

u/WhitePeace36 1d ago

i have amd gpu

-1

u/Adept_Percentage6893 18h ago

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

58

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?

46

u/colapale4 1d 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 1d ago

So maybe sr-iov for all nvidia gpus? 

6

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

22

u/funforgiven 1d 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 1d ago

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

14

u/BigDenseHedge 1d 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)

8

u/ghulamalchik 1d ago

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

4

u/kaplanfx 1d ago

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

2

u/Sushtee 1d ago

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

84

u/krumpfwylg 1d ago

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

50

u/FlukyS 1d ago

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

3

u/Great-TeacherOnizuka 1d ago

Huh?

26

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

4

u/doublah 1d ago

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

14

u/MelangeBot 1d ago

something something trillion monkey agents with type writers

10

u/Netblock 1d ago

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

2

u/krumpfwylg 1d ago

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

14

u/Netblock 1d 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 1d ago

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

12

u/Netblock 1d 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.

0

u/Daell 13h ago

nvidia dev team

Are you talking about that smart dev team at still unable to provide shared VRAM support on Linux? Are we talking about the same brilliant team? I love when my 6gb fragmented VRAM fills up and apps are freezing. This is a non issue on AMD. And Dum Dum dooom: on Windows.

19

u/Rhed0x 1d ago

What's the point of some slop driver?

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

8

u/doublah 1d ago

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

-4

u/BubblyGin17 1d 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 1d ago

Don't fight the misinformation bots. :P

-5

u/ghulamalchik 1d ago

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

8

u/Rhed0x 1d 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.

-14

u/sunny0_0 1d ago

Human or AI slop is still slop

12

u/Rhed0x 1d ago

Okay? But Nova isn't slop.

-15

u/sunny0_0 1d ago

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

6

u/Rhed0x 1d ago

Yes? Nobody said anything to the contrary?

-12

u/sunny0_0 1d ago

Wut

2

u/metux-its 15h ago

Now it would be cool if somebody reverse-engineered Nvidia's proprietary X11 extension, so we could replace the proprietary xorg/xf86 driver.

6

u/Cultural-Desk-9045 1d ago

Perfect. So NVIDIA will now enforce restrictions in firmware.

1

u/Numerous-Back5678 14h ago

Can nvdriver currently run a pre-GSP (Pascal, e.g., Tesla P40) and a GSP (Blackwell, e.g., RTX 5060) GPU simultaneously on the same Linux host? Also, what is the current status of display output support and CUDA stability for these non-Volta architectures?

1

u/NeuroXc 6h ago

How are there 188 upvotes on this? I know Nvidia drivers suck, but are we really desperate enough that we'll use a vibe-coded alternative?

0

u/zeruxuf 1d ago

Have anyone tried it?

-4

u/Great-TeacherOnizuka 1d ago

Another one?!

-2

u/rocketstopya 1d ago

Does it support switching frequencies?

-4

u/iphones2g- 1d ago

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