[Intel-gfx] [PATCH 0/2] Low hanging fruit to reduce the driver size

Damien Lespiau damien.lespiau at intel.com
Fri Jul 11 19:34:12 CEST 2014


Being able to target a single platform to reduce the driver size has been
voiced a few times. These patches provide a Kconfig option to provide the
opportunity.

Let's start small, and, along side the generic "Multi-platform" option, only
present Haswell and Broadwell in the list of platforms to choose from. When
selecting any of those those two platforms, (S)DVO and MIPI DSI code is not
compiled.

The driver .text size is reduced by 67Kb (8.8%) when selecting HSW/BDW.

If the approach convinces, I'll do more.

-- 
Damien

Damien Lespiau (2):
  drm/i915: Provide a config option to select a target platform
  drm/i915: Don't compile the MIPI DSI code on HSW/BDW

 drivers/gpu/drm/i915/Kconfig     | 29 +++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/Makefile    | 26 +++++++++++++-------------
 drivers/gpu/drm/i915/intel_drv.h | 16 ++++++++++++++++
 3 files changed, 58 insertions(+), 13 deletions(-)

-- 
1.8.3.1




More information about the Intel-gfx mailing list