diff options
| author | Rahul Batra <rbatra@us.ibm.com> | 2018-01-11 11:34:20 -0600 |
|---|---|---|
| committer | Joshua Hunsberger <jahunsbe@us.ibm.com> | 2018-02-01 16:20:24 -0600 |
| commit | 4d60f77f99750f8a7fe9cb1915177315f41a73e5 (patch) | |
| tree | 0e90224baf4c5b31630e64aad5a20011b468670e | |
| parent | dab30d1e806523225cdc166ff7d52405fed21122 (diff) | |
| download | talos-hcode-4d60f77f99750f8a7fe9cb1915177315f41a73e5.tar.gz talos-hcode-4d60f77f99750f8a7fe9cb1915177315f41a73e5.zip | |
WOF: WOF Phase1 Vindex fix
Key_Cronus_Test=PM_REGRESS
Change-Id: I52b0d2f02ae31481a0d411c53ed6ddb912b23601
CQ: SW413335
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51790
Dev-Ready: Francesco A. Campisano <campisan@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.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_pstate.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.c b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.c index 58e68a78..49e946e5 100644 --- a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.c +++ b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.c @@ -341,7 +341,7 @@ void p9_pgpe_pstate_calc_wof() G_pgpe_pstate_record.fratio = 1; G_pgpe_pstate_record.findex = 0; - //2. Vratio calc + //2. Vratio calc and VFRT table lookup //Currently, PGPE only support VRATIO Fixed and VRATIO active cores only if (G_pgpe_header_data->g_pgpe_qm_flags & PGPE_FLAG_ENABLE_VRATIO) { @@ -353,16 +353,16 @@ void p9_pgpe_pstate_calc_wof() { G_pgpe_pstate_record.vratio = 0; } + + G_pgpe_pstate_record.vindex = (G_pgpe_pstate_record.vratio + 0xAAC - 0xA8B) / 0xAAC; } else { G_pgpe_pstate_record.vratio = 0xFFFF; + G_pgpe_pstate_record.vindex = 23; } - //3. VFRT table lookup - G_pgpe_pstate_record.vindex = (G_pgpe_pstate_record.vratio + 0xAAC - 0xA8B) / 0xAAC; - - //4. Update wofClip(int. variable) + //3. Update wofClip(int. variable) G_pgpe_pstate_record.wofClip = G_pgpe_pstate_record.pVFRT->vfrt_data[G_pgpe_pstate_record.findex][G_pgpe_pstate_record.vindex]; |

