summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/prdfMain_common.C
diff options
context:
space:
mode:
authorZane Shelley <zshelle@us.ibm.com>2018-08-15 21:58:08 -0500
committerZane C. Shelley <zshelle@us.ibm.com>2018-08-23 10:19:32 -0500
commit410e6cc5d93c2ab4505eb4748f1ce795ab200663 (patch)
treef4164a4c5a5b6b03503f38f12487e971092af3d5 /src/usr/diag/prdf/common/prdfMain_common.C
parente748ff234b0236be017a938e3f27e6c4d1a0470a (diff)
downloadtalos-hostboot-410e6cc5d93c2ab4505eb4748f1ce795ab200663.tar.gz
talos-hostboot-410e6cc5d93c2ab4505eb4748f1ce795ab200663.zip
PRD: Simplified System::Analyze() interface
Change-Id: I66682099b777df86d3778c6b5b7a24c71b9ca408 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64943 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com> Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com> Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com> Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64985 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>
Diffstat (limited to 'src/usr/diag/prdf/common/prdfMain_common.C')
-rwxr-xr-xsrc/usr/diag/prdf/common/prdfMain_common.C23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/usr/diag/prdf/common/prdfMain_common.C b/src/usr/diag/prdf/common/prdfMain_common.C
index 32c0c1329..fd23cf4d1 100755
--- a/src/usr/diag/prdf/common/prdfMain_common.C
+++ b/src/usr/diag/prdf/common/prdfMain_common.C
@@ -206,10 +206,10 @@ errlHndl_t initialize()
//------------------------------------------------------------------------------
-errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType,
+errlHndl_t main( ATTENTION_VALUE_TYPE i_priAttnType,
const AttnList & i_attnList )
{
- PRDF_ENTER( "PRDF::main() Global attnType=%04X", i_attentionType );
+ PRDF_ENTER( "PRDF::main() Global attnType=%04X", i_priAttnType );
// These have to be outside of system scope lock
errlHndl_t retErrl = NULL;
@@ -243,13 +243,13 @@ errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType,
// SPECIAL..)
////////////////////////////////////////////////////////////////////////////
- if ( i_attentionType == INVALID_ATTENTION_TYPE ||
- i_attentionType >= END_ATTENTION_TYPE )
+ if ( i_priAttnType == INVALID_ATTENTION_TYPE ||
+ i_priAttnType >= END_ATTENTION_TYPE )
{
rc = PRD_INVALID_ATTENTION_TYPE;
PRDF_ERR( "PrdMain: Invalid attention type! Global:%x",
- i_attentionType );
- i_attentionType = RECOVERABLE; // This will prevent RAS service problems
+ i_priAttnType );
+ i_priAttnType = RECOVERABLE; // This will prevent RAS service problems
}
// link to the right service Generator
@@ -257,7 +257,7 @@ errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType,
ServiceGeneratorClass::ThisServiceGenerator();
// Initialize the SDC error log. Required for GenerateSrcPfa() call below.
- serviceGenerator.createInitialErrl( i_attentionType );
+ serviceGenerator.createInitialErrl( i_priAttnType );
// check for something wrong
if ( g_initialized == false || rc != SUCCESS || systemPtr == NULL )
@@ -279,7 +279,8 @@ errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType,
// flush Cache so that SCR reads access hardware
RegDataCache::getCachedRegisters().flush();
- serviceData.setPrimaryAttnType(i_attentionType);
+ // The primary attention type must be set before calling Analyze().
+ serviceData.setPrimaryAttnType(i_priAttnType);
// Set the time in which PRD handled the error.
Timer timeOfError;
@@ -290,7 +291,7 @@ errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType,
l_tempSdc.setPrimaryPass();
sdc.service_data = &l_tempSdc;
- int32_t analyzeRc = systemPtr->Analyze( sdc, i_attentionType );
+ int32_t analyzeRc = systemPtr->Analyze( sdc );
if( PRD_SCAN_COMM_REGISTER_ZERO == analyzeRc )
{
@@ -313,7 +314,7 @@ errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType,
sdc.service_data->setSecondaryErrFlag();
}
- analyzeRc = systemPtr->Analyze( sdc, i_attentionType );
+ analyzeRc = systemPtr->Analyze( sdc );
// merging capture data of primary pass with capture data of
// secondary pass for better FFDC.
@@ -367,7 +368,7 @@ errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType,
serviceData.clearMruListGard();
}
- g_prd_errlHndl = serviceGenerator.GenerateSrcPfa( i_attentionType,
+ g_prd_errlHndl = serviceGenerator.GenerateSrcPfa( i_priAttnType,
serviceData );
// Sleep for 20msec to let attention lines settle if we are at threshold.
OpenPOWER on IntegriCloud