[Intel-gfx] [RFC 0/2] Compile out integrated

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Wed Feb 2 11:51:35 UTC 2022


On 01/02/2022 11:15, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> Quicky and dirty hack based on some old ideas. Thought maybe the approach might
> interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so
> big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked
> into that side.
> 
>   3884664  449681    6720 4341065  423d49 i915.ko.tip
>   3599989  429034    6688 4035711  3d947f i915.ko.noigp
> 
> Note debug kconfig so everything is inflated. Whether or not the relative gain
> would change with production kconfig I am not sure.

Non debug build for the record:

    text    data     bss     dec     hex filename
2188446   20528    2944 2211918  21c04e i915.ko.tip
1926865   17776    2944 1947585  1db7c1 i915.ko.noigpu

So around ~12% of the driver eliminated as dead code with the easy and 
incomplete approach. Not bad considering no clean split on Gen12, gen 
based if-ladder are mostly untouched and no LTO.

Regards,

Tvrtko


More information about the Intel-gfx mailing list