From 0f2343075276a6bcc15c679b4270d0843e002da0 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 27 Feb 2015 17:35:03 +0800 Subject: 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 --- hw/ipmi/ipmi-sel.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hw/ipmi') 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", -- cgit v1.2.1