summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2018-09-11 12:17:10 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2018-09-18 16:07:46 -0500
commitf04d03f76595e24029a292ed122554c1cdf60760 (patch)
tree96a7856b7f67d9b4d36bd731b73bf50981cead5d /src/include/usr
parent1f6ed77b32b629f5cd316f2f3e1d8a432f037881 (diff)
downloadtalos-hostboot-f04d03f76595e24029a292ed122554c1cdf60760.tar.gz
talos-hostboot-f04d03f76595e24029a292ed122554c1cdf60760.zip
Clear out HOMER attributes and reset PM in PHYP mode
During the IPL, Hostboot will initialize part of the PM Complex and setup the HOMER memory spaces. At runtime, PHYP will reinit the complex with its own memory spaces. This change explicitly resets the complex and clears any related HOMER attributes before jumping to PHYP so that the first call at runtime starts completely fresh. Change-Id: I540b79143d5fbba876ffc0ac72721639153a1cfa CQ: SW444669 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/65983 Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> 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> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r--src/include/usr/isteps/pm/pm_common_ext.H17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/include/usr/isteps/pm/pm_common_ext.H b/src/include/usr/isteps/pm/pm_common_ext.H
index f93e4dc77..35e726c63 100644
--- a/src/include/usr/isteps/pm/pm_common_ext.H
+++ b/src/include/usr/isteps/pm/pm_common_ext.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2016,2017 */
+/* Contributors Listed Below - COPYRIGHT 2016,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -84,6 +84,17 @@ namespace HBPM
};
/**
+ * @brief Enumeration of the attribute
+ *
+ */
+ enum resetOptions_t
+ {
+ RESET_HW = 0x1,
+ CLEAR_ATTRIBUTES = 0x2,
+ RESET_AND_CLEAR_ATTRIBUTES = (RESET_HW | CLEAR_ATTRIBUTES),
+ };
+
+ /**
* @brief Convert HOMER physical address space to a vitual address
* @param[in] i_proc_target Processsor target
* @param[in] i_phys_addr Physical address
@@ -106,9 +117,11 @@ namespace HBPM
/**
* @brief Reset PM Complex for all proc targets.
*
+ * @param[in] i_opt Option to reset HW, attributes, or both
+ *
* @return errlHndl_t Error log if resetPMAll failed
*/
- errlHndl_t resetPMAll();
+ errlHndl_t resetPMAll( resetOptions_t i_opt = RESET_HW );
/**
* @brief Verify all OCCs at checkpoint.
OpenPOWER on IntegriCloud