diff options
Diffstat (limited to 'src/build/simics')
-rwxr-xr-x | src/build/simics/hb-pnor-vpd-preload.pl | 19 | ||||
-rwxr-xr-x | src/build/simics/hb-pnor-vpd-preload.py | 7 |
2 files changed, 21 insertions, 5 deletions
diff --git a/src/build/simics/hb-pnor-vpd-preload.pl b/src/build/simics/hb-pnor-vpd-preload.pl index 70fc244a7..72717fa94 100755 --- a/src/build/simics/hb-pnor-vpd-preload.pl +++ b/src/build/simics/hb-pnor-vpd-preload.pl @@ -6,7 +6,7 @@ # # OpenPOWER HostBoot Project # -# Contributors Listed Below - COPYRIGHT 2012,2016 +# Contributors Listed Below - COPYRIGHT 2012,2017 # [+] International Business Machines Corp. # # @@ -57,6 +57,7 @@ my $emptyMemVPD; my $mvpdFile = "procmvpd.dat"; my $mvpdFile_ven = "procmvpd_ven.dat"; my $mvpdFile_p9n = "procmvpd_p9n.dat"; +my $mvpdFile_p9c = "procmvpd_p9c.dat"; my $cvpdFile = "cvpd.dat"; my $dvpdFile = "dvpd.dat"; my $memVpdFile = $cvpdFile; @@ -302,6 +303,10 @@ sub createMVPDData { $sourceFile = "$dataPath/$mvpdFile_p9n"; } + elsif( $procChipType eq "p9c") + { + $sourceFile = "$dataPath/$mvpdFile_p9c"; + } else { $sourceFile = "$dataPath/$mvpdFile"; @@ -503,7 +508,7 @@ sub getMemoryConfig #use pre-defined Centaur Plugging order for( my $mcs = 0; $mcs < $MAX_MCS; $mcs++ ) { - debugMsg( "Mcs: $mcs" ); + debugMsg( "Mcs: $mcs CentPerProc: $numCentPerProc" ); if( $machine eq "MURANO" || $machine eq "NO_SP") { # Plugging order is: @@ -551,6 +556,16 @@ sub getMemoryConfig } } } + elsif( $machine eq "CUMULUS" ) + { + # Plugging order is: + # Processor 0 - 3 + # MCS 0 - 3 (1 Centaur/MCS) + if(($mcs % $MAX_MCS) >= 0 && ($mcs % $MAX_MCS) < 4) + { + $mcsArray[$mcs] = 1; + } + } elsif( $procChipType eq "p9n") { #There are no centaurs within a NIMBUS machine, but need to set diff --git a/src/build/simics/hb-pnor-vpd-preload.py b/src/build/simics/hb-pnor-vpd-preload.py index 49d97e2a2..1c2ce6a0d 100755 --- a/src/build/simics/hb-pnor-vpd-preload.py +++ b/src/build/simics/hb-pnor-vpd-preload.py @@ -5,7 +5,7 @@ # # OpenPOWER HostBoot Project # -# Contributors Listed Below - COPYRIGHT 2012,2016 +# Contributors Listed Below - COPYRIGHT 2012,2017 # [+] International Business Machines Corp. # # @@ -32,10 +32,11 @@ import shlex toolLoc = os.environ.get("HB_TOOLPATH"); thisSys = os.environ.get("HB_MACHINE").upper(); numProcs = os.environ.get( "NUM_PROCS"); +dimmsPerProc = os.environ.get( "DIMMS_PER_PROC"); numCentaurPerProcParm = ""; numCentaurPerProc = "0"; -if os.environ.has_key( "GFW_P9_%s_CENTAURS_PER_PROC" % thisSys ): - numCentaurPerProc=os.environ.get( "GFW_P9_%s_CENTAURS_PER_PROC" % thisSys ); +if (thisSys == "CUMULUS"): + numCentaurPerProc=str(int(dimmsPerProc)/2); numCentaurPerProcParm=" --numCentPerProc " + numCentaurPerProc; pass procChipTypeParm = ""; |