coreboot-kgpe-d16/src/arch/x86
Patrick Rudolph a19b07fec1 security/memory: Clear memory in ramstage
* Add architecture independend way of clearing all DRAM
* Implemented in ramstage as MTRRs need to be set to speed up
  clearing. Takes up to 15 seconds per GiB otherwise.
* Use memset_pae on x86
* Add quirks for FSP1.0

Tested on P8H61M-Pro:
* Clears 4GiB in less than 1 second
Tested on wedge100s:
* Clears 8GiB in 2 seconds

Change-Id: Idaadb8fb438e5b95557c0f65a14534e8762fde20
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31550
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-07-02 08:46:00 +00:00
..
acpi mb: Set coreboot as DSDT's manufacturer model ID 2018-11-23 11:00:40 +00:00
include security/memory: Clear memory in ramstage 2019-07-02 08:46:00 +00:00
acpi.c arch: Add missing #include <commonlib/helpers.h> 2019-06-21 16:04:06 +00:00
acpi_bert_storage.c arch/x86/acpi_bert_storage.c: Fix coverity error CID 1395706 2018-09-15 12:43:26 +00:00
acpi_device.c arch/x86: Do not add properties to null DP packages 2019-05-29 16:42:36 +00:00
acpi_pld.c acpi_pld: Make it easier to define the ACPI USB device groups 2018-12-04 22:50:15 +00:00
acpi_s3.c arch: Add missing #include <commonlib/helpers.h> 2019-06-21 16:04:06 +00:00
acpigen.c acpigen: Add support for IndexField 2019-06-09 17:20:28 +00:00
acpigen_dsm.c
assembly_entry.S coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
boot.c src: Use 'include <string.h>' when appropriate 2019-03-20 20:27:51 +00:00
bootblock.ld coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
bootblock_crt0.S coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
bootblock_normal.c
bootblock_romcc.S coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
bootblock_simple.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
c_start.S coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
car.ld 3rdparty/blobs: Update submodule, SNB improvements 2019-06-17 08:15:04 +00:00
cbfs_and_run.c
cbmem.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
cf9_reset.c src: Use include <reset.h> when appropriate 2019-03-29 20:00:20 +00:00
cpu.c arch/x86/cpu: Add define and strings for Hygon 2019-06-21 09:11:14 +00:00
cpu_common.c cpuid: Add helper function for cpuid(1) functions 2018-12-13 04:32:57 +00:00
ebda.c arch/io.h: Drop unnecessary include 2019-03-04 15:08:03 +00:00
exception.c {arch,cpu}/x86, drivers/intel: Restore cpu_index error handling 2019-05-16 18:08:50 +00:00
exit_car.S coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
failover.ld Fix up remaining boolean uses of CONFIG_XXX to CONFIG(XXX) 2019-03-25 11:03:49 +00:00
gdt.c arch: Add missing #include <commonlib/helpers.h> 2019-06-21 16:04:06 +00:00
gdt_init.S arch/x86: Prepare GDT for x86_64 2019-03-06 20:00:55 +00:00
id.ld
id.S
idt.S arch/x86: remove nop padding from exception vectors 2018-04-26 15:18:57 +00:00
ioapic.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
Kconfig arch/x86/Kconfig: hide the "Bootblock behaviour" option on non-romcc 2019-06-15 17:25:01 +00:00
Makefile.inc Makefile.inc: Compile smm files independent ARCH_RAMSTAGE_X86_32/64 2019-06-06 16:41:35 +00:00
memcpy.c
memlayout.ld Fix up remaining boolean uses of CONFIG_XXX to CONFIG(XXX) 2019-03-25 11:03:49 +00:00
memmove.c
memset.c
mmap_boot.c src: Drop unused 'include <cbfs.h>' 2019-03-19 17:14:39 +00:00
mpspec.c cpuid: Add helper function for cpuid(1) functions 2018-12-13 04:32:57 +00:00
pirq_routing.c arch: Add missing #include <commonlib/helpers.h> 2019-06-21 16:04:06 +00:00
postcar.c arch/x86/postcar: Add separate timestamp for postcar stage 2019-03-07 17:21:23 +00:00
postcar_loader.c stage_cache: Make empty inline function if CONFIG_NO_STAGE_CACHE enable 2019-06-13 04:39:28 +00:00
prologue.inc
rdrand.c arch/x86/rdrand.c: Remove unneeded 'else' 2019-06-21 08:31:19 +00:00
smbios.c arch: Add missing #include <commonlib/helpers.h> 2019-06-21 16:04:06 +00:00
tables.c arch: Add missing #include <commonlib/helpers.h> 2019-06-21 16:04:06 +00:00
thread.c src/arch: Fix typo 2018-08-09 15:56:02 +00:00
thread_switch.S
timestamp.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
timestamp.inc arch/x86: Unify bootblock MMX register usage 2019-01-08 15:31:19 +00:00
verstage.c
wakeup.S arch/x86/wakeup.S: Use tabs instead of white spaces 2018-12-24 08:17:00 +00:00
walkcbfs.S