summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/common
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2018-06-28 10:35:26 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-07-12 19:19:26 -0400
commit71ef9b83a69bae1da8c92c30b71e4d6e23833439 (patch)
tree3c95490ee7d05ab71f41dd4df623ace4505ba777 /src/usr/targeting/common
parent3d15e71d67bf08373bd347c8dbd04f5a1250c24a (diff)
downloadtalos-hostboot-71ef9b83a69bae1da8c92c30b71e4d6e23833439.tar.gz
talos-hostboot-71ef9b83a69bae1da8c92c30b71e4d6e23833439.zip
Make REL_POS correct for sub-units
Need to ensure REL_POS is the logical position of the target unit relative to its immediate parent. This change affects the REL_POS of the following units: EX,CORE,MCS,MCA,MC,MI,DMI,OBUS_BRICK,SMPGROUP Change-Id: I416aa7fe312a995d10fc181da6d6356258a7e001 CQ:SW435611 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61568 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> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/common')
-rw-r--r--src/usr/targeting/common/Targets.pm23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/usr/targeting/common/Targets.pm b/src/usr/targeting/common/Targets.pm
index 93dfb0b74..9943eeec6 100644
--- a/src/usr/targeting/common/Targets.pm
+++ b/src/usr/targeting/common/Targets.pm
@@ -1155,7 +1155,7 @@ sub setCommonAttrForChiplet
$self->setAttribute($target, "AFFINITY_PATH", $affinity_path);
$self->setAttribute($target, "ORDINAL_ID", $sys_offset);
$self->setAttribute($target, "FAPI_POS", $sys_offset);
- $self->setAttribute($target, "REL_POS", $pos);
+ $self->setAttribute($target, "REL_POS", $unit_pos);
my $pervasive_parent= getPervasiveForUnit("$tgt_type$pos");
if ($pervasive_parent ne "")
@@ -1420,32 +1420,15 @@ sub processMcaDimms
$self->setAttribute($dimm, "REL_POS", $port_num);
$self->setAttribute($dimm, "LOCATION_CODE",$loc_code);
- ## set all FAPI_POS
- my $MCBIST_PER_CHIP = $self->{UNIT_COUNTS}->
- {$proc_target}->{MCBIST};
- my $MCS_PER_CHIP = $self->{UNIT_COUNTS}->
- {$mcbist_target}->{MCS} * $MCBIST_PER_CHIP;
- my $MCA_PER_CHIP = $self->{UNIT_COUNTS}->
- {$mcs_target}->{MCA} * $MCS_PER_CHIP;
+ ## set FAPI_POS for dimm
my $DIMM_PER_MCA = 2;
- my $parent_proc_fapi_pos =
- $self->getAttribute($proc_target, "FAPI_POS");
-
- my $mcbist_pos = ($parent_proc_fapi_pos * $MCBIST_PER_CHIP) +
- $self->getAttribute($mcbist_target,"REL_POS");
- my $mcs_pos = ($parent_proc_fapi_pos * $MCS_PER_CHIP) +
- $self->getAttribute($mcs_target,"REL_POS");
- my $mca_pos = ($parent_proc_fapi_pos * $MCA_PER_CHIP) +
- $self->getAttribute($mca_target,"REL_POS");
+ my $mca_pos = $self->getAttribute($mca_target,"FAPI_POS");
my $dimm_pos = ($mca_pos * $DIMM_PER_MCA) +
$self->getAttribute($dimm,"REL_POS");
$self->setAttribute($dimm,"FAPI_NAME",
$self->getFapiName($type, $node, $dimm_pos));
- $self->setAttribute($mcbist_target, "FAPI_POS", $mcbist_pos);
- $self->setAttribute($mcs_target, "FAPI_POS", $mcs_pos);
- $self->setAttribute($mca_target, "FAPI_POS", $mca_pos);
$self->setAttribute($dimm, "FAPI_POS", $dimm_pos);
$self->{huid_idx}->{$type} = $dimm_pos;
OpenPOWER on IntegriCloud