summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting
diff options
context:
space:
mode:
authorSwathi Madhuri Bhattiprolu <bhmadhur@in.ibm.com>2018-06-25 03:47:15 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-06-26 17:11:50 -0400
commitcb5b45d887ba6e5f999f7d9c17cf77cc8a69e6a3 (patch)
treebcb13f69ce86f3e1020e7e79aef33e979eb44e75 /src/usr/targeting
parentcfc5fb7993fad6ac737340b2dd1a569817dad987 (diff)
downloadtalos-hostboot-cb5b45d887ba6e5f999f7d9c17cf77cc8a69e6a3.tar.gz
talos-hostboot-cb5b45d887ba6e5f999f7d9c17cf77cc8a69e6a3.zip
DDR3 Support for Fleetwood
Change-Id: I991ca639d2917c2618dbf3eec65347bd794c2356 RTC:175881 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61257 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: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/targeting')
-rw-r--r--src/usr/targeting/common/Targets.pm13
-rwxr-xr-xsrc/usr/targeting/common/processMrw.pl7
2 files changed, 17 insertions, 3 deletions
diff --git a/src/usr/targeting/common/Targets.pm b/src/usr/targeting/common/Targets.pm
index d0b0b9e2e..93dfb0b74 100644
--- a/src/usr/targeting/common/Targets.pm
+++ b/src/usr/targeting/common/Targets.pm
@@ -596,7 +596,7 @@ sub prune
}
}
-## This function returns the position of the Node corresponding to the
+## This function returns the position of the Node corresponding to the
## incoming target
##
sub getParentNodePos
@@ -1590,7 +1590,7 @@ sub processMc
$self->setAttribute($membuf_child, "FAPI_POS", $fapi_pos);
$self->setAttribute($membuf_child, "ORDINAL_ID", $fapi_pos);
$self->setAttribute($membuf_child, "REL_POS", 0);
-
+
# HUID needs to be node relative
# L4 is 1 to 1 mapping with membuf
$self->{huid_idx}->{"L4"} = $membufnum;
@@ -1640,6 +1640,13 @@ sub processMc
## Trace the DDR busses to find connected DIMM
my $ddrs = $self->findConnections($membuf_child,"DDR4","");
+
+ if($ddrs eq "")
+ {
+ # on multi node system there is a possibility that either
+ # DDR4 or DDR3 dimms are connected under a node
+ my $ddrs = $self->findConnections($membuf_child,"DDR3","");
+ }
if ($ddrs ne "")
{
my $dimmPos=0;
@@ -1776,7 +1783,7 @@ sub setFsiAttributes
$self->setAttribute($target, "ALTFSI_MASTER_PORT", $fsi_port);
}
}
-
+
$self->setAttributeField($target, "FSI_OPTION_FLAGS","flipPort",
$flip_port);
$self->setAttributeField($target, "FSI_OPTION_FLAGS","reserved", "0");
diff --git a/src/usr/targeting/common/processMrw.pl b/src/usr/targeting/common/processMrw.pl
index 7e96a61bf..d52f2f4e3 100755
--- a/src/usr/targeting/common/processMrw.pl
+++ b/src/usr/targeting/common/processMrw.pl
@@ -2235,6 +2235,13 @@ sub processMembuf
# follow the DDR4 bus connection to find the 'ddr' targets
my $ddrs = $targetObj->findConnections($child,"DDR4","");
+ if($ddrs eq "")
+ {
+ # on multi node system there is a possibility that either
+ # DDR4 or DDR3 dimms are connected under a node
+ my $ddrs = $targetObj->findConnections($child,"DDR3","");
+ }
+
if ($ddrs ne "")
{
foreach my $ddr (@{$ddrs->{CONN}})
OpenPOWER on IntegriCloud