diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2016-03-10 12:13:52 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-03-11 15:24:39 +1100 |
commit | 2c0aee589932806ecf075c61b5027eed962f7c9c (patch) | |
tree | 7cb4677025e153f570ab7610ca485e71474b7c58 /platforms | |
parent | b3dae4b9de489d831474d7add8bf6b0b4aa5c0d5 (diff) | |
download | skiboot-2c0aee589932806ecf075c61b5027eed962f7c9c.zip skiboot-2c0aee589932806ecf075c61b5027eed962f7c9c.tar.gz skiboot-2c0aee589932806ecf075c61b5027eed962f7c9c.tar.bz2 |
ipmi-sel: Fix esel event logger to handle early boot PANIC events
We pre-allocate IPMI message for PANIC event and use that memory to send
PANIC event to BMC. Presently we return NULL if we have not initiated PANIC
event message. So we won't be able to log early failure events.
This patch tries to initialize ipmi message instead of returning NULL.
Also intialize elog before ipmi_sel_init. Otherwise we will not be able
to create elog message.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/astbmc/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c index 40a9fc8..1ed7d42 100644 --- a/platforms/astbmc/common.c +++ b/platforms/astbmc/common.c @@ -115,12 +115,13 @@ void astbmc_init(void) /* Register the BT interface with the IPMI layer */ bt_init(); + /* Initialize elog */ + elog_init(); ipmi_sel_init(); ipmi_wdt_init(); ipmi_rtc_init(); ipmi_opal_init(); astbmc_fru_init(); - elog_init(); ipmi_sensor_init(); /* As soon as IPMI is up, inform BMC we are in "S0" */ |