public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Low hanging fruit to reduce the driver size
@ 2014-07-11 17:34 Damien Lespiau
  2014-07-11 17:34 ` [PATCH 1/2] drm/i915: Provide a config option to select a target platform Damien Lespiau
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Damien Lespiau @ 2014-07-11 17:34 UTC (permalink / raw)
  To: intel-gfx

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-14 10:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-11 17:34 [PATCH 0/2] Low hanging fruit to reduce the driver size Damien Lespiau
2014-07-11 17:34 ` [PATCH 1/2] drm/i915: Provide a config option to select a target platform Damien Lespiau
2014-07-14 10:18   ` Barbalho, Rafael
2014-07-14 10:40     ` Damien Lespiau
2014-07-11 17:34 ` [PATCH 2/2] drm/i915: Don't compile the MIPI DSI code on HSW/BDW Damien Lespiau
2014-07-11 18:34 ` [PATCH 0/2] Low hanging fruit to reduce the driver size Damien Lespiau
2014-07-12 11:01 ` Daniel Vetter
2014-07-12 11:11   ` Damien Lespiau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox