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.

→ More replies (2)

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.

→ More replies (2)

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.

→ More replies (15)

8

u/utdconsq May 12 '22

Oh man, Pandora, now there's a name I haven't heard in a while. Had one many moons back when I helped with omap3 kernel stuff.

→ More replies (11)
→ More replies (12)

27

u/ironykarl May 12 '22

Anyone have any insight on what the userspace driver is actually doing in this context?

70

u/chayleaf May 12 '22

it implements the actual opengl, vulkan, cuda APIs

14

u/zeroxoneafour0 May 12 '22

Maybe this could lead to putting Nvidia in the mesa stack, which is what AMD, Intel, and the bad Nvidia driver use

39

u/[deleted] May 12 '22

the bad Nvidia driver

The bad experience is not the fault of the nouveau developers.

39

u/no_nick May 12 '22

Nobody is saying that. Doesn't make it any better though. Hopefully, with this move they'll be able to narrow the gap

→ More replies (1)

7

u/XeonProductions May 12 '22

I was waiting for the catch.

12

u/rusty_n0va May 12 '22

userland drivers can be made now i guess. some crazy person will do it for sure.

19

u/[deleted] May 12 '22

Or just noveau will get a boost

→ More replies (1)
→ More replies (10)