summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/framework/service/prdfRasServices.C
diff options
context:
space:
mode:
authorSachin Gupta <sgupta2m@in.ibm.com>2014-06-27 11:38:12 +0530
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-07-14 13:30:44 -0500
commitcdc76c00e35d6b4347c294ea965dc6e11f876194 (patch)
tree197c39fd5ac603a6adf778265f2e32bef2edfcce /src/usr/diag/prdf/framework/service/prdfRasServices.C
parent901e9fde6a348d289f80445012a337632dd48652 (diff)
downloadtalos-hostboot-cdc76c00e35d6b4347c294ea965dc6e11f876194.tar.gz
talos-hostboot-cdc76c00e35d6b4347c294ea965dc6e11f876194.zip
PRD: Linking PRD error logs
Change-Id: Id6183fe1f70cc05a5fc51f74db429e807697023e RTC: 98240 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11069 Reviewed-by: Bilicon Patil <bilpatil@in.ibm.com> Tested-by: Jenkins Server Reviewed-by: Christopher T. Phan <cphan@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/12161 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/diag/prdf/framework/service/prdfRasServices.C')
-rw-r--r--src/usr/diag/prdf/framework/service/prdfRasServices.C39
1 files changed, 38 insertions, 1 deletions
diff --git a/src/usr/diag/prdf/framework/service/prdfRasServices.C b/src/usr/diag/prdf/framework/service/prdfRasServices.C
index 0073a8f53..a2895e11f 100644
--- a/src/usr/diag/prdf/framework/service/prdfRasServices.C
+++ b/src/usr/diag/prdf/framework/service/prdfRasServices.C
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2013,2014 */
+/* Contributors Listed Below - COPYRIGHT 2013,2014 */
+/* [+] 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. */
@@ -50,9 +52,44 @@ void ErrDataService::MnfgTrace( ErrorSignature * i_esig,
#undef PRDF_FUNC
}
+//------------------------------------------------------------------------------
+
void ErrDataService::deallocateDimms( SDC_MRU_LIST & i_mruList )
{
//No OP for HB
}
+
+//------------------------------------------------------------------------------
+
+void ErrDataService::updateSrc( uint32_t i_user1, uint32_t i_user2,
+ uint32_t i_user3, uint32_t i_user4,
+ uint16_t i_rc )
+{
+ // We should always have a valid pointer here. If it is NULL, there
+ // is some major issue.
+ PRDF_ASSERT ( NULL != iv_errl);
+
+ iv_errl->setReasonCode(i_rc);
+ iv_errl->addUserData1( PRDF_GET_UINT64_FROM_UINT32( i_user1, i_user2 ));
+ iv_errl->addUserData2( PRDF_GET_UINT64_FROM_UINT32( i_user3, i_user4 ));
+}
+
+//------------------------------------------------------------------------------
+
+void ErrDataService::createInitialErrl( ATTENTION_TYPE i_attnType )
+{
+ // We should always have a NULL pointer here. If it is not NULL, there
+ // is some major issue.
+ PRDF_ASSERT ( NULL == iv_errl );
+ using namespace ERRORLOG;
+
+ iv_errl = new ErrlEntry(
+ ERRL_SEV_RECOVERED,
+ PRDF_RAS_SERVICES,
+ 0,
+ PRDF_GET_UINT64_FROM_UINT32( 0, 0 ),
+ PRDF_GET_UINT64_FROM_UINT32( 0, 0 ) );
+}
+
} // end namespace PRDF
OpenPOWER on IntegriCloud