diff options
| author | Rahul Batra <rbatra@us.ibm.com> | 2018-12-06 17:47:04 -0600 |
|---|---|---|
| committer | Christian R. Geddes <crgeddes@us.ibm.com> | 2018-12-18 16:25:29 -0600 |
| commit | 65f81d4498e205f14a564429d3fb84657cb55385 (patch) | |
| tree | 3d5269575b322b049616f50338e2d665c5d6c7e2 /src/import/chips/p9/common | |
| parent | 3ef628970ba2458d515e6d3f11f26a1afbe0bdbb (diff) | |
| download | talos-hostboot-65f81d4498e205f14a564429d3fb84657cb55385.tar.gz talos-hostboot-65f81d4498e205f14a564429d3fb84657cb55385.zip | |
PM: OCC<>PGPE interface for P9+
Key_Cronus_Test=PM_REGRESS
Change-Id: If35969fc72e1ffedf9916fcaa78617ff635e812a
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69542
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69544
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: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/common')
| -rw-r--r-- | src/import/chips/p9/common/pmlib/include/pstate_pgpe_occ_api.h | 164 |
1 files changed, 162 insertions, 2 deletions
diff --git a/src/import/chips/p9/common/pmlib/include/pstate_pgpe_occ_api.h b/src/import/chips/p9/common/pmlib/include/pstate_pgpe_occ_api.h index 3be2df6ef..4b1c3cf4a 100644 --- a/src/import/chips/p9/common/pmlib/include/pstate_pgpe_occ_api.h +++ b/src/import/chips/p9/common/pmlib/include/pstate_pgpe_occ_api.h @@ -336,6 +336,157 @@ typedef union requested_active_quads // End Quad State // ----------------------------------------------------------------------------- +typedef struct +{ + union + { + uint64_t value; + struct + { + uint32_t high_order; + uint32_t low_order; + } words; + struct + { + uint64_t average_pstate : 8; + uint64_t average_frequency_pstate : 8; + uint64_t clip_pstate : 8; + uint64_t reserved : 8; + uint64_t vratio_inst : 16; + uint64_t vratio_avg : 16; + } fields; + } dw0; + union + { + uint64_t value; + struct + { + uint32_t high_order; + uint32_t low_order; + } words; + struct + { + uint64_t idd_avg_ma : 16; + uint64_t ics_avg_ma : 16; + uint64_t idn_avg_ma : 16; + uint64_t iio_avg_ma : 16; + + } fields; + } dw1; + union + { + uint64_t value; + struct + { + uint32_t high_order; + uint32_t low_order; + } words; + struct + { + uint64_t vdd_avg_mv : 16; + uint64_t vcs_avg_mv : 16; + uint64_t vdn_avg_mv : 16; + uint64_t vio_avg_mv : 16; + } fields; + } dw2; + union + { + uint64_t value; + struct + { + uint32_t high_order; + uint32_t low_order; + } words; + struct + { + uint64_t ocs_avg_0p01pct : 16; + uint64_t reserved : 48; + } fields; + } dw3; +} pgpe_wof_values_t; + +typedef struct +{ + union + { + uint64_t value; + struct + { + uint32_t high_order; + uint32_t low_order; + } words; + struct + { + uint64_t magic_word : 32; //ELTC + uint64_t total_log_slots : 8; + uint64_t reserved : 24; + } fields; + } dw0; + union + { + uint64_t value; + struct + { + uint32_t high_order; + uint32_t low_order; + } words; + struct + { + uint64_t errlog_id : 8; + uint64_t errlog_src : 8; + uint64_t errlog_len : 16; + uint64_t pgpe_critical_log_address : 32; + } fields; + } dw1; + union + { + uint64_t value; + struct + { + uint32_t high_order; + uint32_t low_order; + } words; + struct + { + uint64_t errlog_id : 8; + uint64_t errlog_src : 8; + uint64_t errlog_len : 16; + uint64_t pgpe_info_log_address : 32; + } fields; + } dw2; + union + { + uint64_t value; + struct + { + uint32_t high_order; + uint32_t low_order; + } words; + struct + { + uint64_t errlog_id : 8; + uint64_t errlog_src : 8; + uint64_t errlog_len : 16; + uint64_t sgpe_critical_log_address : 32; + } fields; + } dw3; + union + { + uint64_t value; + struct + { + uint32_t high_order; + uint32_t low_order; + } words; + struct + { + uint64_t errlog_id : 8; + uint64_t errlog_src : 8; + uint64_t errlog_len : 16; + uint64_t sgpe_info_log_address : 32; + } fields; + } dw4; +} errlog_idx_t; typedef struct { @@ -357,8 +508,17 @@ typedef struct ///Requested Active Quads requested_active_quads_t req_active_quads; - /// FFDC Address list - Hcode_FFDC_list_t ffdc_list; + //PGPE WOF Values + pgpe_wof_values_t pgpe_wof_values; + + //Reserved + uint64_t reserved1; + + /// Hcode Error Log Index + errlog_idx_t errlog_idx; + + //Reserved + uint64_t reserved2[24]; /// Pstate Table OCCPstateTable_t pstate_table; |

