r/linux • • Nov 20 '19

Kernel Google outlines plans for mainline Linux kernel support in Android

https://arstechnica.com/gadgets/2019/11/google-outlines-plans-for-mainline-linux-kernel-support-in-android/
1.0k Upvotes

305 comments sorted by

View all comments

Show parent comment

4

u/bubblethink Nov 20 '19

This is not true. The cases where kernel drivers are proprietary are few and far in between. NVIDIA comes to mind, but that works (in theory anyway) because the NVIDIA driver is not a derivative of the kernel since it is mostly a windows driver that exists independently of the kernel. That argument would be difficult to make for some android arm64 soc.

I think the author is also mixing up a few things here. The fight is not so much about open v/s proprietary in the kernel space. The interesting bits are proprietary in the user space for stuff like GPUs anyway. In this case, it's just about upstreaming and waiting for something to be merged v/s not upstreaming.

6

u/[deleted] Nov 20 '19

The Nvidia driver is not a windows driver, it's just a generic driver that happens to be initially written for Windows.

A windows can't work on Linux but a GPU driver actually has very little interaction with other subsystems so what Nvidia does is to build a blob with all the GPU sauce inside.

What they open source is the interaction between the GPU secret sauce and the system.

The blob is the firmware for the GPU where the actual work happens. And that doesn't change depending on the OS.

3

u/bubblethink Nov 20 '19

Yes, I was making a point. I know it's not the exact same as a windows driver. Windows is crucial to the whole non-derivative argument. You can't make that argument in a vacuum.

3

u/[deleted] Nov 20 '19

The nvidia driver itself is a user-space driver. The kernel module that gets loaded (the bit that you compile when you install the nvidia driver on Linux, which is why you need the kernel headers) is free software.

2

u/bubblethink Nov 20 '19 edited Nov 20 '19

There are a few different things. Earlier, it used to be just the X11 driver. In recent years, there is also a kernel part that is proprietary. Yes, the shim is open source, but that's not all of the kernel driver. The gentoo wiki has more information (https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers)

"The kernel module (nvidia.ko) consists of a proprietary part (commonly known as the "binary blob") which drives the graphics chip(s), and an open source part (the "glue") which at runtime acts as intermediary between the proprietary part and the kernel."

"When the internal ABIs change, then it is not possible to merely fix the "glue", because nobody knows how the glue is used by the proprietary part. Even after managing to patch things up to have things seem to work nicely, the user still risks that running nvidia.ko in the new, unsupported kernel will lead to data loss and hardware failure."

2

u/C4H8N8O8 Nov 20 '19

That's common for firmware.if you don't like it, use Linuxlibre