Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
I would say you can scan 100s of games to see how they operate the hw...but many games have individual engs assigned to work w game devs to hash out configs down long trees of operations... this feels like learning Chinese with almost no feedback. There are so many parts/corners of the internals that get manipulated.
I could see moving from "one clone of every apps' code" to "common parts distilled," but what are the chances it could be reliable with code it hasn't been trained on that uses a novel feature?
Replies (16)
Replies (1)
Replies (1)
Traditionally before the GSP, a lot of tweaks and game bug fixes were packed into the driver itself. Those have now been moved into the GSP.
Replies (1)
Replies (1)
NVIDIA Profile Inspector: https://github.com/Orbmu2k/nvidiaProfileInspector
And makes me wonder what the author thinks "clean room" means.
Replies (9)
Replies (1)
An AI clean room decompilation could be one AI agent decompiling the code, turning methods into specifications, and feeding that to another agent to write the "clean" code.
This isn't that, though. This is straight "turn disassembly into Rust". That might be a copyright violation? Though, AI generated content is in a weird legal state at the moment; I don't think you can copyright a single line of code in this repository, but I'm also not sure if this is even illegal anymore. After all, AI companies got away with stealing billions of lines of GPL code, it'd be weird for licenses to matter now.
Replies (3)
Replies (1)
Replies (1)
Replies (2)
Replies (1)
Either the whole definition of clean-room changed or he just cleaned his room before release... /s
This Markdown is quite a gem. It describes "We are building a clean-room Rust driver" in the title, with Step #1 asking to decompile the driver and "Understand the subsystem's full call graph, object ownership, state machines, and lock hierarchy before writing any code."...
It literally asks to reverse-engineer the original implementation and then rewrite it with "new code".
I doubt this can be used to circumvent any IP-claim...
Replies (2)
If you have a different view of clean room that's cool, you can make your own clean room reimplementation, and rightfully claim it's better than mine.
Replies (4)
That's the opposite of what clean room means, not just a "different view".
It's interesting because it's the largest relevant effort that I'm aware of.
https://reactos.org/intellectual-property-guideline/
https://reactos.org/project-news/reactos-and-tinykrnl-projec...
Replies (2)
It surprised me, so I checked. I understood the opposite. From your first link:
…contributors often need to conduct research to understand the internal architecture of the NT™ operating system. In such cases, the project follows the GNU guidelines for referencing non-free code. This applies both to usage of reverse engineering and exposure to proprietary code such as in the Windows Research Kernel.
The GNU guidelines don’t seem to cover reverse engineering specifically, but they do say:
Don’t in any circumstances refer to Unix source code for or during your work on GNU! (Or to any other proprietary programs.) If you have a vague recollection of the internals of a Unix program, this does not absolutely mean you can’t write an imitation of it, but do try to organize the imitation internally along different lines, because this is likely to make the details of the Unix version irrelevant and dissimilar to your results.
And from your second link:
…due to copyright laws and other law-related stuff, ReactOS (which aims at commercial usage too) can not directly utilize methods of development like dirty reverse engineering, and thus ReactOS can not share all code with the TinyKRNL project.
Replies (1)
https://en.wikipedia.org/wiki/Chinese_wall#Reverse_engineeri...
https://en.wikipedia.org/wiki/ReactOS#:~:text=In%20a%20state...
So it looks like you're fine as long as one person reverses and other writes code. No idea how it applies when one clanker reverses and other writes, with a person as a middle man.
You are 'dirty' at this point, but then somebody else can come along and produce a 'clean' implementation of the spec.
This sounds like an LLM skill at this point tbh, so you just copy the .md file into the repo, and then 'do the thing, make no mistakes'
"My parents refused to buy me any more Clod tokens unless I cleaned my room."
One user with the email AHuang234@protonmail.com leaked the internal docs
Replies (4)
One day there will be fines for unpublished/incomplete datasheets?
Replies (1)
Replies (4)
Replies (1)
Replies (3)
Continue this thread (1 replies) →
so are enforced traffic laws. Unfortunately without them the morning drive would have more in common with gladiatorial combat than commuting.
Replies (1)
Continue this thread (1 replies) →
Authoritarian is used to describe systems that limit individual freedom in favor of a strong limited set of authority.
A rule that says a corporation, that is a legal entity that limits liability for actions and ownership, must release enough information for its products to allow people to do as they please with them, seems to maximize individual freedom at a small cost to the corporate authority.
Frankly it seems a good tradeoff to me - if you want to sell something while limiting your liability for what you sell, I'm fine with making that part of the requirements for limited liability.
Although i do think that people willing to take on full liability for their products and actions can still withold the information.
Replies (3)
A document being leaked (widely) by a third party renders all of its trade secrets contents no longer trade secrets, by definition (yes, even if the doc was obtained through espionage).
The only person nvidia could go after for this is the person who leaked the doc, not anyone who uses the doc. This is why protecting trade secrets is so important: the only remedy is suing the discloser if they had no authorization to disclose. This is specifically the reason ndas exist: to provide for recourse if trade secrets are disclosed publicly. At no point do you obtain the right to sue someone who wasn't bound by trade secrets law.
So this is still a clean room implementation.
Replies (1)
Replies (4)
Continue this thread (1 replies) →
Seems like it effectively doesn't matter in this case? Nvidia would struggle to prove any significant damages from a copyright perspective given it's not something they sell. But that's a detail really, even the simple statutory max of $150k/copy (in this case just one copy), which would be ruinous for the classic case of someone downloading tons of songs or something, might as well be rounding error for a open source set of Nvidia drivers. I doubt they'd even bother. And the entire point of clean room reverse engineering is to start with copyrighted material and then break the chain ending up with material copyrighted by the RE team instead of the source copyright holder. Even if the original source is an act of infringement of one kind or another it doesn't change that process. A factual spec sheet is still completely unprotected.
The real question is software patents. While patents can be challenged and invalidated, nothing bypasses them either.
1. Upload it to a pirate book site
2. Nvidia downloads it and seeds it to you
3. Train an AI model with it
4. The AI model writes a new document for you
(why would someone use proton mail, then proceed to use such an identifiable handle?)
Replies (3)
Replies (1)
Replies (1)
Replies (1)
Replies (6)
Replies (1)
Replies (1)
Replies (4)
Nvidia does not want that sort of precedence: then it means that every AI-produced software is "contaminated" with GPL, proprietary licenses, etc.
Replies (1)
Replies (1)
Replies (2)
Realistically, though, large/politically connected companies have gone all-in on this AI stuff so it will be found, somehow, to not be infringing.
We will declare matrix multiplications sentient and capable of producing their own creative works before we let those investments get written off, I think.
Continue this thread (1 replies) →
Continue this thread (2 replies) →
Replies (1)
Replies (1)
As far as copyright goes, it shouldn't really matter if a leak was involved.
The potential problem is trade secrets. A trade secret doesn't lose its trade secret status just because it got leaked. It can eventually lose it if is spreads too widely. If you do the clean room stuff before that you could be liable under trade secret law.
LLMs are probably going to make it much harder for companies to take down leaks before they spread too far. As a major LLM told me, "LLMs act as a massive information-laundering and acceleration engine that shrinks a company's containment window from weeks to hours".
In the specific case of trade secrets involving how to operate hardware the trade secret claims start out kind of weak because under US trade secret law something that can be readily figured out by legal means is not a trade secret. If people could figure it out by buying your product on the open market and then using bus sniffing and decompiling to figure out how to operate the hardware then you probably do not have a trade secret.
I see zero indication in the docs that the authors care about games, or indeed video output at all. The target use cases are headless: LLM inference and crypto mining.
Replies (2)
Not to mentioned if you have a vibe coded engine for your running your LLM is that uncertainty on top of uncertainty in terms of the work product? Anyone have a good paper on the transitive properties of vibe coded AI's accuracy vs "less" vibe coded AI?
And let's be honest. AMD has a reputation for their driver being quite bad/incomplete . Your description sounds like even AMD themselves did not really have a good overview of what the engineering department had cooked up either, which kinda matches that reputation.
Replies (2)
The reputation is a decade out of date
That and the existing kernel driver is already open source.
Same docs they use internally. I remember.
Perhaps you should take a read of https://en.wikipedia.org/wiki/Chinese_room which is the thought experiment about AI and true understanding vs regurgitation.
You can understand the symbols even if you don't understand the meaning.
"Clean room" is doing a lot of lifting here without any evidence.
Replies (1)
Ok, what are chicken bits?
Replies (2)
Oh TIL
> A bit on a chip that can be used to disable one of the features of the chip if it proves faulty or negatively impacts performance
LLMs today probably greatly accelerate the tedious parts of "reverse-engineering"
A bit of a tangent, but: do you have any idea why these things get handled in the GPU driver in the first place, rather than the GPU having firmware that does its own bring-up into a useful state before it ever starts letting the CPU talk to it?