summaryrefslogtreecommitdiffstats
path: root/src/usr/isteps/istep07
diff options
context:
space:
mode:
authorTom Sand <trsand@us.ibm.com>2017-08-24 15:59:52 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-08-27 22:14:40 -0400
commit35205d340c890220ce47be78e060c0b0ae5d7de0 (patch)
treea51f4b072eb7187e7aafc0d6521f3dea02165f7f /src/usr/isteps/istep07
parent6442a89776eb751ed923c157c7b04e2b6941adb1 (diff)
downloadblackbird-hostboot-35205d340c890220ce47be78e060c0b0ae5d7de0.tar.gz
blackbird-hostboot-35205d340c890220ce47be78e060c0b0ae5d7de0.zip
Implementation for istep 7.1 and 10.4.
Change-Id: I1276ccae8d68f8c7c8b555f6ce6dd409e061076f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45136 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/isteps/istep07')
-rw-r--r--src/usr/isteps/istep07/host_mss_attr_cleanup.C113
-rw-r--r--src/usr/isteps/istep07/makefile3
2 files changed, 116 insertions, 0 deletions
diff --git a/src/usr/isteps/istep07/host_mss_attr_cleanup.C b/src/usr/isteps/istep07/host_mss_attr_cleanup.C
new file mode 100644
index 000000000..f63fb25f8
--- /dev/null
+++ b/src/usr/isteps/istep07/host_mss_attr_cleanup.C
@@ -0,0 +1,113 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/isteps/istep07/host_mss_attr_cleanup.C $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016,2017 */
+/* [+] 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_mss_attr_update.C
+ * Contains the wrapper for istep 7.5
+ */
+
+/******************************************************************************/
+// Includes
+/******************************************************************************/
+#include <stdint.h>
+#include <map>
+#include <arch/pirformat.H>
+
+#include <trace/interface.H>
+#include <initservice/taskargs.H>
+#include <errl/errlentry.H>
+#include <errl/errlmanager.H>
+
+#include <isteps/hwpisteperror.H>
+
+#include <errl/errludtarget.H>
+#include <initservice/isteps_trace.H>
+#include <initservice/initserviceif.H>
+
+#include <hwas/common/hwasCallout.H> //@fixme-RTC:149250-Remove
+
+// targeting support
+#include <targeting/common/commontargeting.H>
+#include <targeting/common/utilFilter.H>
+
+// fapi2 support
+#include <fapi2.H>
+#include <fapi2/target.H>
+#include <fapi2/plat_hwp_invoker.H>
+
+#include <config.h>
+
+// HWP
+#include <p9c_mss_attr_cleanup.H>
+
+namespace ISTEP_07
+{
+
+using namespace ISTEP;
+using namespace ISTEP_ERROR;
+using namespace ERRORLOG;
+using namespace TARGETING;
+
+//
+// Wrapper function to call mss_attr_update
+//
+void* host_mss_attr_cleanup( void *io_pArgs )
+{
+ IStepError l_StepError;
+ errlHndl_t l_err = NULL;
+
+ TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "host_mss_attr_cleanup entry");
+ // errlHndl_t l_err = NULL;
+
+ TargetHandleList l_funcDimmList;
+ // Get all the functional Dimms
+ TARGETING::getAllLogicalCards(l_funcDimmList, TYPE_DIMM, true);
+
+ for (const auto & l_Dimm: l_funcDimmList)
+ {
+ const fapi2::Target<fapi2::TARGET_TYPE_DIMM>
+ l_fapi2_dimm_target(l_Dimm);
+
+ TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
+ "Running p9c_mss_attr_cleanup HWP on "
+ "DIMM target HUID %.8X", TARGETING::get_huid(l_Dimm));
+ FAPI_INVOKE_HWP(l_err, p9c_mss_attr_cleanup, l_fapi2_dimm_target);
+ if(l_err)
+ {
+ TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
+ "ERROR 0x%.8X : p9c_mss_attr_cleanup HWP returned "
+ "error for HUID %.8x",
+ l_err->reasonCode(), TARGETING::get_huid(l_Dimm));
+ l_StepError.addErrorDetails(l_err);
+ errlCommit( l_err, HWPF_COMP_ID );
+ }
+ }
+
+
+ TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "host_mss_attr_cleanup exit" );
+
+ return l_StepError.getErrorHandle();
+}
+
+}; // end namespace
diff --git a/src/usr/isteps/istep07/makefile b/src/usr/isteps/istep07/makefile
index c48fe7efe..8fd4c7521 100644
--- a/src/usr/isteps/istep07/makefile
+++ b/src/usr/isteps/istep07/makefile
@@ -34,6 +34,7 @@ OBJS += call_mss_volt.o
OBJS += call_mss_freq.o
OBJS += call_mss_eff_config.o
OBJS += call_mss_attr_update.o
+OBJS += host_mss_attr_cleanup.o
#Add all the extra include paths
EXTRAINCDIR += ${ROOTPATH}/src/include/usr/fapi2/
@@ -85,6 +86,8 @@ include $(HWP_PATH_2)/p9c_mss_eff_config.mk
include $(HWP_PATH_2)/p9c_mss_eff_config_thermal.mk
include $(HWP_PATH_2)/p9c_mss_bulk_pwr_throttles.mk
include $(HWP_PATH_2)/p9c_mss_eff_mb_interleave.mk
+#host_mss_attr_cleanup : MSS ATTR Cleanup
+include $(HWP_PATH_2)/p9c_mss_attr_cleanup.mk
#mss_attr_update : MSS ATTR Overrides
include $(HWP_PATH_1)/p9_mss_attr_update.mk
OpenPOWER on IntegriCloud