summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2019-01-22 15:32:10 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-01-25 10:07:27 -0600
commitff5e4695cc58653dda06b0e861349a9d520d87cc (patch)
tree9375d1e401a9720fc8cf422c74b4ea754284090f /src/lib
parentc2f2f5037920dc8441c6b27ff7a488a90f0433b1 (diff)
downloadtalos-hostboot-ff5e4695cc58653dda06b0e861349a9d520d87cc.tar.gz
talos-hostboot-ff5e4695cc58653dda06b0e861349a9d520d87cc.zip
Add retry to slave core wakeup path
We are still seeing some very intermittent errors in the slave core wakeup path. It still seems like we may have a timing issue. Until we figure out exactly what is going on, I am adding a retry mechanism that should get the core to report in correctly. The retry is done by issuing an additional doorbell message to the core that didn't report in. Change-Id: Ib87e5d58e079674d1eebb44c10d0252a35ea0519 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70761 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/syscall_misc.C10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/syscall_misc.C b/src/lib/syscall_misc.C
index ad6b204a6..29c075baf 100644
--- a/src/lib/syscall_misc.C
+++ b/src/lib/syscall_misc.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2018 */
+/* Contributors Listed Below - COPYRIGHT 2011,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -139,6 +139,14 @@ int cpu_all_winkle()
return rc;
}
+int cpu_wakeup_core(uint64_t pir,uint64_t i_threads)
+{
+ return reinterpret_cast<int64_t>(
+ _syscall2(MISC_CPUWAKEUPCORE,
+ reinterpret_cast<void*>(pir),
+ reinterpret_cast<void*>(i_threads)));
+}
+
void cpu_crit_assert(uint64_t i_failAddr)
{
OpenPOWER on IntegriCloud