summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/lib
diff options
context:
space:
mode:
authorRahul Batra <rbatra@us.ibm.com>2017-08-17 14:28:13 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-09-07 14:41:53 -0400
commit1b9e43559ad5e83d9a08c179ebf371cab1467db7 (patch)
treebd67f1082c84c7f6435595fb8fa0279f1fc5a5ab /src/import/chips/p9/procedures/hwp/lib
parentf18a5784ca82e3e44572fa55ac36673736d9eb66 (diff)
downloadtalos-hostboot-1b9e43559ad5e83d9a08c179ebf371cab1467db7.tar.gz
talos-hostboot-1b9e43559ad5e83d9a08c179ebf371cab1467db7.zip
PM: Pstate Dump tool Enhancement
Change-Id: Icf16bbb22a1b31603a427c6fbb4dadf04d14b23b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44754 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-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: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44771 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/lib')
-rw-r--r--src/import/chips/p9/procedures/hwp/lib/p9_pstates_table.h46
1 files changed, 44 insertions, 2 deletions
diff --git a/src/import/chips/p9/procedures/hwp/lib/p9_pstates_table.h b/src/import/chips/p9/procedures/hwp/lib/p9_pstates_table.h
index 956d6a2cf..1c0bb4b5f 100644
--- a/src/import/chips/p9/procedures/hwp/lib/p9_pstates_table.h
+++ b/src/import/chips/p9/procedures/hwp/lib/p9_pstates_table.h
@@ -47,7 +47,8 @@
/// Block content.
#define MAX_PSTATE_TABLE_ENTRIES 128
-#define GEN_PSTATES_TBL_MAGIC 0x50535441424c3030 //PSTABL00 (last two ASCII characters indicate version number)
+#define GEN_PSTATES_TBL_MAGIC 0x50535441424c3030ULL //PSTABL00 (last two ASCII characters indicate version number)
+#define GEN_PSTATES_TBL_MAGIC_V1 0x50535441424c3031ULL //PSTABL01 (last two ASCII characters indicate version number)
#ifndef __ASSEMBLER__
#ifdef __cplusplus
@@ -100,11 +101,12 @@ typedef struct
} PstateTable;
+/// GeneratedPstateInfo - VERSION0
typedef struct
{
/// Magic Number
- uint64_t magic; // ASCII: "PSTATABL"
+ uint64_t magic; // ASCII: "PSTABL00 "
// PGPE content
GlobalPstateParmBlock globalppb;
@@ -125,6 +127,46 @@ typedef struct
} GeneratedPstateInfo;
+/// GeneratedPstateInfo - VERSION1
+typedef struct
+{
+ uint32_t gppb_offset;
+ uint32_t gppb_length;
+ uint32_t ps0_offset;
+ uint32_t highest_ps_offset;
+ uint32_t raw_pstate_tbl_offset;
+ uint32_t raw_pstate_tbl_length;
+ uint32_t biased_pstate_tbl_offset;
+ uint32_t biased_pstate_tbl_length;
+} GeneratedPstateInfoHeader_v1;
+
+typedef struct
+{
+
+ /// Magic Number
+ uint64_t magic; // ASCII: "PSTABL01 "
+
+ /// Offset and lengths for fields of this structure
+ GeneratedPstateInfoHeader_v1 header;
+
+ // PGPE content
+ GlobalPstateParmBlock globalppb;
+
+ /// The fastest frequency - after biases have been applied
+ uint32_t pstate0_frequency_khz;
+
+ /// Highest Pstate Number => slowest Pstate generated
+ uint32_t highest_pstate;
+
+ /// Generated table with system paramters included but without biases
+ PstateTable raw_pstates[MAX_PSTATE_TABLE_ENTRIES];
+
+ /// Generated table with system paramters and biases
+ /// Note: if all bias attributes are 0, this content will be the same
+ /// as the raw_pstates content.
+ PstateTable biased_pstates[MAX_PSTATE_TABLE_ENTRIES];
+} GeneratedPstateInfo_v1;
+
#ifdef __cplusplus
} // end extern C
OpenPOWER on IntegriCloud