6 ms·
> In order to make these checks pass the hooks in vgpu_unlock_hooks.c will look for a ioremap call that maps the physical address range that contain the magic a
by h2odragon 6y ago
> In order to make these checks pass the hooks in vgpu_unlock_hooks.c will look for a ioremap call that maps the physical address range that contain the magic and key values, recalculate the addresses of those values into the virtual address space of the kernel module, monitor memcpy operations reading at those addresses, and if such an operation occurs, keep a copy of the value until both are known, locate the lookup tables in the .rodata section of nv-kernel.o, find the signature and data bocks, validate the signature, decrypt the blocks, edit the PCI device ID in the decrypted data, reencrypt the blocks, regenerate the signature and insert the magic, blocks and signature into the table of vGPU capable magic values. And that's what they do.
I'm very grateful I wasn't required to figure that out.
- stingraycharles 6y agoI love the conciseness of this explanation. In just a few sentences, I completely understand the solution, but at the same time also understand the black magic wizardry that was required to pull it off.
- jacquesm 6y agoNot to mention the many hours or days of being stumped. This sort of victory typically doesn't happen overnight. What bugs me about companies like NV is that if they just sold their hardware and published the specs they'd probably sell more than with all this ridiculously locked down nonsense, it is just a lot of work thrown at limiting your customers and protecting a broken business model.
- eli 6y agoBut they’d also sells fewer high end models. I don’t doubt that they’ve done the math.
- TomVDB 6y agoIs a “broken business model” one that requires you to pay for extra additional features? If Nvidia enabled all their professional features on all gaming SKUs, the only reason to buy a professional SKU would be additional memory. Today, they make almost $1B per year in the professional non-datacenter business alone. There is no way they’d be able to compensate that revenue with volume (and gross margins would obviously tank as well, which makes Wall Street very unhappy.) That’s obviously even more so in today’s market conditions. Do you feel it’s justified that you have to pay $10K extra for the self-driving feature on a Tesla? Or should they also be forced to give away that feature for free? After all, it’s just a SW upgrade. (Don’t mistake this for an endorsement...)
- lawl 6y ago> Do you feel it’s justified that you have to pay $10K extra for the self-driving feature on a Tesla? Or should they also be forced to give away that feature for free? After all, it’s just a SW upgrade. I feel like i already paid for the hardware. If telsa says it's cheaper for them to stick the necessary hardware into every car, i'm still paying for it if i buy one without self-driving. Thus if i think the tesla software isn't worth 10k and i'd rather use openpilot, i feel like i should have the right to do that. But nvidia is also actively interfering with open source drivers (nouveau) with signature checks etc.
- xvilka 6y agoYes, NVIDIA is actively malicious on that front.
- TomVDB 6y ago(Leaving aside that Tesla also actively prevents you from running your own software on its platform...) The whole focus on hardware is just bizarre. When you buy a piece of SW that has free features but requires a license key to unlock advanced features, everything is fine, but the moment HW is involved all of that flies out of the window. Extra features cost money to implement. Companies want to be paid for it. A company like Nvidia could decide to make 2 pieces of silicon, one with professional features and once without. Or they could disable it. Obviously, you’d prefer the first option, even if it absolutely makes no sense to do so. It’d be a waste of engineering resources that could have been spent on future products. Deciding to disable a feature on a piece of silicon is no different than changing a #define or adding “if (option)” to disable an advanced feature. By doing so, I have the option to not pay for an advanced feature that I don’t need. I don’t want the self-driving option in a Tesla and I’m very happy to have that option.
- zaksoup 6y agoI agree with you, but I also think the commenter you're replying to agrees with you. The issue is not that Tesla FSD should come with the hardware, the issue is that if I buy the hardware I should have the right to do whatever I want with it, and so we shouldn't leave aside that Tesla prevents us from running our own software. This is relevant to the NVidia situation since their software doesn't add features, it limits things the chip is already capable of. Just like Tesla won't let you run Comma.AI or something similar on their hardware...
- oatmeal_croc 6y agoI have a feeling that they've done the math and have realized what makes them the most money.
- matheusmoreira 6y agoTheir business model is not broken. Not yet. With hardware unlocking software like vgpu_unlock, we can break it.
- throwaway2048 6y agoCount on driver updates breaking this workaround
- matheusmoreira 6y agoIf they break it, the people who really need this feature will simply not upgrade. Companies run decades old software all the time, this isn't going to be any different. It's just like nvidia's ridiculous blocking of cryptocurrency mining workloads. Once the fix is out, it's over. Also I have no doubt people will find other ways to unlock the hardware.
- throwaway2048 6y agostuff like video games often require driver updates to function, which is a major use case of this hack. Not to mention older nvidia drivers do not support newer linux kernels.
- webmaven 6y ago> Count on driver updates breaking this workaround If the workaround results in enough money being left on the table, this might prompt 3rd party investment in open source drivers in order to keep the workaround available by eliminating the dependence on Nvidia's proprietary drivers.
- PragmaticPulp 6y ago> they'd probably sell more than with all this ridiculously locked down nonsense It's currently impossible to find any nVidia GPU in stock because the demand far outstrips the supply. Market segmentation is only helping their profit margins, not hurting it.
- deleted 6y ago[deleted]
- kbumsik 6y agoAlso, I wonder what kinds of skills are required to figure this out? I don't think just knowing Linux kernel internals would be enough.
- Sebb767 6y agoThe actual "trick" behind this is well known and has been done for quite some time. One could actually solder in a different device id in the GTX 6xx series [0] or flash a different VBIOS on the GTX 5xx ones. The real achievement here is implementing this in software without touching the GPU. This is not to downplay the OP, of course - this is truly great and I'm sure it was a lot of work. But the hardware part is not new. [0] https://web.archive.org/web/20200814064418/https://www.eevblog.com/forum/general-computing/hacking-nvidia-cards-into-their-professional-counterparts/ https://web.archive.org/web/20200814064418/https://www.eevbl...