On Fri, Jul 11, 2014 at 06:34:12PM +0100, Damien Lespiau wrote: > 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. Iirc my poor-man's-lto (include everything into one file) hack with a similar scenario and hard-coding intel_info plus adding a few hacks to help along gcc saved around 20-25% percent. And I'm really not terribly convinced that kb shaving is worth the effort overall, especially if it comes at a fairly steep maintainance burden of piles of new config options and #defines. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx