diff options
author | Andres Lugo-Reyes <aalugore@us.ibm.com> | 2018-01-12 11:10:09 -0600 |
---|---|---|
committer | Andres A. Lugo-Reyes <aalugore@us.ibm.com> | 2018-01-19 17:13:09 -0500 |
commit | c04d58bd549c17bece70aff18e6cb01af26feb26 (patch) | |
tree | 3a097e0e50154b0a98e5e91f9ad83e98e963c770 /src/occ_405/pgpe | |
parent | 00123c66a1d23b3a4fca98528989d4e35550fd3d (diff) | |
download | talos-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/pgpe')
-rw-r--r-- | src/occ_405/pgpe/pgpe_interface.c | 9 | ||||
-rw-r--r-- | src/occ_405/pgpe/pgpe_shared.h | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/occ_405/pgpe/pgpe_interface.c b/src/occ_405/pgpe/pgpe_interface.c index 13e1957..36d740c 100644 --- a/src/occ_405/pgpe/pgpe_interface.c +++ b/src/occ_405/pgpe/pgpe_interface.c @@ -5,7 +5,7 @@ /* */ /* OpenPOWER OnChipController Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2017 */ +/* Contributors Listed Below - COPYRIGHT 2011,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -36,6 +36,7 @@ #include "occ_sys_config.h" #include "ssx.h" #include "wof.h" +#include "pgpe_shared.h" #include "amec_sys.h" #include "common.h" // For ignore_pgpe_error() @@ -50,6 +51,7 @@ extern uint32_t G_present_cores; extern bool G_simics_environment; +extern uint8_t G_allow_trace_flags; // IPC GPE Requests GpeRequest G_clip_update_req; GpeRequest G_pmcr_set_req; @@ -654,9 +656,12 @@ int pgpe_clip_update(void) } else { - TRAC_INFO("pgpe_clip_update: Scheduling clip update: min[0x%02X], max[0x%08X%04X]", + if(G_allow_trace_flags & PGPE_ALLOW_CLIP_TRACE) + { + TRAC_INFO("pgpe_clip_update: Scheduling clip update: min[0x%02X], max[0x%08X%04X]", G_clip_update_parms.ps_val_clip_min[0], WORD_HIGH(pstate_list), WORD_LOW(pstate_list)>>16); + } } L_last_list = pstate_list; } diff --git a/src/occ_405/pgpe/pgpe_shared.h b/src/occ_405/pgpe/pgpe_shared.h index 39db1ab..3003af4 100644 --- a/src/occ_405/pgpe/pgpe_shared.h +++ b/src/occ_405/pgpe/pgpe_shared.h @@ -5,7 +5,7 @@ /* */ /* OpenPOWER OnChipController Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2017 */ +/* Contributors Listed Below - COPYRIGHT 2011,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -43,6 +43,10 @@ #define PGPE_WOF_TBLS_ADDR_OFFSET 0x58 #define PGPE_WOF_TBLS_LEN_OFFSET 0x5C +// PGPE Command Trace Masks +#define PGPE_ALLOW_PMCR_TRACE 0x0001 +#define PGPE_ALLOW_CLIP_TRACE 0x0002 +#define PGPE_ALLOW_VFRT_TRACE 0x0004 // This size must be a multiple of 128 typedef struct __attribute__ ((packed)) |