Skip to content

Commit

Permalink
Setting PEER TARGET for smpgroup targets
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
venkateshsainath authored and wghoffa committed Feb 1, 2018
1 parent b61115d commit 9e90e3c
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/usr/targeting/common/processMrw.pl
Expand Up @@ -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");
Expand Down Expand Up @@ -1309,19 +1310,17 @@ 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";
## 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);
Expand All @@ -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",
Expand Down

0 comments on commit 9e90e3c

Please sign in to comment.