coreboot-kgpe-d16/src/soc/intel/broadwell
Shelley Chen ad9cd687b8 mrc_cache: Add mrc_cache fetch functions to support non-x86 platforms
Create two new functions to fetch mrc_cache data (replacing
mrc_cache_get_current):

- mrc_cache_load_current: fetches the mrc_cache data and drops it into
  the given buffer.  This is useful for ARM platforms where the mmap
  operation is very expensive.

- mrc_cache_mmap_leak: fetch the mrc_cache data and puts it into a
  given buffer.  This is useful for platforms where the mmap operation
  is a no-op (like x86 platforms).  As the name mentions, we are not
  freeing the memory that we allocated with the mmap, so it is the
  caller's responsibility to do so.

Additionally, we are replacing mrc_cache_latest with
mrc_cache_get_latest_slot_info, which does not check the validity of
the data when retrieving the current mrc_cache slot.  This allows the
caller some flexibility in deciding where they want the mrc_cache data
stored (either in an mmaped region or at a given address).

BUG=b:150502246
BRANCH=None
TEST=Testing on a nami (x86) device:
     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: I259dd4f550719d821bbafa2d445cbae6ea22e988
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44006
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-08-24 23:30:50 +00:00
..
acpi src/**/acpi/smbus.asl: Drop dead code 2020-07-06 23:11:08 +00:00
bootblock src: Change BOOL CONFIG_ to CONFIG() in comments & strings 2020-07-26 21:20:30 +00:00
include/soc src: Remove unused 'include <stdint.h> 2020-07-14 16:11:10 +00:00
romstage mrc_cache: Add mrc_cache fetch functions to support non-x86 platforms 2020-08-24 23:30:50 +00:00
acpi.c soc/intel/broadwell: Add RMRRs after all DRHDs 2020-08-04 21:43:35 +00:00
adsp.c ACPI: Drop typedef global_nvs_t 2020-06-30 09:19:10 +00:00
chip.c device/pci_device: Extract pci_domain_set_resources from SOC 2020-05-12 20:07:25 +00:00
chip.h broadwell: Factor out PIRQ routing from devicetree 2020-07-28 08:52:42 +00:00
cpu.c soc/intel/common: add TCC activation functionality 2020-06-28 21:47:52 +00:00
cpu_info.c src: Remove unused 'include <cpu/x86/msr.h>' 2020-07-14 16:14:09 +00:00
ehci.c
elog.c elog: rename ELOG_WAKE_SOURCE_GPIO to ELOG_WAKE_SOURCE_GPE 2020-08-18 15:57:40 +00:00
fadt.c src: Use ACPI macros 2020-07-21 18:26:47 +00:00
finalize.c src: Remove unused '#include <cpu/x86/smm.h>' 2020-06-06 09:40:38 +00:00
gpio.c
hda.c
igd.c intel/gma: Only enable bus mastering if we are going to use it 2020-05-27 21:35:16 +00:00
iobp.c soc/intel/broadwell/iobp: Log success in pch_iobp_write() 2020-08-07 11:57:32 +00:00
Kconfig cpu,soc/intel: Drop select SMP 2020-07-26 20:59:52 +00:00
lpc.c broadwell: Factor out PIRQ routing from devicetree 2020-07-28 08:52:42 +00:00
Makefile.inc soc/intel/broadwell: Move acpi_fill_fadt to fadt.c 2020-07-14 22:33:13 +00:00
me.c
me_status.c
memmap.c
minihd.c
pch.c
pcie.c src: Never set ISA Enable on PCI bridges 2020-07-28 10:54:02 +00:00
pei_data.c src: Remove unused '#include <stdint.h>' 2020-05-13 08:48:17 +00:00
pmutil.c
ramstage.c ACPI: Drop typedef global_nvs_t 2020-06-30 09:19:10 +00:00
refcode.c src: Drop unused <cpu/x86/tsc.h> include 2020-07-14 16:14:33 +00:00
sata.c {sb,soc}/intel/**/*.c: Use macros for PCI COMMAND bits 2020-07-26 21:17:50 +00:00
serialio.c ACPI: Drop typedef global_nvs_t 2020-06-30 09:19:10 +00:00
smbus.c
smi.c ACPI: Replace smm_setup_structures() 2020-06-24 11:49:15 +00:00
smihandler.c SMM: Validate more user-provided pointers 2020-08-21 07:51:07 +00:00
smmrelocate.c src: Remove unused '#include <cpu/x86/lapic.h>' 2020-06-02 07:38:45 +00:00
systemagent.c soc/intel/broadwell/systemagent.c: Fix typo 2020-06-22 11:43:27 +00:00
tsc_freq.c src: Remove unused '#include <stdint.h>' 2020-05-13 08:48:17 +00:00
usb_debug.c src: Remove unused '#include <stdint.h>' 2020-05-13 08:48:17 +00:00
xhci.c