acpi,srat: Fix incorrect device handle check for Generic Initiator
Subsystems (2)
PATCH v2 1/1 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.
---
changes since v1: drop changes in actbl3.h to make it easy to progress per Jonathan
--- drivers/acpi/numa/srat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/numa/srat.c +1 -1
@@ -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
Signature · 1 line
2.39.3
Quoted 8 lines · On Sat, 13 Sep 2025 10:32:24 +0800 Shuai Xue <[email protected]> wrote:
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 <[email protected]>Signed-off-by Shuai Xue <[email protected]>
Thanks!
Quoted 19 lines
---
changes since v1: drop changes inactbl3.hto make it easy to progress per Jonathan--- drivers/acpi/numa/srat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/acpi/numa/srat.c +1
-1@@ -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
Quoted 8 lines · Jonathan Cameron
Quoted 5 lines · On Sat, 13 Sep 2025 10:32:24 +0800 Shuai Xue <[email protected]> wrote:
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.
Quoted 11 lines
Quoted 3 lines
Fixes 894c26a1c274 ("ACPI: Support Generic Initiator only domains")Reported-by Wu Zongyong <[email protected]>Signed-off-by Shuai Xue <[email protected]>Reviewed-by Jonathan Cameron <[email protected]>Thanks!
Quoted 3 lines
---
changes since v1: drop changes inactbl3.hto make it easy to progress per Jonathan
---
Hi, Rafael,
Gentle ping.
Are you happy to pick this bugfix up in this cycle?
Thanks.
Shuai
Rafael J. Wysocki
maintainerQuoted 25 lines · Shuai Xue
Quoted 8 lines · Jonathan Cameron
Quoted 5 lines · On Sat, 13 Sep 2025 10:32:24 +0800 Shuai Xue <[email protected]> wrote:
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.
Quoted 11 lines
Quoted 3 lines
Fixes 894c26a1c274 ("ACPI: Support Generic Initiator only domains")Reported-by Wu Zongyong <[email protected]>Signed-off-by Shuai Xue <[email protected]>Reviewed-by Jonathan Cameron <[email protected]>Thanks!
Quoted 3 lines
---
changes since v1: drop changes inactbl3.hto make it easy to progress per Jonathan
---
Quoted 5 lines
Hi, Rafael,
Gentle ping.
Are you happy to pick this bugfix up in this cycle?
drives/acpi/numa/ is maintained by Dave.
Dave Jiang
AppliedQuoted 26 lines · Rafael J. Wysocki
Quoted 25 lines · Shuai Xue
Quoted 19 lines · Jonathan Cameron
Quoted 8 lines · On Sat, 13 Sep 2025 10:32:24 +0800 Shuai Xue <[email protected]> wrote:
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 <[email protected]>Signed-off-by Shuai Xue <[email protected]>Reviewed-by Jonathan Cameron <[email protected]>Thanks!
Quoted 3 lines
---
changes since v1: drop changes inactbl3.hto make it easy to progress per Jonathan
---
Quoted 7 lines
Quoted 5 lines
Hi, Rafael,
Gentle ping.
Are you happy to pick this bugfix up in this cycle?
drives/acpi/numa/ is maintained by Dave.
Applied to cxl/fixes7c3643f204edf1
Quoted 31 lines · Dave Jiang
Quoted 28 lines · Rafael J. Wysocki
Quoted 27 lines · Shuai Xue
Quoted 8 lines · Jonathan Cameron
Quoted 5 lines · On Sat, 13 Sep 2025 10:32:24 +0800 Shuai Xue <[email protected]> wrote:
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.
Quoted 11 lines
Quoted 3 lines
Fixes 894c26a1c274 ("ACPI: Support Generic Initiator only domains")Reported-by Wu Zongyong <[email protected]>Signed-off-by Shuai Xue <[email protected]>Reviewed-by Jonathan Cameron <[email protected]>Thanks!
Quoted 3 lines
---
changes since v1: drop changes inactbl3.hto make it easy to progress per Jonathan
---Hi, Rafael,
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Gentle ping.
Are you happy to pick this bugfix up in this cycle?
drives/acpi/numa/ is maintained by Dave.
Applied to cxl/fixes
7c3643f204edf1
Thanks.
Shuai