summaryrefslogtreecommitdiffstats
path: root/hw/ipmi
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-02-27 17:35:03 +0800
committerJeremy Kerr <jk@ozlabs.org>2015-03-04 16:02:20 +0800
commit0f2343075276a6bcc15c679b4270d0843e002da0 (patch)
tree9f912da47ff262013a823e7d83d9829cd012f868 /hw/ipmi
parentd6fb45e3b29df30e30ac400cfb8b030719207213 (diff)
downloadblackbird-skiboot-0f2343075276a6bcc15c679b4270d0843e002da0.tar.gz
blackbird-skiboot-0f2343075276a6bcc15c679b4270d0843e002da0.zip
occ: Inform OCC of BMC PNOR ownership requests
We need to pass the PNOR access status to the OCCs, as they may write to the PNOR in the event of a checkstop. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'hw/ipmi')
-rw-r--r--hw/ipmi/ipmi-sel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c
index c86c2c97..8851dc3d 100644
--- a/hw/ipmi/ipmi-sel.c
+++ b/hw/ipmi/ipmi-sel.c
@@ -195,6 +195,8 @@ static void sel_pnor(uint8_t access)
case REQUEST_PNOR:
prlog(PR_NOTICE, "IPMI: PNOR access requested\n");
granted = flash_reserve();
+ if (granted)
+ occ_pnor_set_owner(PNOR_OWNER_EXTERNAL);
/* Ack the request */
msg = ipmi_mkmsg_simple(IPMI_PNOR_ACCESS_STATUS, &granted, 1);
@@ -203,6 +205,7 @@ static void sel_pnor(uint8_t access)
case RELEASE_PNOR:
prlog(PR_NOTICE, "IPMI: PNOR access released\n");
flash_release();
+ occ_pnor_set_owner(PNOR_OWNER_HOST);
break;
default:
prlog(PR_ERR, "IPMI: invalid PNOR access requested: %02x\n",
OpenPOWER on IntegriCloud