coreboot-kgpe-d16/src
Shelley Chen b4a4f59dd2 mrc_cache: Update mrc_cache data in romstage
Previously, we were writing to cbmem after memory training and then
writing the training data from cbmem to mrc_cache in ramstage.  We
were doing this because we were unable to read/write to SPI
simultaneously on older x86 chips.  Now that newer chips allow for
simultaneously reads and writes, we can move the mrc_cache update into
romstage.  This is beneficial if there is a reboot for some reason
after memory training but before the previous mrc_cache_stash_data
call originally in ramstage.  If this happens, we would lose all the
mrc_cache training data in the next boot even though we've already
performed the memory training.

Added new config BOOT_DEVICE_SPI_FLASH_NO_EARLY_WRITES to accomodate
older x86 platforms that don't do mmapping but still want to use the
cbmem to store the mrc_cache data in order to write the mrc_cache data
back at a later time.  We are maintaining the use of cbmem for these
older platforms because we have no way of validating the earlier write
back to mrc_cache at this time.

BUG=b:150502246
BRANCH=None
TEST=reboot from ec console.  Make sure memory training happens.
     reboot from ec console.  Make sure that we don't do training again.

Signed-off-by: Shelley Chen <shchen@google.com>
Change-Id: I3430bda45484cb8c2b01ab9614508039dfaac9a3
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44196
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-10-02 23:11:39 +00:00
..
acpi acpi: Add SSDT pstate helper functions 2020-09-22 16:06:34 +00:00
arch cpu/qemu-x86/car: Move long mode entry right before c entry 2020-09-29 12:27:04 +00:00
commonlib
console
cpu drivers/spi: Add BOOT_DEVICE_SPI_FLASH_NO_EARLY_WRITES config 2020-10-02 23:11:04 +00:00
device superio/common: Fix NULL pointer dereferences 2020-09-28 09:31:28 +00:00
drivers mrc_cache: Update mrc_cache data in romstage 2020-10-02 23:11:39 +00:00
ec ec/hp/kbc1126: Support not putting EC firmware in CBFS 2020-09-28 09:26:54 +00:00
include soc/intel/jasperlake: Add IGD, MCH Device ID 2020-09-29 06:52:40 +00:00
lib lib/Makefile.inc: fix name of config string 2020-09-26 19:33:49 +00:00
mainboard mb/clevo/l140cu: Add variant specific romstage.c to build 2020-10-02 19:22:28 +00:00
northbridge drivers/spi: Add BOOT_DEVICE_SPI_FLASH_NO_EARLY_WRITES config 2020-10-02 23:11:04 +00:00
security security/intel/stm: Fix size_t printf format error 2020-10-01 18:59:18 +00:00
soc soc/intel/braswell: Increase dcache size 2020-10-02 23:11:16 +00:00
southbridge sb/intel/lynxpoint/acpi/pch.asl: Drop unused lines 2020-09-27 22:46:41 +00:00
superio superio/ite: Distinguish between chips for PECI readings 2020-09-22 01:11:02 +00:00
vendorcode vc/amd/fsp/picasso: Add bit definitions for PSP info in transfer block 2020-10-01 00:47:58 +00:00
Kconfig treewide/Kconfig: Drop unneeded empty lines 2020-09-21 16:30:14 +00:00