summaryrefslogtreecommitdiffstats
path: root/src/occ_405/proc/proc_data_control.c
diff options
context:
space:
mode:
authorAndres Lugo-Reyes <aalugore@us.ibm.com>2018-01-12 11:10:09 -0600
committerAndres A. Lugo-Reyes <aalugore@us.ibm.com>2018-01-19 17:13:09 -0500
commitc04d58bd549c17bece70aff18e6cb01af26feb26 (patch)
tree3a097e0e50154b0a98e5e91f9ad83e98e963c770 /src/occ_405/proc/proc_data_control.c
parent00123c66a1d23b3a4fca98528989d4e35550fd3d (diff)
downloadtalos-occ-c04d58bd549c17bece70aff18e6cb01af26feb26.tar.gz
talos-occ-c04d58bd549c17bece70aff18e6cb01af26feb26.zip
WOF Phase 2: Use Vratio from PGPE
-Also enable WOF resets to be sent to ZZ platforms Change-Id: I7054c69fc1f287ea5184f7bf8576d198735481f6 RTC:184983 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/52272 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com>
Diffstat (limited to 'src/occ_405/proc/proc_data_control.c')
-rwxr-xr-xsrc/occ_405/proc/proc_data_control.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/occ_405/proc/proc_data_control.c b/src/occ_405/proc/proc_data_control.c
index ebd907d..a52cfac 100755
--- a/src/occ_405/proc/proc_data_control.c
+++ b/src/occ_405/proc/proc_data_control.c
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER OnChipController Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2017 */
+/* Contributors Listed Below - COPYRIGHT 2011,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -37,6 +37,7 @@
#include "occ_sys_config.h"
#include "p9_pstates_common.h"
#include "pgpe_interface.h"
+#include "pgpe_shared.h"
#include "rtls_service_codes.h"
#include "proc_pstate.h"
#include "occ_util.h"
@@ -55,6 +56,7 @@ extern GpeRequest G_pmcr_set_req;
extern bool G_state_transition_occuring; // A state transition is currently going on?
+extern uint8_t G_allow_trace_flags;
// a global flag used by task_core_data_control() to indicate
// that the OCC is ready to transition to observation state
// (after initiatibg a clip update IPC task if needed)
@@ -121,7 +123,10 @@ void task_core_data_control( task_t * i_task )
// pclip of highest quad frequency corresponds to a frequency higher than legacy turbo
if(pclip < l_pstate)
{
- TRAC_INFO("task_core_data_control: updating clip max to pstate 0x%02X (from 0x%02X)", l_pstate, pclip);
+ if( G_allow_trace_flags & PGPE_ALLOW_CLIP_TRACE )
+ {
+ TRAC_INFO("task_core_data_control: updating clip max to pstate 0x%02X (from 0x%02X)", l_pstate, pclip);
+ }
// set the all quads to same pstate
memset(G_desired_pstate, l_pstate, MAXIMUM_QUADS);
//call PGPE IPC function to update the clips
@@ -192,8 +197,12 @@ void task_core_data_control( task_t * i_task )
if (L_last != pstateList)
{
L_last = pstateList;
- TRAC_INFO("task_core_data_control: calling pmcr_set() w/pstates: 0x%08X%04X",
- WORD_HIGH(pstateList), WORD_LOW(pstateList)>>16);
+
+ if( G_allow_trace_flags & PGPE_ALLOW_PMCR_TRACE )
+ {
+ TRAC_INFO("task_core_data_control: calling pmcr_set() w/pstates: 0x%08X%04X",
+ WORD_HIGH(pstateList), WORD_LOW(pstateList)>>16);
+ }
//call PGPE IPC function to update Pstates
pgpe_pmcr_set();
}
OpenPOWER on IntegriCloud