From 05f5369161fd8725ca3fc090a9a10e314f4f67ac Mon Sep 17 00:00:00 2001 From: Brian Bakke Date: Wed, 11 Apr 2018 09:34:37 -0500 Subject: Check for pending OCC messages on HBRT start in OpenPOWER The OCC will set an interrupt for the Host to look for a pending message/action. If opal-prd is not running at the time that this interrupt happens, HTMGT will never see the message. Therefore we need to have HTMGT explicitly check for anything pending any time HBRT starts up. Change-Id: Iaae075ae6828a9de5a7bd5afe55c541b0076f2d2 RTC: 187912 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57175 Reviewed-by: Christopher J. Cain Reviewed-by: Matt Derksen Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/runtime/rt_main.C | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/runtime/rt_main.C') diff --git a/src/runtime/rt_main.C b/src/runtime/rt_main.C index 19a15e518..7aa631c7e 100644 --- a/src/runtime/rt_main.C +++ b/src/runtime/rt_main.C @@ -142,6 +142,17 @@ runtimeInterfaces_t* rt_start(hostInterfaces_t* intf) // check for possible missed in-flight messages/interrupts rtPost->callClearPendingSbeMsgs(); + // check for possible missed in-flight messages/interrupts + if (rtPost->callClearPendingOccMsgs != nullptr ) + { + // vector ptr has been initted, use it + rtPost->callClearPendingOccMsgs(); + } + else + { + // (HTMGT not compiled in by default) + } + // do any version mismatch fixups rt_version_fixup(); -- cgit v1.2.1