diff options
| author | Rahul Batra <rbatra@us.ibm.com> | 2018-02-19 14:45:19 -0600 |
|---|---|---|
| committer | hostboot <hostboot@us.ibm.com> | 2018-03-22 14:05:11 -0500 |
| commit | 70f1f0de56f9db7e6965119640c5a64b72afdbb8 (patch) | |
| tree | 726c043fac5d50634dc70474134234e17529a800 | |
| parent | 811745d037327eb3fb4e29dac02ec45f4d84f08c (diff) | |
| download | talos-hcode-70f1f0de56f9db7e6965119640c5a64b72afdbb8.tar.gz talos-hcode-70f1f0de56f9db7e6965119640c5a64b72afdbb8.zip | |
WOF: Fix WOF Phase1 Initial activeQuad+Cores(STOP11 only)
Key_Cronus_Test=PM_REGRESS
Change-Id: I6ea5bf487e1fb71be03b6090c34608f125e5fab5
CQ: SW418029
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54391
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com>
Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com>
Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
| -rw-r--r-- | import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.c b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.c index 267985da..0b72e4ea 100644 --- a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.c +++ b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.c @@ -1256,8 +1256,7 @@ void p9_pgpe_pstate_process_quad_exit(uint32_t quadsRequested) // void p9_pgpe_pstate_wof_ctrl(uint32_t action) { - uint32_t c, q; - uint32_t activeCores, activeQuads; + uint32_t activeCores, activeQuads, c; if (action == PGPE_ACTION_WOF_ON) { @@ -1271,25 +1270,8 @@ void p9_pgpe_pstate_wof_ctrl(uint32_t action) } else { - //Set equal to configured cores - ocb_ccsr_t ccsr; - ccsr.value = in32(OCB_CCSR); - activeCores = ccsr.value; - - //Determine configured quads - ocb_qcsr_t qcsr; - qcsr.value = in32(OCB_QCSR); - activeQuads = 0; - - for (q = 0; q < MAX_QUADS; q++) - { - if ((qcsr.fields.ex_config & QUAD_EX0_MASK(q)) || - (qcsr.fields.ex_config & QUAD_EX1_MASK(q))) - { - activeQuads |= QUAD_MASK(q); - } - - } + activeCores = G_pgpe_pstate_record.activeDB; + activeQuads = G_pgpe_pstate_record.activeQuads; } G_pgpe_pstate_record.wofStatus = WOF_ENABLED; |

