summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorMatt Ploetz <maploetz@us.ibm.com>2015-05-12 15:32:20 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-06-10 15:10:12 -0500
commit17f94afce9979da7c750fd8022604dc0b43dcf4f (patch)
tree8db0963a309faea4ba437aeb39714bc76efbe84c /src/usr
parentbd0dfe4c4d58d28208225a16ff341edcf32ff255 (diff)
downloadtalos-hostboot-17f94afce9979da7c750fd8022604dc0b43dcf4f.tar.gz
talos-hostboot-17f94afce9979da7c750fd8022604dc0b43dcf4f.zip
PCIe lane swap fix in processMRW.pl
Change-Id: Iee7127fef7f4a911a77e0c24c896d840b1b45ff4 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/17748 Tested-by: Jenkins Server Reviewed-by: MATTHEW A. PLOETZ <maploetz@us.ibm.com> Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/targeting/common/processMrw.pl25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/usr/targeting/common/processMrw.pl b/src/usr/targeting/common/processMrw.pl
index e3b28dcfc..065bc3b82 100644
--- a/src/usr/targeting/common/processMrw.pl
+++ b/src/usr/targeting/common/processMrw.pl
@@ -822,8 +822,8 @@ sub processPcie
$iop_swap{0}{1}{'11'}=$t[7];
$iop_swap{1}{0}{'00'}=$t[8];
- $iop_swap{1}{0}{'01'}=$t[9];
- $iop_swap{1}{0}{'10'}=$t[10];
+ $iop_swap{1}{0}{'10'}=$t[9];
+ $iop_swap{1}{0}{'01'}=$t[10];
$iop_swap{1}{0}{'11'}=$t[11];
$iop_swap{1}{1}{'00'}=$t[12];
$iop_swap{1}{1}{'10'}=$t[13];
@@ -923,25 +923,22 @@ sub processPcie
die "PCIE config for $iop,$iop_lane_swap[$iop],$lane_rev not found\n";
}
}
- my $lane_swap_attr0 = sprintf("%s,%s",$iop_lane_swap[0],
- $iop_lane_swap[1]);
- my $lane_swap_attr1 = sprintf("%s,0,%s,0",$iop_lane_swap[0],
- $iop_lane_swap[1]);
+
+ my $lane_rev_attr0 = sprintf("%s,%s",
+ oct($iop_swap_lu[0]),oct($iop_swap_lu[1]));
+ my $lane_rev_attr1 = sprintf("%s,0,%s,0",
+ oct($iop_swap_lu[0]),oct($iop_swap_lu[1]));
$targetObj->setAttribute($parentTarget, "PROC_PCIE_IOP_SWAP",
- $lane_swap_attr0);
+ $lane_rev_attr0);
$targetObj->setAttribute($parentTarget, "PROC_PCIE_IOP_SWAP_NON_BIFURCATED",
- $lane_swap_attr1);
+ $lane_rev_attr1);
$targetObj->setAttribute($parentTarget, "PROC_PCIE_IOP_SWAP_BIFURCATED",
"0,0,0,0");
-
- my $lane_rev_attr = sprintf("%s,0,%s,0",
- oct($iop_swap_lu[0]),oct($iop_swap_lu[1]));
-
$targetObj->setAttribute($parentTarget, "PROC_PCIE_IOP_REVERSAL",
- $lane_rev_attr);
+ "0,0,0,0");
$targetObj->setAttribute($parentTarget,
- "PROC_PCIE_IOP_REVERSAL_NON_BIFURCATED",$lane_rev_attr);
+ "PROC_PCIE_IOP_REVERSAL_NON_BIFURCATED","0,0,0,0");
$targetObj->setAttribute($parentTarget, "PROC_PCIE_IOP_REVERSAL_BIFURCATED",
"0,0,0,0");
OpenPOWER on IntegriCloud