Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: HMAT: ACPI_HMAT_MEMORY_PD_VALID is deprecated since ACPI-6.3

ACPI-6.3 corresponds to when HMAT revision was bumped
from 1 to 2. In this version ACPI_HMAT_MEMORY_PD_VALID
was deprecated and made reserved.

As such in revision 2+ we shouldn't be testing this flag.

This is as per ACPI-6.3, 5.2.27.3, Table 5-145
"Memory Proximity Domain Attributes Structure"
for Flags.

Signed-off-by: Daniel Black <daniel@linux.ibm.com>
Reviewed-by: Tao Xu <tao3.xu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Daniel Black and committed by
Rafael J. Wysocki
35b9ad84 54ecb8f7

+1 -1
+1 -1
drivers/acpi/hmat/hmat.c
··· 403 403 pr_info("HMAT: Memory Flags:%04x Processor Domain:%d Memory Domain:%d\n", 404 404 p->flags, p->processor_PD, p->memory_PD); 405 405 406 - if (p->flags & ACPI_HMAT_MEMORY_PD_VALID) { 406 + if (p->flags & ACPI_HMAT_MEMORY_PD_VALID && hmat_revision == 1) { 407 407 target = find_mem_target(p->memory_PD); 408 408 if (!target) { 409 409 pr_debug("HMAT: Memory Domain missing from SRAT\n");