aboutsummaryrefslogtreecommitdiff
path: root/hw/ipmi
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2016-07-02 20:43:31 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-15 16:19:14 +1000
commit7027d7d2b8d982e508fb48997c1ba99c33640709 (patch)
tree54cf5a76e7e76ad37c42dad7ea150a295919706f /hw/ipmi
parent7116c948ee63019ceda7dc3b7334e6c25e291eeb (diff)
downloadskiboot-7027d7d2b8d982e508fb48997c1ba99c33640709.zip
skiboot-7027d7d2b8d982e508fb48997c1ba99c33640709.tar.gz
skiboot-7027d7d2b8d982e508fb48997c1ba99c33640709.tar.bz2
SEL: Fix eSEL ID while logging eSEL event
Commit 127a7dac added eSEL ID to SEL event in reverse order (0700 instead of 0007). This code fixes this issue by adding ID in proper order. Sample SEL event output without this patch: Event Data (RAW) : 050700 Sample SEL event output with this patch: Event Data (RAW) : 050005 Fixes: 127a7dac (IPMI: Add SEL event with eSEL record ID) 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c
index 6bc386a..59f2eca 100644
--- a/hw/ipmi/ipmi-sel.c
+++ b/hw/ipmi/ipmi-sel.c
@@ -217,8 +217,8 @@ static void ipmi_init_esel_record(void)
static void ipmi_update_sel_record(uint8_t event_severity, uint16_t esel_record_id)
{
sel_record.record_type = SEL_REC_TYPE_SYS_EVENT;
- sel_record.event_data2 = esel_record_id & 0xff;
- sel_record.event_data3 = (esel_record_id >> 8) & 0xff;
+ sel_record.event_data2 = (esel_record_id >> 8) & 0xff;
+ sel_record.event_data3 = esel_record_id & 0xff;
switch (event_severity) {
case OPAL_ERROR_PANIC: