summaryrefslogtreecommitdiffstats
path: root/src/usr/isteps/istep08
diff options
context:
space:
mode:
authorBrian Stegmiller <bjs@us.ibm.com>2016-07-21 15:25:02 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-07-31 16:14:37 -0400
commit1f1e263edc891398fabb3ac18c609198419ef2b7 (patch)
tree93d4a6c9f525a14d613dfa8db40e3d1b6b34f751 /src/usr/isteps/istep08
parent5df2675372b378275cfe7e3b83d3663fed2fd21a (diff)
downloadtalos-hostboot-1f1e263edc891398fabb3ac18c609198419ef2b7.tar.gz
talos-hostboot-1f1e263edc891398fabb3ac18c609198419ef2b7.zip
Limit checkForIplAttentions to master in early IPL
Change-Id: I74f3c6c00fdb7ea30bdf06d4be37c1a717fc6210 RTC: 154658 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27342 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/isteps/istep08')
-rw-r--r--src/usr/isteps/istep08/call_host_attnlisten_proc.C91
-rw-r--r--src/usr/isteps/istep08/makefile1
2 files changed, 92 insertions, 0 deletions
diff --git a/src/usr/isteps/istep08/call_host_attnlisten_proc.C b/src/usr/isteps/istep08/call_host_attnlisten_proc.C
new file mode 100644
index 000000000..455b95837
--- /dev/null
+++ b/src/usr/isteps/istep08/call_host_attnlisten_proc.C
@@ -0,0 +1,91 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/isteps/istep08/call_host_attnlisten_proc.C $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+/**
+ * @file call_host_attnlisten_proc.C
+ *
+ * Support file for IStep: host_attnlisten_proc
+ *
+ * HWP_IGNORE_VERSION_CHECK
+ */
+
+/******************************************************************************/
+// Includes
+/******************************************************************************/
+#include <stdint.h>
+#include <trace/interface.H>
+#include <initservice/taskargs.H>
+#include <errl/errlentry.H>
+#include <initservice/isteps_trace.H>
+#include <initservice/initserviceif.H>
+#include <initservice/initsvcreasoncodes.H>
+#include <sys/time.h>
+#include <devicefw/userif.H>
+
+// targeting support
+#include <targeting/common/commontargeting.H>
+#include <targeting/common/utilFilter.H>
+#include <targeting/namedtarget.H>
+#include <targeting/attrsync.H>
+
+#include <isteps/hwpisteperror.H>
+
+#include <errl/errludtarget.H>
+#include <errl/errlmanager.H>
+
+using namespace ISTEP;
+using namespace ISTEP_ERROR;
+using namespace ERRORLOG;
+using namespace TARGETING;
+
+namespace ISTEP_08
+{
+
+//******************************************************************************
+// call_host_attnlisten_proc()
+//******************************************************************************
+void* call_host_attnlisten_proc(void *io_pArgs)
+{
+ IStepError l_stepError;
+
+
+ TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
+ "call_host_attnlisten_proc entry" );
+
+ uint8_t l_useAllProcs = 1;
+ TARGETING::Target *l_sys = NULL;
+ TARGETING::targetService().getTopLevelTarget( l_sys );
+ assert(l_sys != NULL);
+
+ // All we need to do is set a flag so that the
+ // ATTN code will check ALL processors the next
+ // time it gets called versus just the master proc.
+ l_sys->trySetAttr<ATTR_ATTN_CHK_ALL_PROCS>(l_useAllProcs);
+
+ TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
+ "call_host_attnlisten_proc exit" );
+ return l_stepError.getErrorHandle();
+}
+
+};
diff --git a/src/usr/isteps/istep08/makefile b/src/usr/isteps/istep08/makefile
index da41c61bf..17a881ed4 100644
--- a/src/usr/isteps/istep08/makefile
+++ b/src/usr/isteps/istep08/makefile
@@ -60,6 +60,7 @@ OBJS += call_proc_scomoverride_chiplets.o
OBJS += call_proc_chiplet_enable_ridi.o
OBJS += call_host_rng_bist.o
OBJS += call_host_set_voltages.o
+OBJS += call_host_attnlisten_proc.o
VPATH += ${PROCEDURES_PATH}/hwp/perv/ ${PROCEDURES_PATH}/hwp/nest/
VPATH += ${PROCEDURES_PATH}/hwp/io/ ${PROCEDURES_PATH}/hwp/initfiles/
OpenPOWER on IntegriCloud