intel: Add MMA feature in coreboot
This patch implements Memory Margin Analysis feature in coreboot.
Few things to note
(1) the feature is enabled by setting CONFIG_MMA=y in the config file
(2) coreboot reads mma_test_metadata.bin from cbfs during romstage and
gets the name of MMA test name and test config name. Then coreboot finds
these files in CBFS.
If found, coreboot passes location and size of these files to FSP via
UPD params. Sets MrcFastBoot to 0 so that MRC happens and then MMA test
would be executed during memory init.
(3) FSP passes MMA results data in HOB and coreboot saves it in cbmem
(4) when system boots to OS after test is executed cbmem tool is used
to grab the MMA results data.
TEST=Build and Boot kunimitsu (FAB3) and executed MMA tests
Not tested on Glados
Signed-off-by: Patrick Georgi <email@example.com>
Original-Signed-off-by: Pratik Prajapati <firstname.lastname@example.org>
Original-Commit-Ready: Pratikkumar V Prajapati <email@example.com>
Original-Tested-by: Pratikkumar V Prajapati <firstname.lastname@example.org>
Original-Reviewed-by: Aaron Durbin <email@example.com>
Original-Reviewed-by: Pratikkumar V Prajapati <firstname.lastname@example.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <email@example.com>
7 files changed