summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/bus_training/io_read_erepair.C
diff options
context:
space:
mode:
authorThi Tran <thi@us.ibm.com>2013-10-07 20:42:33 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-10-09 19:18:24 -0500
commit2ffd66d3fe29208a1a08dac4ef7f21c51198f3e5 (patch)
treec6e77db1de13df66ee55565483cbb41d47a02624 /src/usr/hwpf/hwp/bus_training/io_read_erepair.C
parent29c238d3c9ab3e2e7680ab935a550b0909abaad7 (diff)
downloadblackbird-hostboot-2ffd66d3fe29208a1a08dac4ef7f21c51198f3e5.tar.gz
blackbird-hostboot-2ffd66d3fe29208a1a08dac4ef7f21c51198f3e5.zip
INITPROC: Hostboot - from defect SW226528 Week 9/24
Change-Id: I0b03d4b8a21db1ab0802bd30a958c15f404ed3c7 CQ:SW226528 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6545 Tested-by: Jenkins Server Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/bus_training/io_read_erepair.C')
-rw-r--r--src/usr/hwpf/hwp/bus_training/io_read_erepair.C32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/usr/hwpf/hwp/bus_training/io_read_erepair.C b/src/usr/hwpf/hwp/bus_training/io_read_erepair.C
index 3d3707902..08218cfff 100644
--- a/src/usr/hwpf/hwp/bus_training/io_read_erepair.C
+++ b/src/usr/hwpf/hwp/bus_training/io_read_erepair.C
@@ -1,7 +1,7 @@
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
-/* $Source: src/usr/hwpf/hwp/io_read_erepair/io_read_erepair.C $ */
+/* $Source: src/usr/hwpf/hwp/bus_training/io_read_erepair.C $ */
/* */
/* IBM CONFIDENTIAL */
/* */
@@ -20,7 +20,7 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
-// $Id: io_read_erepair.C,v 1.5 2013/02/05 06:06:06 varkeykv Exp $
+// $Id: io_read_erepair.C,v 1.6 2013/07/14 15:50:02 varkeykv Exp $
// *!***************************************************************************
// *! (C) Copyright International Business Machines Corp. 1997, 1998
// *! All Rights Reserved -- Property of IBM
@@ -63,7 +63,7 @@ ReturnCode io_read_erepair(const Target& target,std::vector<uint8_t> &rx_lanes)
ecmdDataBufferBase data_one(16);
ecmdDataBufferBase data_two(16);
ecmdDataBufferBase mask(16);
- uint8_t lane;
+ uint8_t lane=0;
io_interface_t interface=CP_IOMC0_P0; // Since G
uint32_t rc_ecmd=0;
@@ -108,18 +108,20 @@ ReturnCode io_read_erepair(const Target& target,std::vector<uint8_t> &rx_lanes)
for(uint8_t clock_group=start_group;clock_group<=end_group;++clock_group){
// This is only for X bus ..where multi groups are translated to consecutive lane numbers
- if(clock_group==0){
- lane=0;
- }
- else if(clock_group==1){
- lane=20;
- }
- else if(clock_group==2){
- lane=40;
- }
- else if(clock_group==3){
- lane=60;
- }
+ if(interface==CP_FABRIC_X0){
+ if(clock_group==0){
+ lane=0;
+ }
+ else if(clock_group==1){
+ lane=20;
+ }
+ else if(clock_group==2){
+ lane=40;
+ }
+ else if(clock_group==3){
+ lane=60;
+ }
+ }
//Collect the RX bad lanes
rc_ecmd|=data_one.flushTo0();
OpenPOWER on IntegriCloud