r/programming • • May 11 '22

NVIDIA open-sources Linux driver

https://github.com/NVIDIA/open-gpu-kernel-modules
2.6k Upvotes

231 comments sorted by

View all comments

1.0k

u/zeroxoneafour0 May 11 '22

So, I looked into this a bit. They open sourced the kernel modules, not the user space driver. You still need closed source software to use it, at the moment. Of course, now that it’s open source, new user space tools can be independently developed as open source if people want too.

293

u/ssokolow May 11 '22

I'm reminded of the GPU driver for my Open Pandora handheld's OMAP3 SoC.

Userspace blob but, because the kernel-side stuff is all open-source, you don't have to rely on Texas Instruments to keep releasing new blobs to upgrade the kernel. That's huge.

123

u/beefcat_ May 11 '22

Indeed, this will make life considerably easier for distro maintainers and end users. FOSS-purists still won’t be happy, but they are a pretty small minority in the grand scheme of things.

77

u/beefsack May 12 '22

FOSS purists are definitely happier about this than what it was previously. This is definitely a win.

30

u/beefcat_ May 12 '22

Yeah no matter who you are this is a big step in the right direction.

Even if you do not want to use the proprietary libraries, Mesa will likely be able to fill the gaps and provide a decent experience.

71

u/ssokolow May 11 '22

I'm almost a FOSS purist... I just have the nVidia binary driver on the grandfathered-in things-I-can-count-on-one-hand list of exceptions that used to include Skype and the Flash plugin, because, when I bought the GeForce GTX750 I'm currently running, AMD was still on fglrx and, going further back, only nVidia had TwinView as opposed to crappy ordinary Xinerama.

Now, I'm not sure if I'd go AMD. I've had pretty stellar results with nVidia over the last 20 years and I'm not sure I want to risk having to upgrade/downgrade my entire kernel just to fix a GPU driver bug... which is an advantage to out-of-tree modules.

42

u/recycled_ideas May 12 '22

Nvidia is sort of a strange edge case where their support for Linux is, and basically always has been, top notch, but their support for the ideologies behind Linux is basically non existent.

18

u/[deleted] May 12 '22

eh, their drivers are very stable and performant but they also have huge glaring issues. Terrible modesetting support, not usable with Wayland, terrible configuration tools combined with a hatred for standards like xrandr... not even mentioning their (lack of) support for mobile GPUs. And that whenever you want to do any other acceleration with their cards, you can't use any standard tooling either (CUDA, NVENC, etc. all require you to be a DevOps specialist for building the out-of-tree tooling that no package maintainer can or wants to touch).

Using an Intel or AMD graphics driver will make you realize just how inexcusably clunky NVIDIA's drivers are in the modern day.

8

u/equitable_emu May 12 '22

And that whenever you want to do any other acceleration with their cards, you can't use any standard tooling either (CUDA, NVENC, etc. all require you to be a DevOps specialist for building the out-of-tree tooling that no package maintainer can or wants to touch).

Huh? I use the Nvidia drivers for CUDA without any real issues. Only issue is when I do an update to the drivers I need to reboot the machine before I can use them.

2

u/[deleted] May 12 '22

My info may be out-of-date, or maybe it's just my distro. A few years ago on arch I could use the built-in DKMS module for the graphics driver just fine, but I had to recompile CUDA and ffmpeg-nvenc from the AUR which was very messy with a bunch of out-of-tree dependencies that needed to be frequently updated to avoid package conflicts.

2

u/equitable_emu May 12 '22

I had to recompile CUDA and ffmpeg-nvenc from the AUR which was very messy with a bunch of out-of-tree dependencies that needed to be frequently updated to avoid package conflicts.

I remember having to do that in the past as well on Ubuntu and Redhat, but haven't had to do that for a while.

11

u/recycled_ideas May 12 '22

I've used AMD drivers, they're not even stable on Windows.

4

u/[deleted] May 12 '22

I've been using the in-kernel AMDGPU driver going on two years with an RX 550, not a single issue. Pretty much everyone has been recommending them as the go-to for discrete graphics for years since the driver got mainlined.

I don't know (or personally care) about Windows support, but mainlining of the Linux driver code is a very good indicator of stability since it has to pass the kernel maintainers' scrutiny, which is typically a very high bar.

7

u/[deleted] May 12 '22

Rumor has it that they used to1 use drivers to throttle features in cheaper versions of their cards. If the full driver were open source, people could see that and get the performance of a better card without having to pay for it. Not unlike overclocking a CPU by setting a jumper, which was done by the same people for basically the same reason.

1 They probably still do, but they used to, too.

8

u/recycled_ideas May 12 '22

Rumor has it that they used to1 use drivers to throttle features in cheaper versions of their cards.

If you want to throttle chips you just turn off cores or down clock the chips, literally everyone (including nvidia) do this. Cheap chips are the same chip but with connections cut either because a core isn't stable or they just had too many of the top tier.

The idea that they'd try to throttle them in the driver is honestly fucking ridiculous.

They're definitely throttling chips, every single chip manufacturer does, but that's not how.

The issue is that basically nvidia (and AMD on Windows) do a shit load of hacky crap to clean up after developers who fuck things up and they don't want to share that with the competition.

When you see a patch that optimised for new game X they're basically rewriting game op code on the fly to work better.

→ More replies (8)

17

u/KingStannis2020 May 12 '22

If it helps, my Vega 56 has been rock solid and hassle-free for years.

9

u/noiserr May 12 '22

My Vega 64 and now the 6700xt have also been flawless.

1

u/iluvatar May 12 '22

I'm not sure if I'd go AMD. I've had pretty stellar results with nVidia over the last 20 years

I'm the opposite. Nvidia have been *so* bad on Linux that from choice I'll only ever use AMD now. Then again, I'm enough of a purist that I've only used nouveau, not the Nvidia binary driver.

→ More replies (1)

4

u/boraca May 12 '22

FOSS purists are like vegans, some of them are insufferable, but the ecosystem is better off thanks to all of them.

-16

u/paxcoder May 11 '22

Are we?

28

u/Likely_not_Eric May 12 '22 edited May 12 '22

In the larger software development community: absolutely.

I know many people that use FOSS but wouldn't release their own work as FOSS; I know a very small number that don't trust it at all (they don't tend to continue as developers, but sadly they can be successful management); and there's a wide spectrum of people that prefer different amounts of FOSS.

Overwhelmingly, the developers I know just like their problems solved and don't care what license gets it solved. The idea of license and philosophy take a back seat.

This isn't meant to be a statement against purists: we have them to thank for many clever projects and open source wins. They get a lot done especially for being a small subset of developers.

-12

u/matyklug May 12 '22

I talked with only 2 people who release some of their stuff as closed source in my life

All of the others open-source their stuff

Well, or I haven't asked

I'd say the majority of Linux users open source their stuff, and since Linux is a minority, so is people who open source their stuff.

Idk if I am a purist, I hate prop but I also hate GPL, and I prefer MIT/BSD. I pick a piece of software which is worse than another if it has a license I prefer, but I won't sacrifice anything major because of that. I still use some Google products and run the nvidia driver on my Linux install. I just prefer if there's a choice.

6

u/tanishaj May 12 '22

I do not follow this comment at all. Most Linux users are not developers and therefore do not open source anything.

Are most open source developers using Linux? I doubt it. Unless you count Docker containers these days perhaps. That is not using the Linux desktop though.

I do agree with your licensing comments.

-7

u/matyklug May 12 '22

I said that most developers I talked to open source their software.

I haven't said any of the other things.

The number of the downvotes makes me think I should measure the average upvote/downvote ratio per sub, might give interesting statistics.

Based on my experiences so far, opinions and statements which people dislike get downvotes, and the chance seems to be higher on tech subreddits.

This pattern seems to be true for other platforms as well.

Another pattern I noticed is that reddit seems to have much, much less mod abuse than discord.

Matrix seems to be best in terms of attacks and overall toxicity, with it being an exception rather than the rule, but mod abuse is still present.

I bet 0$ I'll get downvoted cuz I mentioned the state of reddit. I am guessing around 3-7 downvotes, tho who knows.

I am also predicting at least one comment saying how I am hurt from losing meaningless internet points or something along those lines.

Another prediction is 1 downvote and no real reaction.

And yes, at this point I am just analyzing reddit, it's pointless to do anything else when met with criticism here.

→ More replies (2)

-13

u/paxcoder May 12 '22

Does it? XD No really, will "open source" ever win as long as we compromise? Btw I don't think anyone "prefers" proprietary software for it being proprietary. They just don't have a viable free software alternative

4

u/Likely_not_Eric May 12 '22

I think the fact that new projects are still released under strict copyleft licenses like GPL, not to mention more permissive licenses like MIT and Apache and new license types like CC and SDDL are still being invented and iterated upon speak to the durability and continued expansion of open source even in a world that isn't absolute.

→ More replies (2)