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 <maximilian.brune@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/88113
Reviewed-by: Benjamin Doron <benjamin.doron00@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anand Vaikar <a.vaikar2021@gmail.com>
This commit is contained in:
Maximilian Brune 2025-06-16 12:36:19 +02:00 committed by Felix Held
commit 2aadfc2b5e
3 changed files with 17 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include <acpi/acpi_apei.h>
#include <acpi/acpi_gnvs.h>
#include <cbmem.h>
#include <console/console.h>
uintptr_t acpi_soc_fill_hest(acpi_hest_t *hest, uintptr_t current, void *log_mem)
{
hest->error_source_count = 0;
return current;
}