summaryrefslogtreecommitdiffstats
path: root/src/occ_405/amec/amec_slave_smh.c
diff options
context:
space:
mode:
authormbroyles <mbroyles@us.ibm.com>2017-03-03 13:35:13 -0600
committerMartha Broyles <mbroyles@us.ibm.com>2017-03-03 17:38:42 -0500
commitdb153208ff2010b1920d5622d4a6aa3ffcbc26eb (patch)
tree49c5b4d805b826da7ce9ab06b3ea6dbed14f7e4e /src/occ_405/amec/amec_slave_smh.c
parent4153da2700a731137ccac867d06c03201ea73d5f (diff)
downloadtalos-occ-db153208ff2010b1920d5622d4a6aa3ffcbc26eb.tar.gz
talos-occ-db153208ff2010b1920d5622d4a6aa3ffcbc26eb.zip
Remove verify pstate
RTC: 164718 Change-Id: I4c02e5d118d6492dd48fac972c5d8046aa281f8e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37479 Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@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/amec/amec_slave_smh.c')
-rwxr-xr-xsrc/occ_405/amec/amec_slave_smh.c40
1 files changed, 24 insertions, 16 deletions
diff --git a/src/occ_405/amec/amec_slave_smh.c b/src/occ_405/amec/amec_slave_smh.c
index c2daa54..e9fd378 100755
--- a/src/occ_405/amec/amec_slave_smh.c
+++ b/src/occ_405/amec/amec_slave_smh.c
@@ -318,33 +318,41 @@ void amec_slv_common_tasks_pre(void)
// End Function Specification
void amec_slv_common_tasks_post(void)
{
+ static bool L_active_1tick = FALSE;
+
AMEC_DBG("\tAMEC Slave Post-State Common\n");
// Only execute if OCC is in the active state
if ( IS_OCC_STATE_ACTIVE() )
{
- // Check if we need to change Pmax_clip register setting due to not
- // getting any APSS data from Master
- amec_slv_check_apss_fail();
+ // wait 1 tick after going active to allow pwr sensors to be updated
+ if(L_active_1tick)
+ {
+ // Check if we need to change Pmax_clip register setting due to not
+ // getting any APSS data from Master
+ amec_slv_check_apss_fail();
- // Call amec_power_control
- amec_power_control();
+ // Call amec_power_control
+ amec_power_control();
- // Call the OCC slave's processor voting box
- amec_slv_proc_voting_box();
+ // Call the OCC slave's processor voting box
+ amec_slv_proc_voting_box();
- // Call the frequency state machine
- amec_slv_freq_smh();
+ // Call the frequency state machine
+ amec_slv_freq_smh();
- // Call the OCC slave's memory voting box
- amec_slv_mem_voting_box();
+ // Call the OCC slave's memory voting box
+ amec_slv_mem_voting_box();
- // Call the OCC slave's performance check
- amec_slv_check_perf();
+ // Call the OCC slave's performance check
+ amec_slv_check_perf();
- // Call the 250us trace recording if it has been configured via Amester.
- // If not configured, this call will return immediately.
- amec_tb_record(AMEC_TB_250US);
+ // Call the 250us trace recording if it has been configured via Amester.
+ // If not configured, this call will return immediately.
+ amec_tb_record(AMEC_TB_250US);
+ }
+ else
+ L_active_1tick = TRUE;
}
// if an OPAL system & just transitioned to CHAR or OBS state, set proc mnfg override
else if ( (IS_OCC_STATE_CHARACTERIZATION() || IS_OCC_STATE_OBSERVATION()) &&
OpenPOWER on IntegriCloud