coreboot-kgpe-d16/payloads/libpayload/include
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
..
arm/arch libpayload: Fix guards in include/{arm,arm64,x86}/arch/barrier.h 2022-05-16 06:55:06 +00:00
arm64/arch libpayload: Fix guards in include/{arm,arm64,x86}/arch/barrier.h 2022-05-16 06:55:06 +00:00
arpa
mock/arch tests: Move x86 I/O functions to include/mock/arch/io.h 2021-11-04 15:07:38 +00:00
pci libpayload/storage: Add NVMe driver 2021-04-07 10:58:04 +00:00
storage libpayload/storage: Add NVMe driver 2021-04-07 10:58:04 +00:00
sys
udc
usb libpayload/usb: Add format string checking to usb_debug 2020-11-22 22:34:55 +00:00
x86/arch x86/cache.c: Implement dcache_* 2022-09-01 14:21:11 +00:00
archive.h
assert.h libpayload: Add mock assert support for unit testing purposes 2021-11-23 23:38:15 +00:00
boot_device.h libpayload: Add boot_device_read() function 2021-12-10 17:56:34 +00:00
cbfs.h libpayload/libcbfs: Add unverified_area APIs 2022-01-12 16:15:59 +00:00
cbfs_core.h libpayload: Implement new CBFS access API 2022-01-10 14:30:04 +00:00
cbfs_glue.h libpayload: Implement new CBFS access API 2022-01-10 14:30:04 +00:00
cbfs_legacy.h libpayload: Fix legacy CBFS code after recent refactoring 2022-01-14 00:41:13 +00:00
cbfs_ram.h
cbgfx.h libpayload: cbgfx: Support buffered I/O 2020-08-28 21:40:58 +00:00
coreboot_tables.h coreboot_tables: Add PCIe info to coreboot table 2022-05-19 16:34:55 +00:00
ctype.h payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00
die.h
endian.h treewide: Unify Google branding 2022-07-04 14:02:26 +00:00
errno.h
exception.h
fmap.h commonlib/bsd: Remove cb_err_t 2022-03-09 02:18:21 +00:00
fpmath.h
gdb.h
getopt.h
inttypes.h
ipchksum.h treewide: Unify Google branding 2022-07-04 14:02:26 +00:00
kconfig.h
keycodes.h
libpayload.h libpayload: Add commonlib/bsd/elog and its dependency 2022-06-09 13:33:35 +00:00
limits.h includes: Define `CHAR_BIT` in `limits.h` 2021-06-18 04:38:33 +00:00
lz4.h
lzma.h
malloc.h
multiboot_tables.h
panel.h
pci.h libpayload/pci: Add support for bus mapping 2022-05-20 02:51:33 +00:00
queue.h payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00
stdarg.h
stdbool.h libpayload: Add <stdbool.h> 2020-10-26 06:57:06 +00:00
stddef.h commonlib/bsd/helpers: Remove redundancy with libpayload defines 2022-03-30 21:21:47 +00:00
stdint.h
stdio.h
stdlib.h libpayload: Add const for dma_coherent argument 2022-08-24 21:27:46 +00:00
string.h payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00
strings.h
sysinfo.h coreboot_tables: Add PCIe info to coreboot table 2022-05-19 16:34:55 +00:00
term.h
time.h
unistd.h
video_console.h
wchar.h includes: Provide `wchar.h` with `wchar_t` and `wint_t` 2021-06-18 04:38:16 +00:00