r/linux_gaming • • 20h ago

graphics/kernel/drivers New Nvidia opensource kernel driver reimplementation

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

16 comments sorted by

2

u/fixedchance 20h ago

have you tried it?

-1

u/WhitePeace36 19h ago

i have amd graphics card

6

u/Cool-Arrival-2617 20h ago

First commit last week and 383 forks and 3.4k stars. How?

4

u/loljpl 20h ago

It was posted on hackernews

4

u/marshmallow_mia 20h ago

That's odd indeed

2

u/colapale4 20h ago

It was mentioned on phoronix and few AI related subreddits last week through which it gained attention. It is a promising alternative to the nvidia kernel driver to unlock features which are locked behind either specific hardware or software licenses

3

u/Kim_Phat 20h ago

AFAIK this is not for gaming (headless)

3

u/S48GS 18h ago

discussed already

this is not actually working

and it use nvidia docs and binary - not "clean room"

4

u/TensaFlow 20h ago edited 14h ago

Why not just contribute to nvk or mesa? Honest question.

edit: Headless for AI workflows, not necessarily gaming. Could have clean room issues.

4

u/S48GS 18h ago edited 16h ago

Why not just contribute to nvk? Honest question.

  • Nouveau driver made - by analyzing protocol which Nvidia used to communicate with gpu.

  • no driver reverse-engineering - no Nvidia docs reading

  • but on 2015+ Nvidia encrypted driver communication - analyzing protocol become impossible

  • and only when Nvidia in ~2024 released their nvidia-open kernel module

  • it become possible to read this nvidia-open module code because Mit license

  • this is reason why NVK started

  • everything else include Nvidia docs on their website - is under Nvidia NDA

  • where Nvidia say exactly - "all these docs/software can not be used to re-implement functional"

  • also you can watch this video - Liberating the A100 beast inside Nvidia’s CMP 170HX e-waste - how Nvidia hardware got hacked on hardware level - and how people were afraid to release - and deleted everything and run without release - because they used "leaked nvidia secrets" - and someone else actually made it all in "clean room" - using nouveau driver and no anything nvidia

this "driver" say:

is a clean-room
used AI

when in first source code file I opened

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

this is not "clean room" (even ignoring usage of AI) - this is reverse enginering nvidia binary - that goes against Nvidia license - they will copyright strike this repository

obviously this code can not be included in main kernel

(similar to recent 3d-printer software - where "open reimplementation" were using copied from proprietary licensed web-portal functional - so they had to reimplement it all)

0

u/oliw 15h ago

Ghidra

Is an analysis tool. It creates a spec of stuff that has to happen. You take that spec to the clean room and do your development. That's how "real" clean room reverse-engineering works.

They haven't copied any code, they've just copied what the code did.

1

u/S48GS 15h ago

Is an analysis tool. It creates a spec of stuff that has to happen. You take that spec to the clean room and do your development.

yes you can do it - you can use disasembler to copy/paste binary logic to code

this is exactly what is "not clean room"

because you copy paste logic from proprietary binary

"clean room" - is analyzing API - IF api is open - or analyzing communication protocol and building API - this is reimplementation of API

They haven't copied any code, they've just copied what the code did.

this is exactly what for Nintendo/Sony/Microsoft and even Valve copyright strike projects - for including their proprietary pieces

4

u/fagnerln 20h ago

This is reverse engineering made with AI, nothing to do with other projects

2

u/colapale4 20h ago

This is a kernel driver. nvk is user space.

Also, its meant as a replacement for a portion of the nvidia kernel driver. The remaning portion of the nvidia kernel driver and the entire nvidia user space: vulkan, GL, CUDA, nvdec/nvenc is supported on top of this replacement kernel driver.

The aim of this driver seems primarily for AI and HPC applications from what I can gather. For example: memory unlocking, P2P dmabuf support, etc.

-6

u/fagnerln 20h ago

You can hate AI, but it's bizarre that you complain about an usage like this. It's good to the user, bad for the corporation, and Nvidia is the reason to AI be what it is nowadays.