Skip to content

Commit bbf080c

Browse files
prasrangdcrowell77
authored andcommitted
WOF: Read WOF_TABLE_DATA attribute if static attribute is not set
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>
1 parent 1be038e commit bbf080c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/import/chips/p9/procedures/hwp/pm/p9_pstate_parameter_block.C

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,13 +497,9 @@ p9_pstate_parameter_block( const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_
497497
l_sys_vfrt_static_data),
498498
"Error from FAPI_ATTR_GET for attribute ATTR_SYS_VFRT_STATIC_DATA_ENABLE");
499499

500-
// Read System VFRT data
501-
fapi2::ATTR_WOF_TABLE_DATA_Type l_wof_table_data;
502-
FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_WOF_TABLE_DATA, FAPI_SYSTEM,
503-
l_wof_table_data), "fapiGetAttribute of ATTR_WOF_TABLE_DATA failed");
504-
505500
//this structure has VFRT header + data
506501
HomerVFRTLayout_t l_vfrt;
502+
memset (&l_vfrt, 0, sizeof(l_vfrt));
507503
uint32_t l_base_state_frequency = attr_mvpd_voltage_control[VPD_PV_ULTRA][0];
508504
FAPI_INF("Entering WOF initialization part");
509505

@@ -526,6 +522,11 @@ p9_pstate_parameter_block( const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_
526522
}
527523
else
528524
{
525+
// Read System VFRT data
526+
fapi2::ATTR_WOF_TABLE_DATA_Type l_wof_table_data;
527+
FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_WOF_TABLE_DATA, FAPI_SYSTEM,
528+
l_wof_table_data), "fapiGetAttribute of ATTR_WOF_TABLE_DATA failed");
529+
529530
FAPI_DBG("ATTR_SYS_VFRT_STATIC_DATA_ENABLE is not SET");
530531
// Copy WOF header data
531532
memcpy (o_buf, l_wof_table_data, sizeof (WofTablesHeader_t));

0 commit comments

Comments
 (0)