<p>Furquan Shaikh has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/24965">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cpu/x86/mp_init: Increase AP check-in timeout to 1second<br><br>Currently, the AP check-in timeout in bsp_do_flight_plan is set to<br>100ms. However, as the number of APs increases, contention could<br>increase especially for resource like UART. This led to MP record<br>timeout issues on KBL platform with 7 APs and serial-console enabled<br>BIOS image.<br><br>This change increases the timeout value to 1 second to be on the safer<br>side and let APs check-in before continuing boot.<br><br>BUG=b:74085891<br>TEST=Verified that MP record timeout is not observed anymore on Nami.<br><br>Change-Id: I979c11a10e6888aef0f71b5632ea803a67bbb0ff<br>Signed-off-by: Furquan Shaikh <furquan@google.com><br>---<br>M src/cpu/x86/mp_init.c<br>1 file changed, 6 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/24965/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c</span><br><span>index 92eb722..06e30b6 100644</span><br><span>--- a/src/cpu/x86/mp_init.c</span><br><span>+++ b/src/cpu/x86/mp_init.c</span><br><span>@@ -539,7 +539,12 @@</span><br><span> {</span><br><span>     int i;</span><br><span>       int ret = 0;</span><br><span style="color: hsl(0, 100%, 40%);">-    const int timeout_us = 100000;</span><br><span style="color: hsl(120, 100%, 40%);">+        /*</span><br><span style="color: hsl(120, 100%, 40%);">+     * Set timeout to wait for APs to a huge value (=1 second) since it</span><br><span style="color: hsl(120, 100%, 40%);">+    * could take a longer time for APs to check-in as the number of APs</span><br><span style="color: hsl(120, 100%, 40%);">+   * increases (contention for resources like UART also increases).</span><br><span style="color: hsl(120, 100%, 40%);">+      */</span><br><span style="color: hsl(120, 100%, 40%);">+   const int timeout_us = 1000000;</span><br><span>      const int step_us = 100;</span><br><span>     int num_aps = mp_params->num_cpus - 1;</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/24965">change 24965</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/24965"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I979c11a10e6888aef0f71b5632ea803a67bbb0ff </div>
<div style="display:none"> Gerrit-Change-Number: 24965 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Furquan Shaikh <furquan@google.com> </div>