summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul Batra <rbatra@us.ibm.com>2017-06-15 14:08:08 -0500
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2017-10-23 17:53:34 -0500
commit5225d641f4b91e9eeae9a548b74a5208d35bb16e (patch)
treebd3fb14011e69d77fac70bf5d0beb2606f54219b
parentb93cbbb7173822a8f53852d07e9de96ecaa9d87f (diff)
downloadtalos-hcode-5225d641f4b91e9eeae9a548b74a5208d35bb16e.tar.gz
talos-hcode-5225d641f4b91e9eeae9a548b74a5208d35bb16e.zip
PSTATE: FIT threshold set based on Nest Freq
Change-Id: Ib8c413f38c661f39d3bc13a6b0e7521164ad72d1 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41898 Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.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/pgpe/pstate_gpe/p9_pgpe_fit.c32
1 files changed, 9 insertions, 23 deletions
diff --git a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_fit.c b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_fit.c
index 8ec65ed6..9772092f 100644
--- a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_fit.c
+++ b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_fit.c
@@ -51,34 +51,20 @@ void p9_pgpe_fit_handler(void* arg, PkIrqId irq);
//and also enable and setup the fit handler
void p9_pgpe_fit_init()
{
-// uint16_t freq = G_gppb->nest_frequency_mhz;
+ uint16_t freq = G_gppb->nest_frequency_mhz;
- PK_TRACE_DBG("Fit NestFreq=0x%x", G_gppb->nest_frequency_mhz);
- //Set fit count threshold
- //\todo Set fit_count threshold correctly RTC: 173170
- /*
- G_beacon_count_threshold = (freq < 1049) ? 7 :
- (freq < 1180) ? 8 :
- (freq < 1311) ? 9 :
- (freq < 1442) ? 10 :
- (freq < 1573) ? 11 :
- (freq < 1704) ? 12 :
- (freq < 1835) ? 13 :
- (freq < 1966) ? 14 :
- (freq < 2097) ? 15 :
- (freq < 2228) ? 16 :
- (freq < 2359) ? 17 :
- (freq < 2490) ? 18 :
- (freq < 2621) ? 19 :
- (freq < 2753) ? 20 :
- (freq < 2884) ? 21 :
- (freq < 3015) ? 22 :
- (freq < 3146) ? 23 : 24;*/
+ PK_TRACE_DBG("Fit NestFreq=0x%dMhz", G_gppb->nest_frequency_mhz);
+ //Set fit count threshold
+ G_beacon_count_threshold = (freq < 1573) ? 6 :
+ (freq < 1835) ? 7 :
+ (freq < 2097) ? 8 :
+ (freq < 2359) ? 9 :
+ (freq < 2621) ? 10 : 11;
+ PK_TRACE_DBG("Fit BeaconThr=0x%d", G_beacon_count_threshold);
G_throttleCount = 0;
G_beacon_count = 0;
- G_beacon_count_threshold = 2;
ppe42_fit_setup(p9_pgpe_fit_handler, NULL);
}
OpenPOWER on IntegriCloud