Skip to content

Commit

Permalink
Set correct VDDR_ID for Zaius (MRW Workaround)
Browse files Browse the repository at this point in the history
Change-Id: I7c21abf69886e448de3d503b2b7abaef1725e3c7
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38395
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-by: Dean Sanner <dsanner@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
wghoffa authored and dcrowell77 committed Mar 24, 2017
1 parent 8dbacd9 commit 6959017
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions src/usr/targeting/common/processMrw.pl
Expand Up @@ -41,6 +41,9 @@
my $report = 0;
my $sdr_file = "";

# TODO RTC:170860 - Remove this after dimm connector defines VDDR_ID
my $num_voltage_rails_per_proc = 1;

GetOptions(
"f" => \$force, # numeric
"x=s" => \$serverwiz_file, # string
Expand Down Expand Up @@ -179,6 +182,12 @@ sub processSystem

$targetObj->setAttribute($target, "XSCOM_BASE_ADDRESS", $base);

# TODO RTC:170860 - Remove this after dimm connector defines VDDR_ID
my $system_name = $targetObj->getAttribute($target,"SYSTEM_NAME");
if ($system_name =~ /ZAIUS/i)
{
$num_voltage_rails_per_proc = 2;
}
}

sub processIpmiSensors {
Expand Down Expand Up @@ -485,10 +494,18 @@ sub processProcessor

# TODO RTC:170860 - Eventually the dimm connector will
# contain this information and this can be removed
my $socket_pos = $targetObj->getAttribute($socket_target,
"POSITION");
$targetObj->setAttribute($child, "VDDR_ID", $socket_pos);

my $socket_pos = $targetObj->getAttribute($socket_target,
"POSITION");
if ($num_voltage_rails_per_proc > 1)
{
my $mcbist_pos = $targetObj->getAttribute($child, "CHIP_UNIT");
$targetObj->setAttribute($child, "VDDR_ID",
$socket_pos*$num_voltage_rails_per_proc + $mcbist_pos);
}
else
{
$targetObj->setAttribute($child, "VDDR_ID", $socket_pos);
}
}
elsif ($child_type eq "OCC")
{
Expand Down

0 comments on commit 6959017

Please sign in to comment.