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

0

u/[deleted] Nov 20 '19

[deleted] — view deleted comment

11

u/TeutonJon78 Nov 20 '19

Not such much anymore. Most of them are just running reference ARM cores and some even just run reference ARM GPU cores as well.

5

u/londons_explorer Nov 20 '19

Camera, radio, and DSP components still have a massive amount of custom logic in binary blob drivers. In many cases, more engineering effort has gone into the driver than the silicon design.

3

u/mfuzzey Nov 20 '19

Not, usually, in *kernel* drivers.

That normally goes either in a *userspace* driver or *firmware*.

The kernel drivers are usually open source, though often not mainlined, and pretty dumb, just handing memory allocation and the low level communication with the device.

2

u/londons_explorer Nov 20 '19

Indeed, I guess I can more accurately say "In many cases, more engineering effort has gone into the software than the silicon design."

1

u/jdrch Nov 20 '19

silicon design

Silicon design, like many things, has become highly specialized to the point that only a handful of entities are able to compete at the highest level. Even Samsung gave up on custom ARM cores recently, shutting down their ATX design center. AFAIK, that leaves Huawei, Qualcomm, and Arm themselves in the ARM phone space. I'm not sure if Cavium, et al use custom cores in their server CPUs.

2

u/londons_explorer Nov 20 '19

For CPU cores, sure.

But there are loads of other silicon components that talk to a CPU which frequently need serious driver support. Power supply chips to power amplifiers to video encoders all talk to a CPU these days for configuration, calibration, and monitoring. Some devices will also have an integral CPU, which normally only needs to be very basic, and is pretty likely to be some engineers pet project because he told management "I can design a little CPU core to save us having to license an M0 from ARM - don't worry, it'll only take a few weeks".

1

u/jdrch Nov 20 '19

keep that a trade secret

The PC ecosystem's hardware is almost 100% proprietary, yet the same Windows and Linux and BSD installers work on all x64 machines.

0

u/[deleted] Nov 20 '19

[deleted] — view deleted comment

1

u/jdrch Nov 20 '19

is the extensive power management in these small devices that isn't present in a PC.

I don't see how that's related to this discussion ... ?

2

u/[deleted] Nov 21 '19

It is a very large part of the reason that the Android kernel for each device strays so far from the mainline kernel.