diff options
author | Matt Derksen <mderkse1@us.ibm.com> | 2018-02-21 16:42:57 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-03-16 14:28:29 -0400 |
commit | 8692b24a1ec04118db45555886f497ae9fe7a374 (patch) | |
tree | 58f704ef5088fcb081a73c2659911822c590d4d6 /src/import/chips/p9/procedures/hwp | |
parent | ee172729c85de83a076a12098d6fffd7e027a664 (diff) | |
download | talos-hostboot-8692b24a1ec04118db45555886f497ae9fe7a374.tar.gz talos-hostboot-8692b24a1ec04118db45555886f497ae9fe7a374.zip |
Include WOF power mode explicitly inside tables
New header for mode inclusion. Needed to distinguish
which table to use.
Change-Id: I037e95288ccb5a963bd24e53484c8731c52d9790
RTC:187340
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54535
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: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54544
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')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/lib/p9_pstates_common.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/import/chips/p9/procedures/hwp/lib/p9_pstates_common.h b/src/import/chips/p9/procedures/hwp/lib/p9_pstates_common.h index bc46c3445..0bd69a534 100644 --- a/src/import/chips/p9/procedures/hwp/lib/p9_pstates_common.h +++ b/src/import/chips/p9/procedures/hwp/lib/p9_pstates_common.h @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2017 */ +/* Contributors Listed Below - COPYRIGHT 2015,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -341,6 +341,13 @@ typedef struct __attribute__((packed)) VFRTHeaderLayout uint8_t rsvd_QAId; } VFRTHeaderLayout_t;// WOF Tables Header +typedef enum +{ + WOF_MODE_UNKNOWN = 0, + WOF_MODE_NOMINAL = 1, + WOF_MODE_TURBO = 2 +} WOF_MODE; + typedef struct __attribute__((packed, aligned(128))) WofTablesHeader { @@ -348,7 +355,19 @@ typedef struct __attribute__((packed, aligned(128))) WofTablesHeader /// Set to ASCII "WFTH___x" where x is the version of the VFRT structure uint32_t magic_number; - uint32_t reserved_version; // reserved:24b, version:8b + /// Reserved version + /// version 1 - mode is reserved (0) + /// version 2 - mode is SET to 1 or 2 + union + { + uint32_t reserved_version; + struct + { + unsigned reserved_bits: 20; + unsigned mode: 4; /// new to version 2 (1 = Nominal, 2 = Turbo) + uint8_t version; + } PACKED; + }; /// VFRT Block Size /// Length, in bytes, of a VFRT |