diff options
author | Rahul Batra <rbatra@us.ibm.com> | 2017-08-09 16:55:08 -0500 |
---|---|---|
committer | Joshua Hunsberger <jahunsbe@us.ibm.com> | 2017-10-23 18:49:29 -0500 |
commit | 62f3c1d8d9e7902554e41450e9ccc5d0f20c8ca5 (patch) | |
tree | de349f702dfbc9a51c79fda682343ae0433571b9 /import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_thread_actuate_pstates.c | |
parent | a501881e614c6240ef651a0c8bbadaded9bab420 (diff) | |
download | talos-hcode-62f3c1d8d9e7902554e41450e9ccc5d0f20c8ca5.tar.gz talos-hcode-62f3c1d8d9e7902554e41450e9ccc5d0f20c8ca5.zip |
PSTATE: PMSR Fix and Other Updates
-Added code to write Pmin/Pmax fields
-Fixed CME code, so quad manager correctly updates PMSR
-Fixed CME sibling notify bug
-Removed PGPE trace code to reduce space
Change-Id: Ic87476be703741a48990ab2c13441b7eba601f73
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44441
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com>
Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Diffstat (limited to 'import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_thread_actuate_pstates.c')
-rw-r--r-- | import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_thread_actuate_pstates.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_thread_actuate_pstates.c b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_thread_actuate_pstates.c index 00e90754..9ed553a9 100644 --- a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_thread_actuate_pstates.c +++ b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_thread_actuate_pstates.c @@ -166,6 +166,23 @@ void p9_pgpe_thread_actuate_pstates(void* arg) { if (G_pgpe_pstate_record.ipcPendTbl[IPC_PEND_CLIP_UPDT].pending_ack == 1) { + pk_irq_sub_critical_enter(&ctx); + + //Notify CMEs about Updated Pmin and Pmax + if (G_pgpe_pstate_record.pendingPminClipBcast) + { + p9_pgpe_pstate_clip_bcast(DB0_CLIP_BCAST_TYPE_PMIN); + G_pgpe_pstate_record.pendingPminClipBcast = 0; + } + + if (G_pgpe_pstate_record.pendingPmaxClipBcast) + { + p9_pgpe_pstate_clip_bcast(DB0_CLIP_BCAST_TYPE_PMAX); + G_pgpe_pstate_record.pendingPmaxClipBcast = 0; + } + + pk_irq_sub_critical_exit(&ctx); + ipc_async_cmd_t* async_cmd = (ipc_async_cmd_t*)G_pgpe_pstate_record.ipcPendTbl[IPC_PEND_CLIP_UPDT].cmd; ipcmsg_clip_update_t* args = (ipcmsg_clip_update_t*)async_cmd->cmd_data; args->msg_cb.rc = PGPE_RC_SUCCESS; |