diff options
author | Joel Stanley <joel@jms.id.au> | 2015-02-05 13:40:04 +1030 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-09 14:15:57 +1100 |
commit | 77e4b445025b05d4da12862e34a47519d0a64868 (patch) | |
tree | ce3f89e0458b892bf1e366e6a84ff4eb9ab6a26d /core/ipmi.c | |
parent | be8e03e7861a9e7b9dcbc9cf0bae6aaa57916940 (diff) | |
download | skiboot-77e4b445025b05d4da12862e34a47519d0a64868.zip skiboot-77e4b445025b05d4da12862e34a47519d0a64868.tar.gz skiboot-77e4b445025b05d4da12862e34a47519d0a64868.tar.bz2 |
ipmi: Implement Read Event and SEL parsing
The read event mechanism is used when the BMC has an asynchronous message
for the host. It sets a flag that we read with Get Message Flags, and then
we read the message using Read Event. This event message contains a SEL
message. There are two OEM SEL messages we expect from the AMI BMC:
- graceful power operations. This is when the BMC wants the host to
power down or reboot.
- PNOR Locking. When the BMC wants to access the PNOR, it requests
that the host not touch it.
This patch implements the parsing.
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/ipmi.c')
-rw-r--r-- | core/ipmi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ipmi.c b/core/ipmi.c index 04c381a..e4dfefd 100644 --- a/core/ipmi.c +++ b/core/ipmi.c @@ -142,7 +142,8 @@ static void ipmi_read_event_complete(struct ipmi_msg *msg) prlog(PR_DEBUG, "IPMI read event %02x complete: %d bytes. cc: %02x\n", msg->cmd, msg->resp_size, msg->cc); - /* TODO: Handle power control & PNOR handshake events */ + /* Handle power control & PNOR handshake events */ + ipmi_parse_sel(msg); ipmi_free_msg(msg); } |