Skip to content

Commit

Permalink
Fix memory bandwidth chom averages
Browse files Browse the repository at this point in the history
CQ:SW451293
Change-Id: I221e626234dc188debbb064d276c42489a09857e
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68619
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
  • Loading branch information
wilbryan committed Nov 14, 2018
1 parent 12c8088 commit 6e52f56
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/occ_405/cmdh/cmdh_dbug_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,11 +956,11 @@ void dbug_err_inject(const cmdh_fsp_cmd_t * i_cmd_ptr,

if (G_rsp_status == ERRL_RC_INTERNAL_FAIL)
{
TRAC_ERR("cmdh_dbug_inject_errl: Fail creating ERR Log\n");
TRAC_ERR("cmdh_dbug_inject_errl: Fail creating ERR Log");
}
else
{
TRAC_INFO("cmdh_dbug_inject_errl: inject errl for COMP : %s\n", l_cmd_ptr->comp);
TRAC_INFO("cmdh_dbug_inject_errl: inject errl for COMP : %s", l_cmd_ptr->comp);
}

return;
Expand Down Expand Up @@ -1090,7 +1090,7 @@ void cmdh_dbug_cmd (const cmdh_fsp_cmd_t * i_cmd_ptr,

default:
// Trace the rest of the debug commands.
TRAC_INFO("Debug Command: Sub:0x%02x\n", l_sub_cmd);
TRAC_INFO("Debug Command: Sub:0x%02x", l_sub_cmd);

break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/occ_405/mem/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void task_memory_control( task_t * i_task )
g_amec->sys.dimm_m_values[mc][port].m_value =
G_dimm_control_args.dimmDenominatorValues.m_value;
g_amec->sys.dimm_m_values[mc][port].need_m = FALSE;
TRAC_INFO("M Value for MC%d P%d is 0x%08X", mc, port, g_amec->sys.dimm_m_values[mc][port].m_value);
MEM_DBG("M Value for MC%d P%d is 0x%08X", mc, port, g_amec->sys.dimm_m_values[mc][port].m_value);
}
}
}//if(L_gpe_scheduled)
Expand Down
12 changes: 11 additions & 1 deletion src/occ_405/thread/chom.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ uint8_t g_chom_pwr_modes[OCC_INTERNAL_MODE_MAX_NUM]; // Nominal, SPS, DPS, DPS-
// force immediate chom log flag
uint8_t g_chom_force;

// indicates that chom data has been reset
bool g_chom_reset = FALSE;

// chom data log
ChomLogData_t g_chom_log;
ChomLogData_t * g_chom = &g_chom_log;
Expand Down Expand Up @@ -149,7 +152,8 @@ void chom_data_reset()
g_chom_gen_periodic_log_timer = 0;
// reset flag
g_chom_force = FALSE;

// reset static data
g_chom_reset = TRUE;
}


Expand All @@ -171,6 +175,12 @@ void chom_update_sensors()
// Use FMF as default
static uint32_t * L_curNumSamplePtr = L_memBWNumSamples[CHOM_MODE_FMF];

if(TRUE == g_chom_reset)
{
memset(L_memBWNumSamples, 0, sizeof(L_memBWNumSamples));
g_chom_reset = FALSE;
}

uint16_t i = 0, j = 0;

// Is the current mode different than previous poll
Expand Down

0 comments on commit 6e52f56

Please sign in to comment.