summaryrefslogtreecommitdiffstats
path: root/src/include/usr/errl
diff options
context:
space:
mode:
authorMarty Gloff <mgloff@us.ibm.com>2018-03-28 11:00:35 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-04-09 16:38:00 -0400
commit7383c3a4fbaff710ecbefb3e9eeeae7320d9f8b1 (patch)
treefabf0c55c9f4c048b330ec60ea97e97c5f2ebaea /src/include/usr/errl
parent519b09db143e87b3d43f39790486f6c5dc1be96b (diff)
downloadblackbird-hostboot-7383c3a4fbaff710ecbefb3e9eeeae7320d9f8b1.tar.gz
blackbird-hostboot-7383c3a4fbaff710ecbefb3e9eeeae7320d9f8b1.zip
Get Hostboot Dump after Hostboot Crash
When Hostboot has a TI with a PLID rather than a Reason Code (RC), HWSV does not attempt the Hostboot Dump. Thought is that happens per the design as the error log related to the PLID sent by Hostboot should already have the required information. There are instances where the error log does not have sufficient data and a dump would be beneficial. A path is being added so an error log can be flagged as needing a Hostboot dump. Change-Id: I97972308c70e7210f578fb818563bb9b0cd940b4 CQ: SW420219 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56600 CI-Ready: Daniel M. Crowell <dcrowell@us.ibm.com> CI-Ready: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@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> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/errl')
-rw-r--r--src/include/usr/errl/errlentry.H25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/include/usr/errl/errlentry.H b/src/include/usr/errl/errlentry.H
index 418e48fe6..dede1c21b 100644
--- a/src/include/usr/errl/errlentry.H
+++ b/src/include/usr/errl/errlentry.H
@@ -127,6 +127,9 @@ public:
* in the primary SRC
* @param[in] i_hbSwError if true, will automatically add a HIGH
* severity callout for EPUB_PRC_HB_CODE
+ * @param[in] i_hbDump if true, will flag error log as a candidate
+ * for an HB dump if log is committed and is
+ * used as status for a shutdown
* @return None
*/
ErrlEntry(const errlSeverity_t i_sev,
@@ -134,7 +137,8 @@ public:
const uint16_t i_reasonCode,
const uint64_t i_user1 = 0,
const uint64_t i_user2 = 0,
- const bool i_hbSwError = false );
+ const bool i_hbSwError = false,
+ const bool i_hbDump = false );
/**
* @brief Destructor
@@ -632,6 +636,14 @@ public:
*/
bool getEselCallhomeInfoEvent();
+ /**
+ * @brief get iv_doHbDump
+ *
+ * @return true if this log should result in a HB dump during a shutdown,
+ * false otherwise
+ */
+ bool getDoHbDump();
+
private:
/**
@@ -862,6 +874,10 @@ private:
// when true, send this special type of eSEL to the BMC
// This is used to send OCC informational errors up to BMC
bool iv_eselCallhomeInfoEvent;
+
+ // when true, if error log is committed, then the error log is tracked so
+ // doShutdown can request that a HB dump be done.
+ bool iv_doHbDump;
};
@@ -1023,6 +1039,13 @@ inline bool ErrlEntry::getEselCallhomeInfoEvent()
return iv_eselCallhomeInfoEvent;
}
+////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////
+inline bool ErrlEntry::getDoHbDump()
+{
+ return iv_doHbDump;
+}
+
} // End namespace
OpenPOWER on IntegriCloud