[Skiboot] [PATCH v2] IPMI: Enable synchronous eSEL logging option

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Thu Mar 10 16:16:32 AEDT 2016


Presently we use queue method (ipmi_queue_msg) to send eSEL logs
to BMC.

There are cases like assert() where we want to commit messages
synchronously. This patch checks for log severity and logs PANIC
messages synchronously to BMC (Similar to what we do in FSP based
system).

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
Changes in v2:
  - Rebased on top of master

-Vasant

 hw/ipmi/ipmi-sel.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c
index 675dc4a..d9f03d3 100644
--- a/hw/ipmi/ipmi-sel.c
+++ b/hw/ipmi/ipmi-sel.c
@@ -419,7 +419,11 @@ int ipmi_elog_commit(struct errorlog *elog_buf)
 	msg->error = ipmi_elog_error;
 
 	msg->req_size = 0;
-	ipmi_queue_msg(msg);
+
+	if (elog_buf->event_severity == OPAL_ERROR_PANIC)
+		ipmi_queue_msg_sync(msg);
+	else
+		ipmi_queue_msg(msg);
 
 	return 0;
 }



More information about the Skiboot mailing list