summaryrefslogtreecommitdiffstats
path: root/src/build/simics
diff options
context:
space:
mode:
authorDean Sanner <dsanner@us.ibm.com>2014-09-11 15:00:35 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-10-03 08:59:48 -0500
commite6a3a19406beff19c2c222a680306a2db982d06e (patch)
tree48e0a8fecb36a41945ef3f817db89fa5409c26a6 /src/build/simics
parent5c07a9aed24ec11be423b80771d0870d218bd07c (diff)
downloadtalos-hostboot-e6a3a19406beff19c2c222a680306a2db982d06e.tar.gz
talos-hostboot-e6a3a19406beff19c2c222a680306a2db982d06e.zip
Updates to make Venice Simics model work
RTC: 95325 Change-Id: Iccc99e293c7031a4d926be061c7a41b8c55f8f13 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13326 Tested-by: Jenkins Server Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/simics')
-rwxr-xr-xsrc/build/simics/hb-pnor-vpd-preload.pl41
-rwxr-xr-xsrc/build/simics/startup.simics2
2 files changed, 23 insertions, 20 deletions
diff --git a/src/build/simics/hb-pnor-vpd-preload.pl b/src/build/simics/hb-pnor-vpd-preload.pl
index 973c32222..fabd2cd3a 100755
--- a/src/build/simics/hb-pnor-vpd-preload.pl
+++ b/src/build/simics/hb-pnor-vpd-preload.pl
@@ -6,7 +6,9 @@
#
# OpenPOWER HostBoot Project
#
-# COPYRIGHT International Business Machines Corp. 2012,2014
+# Contributors Listed Below - COPYRIGHT 2012,2014
+# [+] International Business Machines Corp.
+#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -51,6 +53,7 @@ my $emptyCVPD;
($emptyCVPDfh, $emptyCVPD) = tempfile();
my $mvpdFile = "procmvpd.dat";
+my $mvpdFile_ven = "procmvpd_ven.dat";
my $cvpdFile = "cvpd.dat";
my $spdFile = "dimmspd.dat";
my $sysMVPD = "sysmvpd.dat";
@@ -150,6 +153,13 @@ elsif(length($procConfig) != $maxProcs)
exit 1;
}
+#if Machine is HABANERO exit out -- HB collects the VPD itself
+if($machine eq "HABANERO")
+{
+ print "PNOR VPD Data Build Not needed.\n";
+ exit 0;
+}
+
getCentaurConfig();
createMVPDData();
createCVPDData();
@@ -271,7 +281,14 @@ sub createMVPDData
if( substr($procConfig,$proc,1) =~ /1/ )
{
# Use real data to the full image.
- $sourceFile = "$dataPath/$mvpdFile";
+ if( $machine eq "VENICE" )
+ {
+ $sourceFile = "$dataPath/$mvpdFile_ven";
+ }
+ else
+ {
+ $sourceFile = "$dataPath/$mvpdFile";
+ }
}
else
{
@@ -464,26 +481,12 @@ sub getCentaurConfig
{
# Plugging order is:
# Processor 0 - 7
- # MCS 4 - 7, then 0 - 3
- if( ($numCentPerProc <= 4) &&
- ($mcs >= 4) &&
- ($mcs <= (4 + ($numCentPerProc - 1))) )
+ # MCS 0 - 7, then 0 - 3
+ if( $mcs >= 0 &&
+ $mcs <= (($numCentPerProc - 1)) )
{
$mcsArray[$mcs] = 1;
}
- elsif( $numCentPerProc > 4 )
- {
- if( $mcs >= 4 &&
- $mcs <= 7 )
- {
- $mcsArray[$mcs] = 1;
- }
- elsif( $mcs >= 0 &&
- $mcs < ($numCentPerProc - 4) )
- {
- $mcsArray[$mcs] = 1;
- }
- }
}
elsif( $machine eq "TULETA" )
{
diff --git a/src/build/simics/startup.simics b/src/build/simics/startup.simics
index 096f1a2c1..bd7db5b3d 100755
--- a/src/build/simics/startup.simics
+++ b/src/build/simics/startup.simics
@@ -3,7 +3,7 @@ $hb_startup_path = (lookup-file hbfw/startup.simics)
$hb_script_location = (python "''.join(map('/'.__add__,\""+$hb_startup_path+"\"[1:].split('/')[0:-1]))")
python "os.environ['HB_TOOLPATH'] = \""+$hb_script_location+"\""
-$hb_machine = (shell "env | grep 'GFW_P8_.*_PROC_CCIN' | sed 's/GFW_P8_\\(.*\\)_PROC_CCIN.*/\\1/'")
+$hb_machine = (shell "env | grep 'GFW_P8_.*_PROC_EC' | sed 's/GFW_P8_\\(.*\\)_PROC_EC.*/\\1/'")
$hb_machine = (python "\""+$hb_machine+"\".lower()")
python "os.environ['HB_MACHINE'] = \""+$hb_machine+"\""
OpenPOWER on IntegriCloud