summaryrefslogtreecommitdiffstats
path: root/storagehandler.cpp
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2017-10-31 17:25:33 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2017-11-03 17:55:15 +0530
commitb647d5be78df54b3dab6a91476412474a6cb7e1d (patch)
treeb0a547cbbcdc6cb518f8d1a38f66c051c6f0f201 /storagehandler.cpp
parentb0b395b670b6e496dda0ce117e1b5a1e195ab0e9 (diff)
downloadphosphor-host-ipmid-b647d5be78df54b3dab6a91476412474a6cb7e1d.tar.gz
phosphor-host-ipmid-b647d5be78df54b3dab6a91476412474a6cb7e1d.zip
Commit a MaintenanceProcedure log entry on a 0xDE SEL record
In the case of a procedure callout, HB sends a eSEL of 0xDF type. It is followed by a Add SEL record with OEM record type 0xDE and byte 11 in the record indicate the procedure associated with the eSEL. Resolves openbmc/openbmc#2368 Change-Id: Ia57f423c9d533cd8968b613d7522b409a9820198 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'storagehandler.cpp')
-rw-r--r--storagehandler.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/storagehandler.cpp b/storagehandler.cpp
index 8d9e93d..9052b6f 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -578,7 +578,19 @@ ipmi_ret_t ipmi_storage_add_sel(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
// Pack the actual response
memcpy(response, &p->eventdata[1], 2);
- send_esel(recordid);
+ // Hostboot sends SEL with OEM record type 0xDE to indicate that there is
+ // a maintenance procedure associated with eSEL record.
+ static constexpr auto procedureType = 0xDE;
+ if (p->recordtype == procedureType)
+ {
+ // In the OEM record type 0xDE, byte 11 in the SEL record indicate the
+ // procedure number.
+ createProcedureLogEntry(p->sensortype);
+ }
+ else
+ {
+ send_esel(recordid);
+ }
return rc;
}
OpenPOWER on IntegriCloud