summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrasad Bg Ranganath <prasadbgr@in.ibm.com>2017-02-01 04:25:08 -0600
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2017-10-23 17:14:14 -0500
commitea99843a965bbfef6756c5e34052f37c78e6e1d3 (patch)
tree4993813971e7530b97f756bb1830ec0dd1098cdd
parent8448cd993431805ee6b1d75ba21ea7b7a2bb3c70 (diff)
downloadtalos-hcode-ea99843a965bbfef6756c5e34052f37c78e6e1d3.tar.gz
talos-hcode-ea99843a965bbfef6756c5e34052f37c78e6e1d3.zip
p9_pstate_parameter_block: access #W and populate parameter block stucture
Change-Id: I2d996c848d893074cec0eb74408b3300b60ff1d9 RTC:167146 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35721 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: RAHUL BATRA <rbatra@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
-rw-r--r--import/chips/p9/procedures/hwp/lib/p9_pstates_cmeqm.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/import/chips/p9/procedures/hwp/lib/p9_pstates_cmeqm.h b/import/chips/p9/procedures/hwp/lib/p9_pstates_cmeqm.h
index fb0b7d99..74ca11a2 100644
--- a/import/chips/p9/procedures/hwp/lib/p9_pstates_cmeqm.h
+++ b/import/chips/p9/procedures/hwp/lib/p9_pstates_cmeqm.h
@@ -163,7 +163,37 @@ typedef struct ResonantClockControl
} ResonantClockingSetup;
+// #W data points (version 2)
+typedef struct
+{
+ uint16_t ivdd_tdp_ac_current_10ma;
+ uint16_t ivdd_tdp_dc_current_10ma;
+ uint8_t vdm_overvold_small_thresholds;
+ uint8_t vdm_large_extreme_thresholds;
+ uint8_t vdm_small_frequency_drop;
+ uint8_t vdm_large_frequency_drop;
+ uint16_t vdm_spare;
+} poundw_entry_t;
+typedef struct
+{
+ uint16_t r_package_common;
+ uint16_t r_quad;
+ uint16_t r_core;
+ uint16_t r_quad_header;
+ uint16_t r_core_header;
+} resistance_entry_t;
+
+typedef struct
+{
+ poundw_entry_t poundw_nominal;
+ poundw_entry_t poundw_powersave;
+ poundw_entry_t poundw_turbo;
+ poundw_entry_t poundw_ultraturbo;
+ resistance_entry_t resistance_data;
+ uint64_t reserved1;
+ uint16_t reserved2;
+} PoundW_data;
/// VDM/Droop Parameter Block
///
typedef struct
OpenPOWER on IntegriCloud