News for hackers. Stuff that matters.
Re:Nvidia seeks peace with Linux, pledges help on open sourc... by icambron on Tuesday September 24, 2013 @02:47PM (#6439897)
One thing I guess I don't understand is why Nvidia's own drivers are closed source to begin with. What do they gain by it? Is it that open source drivers would make their hardware easier to reverse engineer? Is it that the drivers themselves are an important piece of IP, and competitors would learn all these cool tricks they use in their drivers? Neither of those fit my model of the role and value of drivers. It seems like they'd just want to maximize the usefulness of the hardware they sell. But I'm obviously missing something.

Edit: Thanks for the responses. That's quite a variety answers.

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by drewcrawford on Tuesday September 24, 2013 @04:14PM (#6440443)
Disclosure: I very briefly worked for a competitor.

A) Drivers reveal a surprising amount of "secret sauce" for a GPU. The "public-facing" interface to a GPU is something like HLSL or GLSL, but the real interface is some proprietary ISA. The manufacturers are slowly moving in this area, but the culture of the ISA being proprietary remains. That leads to things like implementation details getting inserted into ISA docs, or code comments, or driver architecture designs, because they're for internal use only anyway. This philosophy is slowly changing, but it's still the case quite a bit.

B) There's much less difference than you would expect between a $500 gaming GPU and a $2,000 workstation GPU. It's totally plausible that you are one FOSS driver away from a much more expensive GPU. That is a problem for everybody, including the gamers who want to keep buying $500 GPUs.

C) There is a VERY complicated balance of power between OEMs (who control the purse), Intel (who sometimes competes and sometimes complements the video card manufacturers) and Microsoft (for better or for worse, a de facto standards body) and increasingly, new kinds of competitors like PowerVR. So this is just a hypothetical, but one way it could go down is like this: NVidia decides to fully embrace FOSS. Microsoft gets pissy and tries to write them out of the standard. NVidia forced to lower prices to get PC makers to buy. Apple swoops in and places a huge order of the now-cheap parts. Intel gets pissy that Apple is shipping too many Nvidia GPUs per Intel GPU, raises Apple's CPU pricing to cover the loss. The price of Macs goes up driving some customers to iPads. PowerVR's royalty fees double, and since they don't have to manage any inventory, they are increasingly more attractive to investors than traditional manufacturers like NVidia. NVidia's stock price falls, and some C-level forgoes a vacation in Europe.

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by Dylan16807 on Tuesday September 24, 2013 @07:14PM (#6441468)
> B) There's much less difference than you would expect between a $500 gaming GPU and a $2,000 workstation GPU. It's totally plausible that you are one FOSS driver away from a much more expensive GPU. That is a problem for everybody, including the gamers who want to keep buying $500 GPUs.

I wasn't aware that there was a difference at all. Haven't there been cases of changing a single resistor to switch the card's mode?

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by H3g3m0n on Tuesday September 24, 2013 @08:32PM (#6441867)
That is just how chip manufacturing works.

In theory you make 1 model of chip. You manufacture them. You test them. What clock speeds are they stable at. Are any of the cores faulty. Many (probably most) will have defects. Some of them will be duds and must be thrown The bits with the defects are switched off and resold as lower end hardware.

The common less powerful failure cases cost less and the rare more powerful successes cost more.

The high end stuff sells for more than the cost of manufacturing and the low end stuff goes for less. They offset each other.

So when people force a model of GPU to preform higher they are basically ignoring the Q.C. and are going to be dealing with undefined behaviour. Did the card get reduced just because it produced more heat at the higher levels (in which case a highend heatsint might counteract the issue) or because there is a core that returns faulty data.

That's only the theory though.

In reality it might be artificially screwed with to increase profits. Maybe there are many more successes than the desired price level matches. Maybe they are selling more cheaper stuff so they turn off the bits of the chips even though they passed the QC. There are only 2 companies selling gaming GPUs so there could be an artificial duopoly. Nvidia only have to be price competitive with AMD.

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by Dylan16807 on Tuesday September 24, 2013 @10:41PM (#6442321)
That's binning, sure.

But I thought pro chips actually tended to be clocked a bit lower than gaming chips. There's no 'ignoring QC' there if you trick the board, quite the opposite.

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by exDM69 on Wednesday September 25, 2013 @03:50AM (#6443205)
> But I thought pro chips actually tended to be clocked a bit lower than gaming chips. There's no 'ignoring QC' there if you trick the board, quite the opposite.

Yes, the pro gpus have different clocks, ECC memory and there may be other differences in the board as well.

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by brymaster on Tuesday September 24, 2013 @11:57PM (#6442533)
Here's a great example:

Resistor hack turns a Nvidia GTX690 into a Quadro K5000 or Tesla K10

https://news.ycombinator.com/item?id=5398555

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by exDM69 on Wednesday September 25, 2013 @03:39AM (#6443179)
> Resistor hack turns a Nvidia GTX690 into a Quadro K5000 or Tesla K10

No it doesn't. This was discussed earlier in the thread you link to. This hack triggers a bug in the display driver, which allows you to work around a silly limitation in the Linux driver.

You can do the same with a software hack in the kernel that spoofs the PCI vendor:device identifiers. And the driver bug is probably fixed so it won't work any more. Hopefully the silly monitor count limitation (not present on Windows drivers with same GPU) is lifted as well so this hack isn't needed any more.

This resistor hack does not change the GPU clocks or enable units that have been fused off. It does not turn a gaming gpu into a pro gpu.

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by exDM69 on Wednesday September 25, 2013 @03:44AM (#6443192)
What is the biggest difference between a gaming gpu and a professional gpu? Warranty and support. This also accounts for a big slice of the price difference.

There are also other differences such as error correcting memory in pro gpus, different clocks, etc. Some units that are not essential for gaming performance have been fused off in gaming gpus so that the chips can run faster and hotter.

It's funny how you never hear anyone complain about the fact that Intel's i3, i5 and i7 models are almost the same chip but there's a huge price (and perf) difference. Intel's latest product line has 22 chips of the same design, and they definitely don't have 22 semiconductor production lines.

> I wasn't aware that there was a difference at all. Haven't there been cases of changing a single resistor to switch the card's mode?

This was debunked in an earlier HN discussion, all the resistor hack does is spoof the PCI vendor:device identifier. The fused off parts won't come back up. It won't turn a gaming gpu into a pro gpu, it only triggers a bug in the driver that allows multiple displays (what a silly limitation).

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by dman on Tuesday September 24, 2013 @02:56PM (#6439948)
Couple of guesses

a) If the drivers were open patent trolls and competitors would sue.

b) I have heard stories about some graphics vendors who have a lot of duplicated code in their drivers for supporting different generations of cards. Instead of building abstractions that achieve generality theyve succumbed to the copy paste rabbit hole.

c) If we all saw the mess that lives in the drivers none of us would be okay with it running it as a kernel module.

d) There are questionable optimizations that vendors would be caught on.

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by qznc on Tuesday September 24, 2013 @04:09PM (#6440396)
e) legal department requires too many changes/check (no swear comments, proper licence headers, ...) so it is too much work

f) convoluted build process which is impossible to recreate outside NVidia

g) some code is licenced from somebody else

h) obvious NSA backdoor built in

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by zanny on Tuesday September 24, 2013 @05:54PM (#6441027)
Linux doesn't seem to have problems with swearing in the source. I don't know why Nvidia would, either - the words exist for a reason and people use them to fill a conversational need, if you don't like certain syllables in succession grow up.
Re:Nvidia seeks peace with Linux, pledges help on open sourc... by qznc on Wednesday September 25, 2013 @04:34AM (#6443327)
Here is an anecdote about the Netscape Open Source release which became Mozilla.

> When we created mozilla.org and released (most of) the source code to Netscape Confusicator 4.x, Netscape's lawyers made us go through a big "sanitization" process on the source code. Largely this consisted of making sure we had the legal rights to all the code we were releasing, and making sure every file had proper and accurate copyright statements; but they also made us take out all the dirty words. Specifically, "any text containing vulgar or offensive words or expressions; any text that might be slanderous or libelous to individuals and/or institutions."

http://www.jwz.org/doc/censorzilla.html

Even John Carmack was pressured by the lawyers when he open-sourced Doom 3.

http://www.techspot.com/news/46391-john-carmack-releases-doo...

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by TheSwordsman on Tuesday September 24, 2013 @06:38PM (#6441279)
Because not every project is headed by Linus Torvalds. That man has almost no filter (which in my opinion is a good thing).

However, that same type of stuff may not reflect other organizations and members of those organizations in a good light. So there are definitely concerns there.

I'm a developer, and my company's closed source code definitely has its share of profanity and "WTF"s. But that would not fly for things we make available on GitHub, just due to concerns of our image. Most developers wouldn't give two shits about the comment...

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by brubaker on Tuesday September 24, 2013 @10:37PM (#6442313)
Do you honestly believe that there would be any damage to your company's image that would last more than 5 seconds to a small minority of people that would even see an article regrading "improper language"?

Unless your fellow developers are posting extremely obscene racial slurs and threatening rape on the interns. In which case your company has bigger issues to worry about.

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by tedunangst on Tuesday September 24, 2013 @04:01PM (#6440337)
These problems almost entirely disappear by providing documentation. Nobody that I know is literally asking for the source to the Windows driver.
Re:Nvidia seeks peace with Linux, pledges help on open sourc... by johntb86 on Wednesday September 25, 2013 @05:37AM (#6443514)
Yes, then all they'd have to do is hire a bunch of people to write documentation, like AMD's done for their open source driver. To the extent that they have documentation currently, it's likely wrong, incomplete (because the driver guys can just ask the hardware guys what's up), and it's got various trade secrets and future device plans in it.
Re:Nvidia seeks peace with Linux, pledges help on open sourc... by angersock on Tuesday September 24, 2013 @03:15PM (#6440069)
a) and c) seem likely.

Also, if folks had the source, they'd likely start doing optimizations for particular cards and drivers--that being the case, there would be a really gnarly backwards-compatibility issues that would start to plague vendors.

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by sliverstorm on Tuesday September 24, 2013 @03:03PM (#6439994)
drivers themselves are an important piece of IP

I think it's this. From what I've been told, the line between software (driver) and hardware (graphics card/chip) is blurry, and moves around from generation to generation. The "graphics processing model" is only partly executed in hardware; the rest is in software.

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by syncopate on Tuesday September 24, 2013 @02:55PM (#6439937)
I'd say NVidia use closed source mostly to push Cuda instead of people trying to use openCL. E.g. their OpenCL driver imposes 3GB memory limits (or at least used to in the past) for kernels but with Cuda they will enable 64bit if necessary (on the same gpu hardware).
Re:Nvidia seeks peace with Linux, pledges help on open sourc... by mh- on Tuesday September 24, 2013 @02:53PM (#6439930)
more likely: IP encumbrances in code (or specifications) that they've licensed (or licensed access to).
Re:Nvidia seeks peace with Linux, pledges help on open sourc... by cookiecaper on Tuesday September 24, 2013 @03:18PM (#6440084)
This is the story they always use when asked. They claim that the board contains proprietary components licensed from third parties, and that it would violate their licensing agreement if the code pertaining to those components was released.

This is a very convenient PR move because it shifts all the blame onto groups of unnamed entities, and tends to place the burden on the open-source advocate to get all of these unnamed entities to modify their licensing agreements.

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by rosser on Tuesday September 24, 2013 @04:02PM (#6440344)
And that makes it untrue ... how, again?
Re:Nvidia seeks peace with Linux, pledges help on open sourc... by cookiecaper on Tuesday September 24, 2013 @06:01PM (#6441068)
As the others said, it's not that it's necessarily factually untrue, it's just a cop out. If the company cares about open-source, they can neogiate with suppliers directly and refuse to use components with incompatible licensing agreements.

The party line statement is structured to make nVidia appear helpless and as if the burden is upon the open-source advocate to get the component vendors to allow their code to go open, but this is not correct. If nVidia cared about open-source, they'd use their clout to make sure they got what they wanted.

Re:Nvidia seeks peace with Linux, pledges help on open sourc... by takluyver on Tuesday September 24, 2013 @05:57PM (#6441043)
The grandparent post doesn't say that the story is untrue. It implies a certain amount of scepticism, which is probably warranted: Nvidia must have some amount of leverage to negotiate such terms with its suppliers, so if such terms do exist, it's because Nvidia has accepted them. Of course there are other factors they have to consider in those agreements, but that's a more complex story.
Re:Nvidia seeks peace with Linux, pledges help on open sourc... by joosters on Tuesday September 24, 2013 @05:36PM (#6440932)
No-one said it was outright untrue, but neither has any company ever detailed which 3rd parties are responsible, so there's no way of finding out just how big a problem it really is.
Re:Nvidia seeks peace with Linux, pledges help on open sourc... by michaelbuckbee on Tuesday September 24, 2013 @02:54PM (#6439935)
I'd always assumed it was because they were tweaking things under the hood to specifically target benchmark tests.
Re:Nvidia seeks peace with Linux, pledges help on open sourc... by bni on Thursday September 26, 2013 @10:11AM (#6450841)
The nVidia proprietary driver (same codebase both for Windows and Linux) is chock full of optimizations for specific game exes. Today games are the benchmarks, and optimizing for that in the same way I think is very reasonable. This is not "cheating", it is what makes the graphics in todays games possible at a resonable framerate.
Re:Nvidia seeks peace with Linux, pledges help on open sourc... by mhurron on Tuesday September 24, 2013 @03:10PM (#6440048)
That's been found several times with both nVidia and AMD/ATI in the past without needing to see the driver sources.
Re:Nvidia seeks peace with Linux, pledges help on open sourc... by Jasper_ on Tuesday September 24, 2013 @09:09PM (#6442028)
The Windows driver and Linux driver are based on the same codebase, and NVidia is (rightly so) afraid of security issues in their drivers that could allow somebody to hack somebody's computer remotely with a special TF2 map or somebody.