diff options
Diffstat (limited to 'src/usr/isteps')
-rw-r--r-- | src/usr/isteps/istep08/call_host_p9_fbc_eff_config.C | 64 | ||||
-rw-r--r-- | src/usr/isteps/istep08/call_host_p9_fbc_eff_config_links.C | 74 | ||||
-rw-r--r-- | src/usr/isteps/istep08/makefile | 8 | ||||
-rw-r--r-- | src/usr/isteps/istep09/call_host_fbc_eff_config_aggregate.C | 87 | ||||
-rw-r--r-- | src/usr/isteps/istep09/makefile | 19 |
5 files changed, 243 insertions, 9 deletions
diff --git a/src/usr/isteps/istep08/call_host_p9_fbc_eff_config.C b/src/usr/isteps/istep08/call_host_p9_fbc_eff_config.C new file mode 100644 index 000000000..75f8de7be --- /dev/null +++ b/src/usr/isteps/istep08/call_host_p9_fbc_eff_config.C @@ -0,0 +1,64 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/isteps/istep08/call_host_p9_fbc_eff_config.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 */ +#include <stdint.h> +#include <trace/interface.H> +#include <errl/errlentry.H> +#include <errl/errlmanager.H> +#include <initservice/taskargs.H> +#include <initservice/isteps_trace.H> +#include <initservice/initserviceif.H> +#include <isteps/hwpisteperror.H> +#include <fapi2/plat_hwp_invoker.H> +#include <p9_fbc_eff_config.H> + +namespace ISTEP_08 +{ + +void* call_host_p9_fbc_eff_config( void *io_pArgs ) +{ + errlHndl_t l_errl = NULL; + ISTEP_ERROR::IStepError l_stepError; + + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + "call_host_p9_fbc_eff_config entry" ); + + FAPI_INVOKE_HWP(l_errl,p9_fbc_eff_config); + if(l_errl) + { + l_stepError.addErrorDetails(l_errl); + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + "ERROR : call p9_fbc_eff_config, PLID=0x%x", + l_errl->plid() ); + errlCommit(l_errl, HWPF_COMP_ID); + } + + + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + "call_host_p9_fbc_eff_config exit" ); + + return l_stepError.getErrorHandle(); +} + +}; diff --git a/src/usr/isteps/istep08/call_host_p9_fbc_eff_config_links.C b/src/usr/isteps/istep08/call_host_p9_fbc_eff_config_links.C new file mode 100644 index 000000000..9df8eb25b --- /dev/null +++ b/src/usr/isteps/istep08/call_host_p9_fbc_eff_config_links.C @@ -0,0 +1,74 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/isteps/istep08/call_host_p9_fbc_eff_config_links.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 */ +#include <stdint.h> +#include <trace/interface.H> +#include <errl/errlentry.H> +#include <errl/errlmanager.H> +#include <initservice/taskargs.H> +#include <initservice/isteps_trace.H> +#include <initservice/initserviceif.H> +#include <isteps/hwpisteperror.H> +#include <fapi2/plat_hwp_invoker.H> +#include <fapi2/target.H> +#include <p9_fbc_eff_config_links.H> + +namespace ISTEP_08 +{ + +void* call_host_p9_fbc_eff_config_links( void *io_pArgs ) +{ + errlHndl_t l_errl = NULL; + ISTEP_ERROR::IStepError l_stepError; + + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + "call_host_p9_fbc_eff_config_links 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_links,l_fapi2CpuTarget, + SMP_ACTIVATE_PHASE1, + true,false); + if(l_errl) + { + l_stepError.addErrorDetails(l_errl); + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + "ERROR : call call_host_p9_fbc_eff_config_links, " + "PLID=0x%x", + l_errl->plid() ); + errlCommit(l_errl, HWPF_COMP_ID); + } + } + + + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + "call_host_p9_fbc_eff_config_links exit" ); + + return l_stepError.getErrorHandle(); +} + +}; diff --git a/src/usr/isteps/istep08/makefile b/src/usr/isteps/istep08/makefile index d111bf8f4..9f797a793 100644 --- a/src/usr/isteps/istep08/makefile +++ b/src/usr/isteps/istep08/makefile @@ -44,6 +44,8 @@ OBJS += call_host_setup_sbe.o OBJS += call_host_cbs_start.o OBJS += call_proc_check_slave_sbe_seeprom_complete.o OBJS += call_proc_cen_ref_clk_enable.o +OBJS += call_host_p9_fbc_eff_config.o +OBJS += call_host_p9_fbc_eff_config_links.o OBJS += call_proc_attr_update.o OBJS += call_proc_enable_osclite.o OBJS += call_proc_chiplet_scominit.o @@ -79,6 +81,12 @@ include ${PROCEDURES_PATH}/hwp/sbe/p9_get_sbe_msg_register.mk # proc_cen_ref_clk_enable # Cummulus only -- p9_cen_ref_clk_enable.mk not defined yet +# host_p9_fbc_eff_config +include ${PROCEDURES_PATH}/hwp/nest/p9_fbc_eff_config.mk + +# host_p9_fbc_eff_config_links +include ${PROCEDURES_PATH}/hwp/nest/p9_fbc_eff_config_links.mk + # proc_attr_update: Proc ATTR Update include ${PROCEDURES_PATH}/hwp/nest/p9_attr_update.mk 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 |