diff options
author | Rahul Batra <rbatra@us.ibm.com> | 2017-05-18 08:52:53 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2017-07-17 01:42:06 -0400 |
commit | 3417fece3bcc33c6194d2f92ee7f918659c29417 (patch) | |
tree | e4fb3eadbade45a5420ee3c8ca18ddc9d111b1cc /src/import/chips/p9/procedures/hwp/lib | |
parent | 91eb48e3c6edd12fbde2cf9887b66d94bd493dcb (diff) | |
download | talos-sbe-3417fece3bcc33c6194d2f92ee7f918659c29417.tar.gz talos-sbe-3417fece3bcc33c6194d2f92ee7f918659c29417.zip |
PSTATE: CME refactoring and cleanup
Change-Id: I03cc2316da7b997c467ece0412a5212e38718318
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40823
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com>
Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43186
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/lib')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/lib/p9_pm_hcd_flags.h | 93 |
1 files changed, 37 insertions, 56 deletions
diff --git a/src/import/chips/p9/procedures/hwp/lib/p9_pm_hcd_flags.h b/src/import/chips/p9/procedures/hwp/lib/p9_pm_hcd_flags.h index 344f0d34..118402c8 100644 --- a/src/import/chips/p9/procedures/hwp/lib/p9_pm_hcd_flags.h +++ b/src/import/chips/p9/procedures/hwp/lib/p9_pm_hcd_flags.h @@ -98,42 +98,6 @@ typedef union occ_flags } fields; } occ_flags_t; - - -// -//OCC SCRATCH2 defines -// -typedef union occ_scratch2 -{ - uint32_t value; - struct - { -#ifdef _BIG_ENDIAN - uint32_t pgpe_active : 1; - uint32_t pgpe_pstate_protocol_active : 1; - uint32_t pgpe_safe_mode : 1; - uint32_t pm_complex_suspended : 1; - uint32_t reserved0 : 4; - uint32_t sgpe_debug_trap_enable : 1; - uint32_t cme_debug_trap_enable : 1; - uint32_t pgpe_debug_trap_enable : 1; - uint32_t l3_contained_mode : 1; - uint32_t reserved1 : 20; -#else - uint32_t reserved1 : 20; - uint32_t l3_contained_mode : 1; - uint32_t pgpe_debug_trap_enable : 1; - uint32_t cme_debug_trap_enable : 1; - uint32_t sgpe_debug_trap_enable : 1; - uint32_t reserved0 : 4; - uint32_t pm_complex_suspended : 1; - uint32_t pgpe_safe_mode : 1; - uint32_t pgpe_pstate_protocol_active : 1; - uint32_t pgpe_active : 1; -#endif - } fields; -} occ_scratch2_t; - typedef union pgpe_flags { uint16_t value; @@ -173,26 +137,6 @@ typedef union pgpe_flags } fields; } pgpe_flags_t; -typedef union cme_flags -{ - uint32_t value; - struct - { - uint32_t stop_ready : 1; - uint32_t PStatePMCRReady : 1; - uint32_t PStateQuadMgrReady : 1; - uint32_t PStateQuadMgrMaster : 1; - uint32_t ResonantClockOperable : 1; - uint32_t iVRMsOperable : 1; - uint32_t VDMsOperable : 1; - uint32_t OCCHBSafeModeEngaged : 1; - uint32_t reserved_8_27 : 20; - uint32_t STOPEntryFirst0 : 1; - uint32_t STOPEntryFirst1 : 1; - uint32_t Core0Good : 1; - uint32_t Core1Good : 1; - } fields; -} cme_flags_t; #ifndef __PPE_PLAT namespace p9hcd @@ -247,6 +191,7 @@ enum PM_GPE_OCCFLG_DEFS REQUESTED_ACTIVE_QUAD_UPDATE = 30, REQUEST_OCC_SAFE_STATE = 31 }; + // //Enum form of OCC SCRATCH2. // @@ -262,6 +207,42 @@ enum PM_GPE_OCC_SCRATCH2_DEFS L3_CONTAINED_MODE = 11 }; +// +//Enum form of CME_FLAGS +// +enum PM_CME_FLAGS_DEFS +{ + CME_FLAGS_STOP_READY = 0, + CME_FLAGS_PMCR_READY = 1, + CME_FLAGS_QMGR_READY = 2, + CME_FLAGS_QMGR_MASTER = 3, + CME_FLAGS_RCLK_OPERABLE = 4, + CME_FLAGS_IVRM_OPERABLE = 5, + CME_FLAGS_VDM_OPERABLE = 6, + CME_FLAGS_OCC_HB_SAFE_MODE = 7, + CME_FLAGS_BLOCK_WKUP_C0 = 8, + CME_FLAGS_BLOCK_WKUP_C1 = 9, + CME_FLAGS_PSTATES_ENABLED = 24, + CME_FLAGS_FREQ_UPDT_DISABLE = 25, + CME_FLAGS_EX_ID = 26, + CME_FLAGS_SIBLING_FUNCTIONAL = 27, + CME_FLAGS_STOP_ENTRY_FIRST_C0 = 28, + CME_FLAGS_STOP_ENTRY_FIRST_C1 = 29, + CME_FLAGS_CORE0_GOOD = 30, + CME_FLAGS_CORE1_GOOD = 31 +}; + +// +//Enum form of CME_SCRATCH_ +// +enum PM_CME_SCRATCH_DEFS +{ + CME_SCRATCH_LOCAL_PSTATE_IDX_START = 26, + CME_SCRATCH_LOCAL_PSTATE_IDX_LENGTH = 6 +}; + + + #ifndef __PPE_PLAT } //End p9hcd namespace #endif |