summaryrefslogtreecommitdiffstats
path: root/src/occ_405/main.c
diff options
context:
space:
mode:
authormbroyles <mbroyles@us.ibm.com>2019-03-26 13:14:53 -0500
committerMartha Broyles <mbroyles@us.ibm.com>2019-04-23 13:45:01 -0500
commitcf4c143eb571de19c03d1c66e963feb6bed4f190 (patch)
treefaebe0e25f483ecb30c0d98517c3ec1e5c71d52a /src/occ_405/main.c
parent91d3487ed586ba53e6bc34111c374a581aa52060 (diff)
downloadtalos-occ-cf4c143eb571de19c03d1c66e963feb6bed4f190.tar.gz
talos-occ-cf4c143eb571de19c03d1c66e963feb6bed4f190.zip
WOF changes for OCS and freq tracking
Change-Id: I8c609ad1404c08b8d203a48be65cf3b45adfa3ae RTC: 204891 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75026 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Diffstat (limited to 'src/occ_405/main.c')
-rwxr-xr-xsrc/occ_405/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/occ_405/main.c b/src/occ_405/main.c
index 309edb4..ad2f791 100755
--- a/src/occ_405/main.c
+++ b/src/occ_405/main.c
@@ -82,6 +82,8 @@ uint8_t G_max_vfrt_chances = MAX_VFRT_CHANCES_EVERY_8TH_TICK;
// timeout, as number of WOF ticks, for PGPE WOF Control command
uint8_t G_max_wof_control_chances = MAX_WOF_CONTROL_CHANCES_EVERY_8TH_TICK;
+uint32_t G_max_ceff_ratio = MAX_CEFF_RATIO;
+
extern uint32_t __ssx_boot; // Function address is 32 bits
extern uint32_t G_occ_phantom_critical_count;
extern uint32_t G_occ_phantom_noncritical_count;
@@ -475,6 +477,14 @@ void read_wof_header(void)
// Initialize wof init state to zero
g_amec->wof.wof_init_state = WOF_DISABLED;
+ // Initialize OCS increase/decrease amounts to one step
+ g_amec->wof.ocs_increase_ceff = g_amec->wof.vdd_step;
+ g_amec->wof.ocs_decrease_ceff = g_amec->wof.vdd_step;
+
+ // calculate max ceff ratio from header info
+ G_max_ceff_ratio = ( g_amec->wof.vdd_start +
+ (g_amec->wof.vdd_step * (g_amec->wof.vdd_size - 1) ) );
+
}while( 0 );
// Check for errors and log, if any
OpenPOWER on IntegriCloud