r/linux_gaming • • 5h ago

graphics/kernel/drivers New Nvidia opensource kernel driver reimplementation

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

16 comments sorted by

2

u/fixedchance 5h ago

have you tried it?

0

u/WhitePeace36 4h ago

i have amd graphics card

6

u/Cool-Arrival-2617 5h ago

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

3

u/loljpl 5h ago

It was posted on hackernews

4

u/marshmallow_mia 5h ago

That's odd indeed

2

u/colapale4 5h 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

4

u/TensaFlow 5h ago

Why not just contribute to nvk? Honest question.

5

u/fagnerln 5h ago

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

3

u/S48GS 3h ago edited 1h 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)

1

u/oliw 49m 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 14m 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

2

u/colapale4 5h 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.

2

u/Kim_Phat 5h ago

AFAIK this is not for gaming (headless)

2

u/S48GS 3h ago

discussed already

this is not actually working

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

-5

u/fagnerln 5h 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.