coreboot-kgpe-d16/payloads/libpayload/arch/x86
Hsin-Te Yuan cb28d649ea x86/cache.c: Implement dcache_*
A new ChromeOS automated test will be introduced to check the cbmem log
of diagnostic boot mode. Because the diagnostic boot does not allow
booting into kernel, the test must perform AP reset and then check the
cbmem log afterwards. However, the memory content might not be written
back to memory (from CPU cache) during AP reset because of the cache
snooping mechanism on x86. Hence, some API to flush cache is needed.

Implement dcache_* to allow flushing cache proactively in x86. To avoid
unnecessary flush, check dma_coherent before calling dcache_* functions,
which will be always true in x86. Therefore, this change won't affect
the original functionality.

BUG=b:190026346
TEST=FW_NAME=primus emerge-brya libpayload

Cq-Depend: chromium:3841252
Signed-off-by: Hsin-Te Yuan <yuanhsinte@google.com>
Change-Id: I622d8b1cc652cbe477954a900885d12e6494d94d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66578
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
2022-09-01 14:21:11 +00:00
..
Kconfig
Makefile.inc x86/cache.c: Implement dcache_* 2022-09-01 14:21:11 +00:00
apic.c
boot_media.c libpayload/x86: Fix boot_device_read() and hook it up 2022-02-23 22:47:09 +00:00
cache.c x86/cache.c: Implement dcache_* 2022-09-01 14:21:11 +00:00
coreboot.c libpayload: Add CBMEM_IMD_ENTRY support to coreboot tables parser 2021-12-03 16:51:41 +00:00
delay.c
exception.c
exception_asm.S
exec.S
gdb.c
head.S
libpayload.ldscript
main.c
multiboot.c
rom_media.c
selfboot.c
string.c treewide: Unify Google branding 2022-07-04 14:02:26 +00:00
sysinfo.c
timer.c
util.S
virtual.c