summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/common/processMrw.pl
diff options
context:
space:
mode:
authorPrachi Gupta <pragupta@us.ibm.com>2018-02-05 15:44:07 -0600
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2018-02-06 13:13:00 -0500
commit77224965fc6cb49efbfed76a0f4c480ddb010c5e (patch)
treecf27ee36a1fa9a88c649c670c2a475ac5d0fc9ad /src/usr/targeting/common/processMrw.pl
parent7b2ee59900c674255f559034535923709b4ae070 (diff)
downloadtalos-hostboot-77224965fc6cb49efbfed76a0f4c480ddb010c5e.tar.gz
talos-hostboot-77224965fc6cb49efbfed76a0f4c480ddb010c5e.zip
processMrw: multinode updates
-- correctly set FABRIC_TO_PHYSICAL_NODE_MAP -- FAPI_POS for node target was fixed Change-Id: I7822c8cc1a04ff9cb2b9fa9e12eb92b3fe839fe9 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53400 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: SWATHI M. BHATTIPROLU <bhmadhur@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sakethan R. Kotta <sakkotta@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.pl18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/usr/targeting/common/processMrw.pl b/src/usr/targeting/common/processMrw.pl
index 9aadbceab..9cd871726 100755
--- a/src/usr/targeting/common/processMrw.pl
+++ b/src/usr/targeting/common/processMrw.pl
@@ -2326,6 +2326,9 @@ sub get_max_compute_nodes
##
#Proceeed only for sys targets
##
+ #For fabric_node_map, we store the node's position at the node
+ #position's index
+ my @fabric_node_map = (255, 255, 255, 255, 255, 255, 255, 255);
if ($targetObj->getType($sysTarget) eq "SYS")
{
foreach my $child (@{$targetObj->getTargetChildren($sysTarget)})
@@ -2335,7 +2338,9 @@ sub get_max_compute_nodes
my $attrVal = $targetObj->getAttribute($child, "ENC_TYPE");
if ($attrVal eq "CEC")
{
- $retVal++;
+ my $fapi_pos = $targetObj->getAttribute($child, "FAPI_POS");
+ $fabric_node_map[$fapi_pos] = $fapi_pos;
+ $retVal++;
}
}
}
@@ -2348,6 +2353,17 @@ sub get_max_compute_nodes
{
$retVal = 1;
}
+
+ #Convert array into a comma separated string
+ my $node_map = "";
+ foreach my $i (@fabric_node_map)
+ {
+ $node_map .= "$i,";
+ }
+
+ #remove the last comma
+ $node_map =~ s/.$//;
+ $targetObj->setAttribute($sysTarget, "FABRIC_TO_PHYSICAL_NODE_MAP", $node_map);
}
return $retVal;
}
OpenPOWER on IntegriCloud