summaryrefslogtreecommitdiffstats
path: root/src/include/usr/errl
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2017-10-23 15:17:24 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2017-11-09 17:47:52 -0500
commit2b4e2315094efa8eb3e5b45480418bd86806a25f (patch)
treeed2223d8cb9e5323e337c9c97c2f8bafcb98041f /src/include/usr/errl
parent9fec69bc023ce50d718f4430e5dd7c6f7b2cd810 (diff)
downloadblackbird-hostboot-2b4e2315094efa8eb3e5b45480418bd86806a25f.tar.gz
blackbird-hostboot-2b4e2315094efa8eb3e5b45480418bd86806a25f.zip
Send down OCC info logs to BMC for call-home
This creates a new eSEL type (dd) to display informational callhome logs. The OCC will send down telemetry information to track the general health of the system using this new log. Change-Id: I0319798554c4e48c287953bd2d0de8352bfc4909 RTC:180324 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48776 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> 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> Reviewed-by: Brian E. Bakke <bbakke@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/usr/errl')
-rw-r--r--src/include/usr/errl/errlentry.H37
-rw-r--r--src/include/usr/errl/errlmanager.H12
2 files changed, 49 insertions, 0 deletions
diff --git a/src/include/usr/errl/errlentry.H b/src/include/usr/errl/errlentry.H
index 555bcb4c1..4159d867d 100644
--- a/src/include/usr/errl/errlentry.H
+++ b/src/include/usr/errl/errlentry.H
@@ -612,6 +612,24 @@ public:
*/
std::vector<void*> getUDSections(compId_t i_compId, uint8_t i_subSect);
+ /**
+ * @brief set iv_eselCallhomeInfoEvent
+ *
+ * When true, send this error as a special callhome
+ * type of eSEL to the BMC
+ *
+ * @return nothing
+ */
+ void setEselCallhomeInfoEvent(bool i_valid);
+
+ /**
+ * @brief get iv_eselCallhomeInfoEvent
+ *
+ * @return true if this log should result in a callhome event type eSEL,
+ * false otherwise
+ */
+ bool getEselCallhomeInfoEvent();
+
private:
/**
@@ -788,6 +806,7 @@ private:
*/
bool getSkipShowingLog();
+
/**
* @brief Sets internal flag to indicate if this log should be
* saved to PNOR and sent to the BMC
@@ -838,6 +857,9 @@ private:
//BMC, or displayed in the console
bool iv_skipShowingLog;
+ // 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;
};
@@ -984,6 +1006,21 @@ inline bool ErrlEntry::getSkipShowingLog()
return iv_skipShowingLog;
}
+////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////
+inline void ErrlEntry::setEselCallhomeInfoEvent(bool i_valid)
+{
+ iv_eselCallhomeInfoEvent = i_valid;
+ return;
+}
+
+////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////
+inline bool ErrlEntry::getEselCallhomeInfoEvent()
+{
+ return iv_eselCallhomeInfoEvent;
+}
+
} // End namespace
diff --git a/src/include/usr/errl/errlmanager.H b/src/include/usr/errl/errlmanager.H
index 174b55725..93165a821 100644
--- a/src/include/usr/errl/errlmanager.H
+++ b/src/include/usr/errl/errlmanager.H
@@ -607,6 +607,18 @@ private:
* @param[in/out] io_err - errorlog that's being checked and updatd
*/
void setErrlSkipFlag(errlHndl_t io_err);
+
+#ifdef CONFIG_BMC_IPMI
+ /**
+ * @brief Helper function to grab the value of
+ * ATTR_ALLOW_CALLHOME_ESELS_TO_BMC and
+ * return it as a boolean value
+ *
+ * @return true if these ESELs are allowed, false otherwise
+ */
+ bool allowCallHomeEselsToBmc(void);
+#endif
+
};
OpenPOWER on IntegriCloud