summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2018-04-24 21:13:30 -0500
committerRaptor Engineering Development Team <support@raptorengineering.com>2018-05-12 01:15:31 -0500
commit6ffaeb4705597787b297324b05dcc0c67d025aae (patch)
treee03188f0a6d62366a226b60c6f314178cd39a7bb
parentacaf96269952a14deb6ccaf16395f2870148487c (diff)
downloadtalos-hostboot-6ffaeb4705597787b297324b05dcc0c67d025aae.tar.gz
talos-hostboot-6ffaeb4705597787b297324b05dcc0c67d025aae.zip
Cap voltage offset when biased05-14-2018
This fixes spurious (invalid) voltage requests when the bias frequency exceeds the maximum WoF frequency Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pstate_parameter_block.C8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pstate_parameter_block.C b/src/import/chips/p9/procedures/hwp/pm/p9_pstate_parameter_block.C
index 1b1c4f113..4f16ed1f6 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pstate_parameter_block.C
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pstate_parameter_block.C
@@ -4862,11 +4862,15 @@ uint32_t ps2v_mv(const Pstate i_pstate,
FAPI_INF ("l_SlopeValue %x",l_SlopeValue);
- uint32_t x = (l_SlopeValue * (-i_pstate + i_operating_points[region_start].pstate));
+ int32_t x_candidate = (l_SlopeValue * (-i_pstate + i_operating_points[region_start].pstate));
+ uint32_t x = 0;
uint32_t y = x >> VID_SLOPE_FP_SHIFT_12;
+ if (x_candidate > 0)
+ x = x_candidate;
+
uint32_t l_vdd =
- (((l_SlopeValue * (-i_pstate + i_operating_points[region_start].pstate)) >> VID_SLOPE_FP_SHIFT_12)
+ ((x >> VID_SLOPE_FP_SHIFT_12)
+ revle32(i_operating_points[region_start].vdd_mv));
// Round up
OpenPOWER on IntegriCloud