From 4235fb6015b7f1ac78b21209cf2ff32b8eb27458 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 17 Jan 2023 02:51:11 +0100 Subject: soc/amd/glinda/agesa_acpi: use acpi_align_current to align IVRS & ALIB This changes the alignment of the IVRS table from 8 bytes to 16 bytes and aligns the ALIB table to a 16 byte boundary. Signed-off-by: Felix Held Change-Id: I965791fbbe499702e191dcbf1f5fbfcb5e1bab6b Reviewed-on: https://review.coreboot.org/c/coreboot/+/72026 Tested-by: build bot (Jenkins) Reviewed-by: Fred Reitberger --- src/soc/amd/glinda/agesa_acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/soc/amd') diff --git a/src/soc/amd/glinda/agesa_acpi.c b/src/soc/amd/glinda/agesa_acpi.c index 78c0e4cdf3..ae4f10284f 100644 --- a/src/soc/amd/glinda/agesa_acpi.c +++ b/src/soc/amd/glinda/agesa_acpi.c @@ -15,10 +15,11 @@ uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current acpi_ivrs_t *ivrs; /* add ALIB SSDT from HOB */ + current = acpi_align_current(current); current = add_agesa_fsp_acpi_table(AMD_FSP_ACPI_ALIB_HOB_GUID, "ALIB", rsdp, current); /* IVRS */ - current = ALIGN(current, 8); + current = acpi_align_current(current); ivrs = (acpi_ivrs_t *)current; acpi_create_ivrs(ivrs, acpi_fill_ivrs); current += ivrs->header.length; -- cgit v1.2.3