From 62f3c1d8d9e7902554e41450e9ccc5d0f20c8ca5 Mon Sep 17 00:00:00 2001 From: Rahul Batra Date: Wed, 9 Aug 2017 16:55:08 -0500 Subject: 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 Reviewed-by: BRIAN D. VICTOR Reviewed-by: Brian T. Vanderpool Reviewed-by: Jennifer A. Stofer --- .../pgpe/pstate_gpe/p9_pgpe_thread_actuate_pstates.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_thread_actuate_pstates.c') 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; -- cgit v1.2.1