Selectable Platform Support Proposed Again For Intel's DRM Driver
Written by Michael Larabel in Intel on 10 February 2018 at 03:55 PM EST. 16 Comments
INTEL --
It seems like every few years or so comes a patch series proposing to allow the Intel DRM driver to limit its platform support in the name of saving a few bytes from the kernel build. This week the latest "selectable platform support" patches are out there.

Independent driver contributor Tvrtko Ursulin is seeking comment on a set of 15 patches allowing for users/developers building their own kernel to allow Kconfig switches for limiting the hardware support that gets enabled for the Intel DRM driver. The Kconfig switches toggle what platform support is present and then relies upon the compiler's dead code elimination (DCE) passes for automatically stripping out the unnecessary bits.

These latest patches allow for toggling i830 / i845G / i85X / i865G / Gen 2 / Gen 3 / Gen 4 / Gen 5 / Gen 6 / Gen 7 generations of support.

When disabling hardware support for all pre-Skylake Intel graphics hardware, the Intel DRM kernel module ended up being a savings of about ~124 kB or about 8.5% of the overall driver size. Tvrtko Ursulin hypothesizes once the longstanding Linux kernel Link Time Optimization (LTO) support mainlines, the savings could be potentially a bit greater.


It's not clear yet if these patches will fly, but in the past they have always been quickly shot down... Especially with the added code burden all for saving less than a half MB of a kernel build. Given most Linux distributions' default kernels tend to continue shipping with old drivers and old CPU support, it seems unlikely most vendors would even make use of this selectable platform support aside from the enthusiasts tweaking the kernel on their own for their hardware.

The patches if you are interested can be found on intel-gfx.
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Related Intel News
Popular News This Week