summaryrefslogtreecommitdiff
path: root/src/cpu/x86
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-03-01 16:37:06 -0800
committerFurquan Shaikh <furquan@google.com>2018-03-05 17:55:44 +0000
commitfa9f107319c00563d2da4cda03ddba179c904135 (patch)
tree5ba23ab628c7522202f6a175a31fe7864a67e3b3 /src/cpu/x86
parent10c3b96ac74cf00b44fca40c83c7b13964cff08c (diff)
cpu/x86/mp_init: Increase AP check-in time-out to 1second
Currently, the AP check-in time-out in bsp_do_flight_plan is set to 100ms. However, as the number of APs increases, contention could increase especially for resource like UART. This led to MP record time-out issues on KBL platform with 7 APs and serial-console enabled BIOS image. This change increases the time-out value to 1 second to be on the safer side and let APs check-in before continuing boot. BUG=b:74085891 TEST=Verified that MP record time-out is not observed anymore on Nami. Change-Id: I979c11a10e6888aef0f71b5632ea803a67bbb0ff Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/24965 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/cpu/x86')
-rw-r--r--src/cpu/x86/mp_init.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c
index 92eb722eb4..23aea14683 100644
--- a/src/cpu/x86/mp_init.c
+++ b/src/cpu/x86/mp_init.c
@@ -539,7 +539,12 @@ static int bsp_do_flight_plan(struct mp_params *mp_params)
{
int i;
int ret = 0;
- const int timeout_us = 100000;
+ /*
+ * Set time-out to wait for APs to a huge value (=1 second) since it
+ * could take a longer time for APs to check-in as the number of APs
+ * increases (contention for resources like UART also increases).
+ */
+ const int timeout_us = 1000000;
const int step_us = 100;
int num_aps = mp_params->num_cpus - 1;