soc/intel/skylake: Enable compression on FSP-S
commit27af8da7cb49a2c81e50ab5df4b92cb53cf5d41e
authorBenjamin Doron <benjamin.doron00@gmail.com>
Fri, 26 Feb 2021 04:36:05 +0000 (26 04:36 +0000)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 3 Mar 2021 09:04:48 +0000 (3 09:04 +0000)
treed52837e0c05b8fe64895b9727fb18832bdaca0d8
parent242da79a3f10988e50654b2daa2fdd14acacaa9f
soc/intel/skylake: Enable compression on FSP-S

Use LZ4 algorithm to compress FSP-S. This saves ~40 KiB and reduces the
boot time by ~7 ms. LZMA would save a further ~1 KiB, but adds ~9 ms to
the boot time.

LZMA size:
fsps_lzma.bin 0xb0dc0    fsp 146578 LZMA (188416 decompressed)
LZMA decompression time:
  15:starting LZMA decompress (ignore for x86)         388,716 (47,646)
  16:finished LZMA decompress (ignore for x86)         406,167 (17,450)

LZ4 size:
fsps_lz4.bin 0x242dc0   fsp 147442 LZ4  (188416 decompressed)
LZ4 decompression time:
  17:starting LZ4 decompress (ignore for x86)          384,736 (47,864)
  18:finished LZ4 decompress (ignore for x86)          384,796 (59)

Change-Id: Idace01227cfd2312b2c4c4ea1e6aaac8c21cd6b0
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50726
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
src/soc/intel/skylake/Kconfig