Skip to content

Commit 35b9ad8

Browse files
grooverdanrafaeljw
authored andcommitted
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 <[email protected]> Reviewed-by: Tao Xu <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 54ecb8f commit 35b9ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/hmat/hmat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ static int __init hmat_parse_proximity_domain(union acpi_subtable_headers *heade
403403
pr_info("HMAT: Memory Flags:%04x Processor Domain:%d Memory Domain:%d\n",
404404
p->flags, p->processor_PD, p->memory_PD);
405405

406-
if (p->flags & ACPI_HMAT_MEMORY_PD_VALID) {
406+
if (p->flags & ACPI_HMAT_MEMORY_PD_VALID && hmat_revision == 1) {
407407
target = find_mem_target(p->memory_PD);
408408
if (!target) {
409409
pr_debug("HMAT: Memory Domain missing from SRAT\n");

0 commit comments

Comments
 (0)