Skip to content

Commit

Permalink
Include WOF power mode explicitly inside tables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mderkse1 authored and dcrowell77 committed Mar 16, 2018
1 parent ee17272 commit 8692b24
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/import/chips/p9/procedures/hwp/lib/p9_pstates_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* Contributors Listed Below - COPYRIGHT 2015,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -341,14 +341,33 @@ 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
{

/// Magic Number
/// 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
Expand Down

0 comments on commit 8692b24

Please sign in to comment.