summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZane Shelley <zshelle@us.ibm.com>2018-06-04 22:17:04 -0500
committerZane C. Shelley <zshelle@us.ibm.com>2018-06-08 22:46:01 -0400
commitee548e96749a6d7de1f1730e39e00d479d2065fe (patch)
tree26533ced10bbc761bf7d94f84bbe13660d126790
parentf6c80b9c60100dc7f8e2c67ae058dc827507044d (diff)
downloadtalos-hostboot-ee548e96749a6d7de1f1730e39e00d479d2065fe.tar.gz
talos-hostboot-ee548e96749a6d7de1f1730e39e00d479d2065fe.zip
PRD: removed depricated unit dump support
Change-Id: I0eb2913c7f93eaa9aa84e47713da5484bdc6278b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59916 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com> Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com> Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60141 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
-rwxr-xr-xsrc/usr/diag/prdf/common/framework/service/xspprdService.h12
-rwxr-xr-xsrc/usr/diag/prdf/common/plat/prdfRasServices_common.C44
-rw-r--r--src/usr/diag/prdf/common/plat/prdfRasServices_common.H20
-rwxr-xr-xsrc/usr/diag/prdf/common/prdfMain_common.C18
-rwxr-xr-xsrc/usr/diag/prdf/test/prdfsimRasServices.C12
-rwxr-xr-xsrc/usr/diag/prdf/test/prdfsimRasServices.H12
6 files changed, 18 insertions, 100 deletions
diff --git a/src/usr/diag/prdf/common/framework/service/xspprdService.h b/src/usr/diag/prdf/common/framework/service/xspprdService.h
index cf2926ba9..b5d2e3e94 100755
--- a/src/usr/diag/prdf/common/framework/service/xspprdService.h
+++ b/src/usr/diag/prdf/common/framework/service/xspprdService.h
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2012,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -93,20 +93,12 @@ class ServiceGeneratorClass
* @brief Creates an SRC, PFA data, and error log from the SDC provided.
* @param i_attnType Analysis attention type.
* @param io_sdc Target SDC.
- * @param o_initiateHwudump whether or not to initiate hwudump
- * @param o_dumpTrgt The DUMP target
- * @param o_dumpErrl The DUMP error handle
- * @param o_dumpErrlActions DUMP error action flags
* @return A non-NULL error log indicates a system termination is required.
* Otherwise, PRD will commit the error log generated.
* @pre The Time of Error must be set in the given SDC.
*/
virtual errlHndl_t GenerateSrcPfa( ATTENTION_TYPE i_attnType,
- ServiceDataCollector & io_sdc,
- bool & o_initiateHwudump,
- TARGETING::TargetHandle_t & o_dumpTrgt,
- errlHndl_t & o_dumpErrl,
- uint32_t & o_dumpErrlActions ) = 0;
+ ServiceDataCollector & io_sdc ) = 0;
/**
* @brief Creates the initial error log for PRDF::main() analysis path.
diff --git a/src/usr/diag/prdf/common/plat/prdfRasServices_common.C b/src/usr/diag/prdf/common/plat/prdfRasServices_common.C
index 325250ad8..174fd7794 100755
--- a/src/usr/diag/prdf/common/plat/prdfRasServices_common.C
+++ b/src/usr/diag/prdf/common/plat/prdfRasServices_common.C
@@ -101,19 +101,10 @@ void ErrDataService::Initialize()
//------------------------------------------------------------------------------
errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType,
- ServiceDataCollector & io_sdc,
- bool & o_initiateHwudump,
- TargetHandle_t & o_dumpTrgt,
- errlHndl_t & o_dumpErrl,
- uint32_t & o_dumpErrlActions)
+ ServiceDataCollector & io_sdc )
{
#define PRDF_FUNC "[ErrDataService::GenerateSrcPfa] "
- o_initiateHwudump = false;
- o_dumpTrgt = NULL;
- o_dumpErrl = NULL;
- o_dumpErrlActions = 0;
-
// First, check if an error log should be committed. Note that there should
// always be an error log if there was a system or unit checkstop.
if ( io_sdc.queryDontCommitErrl() &&
@@ -438,9 +429,9 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType,
//--------------------------------------------------------------------------
PfaData pfaData;
-
+ TargetHandle_t dumpTrgt;
initPfaData( io_sdc, i_attnType, deferDeconfig, errlAct, errlSev,
- gardPolicy, pfaData, o_dumpTrgt );
+ gardPolicy, pfaData, dumpTrgt );
//--------------------------------------------------------------------------
// Add each mru/callout to the error log.
@@ -546,7 +537,7 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType,
// Check for Terminating the system for non mnfg conditions.
//**************************************************************
- ForceTerminate = checkForceTerm( io_sdc, o_dumpTrgt, pfaData );
+ ForceTerminate = checkForceTerm( io_sdc, dumpTrgt, pfaData );
//*************************************************************
// Check for Manufacturing Mode terminate here and then do
@@ -664,22 +655,8 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType,
if ( MACHINE_CHECK != pfaData.priAttnType && !ForceTerminate &&
!pfaData.TERMINATE )
{
- if ( true == o_initiateHwudump )
- {
- // the dump log will be deleted later in PRDF::main
- // after the hwudump is initiated there.
- o_dumpErrl = iv_errl;
- iv_errl = NULL;
- o_dumpErrlActions = errlAct;
- PRDF_TRAC( PRDF_FUNC "for target: 0x%08x, i_errl: 0x%08x, "
- "i_errlActions: 0x%08x", getHuid(o_dumpTrgt),
- ERRL_GETRC_SAFE(o_dumpErrl), o_dumpErrlActions );
- }
- else
- {
- // Commit the error log.
- commitErrLog( iv_errl, pfaData );
- }
+ // Commit the error log.
+ commitErrLog( iv_errl, pfaData );
}
#ifndef __HOSTBOOT_MODULE
@@ -979,15 +956,10 @@ void RasServices::setErrDataService( ErrDataService & i_eds )
//------------------------------------------------------------------------------
errlHndl_t RasServices::GenerateSrcPfa( ATTENTION_TYPE i_attnType,
- ServiceDataCollector & io_sdc,
- bool & o_initiateHwudump,
- TargetHandle_t & o_dumpTrgt,
- errlHndl_t & o_dumpErrl,
- uint32_t & o_dumpErrlActions )
+ ServiceDataCollector & io_sdc )
{
- return iv_eds->GenerateSrcPfa( i_attnType, io_sdc, o_initiateHwudump,
- o_dumpTrgt, o_dumpErrl, o_dumpErrlActions );
+ return iv_eds->GenerateSrcPfa( i_attnType, io_sdc );
}
//------------------------------------------------------------------------------
diff --git a/src/usr/diag/prdf/common/plat/prdfRasServices_common.H b/src/usr/diag/prdf/common/plat/prdfRasServices_common.H
index 4bb44908e..189c3974e 100644
--- a/src/usr/diag/prdf/common/plat/prdfRasServices_common.H
+++ b/src/usr/diag/prdf/common/plat/prdfRasServices_common.H
@@ -70,20 +70,12 @@ class ErrDataService
* @brief Creates an SRC, PFA data, and error log from the SDC provided.
* @param i_attnType Analysis attention type.
* @param io_sdc Target SDC.
- * @param o_initiateHwudump whether or not to initiate hwudump
- * @param o_dumpTrgt The DUMP target
- * @param o_dumpErrl The DUMP error handle
- * @param o_dumpErrlActions DUMP error action flags
* @return A non-NULL error log indicates a system termination is required.
* Otherwise, PRD will commit the error log generated.
* @pre The Time of Error must be set in the given SDC.
*/
virtual errlHndl_t GenerateSrcPfa( ATTENTION_TYPE i_attnType,
- ServiceDataCollector & io_sdc,
- bool & o_initiateHwudump,
- TARGETING::TargetHandle_t & o_dumpTrgt,
- errlHndl_t & o_dumpErrl,
- uint32_t & o_dumpErrlActions );
+ ServiceDataCollector & io_sdc );
/**
@brief Add the Service Data Collector Capture Data to the User Data of the Error Log.
@@ -221,20 +213,12 @@ class RasServices : public ServiceGeneratorClass
* @brief Creates an SRC, PFA data, and error log from the SDC provided.
* @param i_attnType Analysis attention type.
* @param io_sdc Target SDC.
- * @param o_initiateHwudump whether or not to initiate hwudump
- * @param o_dumpTrgt The DUMP target
- * @param o_dumpErrl The DUMP error handle
- * @param o_dumpErrlActions DUMP error action flags
* @return A non-NULL error log indicates a system termination is required.
* Otherwise, PRD will commit the error log generated.
* @pre The Time of Error must be set in the given SDC.
*/
virtual errlHndl_t GenerateSrcPfa( ATTENTION_TYPE i_attnType,
- ServiceDataCollector & io_sdc,
- bool & o_initiateHwudump,
- TARGETING::TargetHandle_t & o_dumpTrgt,
- errlHndl_t & o_dumpErrl,
- uint32_t & o_dumpErrlActions );
+ ServiceDataCollector & io_sdc );
/**
* @brief Creates the initial error log for PRDF::main() analysis path.
diff --git a/src/usr/diag/prdf/common/prdfMain_common.C b/src/usr/diag/prdf/common/prdfMain_common.C
index e3224105e..32c0c1329 100755
--- a/src/usr/diag/prdf/common/prdfMain_common.C
+++ b/src/usr/diag/prdf/common/prdfMain_common.C
@@ -213,10 +213,6 @@ errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType,
// These have to be outside of system scope lock
errlHndl_t retErrl = NULL;
- bool initiateHwudump = false;
- TARGETING::TargetHandle_t dumpTrgt = NULL;
- errlHndl_t dumpErrl = NULL;
- uint32_t dumpErrlActions = 0;
{ // system scope lock starts ------------------------------------------
@@ -372,11 +368,7 @@ errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType,
}
g_prd_errlHndl = serviceGenerator.GenerateSrcPfa( i_attentionType,
- serviceData,
- initiateHwudump,
- dumpTrgt,
- dumpErrl,
- dumpErrlActions);
+ serviceData );
// Sleep for 20msec to let attention lines settle if we are at threshold.
if ( (g_prd_errlHndl == NULL) && serviceData.IsAtThreshold() )
@@ -388,14 +380,6 @@ errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType,
} // system scope lock ends ------------------------------------------
-
- if ( true == initiateHwudump )
- {
-/* TODO RTC 144705
- PlatServices::initiateUnitDump( dumpTrgt, dumpErrl, dumpErrlActions );
-*/
- }
-
PRDF_EXIT( "PRDF::main()" );
return retErrl;
diff --git a/src/usr/diag/prdf/test/prdfsimRasServices.C b/src/usr/diag/prdf/test/prdfsimRasServices.C
index 4b7c0724c..72c7d5cb9 100755
--- a/src/usr/diag/prdf/test/prdfsimRasServices.C
+++ b/src/usr/diag/prdf/test/prdfsimRasServices.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2013,2014 */
+/* Contributors Listed Below - COPYRIGHT 2013,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -34,11 +34,7 @@ namespace PRDF
{
errlHndl_t SimErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType,
- ServiceDataCollector & io_sdc,
- bool & o_initiateHwudump,
- TargetHandle_t & o_dumpTrgt,
- errlHndl_t & o_dumpErrl,
- uint32_t & o_dumpErrlActions )
+ ServiceDataCollector & io_sdc )
{
using namespace TARGETING;
using namespace PlatServices;
@@ -47,9 +43,7 @@ errlHndl_t SimErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType,
errlHndl_t errLog = NULL;
// call the actual ras services function
- errLog = ErrDataService::GenerateSrcPfa( i_attnType, io_sdc,
- o_initiateHwudump, o_dumpTrgt,
- o_dumpErrl, o_dumpErrlActions );
+ errLog = ErrDataService::GenerateSrcPfa( i_attnType, io_sdc );
ErrorSignature * esig = io_sdc.GetErrorSignature();
diff --git a/src/usr/diag/prdf/test/prdfsimRasServices.H b/src/usr/diag/prdf/test/prdfsimRasServices.H
index b53904f1d..baf37c5d9 100755
--- a/src/usr/diag/prdf/test/prdfsimRasServices.H
+++ b/src/usr/diag/prdf/test/prdfsimRasServices.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2013,2014 */
+/* Contributors Listed Below - COPYRIGHT 2013,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -48,20 +48,12 @@ class SimErrDataService : public ErrDataService
* @brief Creates an SRC, PFA data, and error log from the SDC provided.
* @param i_attnType Analysis attention type.
* @param io_sdc Target SDC.
- * @param o_initiateHwudump whether or not to initiate hwudump
- * @param o_dumpTrgt The DUMP target
- * @param o_dumpErrl The DUMP error handle
- * @param o_dumpErrlActions DUMP error action flags
* @return A non-NULL error log indicates a system termination is required.
* Otherwise, PRD will commit the error log generated.
* @pre The Time of Error must be set in the given SDC.
*/
virtual errlHndl_t GenerateSrcPfa( ATTENTION_TYPE i_attnType,
- ServiceDataCollector & io_sdc,
- bool & o_initiateHwudump,
- TARGETING::TargetHandle_t & o_dumpTrgt,
- errlHndl_t & o_dumpErrl,
- uint32_t & o_dumpErrlActions );
+ ServiceDataCollector & io_sdc );
};
OpenPOWER on IntegriCloud