coreboot-kgpe-d16/src
Felix Held 4dd7d11965 cpu/x86/mp_init: move printing of failure message into mp_init_with_smm
Each CPU/SoC checks the return value of the mp_init_with_smm and prints
the same error message if it wasn't successful, so move this check and
printk to mp_init_with_smm. For this the original mp_init_with_smm
function gets renamed to do_mp_init_with_smm and a new mp_init_with_smm
function is created which then calls do_mp_init_with_smm, prints the
error if it didn't return CB_SUCCESS and passes the return value of
do_mp_init_with_smm to its caller.

Since no CPU/SoC code handles a mp_init_with_smm failure apart from
printing a message, also add a comment at the mp_init_with_smm call
sites that the code might want to handle a failure.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I181602723c204f3e43eb43302921adf7a88c81ed
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58498
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
2021-10-22 01:27:07 +00:00
..
acpi acpigen,soc/amd,cpu/intel: rework static DWORD for CPPC table 2021-10-21 20:03:14 +00:00
arch arch/x86/smbios: Add support for wake-up type in smbios type 1 2021-10-21 20:06:59 +00:00
commonlib src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
console src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
cpu cpu/x86/mp_init: move printing of failure message into mp_init_with_smm 2021-10-22 01:27:07 +00:00
device src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
drivers cpu/x86/mp_init: use cb_err as status return type in remaining functions 2021-10-22 01:26:30 +00:00
ec ec/google/chromeec: Register USB-C mux operations 2021-10-06 22:20:32 +00:00
include cpu/x86/mp_init: use cb_err as status return type in remaining functions 2021-10-22 01:26:30 +00:00
lib lib/cbfs: Call rdev_unmap on hash mismatch 2021-10-20 15:55:21 +00:00
mainboard cpu/x86/mp_init: move printing of failure message into mp_init_with_smm 2021-10-22 01:27:07 +00:00
northbridge ACPI: Have common acpi_fill_mcfg() 2021-10-18 14:20:28 +00:00
security Revert "vboot_logic: Set VB2_CONTEXT_EC_TRUSTED in verstage_main" 2021-10-15 13:00:32 +00:00
soc cpu/x86/mp_init: move printing of failure message into mp_init_with_smm 2021-10-22 01:27:07 +00:00
southbridge southbridge/intel/common: Add an option to allow stitching of CSE binary 2021-10-19 16:08:58 +00:00
superio src/soc to src/superio: Fix spelling errors 2021-10-05 18:07:08 +00:00
vendorcode vc/amd/fsp/cezanne: Add UPD fsp_owns_pcie_resets to FSP-M for Cezanne 2021-10-11 15:55:35 +00:00
Kconfig lib/thread: Switch to using CPU_INFO_V2 2021-10-05 22:39:16 +00:00