summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCorey Swenson <cswenson@us.ibm.com>2017-01-19 20:24:35 -0600
committerSachin Gupta <sgupta2m@in.ibm.com>2017-02-01 04:07:19 -0500
commitcb0e0cf860437cd3affdcf91a531ea705e8884fb (patch)
tree2e57660c9740cc9a7954955cd2f98c3b5657cf4d /src
parentc2e880460e0b8099654d38f9f5884b6199487e05 (diff)
downloadtalos-sbe-cb0e0cf860437cd3affdcf91a531ea705e8884fb.tar.gz
talos-sbe-cb0e0cf860437cd3affdcf91a531ea705e8884fb.zip
Disable special wakeup at the end of p9_pm_init
Change-Id: I9b70dc02178ffd44bc33e8cb21eaa2f6ba5f07a0 RTC:167680 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35133 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35283 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm_utils.C24
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm_utils.H13
2 files changed, 35 insertions, 2 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_utils.C b/src/import/chips/p9/procedures/hwp/pm/p9_pm_utils.C
index 06a7db82..c479443c 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_utils.C
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_utils.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER sbe Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2016 */
+/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -215,3 +215,25 @@ fapi2::ReturnCode p9_pm_glob_fir_trace(
fapi_try_exit:
return fapi2::current_err;
}
+
+fapi2::ReturnCode special_wakeup_all(
+ const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
+ const bool i_enable)
+{
+ FAPI_INF("special_wakeup_all Enter");
+
+ fapi2::ReturnCode l_rc;
+ auto l_exChiplets = i_target.getChildren<fapi2::TARGET_TYPE_EX>
+ (fapi2::TARGET_STATE_FUNCTIONAL);
+
+ // For each EX target
+ for (auto l_ex_chplt : l_exChiplets)
+ {
+ FAPI_DBG("Running special wakeup on ex chiplet 0x%08X ", l_ex_chplt);
+
+ FAPI_TRY( fapi2::specialWakeup( l_ex_chplt, i_enable ) );
+ }
+
+fapi_try_exit:
+ return fapi2::current_err;
+}
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_utils.H b/src/import/chips/p9/procedures/hwp/pm/p9_pm_utils.H
index 3ae5d3e7..acd0180b 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_utils.H
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_utils.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER sbe Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2016 */
+/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -64,4 +64,15 @@ fapi2::ReturnCode p9_pm_glob_fir_trace(
const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
const char* i_msg);
+///
+/// @brief Sets or clears special wake-up on all configured EX on a target
+/// @param[in] i_target Chip target
+/// @param[in] i_enable true = enable. false = disable.
+/// @return FAPI2_RC_SUCCESS If the special wake-up is successful,
+/// else error code.
+///
+fapi2::ReturnCode special_wakeup_all(
+ const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
+ bool i_enable);
+
#endif // _P9_PM_UTILS_H_
OpenPOWER on IntegriCloud