diff options
author | Nick Bofferding <bofferdn@us.ibm.com> | 2019-04-02 12:48:57 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2019-04-03 11:11:32 -0500 |
commit | ec86a5683941d4fdf7b5ec1740d7ede0dda730d2 (patch) | |
tree | e897ae601ae9bb2c35130e033f9e9f5b7e170895 /src/build/buildpnor | |
parent | 12b139b58521b371865bea758bf7ac049763bc8c (diff) | |
download | talos-hostboot-ec86a5683941d4fdf7b5ec1740d7ede0dda730d2.tar.gz talos-hostboot-ec86a5683941d4fdf7b5ec1740d7ede0dda730d2.zip |
Decrease WOFDATA partition by 1 MB until HBI space can be reduced
Decreases the WOFDATA partition by 1 MB until an inbound change to
reduce HBI size dramatically using compressed pages arrives. This change
only applies to the default, HB standalone layout
Change-Id: I7dd5d046dd684ad789eccd89d9c8416c1cc33875
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75405
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Matthew Raybuck <matthew.raybuck@ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/build/buildpnor')
-rw-r--r-- | src/build/buildpnor/PnorUtils.pm | 4 | ||||
-rw-r--r-- | src/build/buildpnor/defaultPnorLayout.xml | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/build/buildpnor/PnorUtils.pm b/src/build/buildpnor/PnorUtils.pm index 0d26ebc91..3a8d22df2 100644 --- a/src/build/buildpnor/PnorUtils.pm +++ b/src/build/buildpnor/PnorUtils.pm @@ -366,6 +366,10 @@ sub checkSpaceConstraints my $eyeCatch = $sectionHash{$layoutKey}{eyeCatch}; my $physicalRegionSize = $sectionHash{$layoutKey}{physicalRegionSize}; + my $pctUtilized = sprintf("%.2f", $filesize / $physicalRegionSize * 100); + my $freeBytes = $physicalRegionSize - $filesize; + print "$eyeCatch is $pctUtilized% utilized ($freeBytes of $physicalRegionSize bytes free)\n"; + if($filesize > $physicalRegionSize) { # If this is a test run increase HBI size by PAGE_SIZE until all test diff --git a/src/build/buildpnor/defaultPnorLayout.xml b/src/build/buildpnor/defaultPnorLayout.xml index 21c909fe7..bb59a60fa 100644 --- a/src/build/buildpnor/defaultPnorLayout.xml +++ b/src/build/buildpnor/defaultPnorLayout.xml @@ -257,7 +257,11 @@ Layout Description 40 tables by default, plus ECC --> <eyeCatch>WOFDATA</eyeCatch> <physicalOffset>0x3258000</physicalOffset> - <physicalRegionSize>0xC00000</physicalRegionSize> + <!-- TODO RTC: 208004 + Reduced by MB total to allow HBI + tests to + fit in PNOR, need to increase back 1 MB once HBI size + is reduced. Left comment above alone --> + <physicalRegionSize>0xB00000</physicalRegionSize> <side>sideless</side> <sha512Version/> <ecc/> |