summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Zhang <jonzhang@meta.com>2022-12-01 17:13:41 -0800
committerFelix Held <felix-coreboot@felixheld.de>2022-12-05 14:34:55 +0000
commita3311b9f0f891c6f7740967273d58be4c7f86ded (patch)
treeb1b1528272a76c019fb9875ee68f748c7686fdaf
parent64bfc675a5c21716a6931ca015354a721a0898c0 (diff)
acpi/acpi.c: update ACPI table revisions
Update SRAT table revision to 3 according to ACPI spec. Add CEDT table revision according to CXL spec. Change-Id: Iecc3a9892b0f8093013b2a426749e2ec5c00803b Signed-off-by: Jonathan Zhang <jonzhang@meta.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70245 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <inforichland@gmail.com>
-rw-r--r--src/acpi/acpi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c
index c5672999b2..899d0f8813 100644
--- a/src/acpi/acpi.c
+++ b/src/acpi/acpi.c
@@ -2085,8 +2085,8 @@ int get_acpi_table_revision(enum acpi_tables table)
return 4;
case SSDT: /* ACPI 3.0 up to 6.3: 2 */
return 2;
- case SRAT: /* ACPI 2.0: 1, ACPI 3.0: 2, ACPI 4.0 up to 6.3: 3 */
- return 1; /* TODO Should probably be upgraded to 2 */
+ case SRAT: /* ACPI 2.0: 1, ACPI 3.0: 2, ACPI 4.0 up to 6.4: 3 */
+ return 3;
case HMAT: /* ACPI 6.4: 2 */
return 2;
case DMAR:
@@ -2119,6 +2119,8 @@ int get_acpi_table_revision(enum acpi_tables table)
return 5;
case BERT:
return 1;
+ case CEDT: /* CXL 3.0 section 9.17.1 */
+ return 1;
case CRAT:
return 1;
case LPIT: /* ACPI 5.1 up to 6.3: 0 */