Skip to content

Commit

Permalink
Change training advance check
Browse files Browse the repository at this point in the history
    Change the check to check for fails that exceed ECC
    This will handle the DDR_PHY fir popping on every training

Change-Id: Ifff4c542c620846954acbc0d9d909053233fb2e7
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46447
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Dev-Ready: JACOB L. HARVEY <jlharvey@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Louis Stermole <stermole@us.ibm.com>
Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46479
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
  • Loading branch information
JacobHarvey authored and wghoffa committed Sep 21, 2017
1 parent 229ad66 commit 06029fd
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -134,12 +134,15 @@ extern "C"
{
bool l_cal_fail = false;

// l_fails is used to see if we need to rerun training.
// The other vector, l_fails, will be used to store errors across all of the ports
std::vector<fapi2::ReturnCode> l_temp_fails;

FAPI_TRY( mss::setup_and_execute_cal(p, rp, l_cal_steps_enabled, l_cal_abort_on_error) );
FAPI_TRY( mss::find_and_log_cal_errors(p, rp, l_cal_abort_on_error, l_cal_fail, l_temp_fails) );

// If we got a fail, let's ignore the previous fails and run backup pattern
if (l_cal_fail)
if (l_temp_fails.size() != 0)
{
l_cal_fail = false;

Expand All @@ -163,8 +166,9 @@ extern "C"
FAPI_TRY( mss::setup_and_execute_cal(p, rp, l_cal_steps_enabled, l_cal_abort_on_error) );
FAPI_TRY( mss::find_and_log_cal_errors(p, rp, l_cal_abort_on_error, l_cal_fail, l_fails) );

// If l_cal_fail == true here, error out
if (l_cal_fail)
// Fail out for now.
// TK should restore values here
if (l_fails.size() != 0)
{
fapi2::Target<fapi2::TARGET_TYPE_DIMM> l_dimm;

Expand Down

0 comments on commit 06029fd

Please sign in to comment.