Commit 7c3643f2 authored by Shuai Xue's avatar Shuai Xue Committed by Dave Jiang
Browse files

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: 894c26a1 ("ACPI: Support Generic Initiator only domains")
Reported-by: default avatarWu Zongyong <wuzongyong@linux.alibaba.com>
Signed-off-by: default avatarShuai Xue <xueshuai@linux.alibaba.com>
Reviewed-by: default avatarJonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/20250913023224.39281-1-xueshuai@linux.alibaba.com


Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
parent 211ddde0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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