Skip to content

Commit 7c3643f

Browse files
axiqiadavejiang
authored andcommitted
acpi,srat: Fix incorrect device handle check for Generic Initiator
The Generic Initiator Affinity Structure in SRAT table uses device handle type field to indicate the device type. According to ACPI specification, the device handle type value of 1 represents PCI device, not 0. Fixes: 894c26a ("ACPI: Support Generic Initiator only domains") Reported-by: Wu Zongyong <wuzongyong@linux.alibaba.com> Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Link: https://patch.msgid.link/20250913023224.39281-1-xueshuai@linux.alibaba.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
1 parent 211ddde commit 7c3643f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/numa/srat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ acpi_table_print_srat_entry(struct acpi_subtable_header *header)
237237
struct acpi_srat_generic_affinity *p =
238238
(struct acpi_srat_generic_affinity *)header;
239239

240-
if (p->device_handle_type == 0) {
240+
if (p->device_handle_type == 1) {
241241
/*
242242
* For pci devices this may be the only place they
243243
* are assigned a proximity domain

0 commit comments

Comments
 (0)