Skip to content

Commit

Permalink
remove PARM_GPST from AMEC_PARM_ENUM
Browse files Browse the repository at this point in the history
This is a bug, since the AMEC_PARM_ENUM enum and g_amec_parm_list
entries must match

Change-Id: I9ce4ae01d4f61c2ea455bdea31f934dd1bb69e27
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41440
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
  • Loading branch information
essawy authored and marthabroyles committed Jun 9, 2017
1 parent 53c19c2 commit 64aa591
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/occ_405/amec/amec_parm.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,10 @@
//*************************************************************************

// List of all parameters
// NOTE: The parameters must be in the same order as g_amec_parm_list[] in
// amec_parm_table.c
typedef enum
{
PARM_SYS_FMAX,
PARM_SYS_FMIN,
PARM_GPST,
PARM_PSTATE_MHZ,
PARM_FREQ_REASON,
PARM_FREQ_OR,
Expand Down Expand Up @@ -155,6 +152,7 @@ typedef enum
PARM_PGPE_WOF_OFF,
PARM_VFRT_MM_OFFSET,
PARM_VFRT_REQ_RC,

// End WOF Parameters
AMEC_PARM_NUMBER_OF_PARAMETERS
} AMEC_PARM_ENUM;
Expand Down
7 changes: 2 additions & 5 deletions src/occ_405/amec/amec_parm_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ extern amec_sys_t g_amec_sys;

// This is the list of all parameters seen by Amester
//
// Note: The parameters must be in the same order as in AMEC_PARM_ENUM
// in amec_parm.h
//
// Future optimization: This table could be placed in main memory, not
// the SRAM tank, since slow access to it is OK.
amec_parm_t g_amec_parm_list[] = {
Expand Down Expand Up @@ -144,7 +141,7 @@ amec_parm_t g_amec_parm_list[] = {
// Begin WOF parameters
AMEC_PARM_UINT8(PARM_WOF_HDR_VERSION, "wof_hdr_ver", &g_amec_sys.wof.version),
AMEC_PARM_UINT16(PARM_VFRT_BLOCK_SIZE, "vfrt_blck_sz", &g_amec_sys.wof.vfrt_block_size),
AMEC_PARM_UINT16(PARM_VFRT_BLOCK_HEADER_SZ, "vfrtBlckHdrSz", &g_amec_sys.wof.vfrt_blck_hdr_sz),
AMEC_PARM_UINT16(PARM_VFRT_BLOCK_HEADER_SZ, "vfrtBlckHdrSz", &g_amec_sys.wof.vfrt_blck_hdr_sz),
AMEC_PARM_UINT16(PARM_VFRT_DATA_SIZE , "vfrt_data_size", &g_amec_sys.wof.vfrt_data_size ),
AMEC_PARM_UINT8(PARM_ACTIVE_QUADS_SIZE , "actv_quads_size", &g_amec_sys.wof.active_quads_size ),
AMEC_PARM_UINT8(PARM_CORE_COUNT, "core_count", &g_amec_sys.wof.core_count),
Expand Down Expand Up @@ -192,6 +189,7 @@ amec_parm_t g_amec_parm_list[] = {
AMEC_PARM_UINT32(PARM_IAC_VDD, "iac_vdd", &g_amec_sys.wof.iac_vdd),
AMEC_PARM_UINT32(PARM_IAC_VDN, "iac_vdn", &g_amec_sys.wof.iac_vdn),
AMEC_PARM_UINT32(PARM_IAC_TDP_VDD, "iac_tdp_vdd", &g_amec_sys.wof.iac_tdp_vdd),
AMEC_PARM_UINT8(PARM_VOLTAGE_IDX, "voltage_idx", &g_amec_sys.wof.chip_volt_idx),
AMEC_PARM_UINT32(PARM_V_RATIO, "Vratio", &g_amec_sys.wof.v_ratio),
AMEC_PARM_UINT32(PARM_F_RATIO, "Fratio", &g_amec_sys.wof.f_ratio),
AMEC_PARM_UINT32(PARM_V_CLIP, "Vclip", &g_amec_sys.wof.v_clip),
Expand All @@ -203,7 +201,6 @@ amec_parm_t g_amec_parm_list[] = {
AMEC_PARM_UINT32(PARM_CEFF_VDN, "ceff_vdn", &g_amec_sys.wof.ceff_vdn),
AMEC_PARM_UINT32(PARM_CEFF_RATIO_VDN, "ceff_ratio_vdn", &g_amec_sys.wof.ceff_ratio_vdn),

AMEC_PARM_UINT8(PARM_VOLTAGE_IDX, "voltage_idx", &g_amec_sys.wof.chip_volt_idx),
AMEC_PARM_UINT32(PARM_ALL_CORES_OFF_ISO, "allCoresOffIso", &g_amec_sys.wof.all_cores_off_iso),
AMEC_PARM_UINT32(PARM_ALL_CACHES_ON_ISO, "allCachesOnIso", &g_amec_sys.wof.all_good_caches_on_iso),
AMEC_PARM_UINT16_ARRAY(PARM_QUAD_GOOD_CORES_ONLY, "quad_good_cores", &g_amec_sys.wof.quad_good_cores_only, MAXIMUM_QUADS),
Expand Down

0 comments on commit 64aa591

Please sign in to comment.