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 (20)
Replies (2)
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 (10)
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)
And it is demonstrable that an LLM will one day say "I never thought of that" and months later will intuitively know it.
And there have been multiple cases where research thrown through an LLM get scooped by the AI lab, not just navier-stokes.
I do not think there is any reasonable doubt that just about every lab uses chat transcripts to train or finetune.
Continue this thread (1 replies) →
Replies (1)
Replies (2)
Replies (2)
If what you are trying to do is make your own program that is a clone (partial or full) of some other program and it is just you, then decompilation is risky because if you write code that is similar to the decompiled code it can be hard to defend against a copyright infringement claim.
The burden of proof will be on them to show you copied, but they only need a "preponderance of the evidence" to meet that burden. That's usually done by showing that the alleged infringer had access to the copyrighted work and made a work that is substantially similar.
If you don't decompile and just implement based on the behavior you observe in their program you are much safer.
If you have more than one person involved and you split the work in a proper clean room fashion, then decompilation can be fine. The people that decompile just use the decompilation to figure out what the program does, write a spec for that behavior, and pass just that spec to the people who implement. Ideally the people who implement should not even have the binary of the original program.
Since the implementers have no access to the copyrighted work they cannot have copied it. If the owners of the original program want to claim copyright infringement they have to go after the people who wrote the spec and that usually will be very difficult since the spec should just be documenting behavior.
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 (2)
Replies (5)
Replies (1)
Continue this thread (1 replies) →
Replies (2)
Continue this thread (2 replies) →
Continue this thread (3 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.
Decare that the government will only buy tech with publicly available data sheets.
People are then free to do what they want, but going counter to openness would cost them a considerable market.
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 (4)
Replies (1)
Replies (1)
Replies (2)
Replies (7)
Replies (1)
Replies (1)
Continue this thread (1 replies) →
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.
Replies (2)
They may be spiteful… but these days I can’t blame folks for stuff like this … I doubt a jury woul
IANAL, but I did take a (non-law school) IP law class, and generally the loss of secrecy via any means results in the loss of the trade secret. In other words, a trade public-knowledge is not protected. You can prosecute the person(s) who leaked it, but not people who use it after it has become public. If you want protected public knowledge, you file a patent. (This led to a discussion on the choice of trade secret vs patent, depending on how long the knowledge is expected to be useful for, patentability, cost of patenting, etc.)
I also don't think that decompilability is any protection against violating a trade secret, since the test is whether the company took reasonable actions to protect the secret. Since the driver must be used, releasing a binary-only driver seems like it might be a reasonable level of secrecy. (But might not, you'd have to look at case law.)
See https://cyber.harvard.edu/openlaw/DVD/research/EFF_General_8.... (My class was not at Harvard, this is just the first reference I found.)
Replies (1)
> (i) acquisition of a trade secret of another by a person who knows or has reason to know that the trade secret was acquired by improper means; or
> (ii) disclosure or use of a trade secret of another without express or implied consent by a person who
> ___(A) used improper means to acquire knowledge of the trade secret; or
> ___(B) at the time of disclosure or use, knew or had reason to know that his knowledge of the trade secret was
> ______(I) derived from or through a person who had utilized improper means to acquire it;
> ______(II) acquired under circumstances giving rise to a duty to maintain its secrecy or limit its use; or
> ______(III) derived from or through a person who owed a duty to the person seeking relief to maintain its secrecy or limit its use; or
> ___(C) before a material change of his [or her] position, knew or had reason to know that it was a trade secret and that knowledge of it had been acquired by accident or mistake.
If the owner can get the leaked or stolen information taken down while everybody who has acquired a copy falls under (ii)(B)(I) those people cannot legally use or further distribute the secret. If that succeeds in keeping the secret confined to such people and those people fear the legal consequences of going ahead and spreading it anyway, the trade secret survives.
If it spreads farther it can be lost. According to Wikipedia, the comments on the USTA's definition of a trade secret say "A trade secret ceases to exist when it is common knowledge within the community in which it is profitable. This means that the secret does not need to be known by the general public, but only throughout the industry that stands to profit from it". (A quick search failed to find the comments to the USTA and Wikipedia doesn't give a link so I'm just assuming they are right).
The legal consequences for the early spreaders, the ones covered by (ii)(B)(I), can be pretty scary. Suppose they keep spreading it, the trade secret is lost. The damages could include the market value of the trade secret (what a buyer would have paid for exclusive rights to the secret), or the R&D costs that the owner incurred in creating the secret, or the profits the owner loses due to competitors now using the former secret.
It can be hard to pin those on intermediate links in the chain of spreading, but even a small risk of that can make you think twice. If it happens to your post of the secret on some forum that rapidly goes viral then you can be royally screwed. You could end up in a situation where when the secret is public enough that the trade secret is extinguished the majority of copies out there came from your post.
You might think in that case you can argue that the upstream spreaders you got it from are just as responsible so at least any liability would be shared.
The frightening thing you run into there is "joint and several liability", which many states use. Briefly, what that says is that if multiple wrongdoers contribute to an individual harm the plaintiff doesn't have to come after each separately for their contribution. The plaintiff can sue any of them for the FULL amount of damages. If the plaintiff wins that defendant pays all the damages, and can then turn around and sue the other wrongdoers for the amounts they contributed.
Although LLMs complicate that: if leaked trade secrets make it into the training data of frontier models, then the code generators "know" the secrets. But that's already a huge issue: LLMs are a great way to launder away copyright protection.
Replies (2)
I think you meant: violate copyright protection.
Replies (1)
And if that is illegal in your jurisdiction, find another jurisdiction. With governments around the world being pushed to make training AI on data without license or permission, you will probably find one to meet your needs.
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 (4)
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?
Replies (2)
For some variant value of 'work', of course, but current mesa does ship a nvidia userspace that does some things all the way from maxwell to blackwell.
Replies (1)
Replies (2)
Useful PoW has significant asymmetry between finding a solution and verifying a solution.
Verifying a hash is cheap. Finding a hash is expensive.
There is no asymmetry between generating an LLM response and verifying you generated the LLM response.
Replies (1)
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
Replies (2)
For the open sourced radeon drivers? Yeah lots of things work great now.
For their own in house proprietary drivers? Lol, Lmao.
On my nvidia machine I have some quirks as well. Which are extra annoying because they wouldn't need to be there if nvidia was as open source friendly as amd.. but mostly it just works.
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?
Replies (2)
I am now thinking of telling my LLM to decompile all the blobs in RaspberryPi just because why not.
Usually the way this is done by hand (and reading the source for this driver, it looks like Claude did things about the same way) is:
* Statically analyze enough of the system to understand how commands (mapped registers, mailboxes, buffers) are sent and structured at the highest level.
* Write a dynamic analysis tool which can trace the state changes sent to the hardware (ie - dump every register poke, every mailbox, every buffer)
* Dump enough of the bring-up to be able to do it yourself, even if you don't understand it (ie - these 500 registers need to be set to these values for "normal operation," we have no idea what they are, but we know how to poke them and in what sequence).
* Use static analysis to try to back out the meaning of each register/buffer and to define structures (ie - "this register has bit x set to y in a function called EnableFooClockDomain, it must be the FOO_CLK_EN bit" or "this structure is allocated in AllocateBigTransferBufferA, the type of this structure is clearly a big_transfer_buffer_a"). If you don't know what the functions are called, name them using context clues (observed logging, where in time said function is called, known values in the inputs, etc.)
Then you basically rinse and repeat this process using techniques like fuzzing observed inputs->outputs, tracing known constants, and finding context clues from documentation and parallel architectures.
The Asahi Linux RE process is a good way to understand how this kind of hardware RE worked pre-LLMs (and how LLMs learned to do it); they first constructed a hypervisor (m1n1) for the OS, then instrumented how the OS manipulated the hardware, then fuzzed the inputs to the OS to understand the resultant hardware-state-communication outputs.
I also doubt this driver will get too far down the game specialization rabbit hole, so they don't need to know quite as much; they seem to be targeting mostly basic display acceleration and GPGPU, so the stack of hacks isn't quite as tall.
looking at my nvidia experience and all of those release notes I often wonder how much is it devs writing for gpu and how much of it is "gpu" writing for devs.
every week there's a new driver advertising better performance in a specific game - seems like majority of the driver are custom branches tailored for specific use cases.