coreboot-kgpe-d16/util/amdfwtool
Karthikeyan Ramasubramanian d7a5d9e9da util/amdfwtool: Add ability to split hash table
Hash table containing hashes of all signed PSP binaries is compiled at
build time and installed into the concerned CBFS. During boot, PSP
verstage reads the hash table binary and passes it to PSP bootloader.
PSP bootloader in turn uses the hash table to verify the signed PSP
binaries. Currently the hashes for all the signed PSP binaries are
compiled into one hash table. On upcoming platforms with more number of
signed PSP binaries, PSP bootloader does not have resources to handle
one monolithic hash table. Instead PSP bootloader recommends splitting
them into smaller hash tables (currently limited to 3 hash tables).

Update amdfwtool tool to support splitting hash tables. This is done by
adding an optional hash table id to the entries in the amdfw.cfg file.
By default, one hash table binary is always compiled and it's name is of
the format ${signed_rom}.hash. If an entry has a hash table id defined,
then this utility will compile a separate hash table binary whose name
is of the format ${signed_rom}.${N}.hash where N is the hash table id.

BUG=b:277292697
TEST=Build Skyrim BIOS image and boot to OS. Ensure that the hash table
is identical with and without this change. Perform suspend/resume
cycles, warm/cold reset cycles for 50 iterations each.
TEST=Artificially inject hash table id against some entries in
amdfw.cfg and ensure that the concerned hash table binaries are getting
compiled.

Change-Id: I7ef338d67695a34c33b5c166924832939f381191
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75188
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
2023-06-02 22:19:44 +00:00
..
.gitignore
Makefile amdfwtool: Move some funtions to other categorized source files 2023-03-24 14:04:31 +00:00
Makefile.inc amdfwtool: Move some funtions to other categorized source files 2023-03-24 14:04:31 +00:00
amdfwread.c
amdfwtool.c amdfwtool: Only use AMD_FW_RECOVERYAB_A on phoenix 2023-06-02 20:14:26 +00:00
amdfwtool.h util/amdfwtool: Add ability to split hash table 2023-06-02 22:19:44 +00:00
data_parse.c util/amdfwtool: Add ability to split hash table 2023-06-02 22:19:44 +00:00
description.md
handle_file.c amdfwtool: Move some funtions to other categorized source files 2023-03-24 14:04:31 +00:00
signed_psp.c util/amdfwtool: Add ability to split hash table 2023-06-02 22:19:44 +00:00