coreboot/src/include/cpu/x86
Arthur Heymans 3134a81525 cpu/x86/cache: CLFLUSH programs to memory before running
When cbmem is initialized in romstage and postcar placed in the stage
cache + cbmem where it is run, the assumption is made that these are
all in UC memory such that calling INVD in postcar is OK.

For performance reasons (e.g. postcar decompression) it is desirable
to cache cbmem and the stage cache during romstage.

Another reason is that AGESA sets up MTRR during romstage to cache all
dram, which is currently worked around by using additional MTRR's to
make that UC.

TESTED on asus/p5ql-em, up/squared on both regular and S3 resume
       bootpath. Sometimes there are minimal performance improvements
       when cbmem is cached (few ms).

Change-Id: I7ff2a57aee620908b71829457ea0f5a0c410ec5b
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37196
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2023-03-13 13:42:32 +00:00
..
bist.h include: Add SPDX identifiers to files missing them 2022-08-11 17:53:11 +00:00
cache.h cpu/x86/cache: CLFLUSH programs to memory before running 2023-03-13 13:42:32 +00:00
cr.h arch/x86: Use ENV_X86_64 instead of _x86_64_ 2021-07-06 06:09:13 +00:00
gdt.h arch/x86,cpu/x86: Introduce new method for accessing cpu_info 2021-10-05 22:38:45 +00:00
lapic.h treewide: Include <device/mmio.h> instead of <arch/mmio.h> 2022-12-10 05:07:14 +00:00
lapic_def.h include: Add SPDX-License-Identifiers to files missing them 2022-08-01 13:59:11 +00:00
legacy_save_state.h
mp.h soc/amd: Do SMM relocation via MSR 2022-09-15 14:47:52 +00:00
msr.h security/intel/txt: Add helper function to disable TXT 2023-01-09 04:30:39 +00:00
msr_access.h include/cpu/msr.h: transform into an union 2022-11-12 14:23:35 +00:00
mtrr.h include/cpu/x86/mtrr: define NUM_FIXED_MTRRS once in mtrr.h 2022-09-24 19:38:44 +00:00
name.h
pae.h
post_code.h include: Add SPDX-License-Identifiers to files missing them 2022-08-01 13:59:11 +00:00
save_state.h src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
smi_deprecated.h cpu/x86/smm: Add SMM_LEGACY_ASEG 2022-02-01 20:35:02 +00:00
smm.h cpu/x86/smm: Add PCI resource store functionality 2023-03-05 15:31:07 +00:00
tsc.h include: Add SPDX-License-Identifiers to files missing them 2022-08-01 13:59:11 +00:00