]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
acpi,srat: Fix incorrect device handle check for Generic Initiator
authorShuai Xue <xueshuai@linux.alibaba.com>
Sat, 13 Sep 2025 02:32:24 +0000 (10:32 +0800)
committerDave Jiang <dave.jiang@intel.com>
Tue, 21 Oct 2025 14:49:58 +0000 (07:49 -0700)
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: 894c26a1c274 ("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>
drivers/acpi/numa/srat.c

index 53816dfab64523bf70c1d0da50d14ad4d611cbae..aa87ee1583a4e0e22f27813fb8325a975dcb3f5f 100644 (file)
@@ -237,7 +237,7 @@ acpi_table_print_srat_entry(struct acpi_subtable_header *header)
                struct acpi_srat_generic_affinity *p =
                        (struct acpi_srat_generic_affinity *)header;
 
-               if (p->device_handle_type == 0) {
+               if (p->device_handle_type == 1) {
                        /*
                         * For pci devices this may be the only place they
                         * are assigned a proximity domain