Skip to content

Commit

Permalink
PGPE: Use correct VPD Pts for VDD to Pstate intp.
Browse files Browse the repository at this point in the history
    Key_Cronus_Test=PM_REGRESS

Change-Id: Ie33bbeaed17b936845dcdc75874d149ca6693e37
CQ: SW446944
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66812
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
  • Loading branch information
rbatraAustinIBM authored and op-jenkins committed Oct 3, 2018
1 parent 9d30656 commit 32e7647
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ uint8_t p9_pgpe_gppb_intp_ps_from_ext_vdd(uint16_t ext_vdd)
//Do the math using shifted by 1.
ps = -(((G_gppb->VPStateSlopes[VPD_PT_SET_BIASED_SYSP][r]) *
(ext_vdd - G_gppb->operating_points_set[VPD_PT_SET_BIASED_SYSP][r].vdd_mv)) >> (VID_SLOPE_FP_SHIFT_12 - 1)) +
(G_gppb->operating_points_set[VPD_SLOPES_BIASED][r].pstate << 1) ;
(G_gppb->operating_points_set[VPD_PT_SET_BIASED_SYSP][r].pstate << 1) ;
ps = ps >> 1;//Shift it back

return ps;
Expand Down

0 comments on commit 32e7647

Please sign in to comment.