Skip to content

Commit

Permalink
WOF: Read WOF_TABLE_DATA attribute if static attribute is not set
Browse files Browse the repository at this point in the history
Change-Id: Ie607447293db7573846aad39c8f406d793eb152a
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40386
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: RAHUL BATRA <rbatra@us.ibm.com>
Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com>
Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40388
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
prasrang authored and dcrowell77 committed May 23, 2017
1 parent 1be038e commit bbf080c
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,13 +497,9 @@ p9_pstate_parameter_block( const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_
l_sys_vfrt_static_data),
"Error from FAPI_ATTR_GET for attribute ATTR_SYS_VFRT_STATIC_DATA_ENABLE");

// Read System VFRT data
fapi2::ATTR_WOF_TABLE_DATA_Type l_wof_table_data;
FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_WOF_TABLE_DATA, FAPI_SYSTEM,
l_wof_table_data), "fapiGetAttribute of ATTR_WOF_TABLE_DATA failed");

//this structure has VFRT header + data
HomerVFRTLayout_t l_vfrt;
memset (&l_vfrt, 0, sizeof(l_vfrt));
uint32_t l_base_state_frequency = attr_mvpd_voltage_control[VPD_PV_ULTRA][0];
FAPI_INF("Entering WOF initialization part");

Expand All @@ -526,6 +522,11 @@ p9_pstate_parameter_block( const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_
}
else
{
// Read System VFRT data
fapi2::ATTR_WOF_TABLE_DATA_Type l_wof_table_data;
FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_WOF_TABLE_DATA, FAPI_SYSTEM,
l_wof_table_data), "fapiGetAttribute of ATTR_WOF_TABLE_DATA failed");

FAPI_DBG("ATTR_SYS_VFRT_STATIC_DATA_ENABLE is not SET");
// Copy WOF header data
memcpy (o_buf, l_wof_table_data, sizeof (WofTablesHeader_t));
Expand Down

0 comments on commit bbf080c

Please sign in to comment.