From 6e42e6364ed2b1e976d7ddace2e28f27c0b46ba4 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 5 Feb 2015 13:40:02 +1030 Subject: ipmi: handle SMS_ATN events When the bt interface sets the SMS_ATN flag, we perform a Get Message Flags to determine what messages are available. The only message type currently processed is the Event Message Buffer, which provides SEL messages for indicating OEM specific events such as graceful system shutdown and PNOR access requested. These events will be handled by the IPMI layer in skiboot. Signed-off-by: Jeremy Kerr Signed-off-by: Joel Stanley Signed-off-by: Stewart Smith --- hw/bt.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hw/bt.c') diff --git a/hw/bt.c b/hw/bt.c index afdd5df..d5c71a8 100644 --- a/hw/bt.c +++ b/hw/bt.c @@ -418,12 +418,18 @@ static int bt_add_ipmi_msg(struct ipmi_msg *ipmi_msg) void bt_irq(void) { uint8_t ireg = bt_inb(BT_INTMASK); + uint8_t ctrl = bt_inb(BT_CTRL); bt.irq_ok = true; if (ireg & BT_INTMASK_B2H_IRQ) { bt_outb(BT_INTMASK_B2H_IRQ | BT_INTMASK_B2H_IRQEN, BT_INTMASK); bt_poll(NULL, NULL); } + + if (ctrl & BT_CTRL_SMS_ATN) { + bt_outb(BT_CTRL_SMS_ATN, BT_CTRL); + ipmi_sms_attention(); + } } /* -- cgit v1.1