summaryrefslogtreecommitdiffstats
path: root/src/build/buildpnor/PnorUtils.pm
diff options
context:
space:
mode:
authorNick Bofferding <bofferdn@us.ibm.com>2019-04-02 12:48:57 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2019-04-03 11:11:32 -0500
commitec86a5683941d4fdf7b5ec1740d7ede0dda730d2 (patch)
treee897ae601ae9bb2c35130e033f9e9f5b7e170895 /src/build/buildpnor/PnorUtils.pm
parent12b139b58521b371865bea758bf7ac049763bc8c (diff)
downloadtalos-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/PnorUtils.pm')
-rw-r--r--src/build/buildpnor/PnorUtils.pm4
1 files changed, 4 insertions, 0 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
OpenPOWER on IntegriCloud