diff options
author | Prasad Bg Ranganath <prasadbgr@in.ibm.com> | 2018-09-21 07:41:45 -0500 |
---|---|---|
committer | Christian R. Geddes <crgeddes@us.ibm.com> | 2018-09-25 17:22:41 -0500 |
commit | 1012b75b38e5049efb54ed0e634b5c01b78326d9 (patch) | |
tree | 838160b0233b230cef2b39c5eecb0be9ea6c2b16 /src/import/chips/p9/procedures/hwp/pm | |
parent | 38ef758009296cee8a40207bbba8ab2d9541cf43 (diff) | |
download | talos-hostboot-1012b75b38e5049efb54ed0e634b5c01b78326d9.tar.gz talos-hostboot-1012b75b38e5049efb54ed0e634b5c01b78326d9.zip |
Update the PSTATE attributes when we hit error during istep 15
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>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/pm')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/pm/p9_pstate_parameter_block.C | 16 |
1 files changed, 14 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 628949839..42da90168 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 @@ -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; @@ -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)); |