Skip to contentSkip to conversation

acpi,srat: Fix incorrect device handle check for Generic Initiator

PATCH Applied Shuai Xue 4 participants 6 messages Sep 13, 2025 – Oct 22, 2025

Subsystems (2)
lore
Share & tools
lore

Shuai Xue

author
#0 lore raw

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.

Fixes 894c26a1c274 ("ACPI: Support Generic Initiator only domains")

---
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
index 53816dfab645..aa87ee1583a4 100644
@@ -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
Reviewed-by on v2 1/1
#1 lore raw
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")

Thanks!

Quoted 19 lines

---
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
index 53816dfab645..aa87ee1583a4 100644
@@ -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
author
#2 lore raw
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")

Thanks!

Quoted 3 lines

---
changes since v1: drop changes in actbl3.h to make it easy to progress per Jonathan
---

Hi, Rafael,

Gentle ping.

Are you happy to pick this bugfix up in this cycle?

Thanks.
Shuai

#3 lore raw
Quoted 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")

Thanks!

Quoted 3 lines

---
changes since v1: drop changes in actbl3.h to 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.

Applied
#4 lore raw
Quoted 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")

Thanks!

Quoted 3 lines

---
changes since v1: drop changes in actbl3.h to 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/fixes
7c3643f204edf1

author
#5 lore raw
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")

Thanks!

Quoted 3 lines

---
changes since v1: drop changes in actbl3.h to 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