summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/common/processMrw.pl
diff options
context:
space:
mode:
authorVenkatesh Sainath <vsainath@in.ibm.com>2018-02-01 06:25:55 -0600
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2018-02-01 11:57:36 -0500
commit9e90e3ccee3c2a0c0bef8ab364fb222cc0017b3b (patch)
tree7d6a09474a1c6777a385091db30c0fe5177ef9fb /src/usr/targeting/common/processMrw.pl
parentb61115da3278f4c40ab5e5b61c42d4fd0b14dcb3 (diff)
downloadtalos-hostboot-9e90e3ccee3c2a0c0bef8ab364fb222cc0017b3b.tar.gz
talos-hostboot-9e90e3ccee3c2a0c0bef8ab364fb222cc0017b3b.zip
Setting PEER TARGET for smpgroup targets
Change-Id: I419cc82b93cf4aba2817b6e0ad90d49264843dca Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53154 Tested-by: Jenkins Server <pfd-jenkins+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: Prachi Gupta <pragupta@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/common/processMrw.pl')
-rwxr-xr-xsrc/usr/targeting/common/processMrw.pl20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/usr/targeting/common/processMrw.pl b/src/usr/targeting/common/processMrw.pl
index 1dd635106..9aadbceab 100755
--- a/src/usr/targeting/common/processMrw.pl
+++ b/src/usr/targeting/common/processMrw.pl
@@ -1191,6 +1191,7 @@ sub processObus
$obus = $targetObj->findConnections($target,"ABUS", "");
if ($obus ne "")
{
+ $targetObj->setAttribute($target, "BUS_TYPE", "ABUS");
if ($targetObj->isBadAttribute($target, "PEER_PATH"))
{
$targetObj->setAttribute($target, "PEER_PATH","physical:na");
@@ -1309,6 +1310,7 @@ sub processAbus
my $aBus = shift;
my $abussource = $aBus->{SOURCE};
+ my $abusdest = $aBus->{DEST};
my $abus_dest_parent = $aBus->{DEST_PARENT};
my $bustype = $targetObj->getBusType($abussource);
# print"Found bus from $abussource to $abus_dest_parent and $bustype\n";
@@ -1316,12 +1318,9 @@ sub processAbus
## set attributes for both directions
my $phys1 = $targetObj->getAttribute($target, "PHYS_PATH");
my $phys2 = $targetObj->getAttribute($abus_dest_parent, "PHYS_PATH");
-# print"Myside: $phys1\n";
-# print"Other side: $phys2\n";
$targetObj->setAttribute($abus_dest_parent, "PEER_TARGET",$phys1);
$targetObj->setAttribute($target, "PEER_TARGET",$phys2);
-
$targetObj->setAttribute($abus_dest_parent, "PEER_PATH", $phys1);
$targetObj->setAttribute($target, "PEER_PATH", $phys2);
@@ -1330,6 +1329,21 @@ sub processAbus
$targetObj->setAttribute($target, "PEER_HUID",
$targetObj->getAttribute($abus_dest_parent, "HUID"));
+ $targetObj->setAttribute($abussource, "PEER_TARGET",
+ $targetObj->getAttribute($abusdest, "PHYS_PATH"));
+ $targetObj->setAttribute($abusdest, "PEER_TARGET",
+ $targetObj->getAttribute($abussource, "PHYS_PATH"));
+
+ $targetObj->setAttribute($abussource, "PEER_PATH",
+ $targetObj->getAttribute($abusdest, "PHYS_PATH"));
+ $targetObj->setAttribute($abusdest, "PEER_PATH",
+ $targetObj->getAttribute($abussource, "PHYS_PATH"));
+
+ $targetObj->setAttribute($abussource, "PEER_HUID",
+ $targetObj->getAttribute($abusdest, "HUID"));
+ $targetObj->setAttribute($abusdest, "PEER_HUID",
+ $targetObj->getAttribute($abussource, "HUID"));
+
# copy Abus attributes to proc
my $abus = $targetObj->getFirstConnectionBus($target);
$targetObj->setAttribute($target, "EI_BUS_TX_MSBSWAP",
OpenPOWER on IntegriCloud