summaryrefslogtreecommitdiffstats
path: root/src/usr/isteps/istep14/call_host_mpipl_service.C
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2016-10-26 17:39:16 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-10-30 22:19:07 -0400
commit20067777f6dcb189ca93a5f43e2627fdfc13ac11 (patch)
treefbee709647e17197dd2e1ba426414560603f056a /src/usr/isteps/istep14/call_host_mpipl_service.C
parente7b46ef9fd675cbba79489565ce5a278efb66529 (diff)
downloadtalos-hostboot-20067777f6dcb189ca93a5f43e2627fdfc13ac11.tar.gz
talos-hostboot-20067777f6dcb189ca93a5f43e2627fdfc13ac11.zip
Integrate p9_mpipl_chip_cleanup HWP for P9
Although the procedure is turned on at this point we are not able to test if it works because we are not this far in MPIPL HB development yet. Change-Id: I8e61e69d928f69900c53021f0683db21eeb46562 RTC: 157653 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31904 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Matt Derksen <v2cibmd@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/isteps/istep14/call_host_mpipl_service.C')
-rw-r--r--src/usr/isteps/istep14/call_host_mpipl_service.C42
1 files changed, 8 insertions, 34 deletions
diff --git a/src/usr/isteps/istep14/call_host_mpipl_service.C b/src/usr/isteps/istep14/call_host_mpipl_service.C
index 53c7382f7..af29cb5be 100644
--- a/src/usr/isteps/istep14/call_host_mpipl_service.C
+++ b/src/usr/isteps/istep14/call_host_mpipl_service.C
@@ -34,6 +34,9 @@
#include <targeting/common/util.H>
#include <targeting/common/utilFilter.H>
+#include <p9_mpipl_chip_cleanup.H>
+#include <fapi2/plat_hwp_invoker.H>
+
#include <vfs/vfs.H>
#include <dump/dumpif.H>
@@ -51,8 +54,7 @@ void* call_host_mpipl_service (void *io_pArgs)
TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
"call_host_mpipl_service entry" );
-//@TODO RTC: 134431 MPIPL Changes for P9 - Placeholder
-#if 0
+
errlHndl_t l_err = NULL;
// call proc_mpipl_chip_cleanup.C
TARGETING::TargetHandleList l_procTargetList;
@@ -61,29 +63,21 @@ void* call_host_mpipl_service (void *io_pArgs)
// ---------------------------------------------------------------
// run proc_mpipl_chip_cleanup.C on all proc chips
// ---------------------------------------------------------------
- for (TargetHandleList::const_iterator
- l_iter = l_procTargetList.begin();
- l_iter != l_procTargetList.end();
- ++l_iter)
+ for (const auto & l_pProcTarget : l_procTargetList)
{
- // make a local copy of the target for ease of use
- const TARGETING::Target* l_pProcTarget = *l_iter;
-
// write HUID of target
TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
"target HUID %.8X", TARGETING::get_huid(l_pProcTarget));
- //const fapi::Target l_fapi_pProcTarget( TARGET_TYPE_PROC_CHIP,
- // (const_cast<TARGETING::Target*> (l_pProcTarget)) );
+ fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP> l_fapi_pProcTarget((const_cast<TARGETING::Target*> (l_pProcTarget)) );
// call the HWP with each fapi::Target
- //FAPI_INVOKE_HWP(l_err, proc_mpipl_chip_cleanup,
- // l_fapi_pProcTarget );
+ FAPI_INVOKE_HWP(l_err, p9_mpipl_chip_cleanup, l_fapi_pProcTarget );
if ( l_err )
{
TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
- "ERROR : returned from proc_mpipl_chip_cleanup" );
+ "ERROR : returned from p9_mpipl_chip_cleanup" );
// capture the target data in the elog
ERRORLOG::ErrlUserDetailsTarget(l_pProcTarget).addToLog( l_err );
@@ -92,25 +86,6 @@ void* call_host_mpipl_service (void *io_pArgs)
break;
}
- // ---------------------------------------------------------------
- // run proc_mpipl_ex_cleanup.C on all proc chips
- // ---------------------------------------------------------------
- //@TODO RTC:133831 call the HWP with each fapi::Target
- //FAPI_INVOKE_HWP(l_err,
- // proc_mpipl_ex_cleanup,
- // l_fapi_pProcTarget );
-
- if ( l_err )
- {
- TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
- "ERROR : returned from proc_mpipl_ex_cleanup" );
-
- // capture the target data in the elog
- ERRORLOG::ErrlUserDetailsTarget(l_pProcTarget).addToLog( l_err );
-
- // since we are doing an mpipl break out, the mpipl has failed
- break;
- }
}
//Determine if we should perform dump ops
@@ -259,7 +234,6 @@ void* call_host_mpipl_service (void *io_pArgs)
// Commit Error
errlCommit( l_err, HWPF_COMP_ID );
}
-#endif
TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
"call_host_mpipl_service exit" );
OpenPOWER on IntegriCloud