Skip to content

Commit

Permalink
Update the PSTATE attributes when we hit error during istep 15
Browse files Browse the repository at this point in the history
Key_Cronus_Test=PM_REGRESS

Change-Id: I1242909d0bc93bc9889adcd45f758225c92d4061
CQ: SW444953
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66465
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com>
Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66472
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
  • Loading branch information
prasrang authored and crgeddes committed Sep 25, 2018
1 parent 38ef758 commit 1012b75
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/import/chips/p9/procedures/hwp/pm/p9_pstate_parameter_block.C
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,21 @@ p9_pstate_parameter_block( const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_
OCCPstateParmBlock l_occppb;
memset (&l_occppb , 0, sizeof (OCCPstateParmBlock));

// QuadManagerFlags
QuadManagerFlags l_qm_flags;

PSTATE_attribute_state l_state;
l_state.iv_pstates_enabled = false;
l_state.iv_resclk_enabled = false;
l_state.iv_vdm_enabled = false;
l_state.iv_ivrm_enabled = false;
l_state.iv_wof_enabled = false;

//By default first disable the PSTATE attributes
FAPI_TRY(p9_pstate_set_global_feature_attributes(i_target,
l_state,
&l_qm_flags));

l_state.iv_pstates_enabled = true;
l_state.iv_resclk_enabled = true;
l_state.iv_vdm_enabled = true;
Expand Down Expand Up @@ -953,8 +967,6 @@ p9_pstate_parameter_block( const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_

l_occppb.wof.wof_enabled = l_state.iv_wof_enabled;

// QuadManagerFlags
QuadManagerFlags l_qm_flags;
FAPI_TRY(p9_pstate_set_global_feature_attributes(i_target,
l_state,
&l_qm_flags));
Expand Down

0 comments on commit 1012b75

Please sign in to comment.