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>
This commit is contained in:
Jonathan Zhang 2022-12-01 17:13:41 -08:00 committed by Felix Held
parent 64bfc675a5
commit a3311b9f0f
1 changed files with 4 additions and 2 deletions

View File

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