From ffae0f7d73cf6061fb75650eec38beeecd698bc2 Mon Sep 17 00:00:00 2001 From: Derek Huang Date: Mon, 22 Sep 2025 15:05:47 +0000 Subject: [PATCH] security/vboot: Extend CROS_EC_HASH_TIMEOUT_MS The ITE EC may take more than 2 seconds to complete EC FW hash calculation in some corner cases. For example, boot with a dead battery, EC even takes more than 10 seconds to complte the hash calculation. Extend the timeout from 2 seconds to 12 seconds to cover the ITE EC cases, it should not impact boot time and functionalities. BUG=b:445034279, b:444392807 Change-Id: I4f6e23dc3096cbba04c33c8f3cc36c90aa83462a Signed-off-by: Derek Huang Reviewed-on: https://review.coreboot.org/c/coreboot/+/89293 Reviewed-by: Yu-Ping Wu Reviewed-by: Subrata Banik Reviewed-by: Pranava Y N Tested-by: build bot (Jenkins) --- src/security/vboot/ec_sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/security/vboot/ec_sync.c b/src/security/vboot/ec_sync.c index 47c21c7c23..e1d435e7cf 100644 --- a/src/security/vboot/ec_sync.c +++ b/src/security/vboot/ec_sync.c @@ -20,8 +20,8 @@ /* Wait 10 ms between attempts to check if EC's hash is ready */ #define CROS_EC_HASH_CHECK_DELAY_MS 10 -/* Give the EC 2 seconds to finish calculating its hash */ -#define CROS_EC_HASH_TIMEOUT_MS 2000 +/* Give the EC 12 seconds to finish calculating its hash */ +#define CROS_EC_HASH_TIMEOUT_MS 12000 /* Wait 3 seconds after software sync for EC to clear the limit power flag. */ #define LIMIT_POWER_WAIT_TIMEOUT_MS 3000