summaryrefslogtreecommitdiffstats
path: root/src/usr/isteps/istep09
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2016-05-26 14:01:55 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2016-06-09 12:41:30 -0400
commit9ed860024812827989a8313b3c811fba453b4aae (patch)
treebd5f44d5472727960903ff3afa46b75c054c43fb /src/usr/isteps/istep09
parent287cc1f9d01a1ee7f2387330ac0293d5c34d26e0 (diff)
downloadtalos-hostboot-9ed860024812827989a8313b3c811fba453b4aae.tar.gz
talos-hostboot-9ed860024812827989a8313b3c811fba453b4aae.zip
istep 10, proc_build_smp support
IPL flow changes and attributes required for proc_build_smp Change-Id: Ic12995a3f99b2d8e7dabd9b019a7fd70acfeb615 RTC: 154376 CMVC-Prereq:996492 CMVC-Prereq:995297 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25082 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/isteps/istep09')
-rw-r--r--src/usr/isteps/istep09/call_host_fbc_eff_config_aggregate.C87
-rw-r--r--src/usr/isteps/istep09/makefile19
2 files changed, 97 insertions, 9 deletions
diff --git a/src/usr/isteps/istep09/call_host_fbc_eff_config_aggregate.C b/src/usr/isteps/istep09/call_host_fbc_eff_config_aggregate.C
new file mode 100644
index 000000000..b2a3d0751
--- /dev/null
+++ b/src/usr/isteps/istep09/call_host_fbc_eff_config_aggregate.C
@@ -0,0 +1,87 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/isteps/istep09/call_host_fbc_eff_config_aggregate.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 */
+/******************************************************************************/
+// Includes
+/******************************************************************************/
+#include <stdint.h>
+
+#include <trace/interface.H>
+#include <initservice/taskargs.H>
+#include <errl/errlentry.H>
+
+#include <isteps/hwpisteperror.H>
+#include <errl/errludtarget.H>
+
+#include <initservice/isteps_trace.H>
+
+// targeting support
+#include <targeting/common/commontargeting.H>
+#include <targeting/common/utilFilter.H>
+#include <targeting/common/trace.H>
+
+#include <fapi2/target.H>
+#include <fapi2/plat_hwp_invoker.H>
+#include <errl/errlmanager.H>
+
+#include <fapi2/target.H>
+#include <p9_fbc_eff_config_aggregate.H>
+
+namespace ISTEP_09
+{
+
+//
+// Wrapper function to call proc_fbc_eff_config_aggregate
+//
+void* call_host_fbc_eff_config_aggregate( void *io_pArgs )
+{
+ errlHndl_t l_errl = NULL;
+ ISTEP_ERROR::IStepError l_stepError;
+
+ TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
+ "call_host_fbc_eff_config_aggregate entry" );
+
+ TARGETING::TargetHandleList l_procChips;
+ getAllChips( l_procChips, TARGETING::TYPE_PROC);
+ for (const auto & l_procChip: l_procChips)
+ {
+ fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>l_fapi2CpuTarget(l_procChip);
+ FAPI_INVOKE_HWP(l_errl,p9_fbc_eff_config_aggregate,l_fapi2CpuTarget);
+ if(l_errl)
+ {
+ l_stepError.addErrorDetails(l_errl);
+ TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
+ "ERROR : call_proc_fbc_eff_config_aggregate, PLID=0x%x",
+ l_errl->plid() );
+ errlCommit(l_errl, HWPF_COMP_ID);
+ }
+ }
+
+ TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
+ "call_host_fbc_eff_config_aggregate exit" );
+
+ return l_stepError.getErrorHandle();
+}
+
+};
diff --git a/src/usr/isteps/istep09/makefile b/src/usr/isteps/istep09/makefile
index de7302642..e13b7ec64 100644
--- a/src/usr/isteps/istep09/makefile
+++ b/src/usr/isteps/istep09/makefile
@@ -44,36 +44,37 @@ OBJS += call_proc_smp_link_layer.o
OBJS += call_host_startprd_pbus.o
OBJS += call_host_attnlisten_proc.o
OBJS += call_proc_fab_iovalid.o
+OBJS += call_host_fbc_eff_config_aggregate.o
VPATH += ${PROCEDURES_PATH}/hwp/nest/ ${PROCEDURES_PATH}/hwp/io/
include ${ROOTPATH}/procedure.rules.mk
#@TODO RTC:134079 Re-enable for l2 story
-# 9.1 fabric_erepair
+# fabric_erepair
# include ${PROCEDURES_PATH}/hwp/io/p9_io_xbus_restore_erepair.mk
# include ${PROCEDURES_PATH}/hwp/io/p9_io_xbus_pdwn_lanes.mk
-# 9.2 fabric_io_dccal
+# fabric_io_dccal
include ${PROCEDURES_PATH}/hwp/io/p9_io_xbus_dccal.mk
-# 9.3 fabric_pre_trainadv
+# fabric_pre_trainadv
include ${PROCEDURES_PATH}/hwp/io/p9_io_xbus_pre_trainadv.mk
#//@TODO RTC:134079 Re-enable for l2 story
-# 9.4 fabric_io_run_training
+# fabric_io_run_training
# include ${PROCEDURES_PATH}/hwp/io/p9_io_xbus_linktrain.mk
-# 9.5 fabric_post_trainadv
+# fabric_post_trainadv
include ${PROCEDURES_PATH}/hwp/io/p9_io_xbus_post_trainadv.mk
-# 9.6 proc_smp_link_layer : Start SMP link layer
+# proc_smp_link_layer : Start SMP link layer
include ${PROCEDURES_PATH}/hwp/nest/p9_smp_link_layer.mk
-# 9.7 & 9.8 - no hwp
-
-# 9.9 p9_fab_iovalid
+# p9_fab_iovalid
include ${PROCEDURES_PATH}/hwp/nest/p9_fab_iovalid.mk
+# p9_fbc_eff_config_aggregate
+include ${PROCEDURES_PATH}/hwp/nest/p9_fbc_eff_config_aggregate.mk
include ${ROOTPATH}/config.mk
OpenPOWER on IntegriCloud