From febd3d756b8ef4c6b6f8b5be9e2558d8cdd5a6ae Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Mon, 30 May 2022 13:59:25 +0530 Subject: soc/intel/meteorlake: Change VBOOT_HASH_BLOCK_SIZE to 4 KiB Default VBOOT_HASH_BLOCK_SIZE is 1 KiB and increasing it to 4 KiB helps in improving overall boot time since it reduces hashing and body loading time (~30ms). Backport changes from commit hash 84532dae1 (soc/intel/alderlake: Change VBOOT_HASH_BLOCK_SIZE to 4 KiB). Signed-off-by: Subrata Banik Change-Id: I3784b99bf06e0c03d123f290a98a0b1e4528b8d4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/64792 Reviewed-by: Eric Lai Reviewed-by: Tarun Tuli Tested-by: build bot (Jenkins) --- src/soc/intel/meteorlake/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/soc/intel/meteorlake/Kconfig b/src/soc/intel/meteorlake/Kconfig index a3692fb7d1..ae612ec7e3 100644 --- a/src/soc/intel/meteorlake/Kconfig +++ b/src/soc/intel/meteorlake/Kconfig @@ -129,6 +129,12 @@ config VBOOT select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH select VBOOT_X86_SHA256_ACCELERATION +# Default hash block size is 1KiB. Increasing it to 4KiB to improve +# hashing time as well as read time. +config VBOOT_HASH_BLOCK_SIZE + hex + default 0x1000 + config CBFS_SIZE hex default 0x200000 -- cgit v1.2.3