[Skiboot] [PATCH v2 2/8] IPMI: Insert SEL event to IPMI queue head

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Fri Sep 4 21:25:07 AEST 2015

We log SEL event with eSEL record ID for every eSEL event. Presently
SEL event is added to tail of IPMI queue. It works fine during normal
event. But it fails in terminate immediate path...as reboot message
will be called before SEL event.

This patch adds message to head of IPMI queue.. so that we can log
SEL event before sending reboot.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
 hw/ipmi/ipmi-sel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c
index d711a1a..a124e8f 100644
--- a/hw/ipmi/ipmi-sel.c
+++ b/hw/ipmi/ipmi-sel.c
@@ -236,7 +236,7 @@ static void ipmi_log_sel_event(uint8_t event_severity, uint16_t esel_record_id)
 	msg->error = ipmi_log_sel_event_error;
-	ipmi_queue_msg(msg);
+	ipmi_queue_msg_head(msg);
 /* Goes through the required steps to add a complete eSEL:

More information about the Skiboot mailing list