coreboot-kgpe-d16/src/include/cpu
Jeremy Compostella 4a2ce029fb cpu/x86/mp_init: Use clflush to write SIPI data back to RAM
Improve boot time performances by replacing the wbinvd instruction
with multiple clflush to ensure that the SIPI data is written back to
RAM.

According to some experimental measurements, the wbinvd execution
takes between 1.6 up and 6 milliseconds to complete. In the case of
the SIPI data, wbinvd unnecessarily flushes and invalidates the entire
cache. Indeed, the SIPI module is quite small (about 400 bytes) and
cflush'ing the associated cache lines is almost instantaneous,
typically less than 100 microseconds.

BUG=b/260455826
TEST=Successful boot on Skolas and Rex board

Change-Id: I0e00db8eaa6a3cb41bec3422572c8f2a9bec4057
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Suggested-by: Erin Park <erin.park@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75391
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
2023-05-31 14:22:31 +00:00
..
amd include/cpu/amd/mtrr: fix typo in get_top_of_mem_above_4gb 2023-04-23 21:41:29 +00:00
intel treewide: Remove 'extern' from functions declaration 2023-05-26 13:45:24 +00:00
power src/cpu/power9: move part of scom.h to scom.c 2023-04-18 13:05:56 +00:00
x86 cpu/x86/mp_init: Use clflush to write SIPI data back to RAM 2023-05-31 14:22:31 +00:00
cpu.h cpu/x86/mp_init.c: Keep track of initial lapic ID inside device_path 2023-04-06 15:13:28 +00:00