summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCorey Swenson <cswenson@us.ibm.com>2018-01-10 11:10:44 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-01-12 10:58:51 -0500
commit52ca8121f1ed4aa7cabd10ced3a912ee4af470c4 (patch)
tree3ba4e6262cbe9c66afd1565f69286f060a5c6ef2 /src
parentaa5e361a94c96045bbeaa90462640e5ae43807ed (diff)
downloadtalos-hostboot-52ca8121f1ed4aa7cabd10ced3a912ee4af470c4.tar.gz
talos-hostboot-52ca8121f1ed4aa7cabd10ced3a912ee4af470c4.zip
Leave MCS acker open until Istep14
New MCD changes require a HB workaround. Moved p9_revert_sbe_mcs_setup HWP from Istep06 to Istep14. Change-Id: If42b90127a1f0fb90003e7e6c147c94909d2a487 CMVC-Prereq: 1042570 CMVC-Coreq: 1042845 Backport: release-fips910 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51744 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/usr/isteps/istep06/call_host_revert_sbe_mcs_setup.C11
-rw-r--r--src/usr/isteps/istep14/call_proc_setup_bars.C46
-rw-r--r--src/usr/isteps/istep14/makefile5
3 files changed, 55 insertions, 7 deletions
diff --git a/src/usr/isteps/istep06/call_host_revert_sbe_mcs_setup.C b/src/usr/isteps/istep06/call_host_revert_sbe_mcs_setup.C
index f82373a01..d328e0e85 100644
--- a/src/usr/isteps/istep06/call_host_revert_sbe_mcs_setup.C
+++ b/src/usr/isteps/istep06/call_host_revert_sbe_mcs_setup.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2017 */
+/* Contributors Listed Below - COPYRIGHT 2015,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -63,14 +63,15 @@ void* call_host_revert_sbe_mcs_setup( void *io_pArgs )
// cast the target to a fapi2 target
fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP> l_fapi_master_proc( l_masterProc );
- //Invode p9_revert_sbe_mcs_setup
+ //Invoke p9_revert_sbe_mcs_setup
// Pass in boolean describing if we are using the FSP or not
// If we are using the FSP then we will ask off the SBE fir
// bits on the TP Local Fir register as the FSP with handle
// SBE errors
- FAPI_INVOKE_HWP( l_err, p9_revert_sbe_mcs_setup,
- l_fapi_master_proc,
- INITSERVICE::spBaseServicesEnabled());
+ // TODO: RTC 184860 Remove MCS acker workaround
+ //FAPI_INVOKE_HWP( l_err, p9_revert_sbe_mcs_setup,
+ // l_fapi_master_proc,
+ // INITSERVICE::spBaseServicesEnabled());
if (l_err)
{
diff --git a/src/usr/isteps/istep14/call_proc_setup_bars.C b/src/usr/isteps/istep14/call_proc_setup_bars.C
index 8e24c1b8b..7b6843346 100644
--- a/src/usr/isteps/istep14/call_proc_setup_bars.C
+++ b/src/usr/isteps/istep14/call_proc_setup_bars.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2016 */
+/* Contributors Listed Below - COPYRIGHT 2015,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -37,6 +37,10 @@
#include <p9_setup_bars.H>
#include <p9_mss_setup_bars.H>
+// TODO: RTC 184860 Remove MCS acker workaround
+#include <initservice/initserviceif.H>
+#include <p9_revert_sbe_mcs_setup.H>
+
//HWP Invoker
#include <fapi2/plat_hwp_invoker.H>
@@ -56,6 +60,46 @@ void* call_proc_setup_bars (void *io_pArgs)
TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
"call_proc_setup_bars entry" );
+
+ // *******************************
+ // Start MCS acker workaround
+ // TODO: RTC 184860 Remove MCS acker workaround
+ // *******************************
+ TARGETING::Target * l_masterProc;
+ TARGETING::targetService().masterProcChipTargetHandle( l_masterProc );
+
+ TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
+ "Running p9_revert_sbe_mcs_setup on "
+ "target HUID %.8X",
+ TARGETING::get_huid(l_masterProc));
+
+ // cast the target to a fapi2 target
+ fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP> l_fapi_master_proc( l_masterProc );
+
+ //Invoke p9_revert_sbe_mcs_setup
+ // Pass in boolean describing if we are using the FSP or not
+ // If we are using the FSP then we will ask off the SBE fir
+ // bits on the TP Local Fir register as the FSP with handle
+ // SBE errors
+ FAPI_INVOKE_HWP( l_errl, p9_revert_sbe_mcs_setup,
+ l_fapi_master_proc,
+ INITSERVICE::spBaseServicesEnabled());
+
+ if (l_errl)
+ {
+ TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
+ "ERROR 0x%.8X: p9_revert_sbe_mcs_setup",
+ l_errl->reasonCode());
+ // Create IStep error log and cross reference error
+ l_stepError.addErrorDetails(l_errl);
+ // Commit error
+ errlCommit(l_errl,SBE_COMP_ID);
+ }
+ // *******************************
+ // End MCS acker workaround
+ // *******************************
+
+
// Get all Centaur targets
TARGETING::TargetHandleList l_cpuTargetList;
getAllChips(l_cpuTargetList, TARGETING::TYPE_PROC );
diff --git a/src/usr/isteps/istep14/makefile b/src/usr/isteps/istep14/makefile
index 58d9a61ae..4a994ad34 100644
--- a/src/usr/isteps/istep14/makefile
+++ b/src/usr/isteps/istep14/makefile
@@ -5,7 +5,7 @@
#
# OpenPOWER HostBoot Project
#
-# Contributors Listed Below - COPYRIGHT 2015,2017
+# Contributors Listed Below - COPYRIGHT 2015,2018
# [+] International Business Machines Corp.
#
#
@@ -60,6 +60,9 @@ include ${ROOTPATH}/procedure.rules.mk
include ${PROCEDURE_PATH}/hwp/nest/p9_exit_cache_contained.mk
include ${PROCEDURE_PATH}/hwp/nest/p9_mss_setup_bars.mk
+# TODO: RTC 184860 Remove MCS acker workaround
+include ${ROOTPATH}/src/import/chips/p9/procedures/hwp/nest/p9_revert_sbe_mcs_setup.mk
+
# TODO: RTC 159164: Multiple definition linker errors on HWPs that include the
# same *.o file in their *.mk files
# ---- Workaround: Compile the HWP directly below
OpenPOWER on IntegriCloud