summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher M. Riedl <cmriedl@us.ibm.com>2017-07-28 09:16:20 -0500
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2017-10-23 18:39:10 -0500
commit030ad7208c7545d5c8eaf9c5d0962c5cef5b7843 (patch)
tree5598b990b40e73307c8167e94ab55b9a16e6f18a
parent84cb50fd85fb7efdff2891493c5d426a98d74210 (diff)
downloadtalos-hcode-030ad7208c7545d5c8eaf9c5d0962c5cef5b7843.tar.gz
talos-hcode-030ad7208c7545d5c8eaf9c5d0962c5cef5b7843.zip
PM: Clip CME Boot Pstate to UT
Change-Id: I7638bd75e8b38895f72ca342ef5f3bd0c31f1c12 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43858 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
-rw-r--r--import/chips/p9/procedures/ppe_closed/cme/pstate_cme/p9_cme_thread_db.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/import/chips/p9/procedures/ppe_closed/cme/pstate_cme/p9_cme_thread_db.c b/import/chips/p9/procedures/ppe_closed/cme/pstate_cme/p9_cme_thread_db.c
index 8d776d31..1d10b566 100644
--- a/import/chips/p9/procedures/ppe_closed/cme/pstate_cme/p9_cme_thread_db.c
+++ b/import/chips/p9/procedures/ppe_closed/cme/pstate_cme/p9_cme_thread_db.c
@@ -152,8 +152,10 @@ void p9_cme_pstate_db_thread(void* arg)
// Pstate Clocking Initialization (QM)
// Calculate the initial pstate
ippm_read(QPPM_DPLL_STAT, &scom_data);
- G_cme_pstate_record.quadPstate = (uint32_t)G_lppb->dpll_pstate0_value
- - (uint32_t)((scom_data & BITS64(1, 11)) >> SHIFT64(11));
+ int32_t pstate = (int32_t)G_lppb->dpll_pstate0_value
+ - (int32_t)((scom_data & BITS64(1, 11)) >> SHIFT64(11));
+ // Clip the pstate at ultra-turbo, ie. pstate=0
+ G_cme_pstate_record.quadPstate = (pstate < 0) ? 0 : (uint32_t)pstate;
PK_TRACE_INF("qm | initial pstate=%d", G_cme_pstate_record.quadPstate);
#ifdef USE_CME_VDM_FEATURE
OpenPOWER on IntegriCloud