diff options
author | Sachin Gupta <sgupta2m@in.ibm.com> | 2015-01-14 00:26:29 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-02-04 12:05:40 -0600 |
commit | 0319f088919e7a9ab8d5804405cad33beda4e035 (patch) | |
tree | 34ff6718fe9d06b07022f1b1c26e893c60a5d6bd /src/usr/diag | |
parent | 465c97f5e63126bcec69a8708a23d7d9318eab7a (diff) | |
download | talos-hostboot-0319f088919e7a9ab8d5804405cad33beda4e035.tar.gz talos-hostboot-0319f088919e7a9ab8d5804405cad33beda4e035.zip |
PRD: Added 2nd lvl support callouts to all SP_CODE only callouts
Change-Id: I102fbb71d25698c508f78c7bcf92961564c7d7fa
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15119
Tested-by: Jenkins Server
Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com>
Reviewed-by: Christopher T. Phan <cphan@us.ibm.com>
Reviewed-by: Bilicon Patil <bilpatil@in.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Reviewed-by: Zane Shelley <zshelle@us.ibm.com>
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15526
Diffstat (limited to 'src/usr/diag')
-rwxr-xr-x | src/usr/diag/prdf/common/prdfMain_common.C | 10 | ||||
-rwxr-xr-x | src/usr/diag/prdf/common/util/prdfAssert.C | 6 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/usr/diag/prdf/common/prdfMain_common.C b/src/usr/diag/prdf/common/prdfMain_common.C index 7bf37faa9..efef31c94 100755 --- a/src/usr/diag/prdf/common/prdfMain_common.C +++ b/src/usr/diag/prdf/common/prdfMain_common.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2013,2014 */ +/* Contributors Listed Below - COPYRIGHT 2013,2015 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -238,6 +238,7 @@ errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType, // we are not going to do an analysis - so fill out the Service Data (serviceData.GetErrorSignature())->setSigId(rc); serviceData.SetCallout(SP_CODE); + serviceData.SetCallout( NextLevelSupport_ENUM, MRU_LOW ); serviceData.SetThresholdMaskId(0); // Sets AT_THRESHOLD, DEGRADED, // SERVICE_CALL } @@ -301,6 +302,7 @@ errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType, (serviceData.GetErrorSignature())->setErrCode( (uint16_t)analyzeRc ); serviceData.SetCallout(SP_CODE); + serviceData.SetCallout( NextLevelSupport_ENUM, MRU_LOW ); serviceData.SetServiceCall(); // We don't want to gard unless we have a good // return code @@ -313,6 +315,12 @@ errlHndl_t main( ATTENTION_VALUE_TYPE i_attentionType, PRDF_INF("PRDTRACE: PrdMain: g_prd_errlHndl != NULL"); PRDF_ADD_PROCEDURE_CALLOUT( g_prd_errlHndl, SRCI_PRIORITY_MED, EPUB_PRC_SP_CODE ); + // This is a precautionary step. There is a possibilty that if + // severity for g_prd_errlHndl is Predictve and there is only + // EPUB_PRC_SP_CODE callout than it will be changed to tracing event. + // So adding EPUB_PRC_LVL_SUPP to avoid this. + PRDF_ADD_PROCEDURE_CALLOUT( g_prd_errlHndl, SRCI_PRIORITY_LOW, + EPUB_PRC_LVL_SUPP ); // This forces any previous errls to be committed g_prd_errlHndl = NULL; diff --git a/src/usr/diag/prdf/common/util/prdfAssert.C b/src/usr/diag/prdf/common/util/prdfAssert.C index 41ea1481e..1803a06e2 100755 --- a/src/usr/diag/prdf/common/util/prdfAssert.C +++ b/src/usr/diag/prdf/common/util/prdfAssert.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2004,2014 */ +/* Contributors Listed Below - COPYRIGHT 2012,2015 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -71,7 +73,7 @@ void prdfAssert( const char * i_exp, const char * i_file, int i_line ) * @procedure EPUB_PRC_SP_CODE */ PRDF_CREATE_ERRL(errl, - ERRL_SEV_PREDICTIVE, // error on diagnostic + ERRL_SEV_UNRECOVERABLE, // error on diagnostic ERRL_ETYPE_NOT_APPLICABLE, SRCI_ERR_INFO, SRCI_NO_ATTR, |