aboutsummaryrefslogtreecommitdiff
path: root/hw/ipmi
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2016-03-10 10:46:32 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-03-11 15:24:39 +1100
commitb3dae4b9de489d831474d7add8bf6b0b4aa5c0d5 (patch)
treef555c7816b68ead20c407fac87f8b25ad7dd2d33 /hw/ipmi
parent8c419564953f04ff7bae8e076a1cd8ebc67a0822 (diff)
downloadskiboot-b3dae4b9de489d831474d7add8bf6b0b4aa5c0d5.zip
skiboot-b3dae4b9de489d831474d7add8bf6b0b4aa5c0d5.tar.gz
skiboot-b3dae4b9de489d831474d7add8bf6b0b4aa5c0d5.tar.bz2
IPMI: Enable synchronous eSEL logging option
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@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/ipmi')
-rw-r--r--hw/ipmi/ipmi-sel.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c
index a563f71..8d10b6f 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;
}