From 7cfa513f0c665f335c8004835f255030aefb9c7f Mon Sep 17 00:00:00 2001 From: Bill Hoffa Date: Mon, 29 Jul 2019 10:45:31 -0500 Subject: Process MRW MC Targets Correctly - Use the processMc function that finds the correct child target types Change-Id: I7945492a5f399a9cad68815d26953aa91aad4a72 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/81255 Tested-by: Jenkins Server Reviewed-by: Christian R Geddes Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Michael Baiocchi Reviewed-by: Daniel M Crowell --- src/usr/targeting/common/Targets.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/usr/targeting/common') diff --git a/src/usr/targeting/common/Targets.pm b/src/usr/targeting/common/Targets.pm index 6c326eb28..03f3c2241 100644 --- a/src/usr/targeting/common/Targets.pm +++ b/src/usr/targeting/common/Targets.pm @@ -1956,6 +1956,12 @@ sub processMc foreach my $dmi (@{ $self->getTargetChildren($mi) }) { + my $child_type = $self->getType($dmi); + if ($child_type ne "DMI") + { + next; + } + my $dmi_num = $self->getAttribute($dmi, "CHIP_UNIT"); my $membufnum = $proc * $self->{MAX_DMI} + $dmi_num; @@ -1982,7 +1988,7 @@ sub processMc my $parent_physical = $self->getAttribute($membuf, "PHYS_PATH"); $self->setAttribute($membuf,"FAPI_NAME", - $self->getFapiName($membuf_type, $node, $membufnum)); + $self->getFapiName($membuf_type, $node, $membufnum, $memCardOffset)); my $fapi_pos = (($node * $maxInstance{"PROC"}) + $proc ) * $self->{MAX_DMI} + $dmi_num; -- cgit v1.2.1