summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/picasso/psp_verstage
diff options
context:
space:
mode:
authorMartin Roth <martinroth@chromium.org>2020-10-28 13:51:42 -0600
committerFelix Held <felix-coreboot@felixheld.de>2020-11-06 18:52:49 +0000
commit03d06d3bcd368a8e635e3279d4f17336f09adef8 (patch)
tree8fd182abef09e3c65071a6d221647398b69e1c8b /src/soc/amd/picasso/psp_verstage
parent1597a213262d812503300dfec083f524dc113d67 (diff)
downloadcoreboot-03d06d3bcd368a8e635e3279d4f17336f09adef8.tar.gz
coreboot-03d06d3bcd368a8e635e3279d4f17336f09adef8.tar.bz2
coreboot-03d06d3bcd368a8e635e3279d4f17336f09adef8.zip
soc/amd/picasso: Up stack size to 40k for vboot hash buffer
Increasing the vboot hash buffer size greatly speeds up the SHA calculations. Going from a standard 4k buffer to a 36k buffer takes ~150ms of the boot and resume time. TEST=Build & boot see that boot time has decreased. BRANCH=Zork BUG=b:169217270 - Zork: SHA calculation in vboot takes too long Signed-off-by: Martin Roth <martinroth@chromium.org> Change-Id: Ibca868ad7be639c2a0ca1c4ba6d71123d8b83c92 Reviewed-on: https://review.coreboot.org/c/coreboot/+/46902 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/picasso/psp_verstage')
-rw-r--r--src/soc/amd/picasso/psp_verstage/Makefile.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/amd/picasso/psp_verstage/Makefile.inc b/src/soc/amd/picasso/psp_verstage/Makefile.inc
index 4f1642bdf73c..0986fd875034 100644
--- a/src/soc/amd/picasso/psp_verstage/Makefile.inc
+++ b/src/soc/amd/picasso/psp_verstage/Makefile.inc
@@ -5,6 +5,9 @@ verstage-generic-ccopts += -I$(src)/vendorcode/amd/fsp/picasso/include
verstage-generic-ccopts += -D__USER_SPACE__
CPPFLAGS_common += -I$(VBOOT_SOURCE)/firmware/2lib/include/
+# This size should match the size in the linker script.
+CFLAGS_arm += -Wstack-usage=40960
+
verstage-y += delay.c
verstage-y += fch.c
verstage-y += pmutil.c