summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCorey Swenson <cswenson@us.ibm.com>2018-11-01 10:12:13 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-11-05 11:51:47 -0600
commit83335d59ac593a543bcbe8c9c2f030798c02a2dc (patch)
tree0c2e571ebe4d2c9dfaf929dd12385fa404faf918 /src
parentb26e6d85c0307ee42574a035a9f8743fd7233c9c (diff)
downloadtalos-hostboot-83335d59ac593a543bcbe8c9c2f030798c02a2dc.tar.gz
talos-hostboot-83335d59ac593a543bcbe8c9c2f030798c02a2dc.zip
Enable IPMI errl after targeting is initialized
A recent change split IPMI into base and extended. Move the enable of IPMI errl from base to extended to avoid targeting errors. Change-Id: Ia833dd8178ff407dff1fa514b32468c5fc70e945 CQ:SW450286 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68265 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: ANDREW R. JEFFERY <andrewrj@au1.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/include/usr/ipmi/ipmisel.H6
-rw-r--r--src/usr/ipmibase/ipmirp.C3
-rw-r--r--src/usr/ipmiext/ipmisel.C14
3 files changed, 20 insertions, 3 deletions
diff --git a/src/include/usr/ipmi/ipmisel.H b/src/include/usr/ipmi/ipmisel.H
index 8b23259ff..0ca8ddfe2 100644
--- a/src/include/usr/ipmi/ipmisel.H
+++ b/src/include/usr/ipmi/ipmisel.H
@@ -368,6 +368,12 @@ class IpmiSEL
~IpmiSEL(void);
/**
+ * Enable ipmi errl
+ * @param[in] o_errl, NULL if OK
+ */
+ static void errlEnable(errlHndl_t& o_errl);
+
+ /**
* @brief Get the message queue associated with this FRU
* @param[in] void
* @return, a msg_q_t which is the message queue
diff --git a/src/usr/ipmibase/ipmirp.C b/src/usr/ipmibase/ipmirp.C
index 665b8eb18..57e69059e 100644
--- a/src/usr/ipmibase/ipmirp.C
+++ b/src/usr/ipmibase/ipmirp.C
@@ -574,9 +574,6 @@ void IpmiRP::execute(void)
// Wait for an event message read it and handle it if no one else does
task_create( &IpmiRP::last_chance_event_handler, NULL);
- // call ErrlManager function - tell him that IPMI is ready!
- ERRORLOG::ErrlManager::errlResourceReady(ERRORLOG::IPMI);
-
while (true)
{
diff --git a/src/usr/ipmiext/ipmisel.C b/src/usr/ipmiext/ipmisel.C
index 369c5b79f..dafcabca0 100644
--- a/src/usr/ipmiext/ipmisel.C
+++ b/src/usr/ipmiext/ipmisel.C
@@ -592,5 +592,19 @@ void IpmiSEL::execute(void)
IPMI_TRAC(EXIT_MRK "message loop");
return;
} // execute
+
+
+/*
+ * @brief enable IPMI errl
+ */
+void IpmiSEL::errlEnable(errlHndl_t& o_errl)
+{
+ // call ErrlManager function - tell him that IPMI is ready!
+ ERRORLOG::ErrlManager::errlResourceReady(ERRORLOG::IPMI);
+}
+
+TASK_ENTRY_MACRO( IpmiSEL::errlEnable );
+
+
#endif
OpenPOWER on IntegriCloud