src/acpi: Add initial support for HMAT
commit2a4e1f4b470c73411a46290989c55165cd7968c9
authorJonathan Zhang <jonzhang@fb.com>
Thu, 1 Apr 2021 18:43:37 +0000 (1 11:43 -0700)
committerPatrick Georgi <pgeorgi@google.com>
Fri, 14 May 2021 08:56:59 +0000 (14 08:56 +0000)
treef39324f8640f3a2065674fb6a04504423b3b5024
parent08ba703791c3860d25773f88c6c6206c74935d51
src/acpi: Add initial support for HMAT

Add initial HMAT (Heterogeneous Memory Attribute Table) support based
on ACPI spec 6.4 section 5.2.27.

Add functions to create HMAT table (revision 2) and create HMAT Memory
Proximity Domain Attribute (MPDA) Structure.

TESTED=Simulated HMAT table creation on OCP DeltaLake server, dumped
the HMAT table and exmained the content. HMAT table and one MPDA
structure are added.

OCP Delatake server is based on Intel CooperLake Scalable Processor
which does not support CXL (Compute Express Link). Therefore solution
level testing is not done.

Signed-off-by: Jonathan Zhang <jonzhang@fb.com>
Change-Id: I5ee60ff990c3cea799c5cbdf7eead818b1bb4f9b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52047
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
src/acpi/acpi.c
src/include/acpi/acpi.h