summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/attn/runtime/attn_rt.C
diff options
context:
space:
mode:
authorBrian Stegmiller <bjs@us.ibm.com>2017-05-31 14:53:18 -0500
committerZane C. Shelley <zshelle@us.ibm.com>2017-06-09 16:59:25 -0400
commit826713fa254a1255a42c4c4a8968b3ae3b7d0ea9 (patch)
treee9696c48b051c970a46541dd560b93a3ec6a8e3b /src/usr/diag/attn/runtime/attn_rt.C
parent8379340bcf8dfcff08afdcce78ce8256ac417a9f (diff)
downloadtalos-hostboot-826713fa254a1255a42c4c4a8968b3ae3b7d0ea9.tar.gz
talos-hostboot-826713fa254a1255a42c4c4a8968b3ae3b7d0ea9.zip
ATTN: Return IPOLL bits being used to HOST OS
Change-Id: I74d84208c1f24d156739b8bb4c912f8a1bd11ee3 RTC: 174196 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41179 Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/usr/diag/attn/runtime/attn_rt.C')
-rw-r--r--src/usr/diag/attn/runtime/attn_rt.C37
1 files changed, 33 insertions, 4 deletions
diff --git a/src/usr/diag/attn/runtime/attn_rt.C b/src/usr/diag/attn/runtime/attn_rt.C
index 15b7b6b9e..5dd165b19 100644
--- a/src/usr/diag/attn/runtime/attn_rt.C
+++ b/src/usr/diag/attn/runtime/attn_rt.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2016 */
+/* Contributors Listed Below - COPYRIGHT 2014,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -26,6 +26,7 @@
#include "runtime/attnsvc.H"
#include "common/attntrace.H"
#include "common/attnmem.H"
+#include "common/attnbits.H"
#include <runtime/interface.h>
#include <runtime/rt_targeting.H>
#include <targeting/common/target.H>
@@ -158,6 +159,33 @@ namespace ATTN_RT
return rc;
}
+
+ /** brief getIpollEvents
+ *
+ * Bits that are *set* in this bitmask represent events that will be
+ * allowed to flow to the HOST or Service Processor.
+ *
+ * @return Value indicating which attention events should
+ * be enabled in the IPOLL mask register.
+ */
+
+ uint64_t getIpollEvents( void )
+ {
+ uint64_t l_ipollEvents = 0;
+
+ // Host side should allow 'Recov', 'UnitCs' and 'HostInt'
+ // SP side should allow 'Chkstop', 'Recov', 'Special'
+ // and maybe the mystery bit (route to SP).
+ l_ipollEvents = IPOLL_RECOVERABLE | IPOLL_UNIT_CS |
+ IPOLL_HOST_ATTN | IPOLL_SP_CHECK_STOP |
+ IPOLL_SP_RECOVERABLE | IPOLL_SP_SPECIAL |
+ IPOLL_ROUTE_TO_SP ;
+
+ return(l_ipollEvents);
+
+ } // end getIpollEvents
+
+
// register runtimeInterfaces
struct registerAttn
{
@@ -169,9 +197,10 @@ namespace ATTN_RT
return;
}
- rt_intf->enable_attns = &enableAttns;
- rt_intf->disable_attns = &disableAttns;
- rt_intf->handle_attns = &handleAttns;
+ rt_intf->enable_attns = &enableAttns;
+ rt_intf->disable_attns = &disableAttns;
+ rt_intf->handle_attns = &handleAttns;
+ rt_intf->get_ipoll_events = &getIpollEvents;
}
};
OpenPOWER on IntegriCloud