summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2017-09-29 14:21:10 -0500
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2018-02-01 16:31:21 -0600
commit09d264482beefb609a1f0f0fc875bb1573b31043 (patch)
tree97397682fbd63b65c4c4021b32d0ee8fd32f749a
parent48a7cd833f42658320c69a611f916b99d154ac34 (diff)
downloadtalos-hcode-09d264482beefb609a1f0f0fc875bb1573b31043.tar.gz
talos-hcode-09d264482beefb609a1f0f0fc875bb1573b31043.zip
PPE: Adjust the maximum decrementer count
Change-Id: I4f59cabf7439590ac736e6f64e35acf11e6c5aa9 CQ: SW402715 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46944 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
-rw-r--r--import/chips/p9/procedures/ppe/pk/ppe42/ppe42_core.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/import/chips/p9/procedures/ppe/pk/ppe42/ppe42_core.c b/import/chips/p9/procedures/ppe/pk/ppe42/ppe42_core.c
index e7355257..18e11ddb 100644
--- a/import/chips/p9/procedures/ppe/pk/ppe42/ppe42_core.c
+++ b/import/chips/p9/procedures/ppe/pk/ppe42/ppe42_core.c
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HCODE Project */
/* */
-/* COPYRIGHT 2015,2017 */
+/* COPYRIGHT 2015,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -128,9 +128,12 @@ __pk_schedule_hardware_timeout(PkTimebase timeout)
{
diff = (timeout - now);
- if (diff > 0xfffffffful)
+ // Makeing the maximum DEC counter too big runs the risk
+ // of the time period being longer than a cycle of the
+ // external time base register.
+ if (diff > 0xffff0000ull)
{
- new_dec = 0xffffffff;
+ new_dec = 0xffff0000;
}
else
{
OpenPOWER on IntegriCloud