From 2aadfc2b5e14b618624d1a2986a5d2475dd7f8c3 Mon Sep 17 00:00:00 2001 From: Maximilian Brune Date: Mon, 16 Jun 2025 12:36:19 +0200 Subject: [PATCH] soc/amd/common/block/acpi: Add ACPI HEST table Adds skeleton code so that the HEST ACPI table is included as part of the ACPI tables propagated to the OS. The ACPI table can be included by mainboards by selecting SOC_AMD_COMMON_BLOCK_ACPI_HEST. TEST=Select the option, build the mainboard and see the output in Linux: [ 0.282277] HEST: Table parsing has been initialized. Change-Id: I69886a19764d6974cbe129a8a6bf717f7808fb08 Signed-off-by: Maximilian Brune Reviewed-on: https://review.coreboot.org/c/coreboot/+/88113 Reviewed-by: Benjamin Doron Tested-by: build bot (Jenkins) Reviewed-by: Anand Vaikar --- src/soc/amd/common/block/acpi/Kconfig | 4 ++++ src/soc/amd/common/block/acpi/Makefile.mk | 1 + src/soc/amd/common/block/acpi/hest.c | 12 ++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 src/soc/amd/common/block/acpi/hest.c diff --git a/src/soc/amd/common/block/acpi/Kconfig b/src/soc/amd/common/block/acpi/Kconfig index 90e66b2ca7..7f121b5fba 100644 --- a/src/soc/amd/common/block/acpi/Kconfig +++ b/src/soc/amd/common/block/acpi/Kconfig @@ -29,6 +29,10 @@ config SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE config SOC_AMD_COMMON_BLOCK_ACPI_GPIO bool +config SOC_AMD_COMMON_BLOCK_ACPI_HEST + bool + select ACPI_HEST + config SOC_AMD_COMMON_BLOCK_ACPI_IVRS bool diff --git a/src/soc/amd/common/block/acpi/Makefile.mk b/src/soc/amd/common/block/acpi/Makefile.mk index 763a3bc61a..50de3459d4 100644 --- a/src/soc/amd/common/block/acpi/Makefile.mk +++ b/src/soc/amd/common/block/acpi/Makefile.mk @@ -7,6 +7,7 @@ smm-y += acpi.c ramstage-y += pm_state.c ramstage-y += tables.c ramstage-$(CONFIG_ACPI_BERT) += bert.c +ramstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPI_HEST) += hest.c ramstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPI_ALIB) += alib.c ramstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPI_CPPC) += cppc.c ramstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE) += cpu_power_state.c diff --git a/src/soc/amd/common/block/acpi/hest.c b/src/soc/amd/common/block/acpi/hest.c new file mode 100644 index 0000000000..c6d6ec1ebb --- /dev/null +++ b/src/soc/amd/common/block/acpi/hest.c @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include +#include +#include +#include + +uintptr_t acpi_soc_fill_hest(acpi_hest_t *hest, uintptr_t current, void *log_mem) +{ + hest->error_source_count = 0; + return current; +}