From ff5e4695cc58653dda06b0e861349a9d520d87cc Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Tue, 22 Jan 2019 15:32:10 -0600 Subject: 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 Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Nicholas E. Bofferding Reviewed-by: Dean Sanner Reviewed-by: William G. Hoffa Reviewed-by: Daniel M. Crowell --- src/lib/syscall_misc.C | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/lib') 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( + _syscall2(MISC_CPUWAKEUPCORE, + reinterpret_cast(pir), + reinterpret_cast(i_threads))); +} + void cpu_crit_assert(uint64_t i_failAddr) { -- cgit v1.2.1