diff options
author | Thi Tran <thi@us.ibm.com> | 2014-02-06 15:25:19 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-02-14 15:21:34 -0600 |
commit | 9ea4a28823a5c17d8adc448635fdec1e18c5ce5d (patch) | |
tree | 5332b389deb70163f026ce3056f07db3c6935a61 /src/usr/hwpf/hwp/dram_training/mss_termination_control.C | |
parent | 687aff211d6a018a3361124f8213ff102c9ef121 (diff) | |
download | talos-hostboot-9ea4a28823a5c17d8adc448635fdec1e18c5ce5d.tar.gz talos-hostboot-9ea4a28823a5c17d8adc448635fdec1e18c5ce5d.zip |
INITPROC: Hostboot SW244672 RAS Review updates
Change-Id: I57642650e977d106a5078d5a8bc1ec4d9aec2f96
CQ:SW244672
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8633
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/dram_training/mss_termination_control.C')
-rw-r--r-- | src/usr/hwpf/hwp/dram_training/mss_termination_control.C | 50 |
1 files changed, 38 insertions, 12 deletions
diff --git a/src/usr/hwpf/hwp/dram_training/mss_termination_control.C b/src/usr/hwpf/hwp/dram_training/mss_termination_control.C index c237d0d5b..39dd60f11 100644 --- a/src/usr/hwpf/hwp/dram_training/mss_termination_control.C +++ b/src/usr/hwpf/hwp/dram_training/mss_termination_control.C @@ -20,7 +20,8 @@ /* Origin: 30 */ /* */ /* IBM_PROLOG_END_TAG */ -// $Id: mss_termination_control.C,v 1.25 2014/01/22 15:39:18 mjjones Exp $ + +// $Id: mss_termination_control.C,v 1.26 2014/01/31 13:41:28 sasethur Exp $ /* File is created by SARAVANAN SETHURAMAN on Thur 29 Sept 2011. */ //------------------------------------------------------------------------------ @@ -43,6 +44,7 @@ //------------------------------------------------------------------------------ // Version:| Author: | Date: | Comment: //---------|----------|---------|----------------------------------------------- +// 1.26 | mjjones |31-Jan-14| RAS Reviewed // 1.25 | mjjones |22-Jan-14| Removed firmware header // 1.24 | abhijsau |21-Jan-14| mike and menlo fixed ras review comments // 1.23 | bellows |02-Dec-13| VPD attribute update @@ -1344,16 +1346,6 @@ fapi::ReturnCode mss_slew_cal(const fapi::Target &i_target_mba) } else { - if (cal_status == 1) - { - FAPI_ERR("Error occurred during slew " - "calibration"); - } - else - { - FAPI_ERR("Slew calibration timed out, loop=%i", - poll_count); - } FAPI_ERR("Slew calibration failed on %s slew: " "imp_idx=%d(%i ohms)", (data_adr ? "ADR" : "DATA"), imp, @@ -1370,7 +1362,41 @@ fapi::ReturnCode mss_slew_cal(const fapi::Target &i_target_mba) const uint8_t & IMP = imp; const uint8_t & SLEW = slew; const fapi::Target & MBA_IN_ERROR = i_target_mba; - FAPI_SET_HWP_ERROR(rc, RC_MSS_SLEW_CAL_ERROR); + const ecmdDataBufferBase & STAT_REG = stat_reg; + + if (cal_status == 1) + { + if (l_port == 0) + { + FAPI_ERR("Error occurred during slew calibration on port 0"); + FAPI_SET_HWP_ERROR(rc, + RC_MSS_SLEW_CAL_ERROR_PORT0); + } + else + { + FAPI_ERR("Error occurred during slew calibration on port 1"); + FAPI_SET_HWP_ERROR(rc, + RC_MSS_SLEW_CAL_ERROR_PORT1); + } + } + else + { + if (l_port == 0) + { + FAPI_ERR("Slew calibration timed out on port 0, loop=%i", + poll_count); + FAPI_SET_HWP_ERROR(rc, + RC_MSS_SLEW_CAL_TIMEOUT_PORT0); + } + else + { + FAPI_ERR("Slew calibration timed out on port 1, loop=%i", + poll_count); + FAPI_SET_HWP_ERROR(rc, + RC_MSS_SLEW_CAL_TIMEOUT_PORT1); + } + } + array_rcs[l_port]=rc; continue; } |