diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2014-07-18 16:31:08 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-07-18 20:19:43 -0500 |
commit | 9b04633bd162d6878df9bff78dc8536726d3ac1d (patch) | |
tree | b135bcd69e805a7c4aa6dfea149dc5ace5e0b83c | |
parent | 0c0038211094918fa97413a633bfdd265ea72b97 (diff) | |
download | talos-hostboot-9b04633bd162d6878df9bff78dc8536726d3ac1d.tar.gz talos-hostboot-9b04633bd162d6878df9bff78dc8536726d3ac1d.zip |
Fix X bus HUID numbering
This is a fix for I5351cb312b3462675 - Fix centaur HUID string
Change-Id: I07d22125a0247174028a4814770c839323fbf366
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/12342
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
-rwxr-xr-x | src/usr/targeting/common/genHwsvMrwXml.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/targeting/common/genHwsvMrwXml.pl b/src/usr/targeting/common/genHwsvMrwXml.pl index 3779cba0c..42ffc6191 100755 --- a/src/usr/targeting/common/genHwsvMrwXml.pl +++ b/src/usr/targeting/common/genHwsvMrwXml.pl @@ -1534,7 +1534,7 @@ sub preCalculateAxBusesHUIDs my $uidstr = sprintf( "0x%02X%02X%04X", ${my_node}, $typenum, - $proc*MAX_PCIE_PER_PROC + $i); + $proc*$numperchip + $i); my $phys_path = "physical:sys-$sys/node-$my_node/proc-$proc/${type}bus-$i"; $hash_ax_buses->{$phys_path} = $uidstr; @@ -2722,7 +2722,7 @@ sub getBusInfo my $minbus = ($type eq "A") ? 0 : ($chipName eq "murano") ? 1 : 0; my $maxbus = ($type eq "A") ? 2 : ($chipName eq "murano") ? 1 : 3; - my $numperchip = ($type eq "A") ? 3 : 4; + my $numperchip = ($type eq "A") ? MAX_ABUS_PER_PROC : MAX_XBUS_PER_PROC; my $typenum = ($type eq "A") ? 0x0F : 0x0E; $type = lc( $type ); |