Skip to content

Commit

Permalink
Add WOF parameters to WOF error logs
Browse files Browse the repository at this point in the history
Change-Id: I6a2a1b549beb6c6efc2a7435bbd18e704fe8336d
RTC:192844
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/62812
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sheldon Bailey <baileysh@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com>
  • Loading branch information
aalugore committed Jul 23, 2018
1 parent 7f75f89 commit c0210a3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/occ_405/errl/errl.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ void setErrlActions(errlHndl_t io_err, const uint8_t i_mask)
&& ( io_err != INVALID_ERR_HNDL )
&& (io_err->iv_userDetails.iv_committed == 0) )
{
// set the appropriate action bits$
// set the appropriate action bits
io_err->iv_actions.word |= i_mask;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/occ_405/errl/errl.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ typedef enum
ERRL_USR_DTL_CALLHOME_DATA = 0x02,
ERRL_USR_DTL_BINARY_DATA = 0x03,
ERRL_USR_DTL_HISTORY_DATA = 0x04,
ERRL_USR_DTL_WOF_DATA = 0x05,
} ERRL_USR_DETAIL_TYPE;

// These are the possible OCC States.
Expand Down
3 changes: 2 additions & 1 deletion src/occ_405/incl/occ_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER OnChipController Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2011,2017 */
/* Contributors Listed Below - COPYRIGHT 2011,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -287,6 +287,7 @@ enum
CF_FSI_MB_TIMEOUT = 0x01,
};

#define WOF_TRACE_SIZE 1236
#define DEFAULT_TRACE_SIZE 1536
#define MAX_OCCS 8
#define MAX_CORES 24
Expand Down
1 change: 1 addition & 0 deletions src/occ_405/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@ bool read_ppmr_header(void)
uint32_t userdata2 = 0;

MAIN_TRAC_INFO("read_ppmr_header(0x%08X)", PPMR_ADDRESS_HOMER);

// create a DTLB entry for the PPMR image header
create_tlb_entry(PPMR_ADDRESS_HOMER, sizeof(ppmr_header_t));

Expand Down
10 changes: 8 additions & 2 deletions src/occ_405/wof/wof.c
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,6 @@ void set_clear_wof_disabled( uint8_t i_action,
// Set the bit
g_wof->wof_disabled |= i_bit_mask;


// If user is trying to force a reset even though WOF is disabled,
// Skip straight to error log creation
if( (g_wof->wof_disabled) &&
Expand Down Expand Up @@ -1567,10 +1566,17 @@ void set_clear_wof_disabled( uint8_t i_action,
i_ext_rc,
ERRL_SEV_UNRECOVERABLE,
NULL,
DEFAULT_TRACE_SIZE,
WOF_TRACE_SIZE,
g_wof->wof_disabled,
i_bit_mask );

// Add WOF parameters to error log
addUsrDtlsToErrl( l_errl,
(uint8_t*)g_wof,
sizeof(*g_wof),
ERRL_STRUCT_VERSION_1,
ERRL_USR_DTL_WOF_DATA);

// Reset if on Reason Code requires it.
if(i_bit_mask & ~(IGNORE_WOF_RESET) )
{
Expand Down
2 changes: 1 addition & 1 deletion src/tools/ffdcparser/wofparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void dump_wof_data(wof_data_t * data)
printf("vdn_percent[%d]: %d\n", i, data->vdn_percent[i]);
printf("socket_power_w: %d\n", data->socket_power_w);
printf("nest_freq_mhz: %d\n", data->nest_freq_mhz);
printf("nom_freq_mhz: %d\n", data->nom_freq_mhz);
printf("wof_tables_mhz: %d\n", data->nom_freq_mhz);
printf("rdp_capacity: %d\n", data->rdp_capacity);
printf("wof_tbls_src_tag: 0x%X\n", data->wof_tbls_src_tag);
printf("package_name_hi: 0x%08x\n", data->package_name_hi);
Expand Down

0 comments on commit c0210a3

Please sign in to comment.