Skip to contentSkip to conversation

dsdt: tweak ACPI ID for hotplug resource device

PATCH In review Michael S. Tsirkin 2 participants 6 messages Apr 6, 2014 – Apr 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dsdt: tweak ACPI ID for hotplug resource device

ACPI0004 seems too new:
Windows XP complains about an unrecognized device. This is a regression since 1.7.
Use PNP0A06 instead - Generic Container Device.

---

Note: Igor has RFC patches to use PNP0C02 under PCI0, but that's not ready for 2.0.
Igor, could you comment on whether PNP0C02 is preferable for some OS-es?

For PNP0A06 ACPI spec says:
PNP0A06
Generic Container Device. This device behaves exactly the same as the PNP0A05 device.
This was originally known as Extended I/O Bus. This ID should only be used for containers
that do not produce resources for consumption by child devices. Any system resources
claimed by a PNP0A06 device’s _CRS object must be consumed by the container itself.

PNP0C02 is not in ACPI spec. It does appear in MicroSoft legacy PNP ID document:
PNP0C02 General ID for reserving resources required by Plug and
Play motherboard registers. (Not specific to a particular device.)

Thoughts?

 hw/i386/acpi-dsdt-cpu-hotplug.dsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-dsdt-cpu-hotplug.dsl +1 -1
index dee4843..34aab5a 100644
@@ -93,7 +93,7 @@ Scope(\_SB) {
     }
 
     Device(CPU_HOTPLUG_RESOURCE_DEVICE) {
-        Name(_HID, "ACPI0004")
+        Name(_HID, EisaId("PNP0A06"))
 
         Name(_CRS, ResourceTemplate() {
             IO(Decode16, CPU_STATUS_BASE, CPU_STATUS_BASE, 0, CPU_STATUS_LEN)
Signature · 1 line
MST
#1 lore raw
Quoted 24 lines · On Sun, 6 Apr 2014 12:47:37 +0300 "Michael S. Tsirkin" <[email protected]> wrote:

ACPI0004 seems too new:
Windows XP complains about an unrecognized device. This is a regression since 1.7.
Use PNP0A06 instead - Generic Container Device.

---

Note: Igor has RFC patches to use PNP0C02 under PCI0, but that's not ready for 2.0.
Igor, could you comment on whether PNP0C02 is preferable for some OS-es?

For PNP0A06 ACPI spec says:
PNP0A06
Generic Container Device. This device behaves exactly the same as the PNP0A05 device.
This was originally known as Extended I/O Bus. This ID should only be used for containers
that do not produce resources for consumption by child devices. Any system resources
claimed by a PNP0A06 device’s _CRS object must be consumed by the container itself.

Quoted 6 lines

PNP0C02 is not in ACPI spec. It does appear in MicroSoft legacy PNP ID document:
PNP0C02 General ID for reserving resources required by Plug and
Play motherboard registers. (Not specific to a particular device.)

Thoughts?

From testing Windows doesn't check for conflicts _CRS provided by PNP0C02, so while using it will let XP not to complain about unknown device, it will also make later Windows OSes silently ignore conflicts if any.

When XP's complaining for the first time about unknown device, it could be told to ignore it, so it would stop to complain in future. i.e. user have to silence only once.

Wouldn't it be better to use ACPI0004 that gives minor annoyance to XP user but provides error checking with later OS versions?

Quoted 17 lines
 hw/i386/acpi-dsdt-cpu-hotplug.dsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-dsdt-cpu-hotplug.dsl +1 -1
index dee4843..34aab5a 100644
@@ -93,7 +93,7 @@ Scope(\_SB) {
     }
 
     Device(CPU_HOTPLUG_RESOURCE_DEVICE) {
-        Name(_HID, "ACPI0004")
+        Name(_HID, EisaId("PNP0A06"))
 
         Name(_CRS, ResourceTemplate() {
             IO(Decode16, CPU_STATUS_BASE, CPU_STATUS_BASE, 0, CPU_STATUS_LEN)
#2 lore raw
Quoted 37 lines · Igor Mammedov
Quoted 24 lines · On Sun, 6 Apr 2014 12:47:37 +0300 "Michael S. Tsirkin" <[email protected]> wrote:

ACPI0004 seems too new:
Windows XP complains about an unrecognized device. This is a regression since 1.7.
Use PNP0A06 instead - Generic Container Device.

---

Note: Igor has RFC patches to use PNP0C02 under PCI0, but that's not ready for 2.0.
Igor, could you comment on whether PNP0C02 is preferable for some OS-es?

For PNP0A06 ACPI spec says:
PNP0A06
Generic Container Device. This device behaves exactly the same as the PNP0A05 device.
This was originally known as Extended I/O Bus. This ID should only be used for containers
that do not produce resources for consumption by child devices. Any system resources
claimed by a PNP0A06 device’s _CRS object must be consumed by the container itself.

Quoted 6 lines

PNP0C02 is not in ACPI spec. It does appear in MicroSoft legacy PNP ID document:
PNP0C02 General ID for reserving resources required by Plug and
Play motherboard registers. (Not specific to a particular device.)

Thoughts?

From testing Windows doesn't check for conflicts _CRS provided by PNP0C02, so while using it will let XP not to complain about unknown device, it will also make later Windows OSes silently ignore conflicts if any.

Quoted 6 lines

When XP's complaining for the first time about unknown device, it could be told to ignore it, so it would stop to complain in future. i.e. user have to silence only once.

Wouldn't it be better to use ACPI0004 that gives minor annoyance to XP user but provides error checking with later OS versions?

OK I quickly tested with Win7 and it does check for conflicts when EisaId("PNP0A06") is used.

Taking this into account, ack this patch?

Quoted 17 lines
Quoted 17 lines
 hw/i386/acpi-dsdt-cpu-hotplug.dsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-dsdt-cpu-hotplug.dsl +1 -1
index dee4843..34aab5a 100644
@@ -93,7 +93,7 @@ Scope(\_SB) {
     }
 
     Device(CPU_HOTPLUG_RESOURCE_DEVICE) {
-        Name(_HID, "ACPI0004")
+        Name(_HID, EisaId("PNP0A06"))
 
         Name(_CRS, ResourceTemplate() {
             IO(Decode16, CPU_STATUS_BASE, CPU_STATUS_BASE, 0, CPU_STATUS_LEN)
Reviewed-by on v1 1/1
#3 lore raw
In reply to Michael S. Tsirkin
Quoted 39 lines · On Sun, 6 Apr 2014 12:47:37 +0300 "Michael S. Tsirkin" <[email protected]> wrote:

ACPI0004 seems too new:
Windows XP complains about an unrecognized device. This is a regression since 1.7.
Use PNP0A06 instead - Generic Container Device.

---

Note: Igor has RFC patches to use PNP0C02 under PCI0, but that's not ready for 2.0.
Igor, could you comment on whether PNP0C02 is preferable for some OS-es?

For PNP0A06 ACPI spec says:
PNP0A06
Generic Container Device. This device behaves exactly the same as the PNP0A05 device.
This was originally known as Extended I/O Bus. This ID should only be used for containers
that do not produce resources for consumption by child devices. Any system resources
claimed by a PNP0A06 device’s _CRS object must be consumed by the container itself.

PNP0C02 is not in ACPI spec. It does appear in MicroSoft legacy PNP ID document:
PNP0C02 General ID for reserving resources required by Plug and
Play motherboard registers. (Not specific to a particular device.)

Thoughts?

 hw/i386/acpi-dsdt-cpu-hotplug.dsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-dsdt-cpu-hotplug.dsl +0 -0
index dee4843..34aab5a 100644

hw/i386/acpi-dsdt-cpu-hotplug.dsl Scope(\_SB) { · line 99

Quoted 8 lines
hw/i386/acpi-dsdt-cpu-hotplug.dsl +1 -1
@@ -93,7 +93,7 @@ Scope(\_SB) {
     }
 
     Device(CPU_HOTPLUG_RESOURCE_DEVICE) {
-        Name(_HID, "ACPI0004")
+        Name(_HID, EisaId("PNP0A06"))
 
         Name(_CRS, ResourceTemplate() {
             IO(Decode16, CPU_STATUS_BASE, CPU_STATUS_BASE, 0, CPU_STATUS_LEN)
#4 lore raw
Quoted 44 lines · Igor Mammedov
Quoted 41 lines · On Sun, 6 Apr 2014 12:47:37 +0300 "Michael S. Tsirkin" <[email protected]> wrote:

ACPI0004 seems too new:
Windows XP complains about an unrecognized device. This is a regression since 1.7.
Use PNP0A06 instead - Generic Container Device.

---

Note: Igor has RFC patches to use PNP0C02 under PCI0, but that's not ready for 2.0.
Igor, could you comment on whether PNP0C02 is preferable for some OS-es?

For PNP0A06 ACPI spec says:
PNP0A06
Generic Container Device. This device behaves exactly the same as the PNP0A05 device.
This was originally known as Extended I/O Bus. This ID should only be used for containers
that do not produce resources for consumption by child devices. Any system resources
claimed by a PNP0A06 device’s _CRS object must be consumed by the container itself.

PNP0C02 is not in ACPI spec. It does appear in MicroSoft legacy PNP ID document:
PNP0C02 General ID for reserving resources required by Plug and
Play motherboard registers. (Not specific to a particular device.)

Thoughts?

 hw/i386/acpi-dsdt-cpu-hotplug.dsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-dsdt-cpu-hotplug.dsl +0 -0
index dee4843..34aab5a 100644
@@ -93,7 +93,7 @@ Scope(\_SB) {
     }
 
Quoted 8 lines

hw/i386/acpi-dsdt-cpu-hotplug.dsl Scope(\_SB) { · line 99

Quoted 6 lines
hw/i386/acpi-dsdt-cpu-hotplug.dsl +1 -1
     Device(CPU_HOTPLUG_RESOURCE_DEVICE) {
-        Name(_HID, "ACPI0004")
+        Name(_HID, EisaId("PNP0A06"))
 
         Name(_CRS, ResourceTemplate() {
             IO(Decode16, CPU_STATUS_BASE, CPU_STATUS_BASE, 0, CPU_STATUS_LEN)

Thanks!
Peter, could you pick this up for 2.0 please?

Signature · 1 line
MST
#5 lore raw
In reply to Michael S. Tsirkin
Quoted 6 lines · Michael S. Tsirkin

ACPI0004 seems too new:
Windows XP complains about an unrecognized device. This is a regression since 1.7.
Use PNP0A06 instead - Generic Container Device.

ping

Just making sure we don't miss this for 2.0.

Pls apply.

Quoted 43 lines

---

Note: Igor has RFC patches to use PNP0C02 under PCI0, but that's not ready for 2.0.
Igor, could you comment on whether PNP0C02 is preferable for some OS-es?

For PNP0A06 ACPI spec says:
PNP0A06
Generic Container Device. This device behaves exactly the same as the PNP0A05 device.
This was originally known as Extended I/O Bus. This ID should only be used for containers
that do not produce resources for consumption by child devices. Any system resources
claimed by a PNP0A06 device’s _CRS object must be consumed by the container itself.

PNP0C02 is not in ACPI spec. It does appear in MicroSoft legacy PNP ID document:
PNP0C02 General ID for reserving resources required by Plug and
Play motherboard registers. (Not specific to a particular device.)

Thoughts?

 hw/i386/acpi-dsdt-cpu-hotplug.dsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-dsdt-cpu-hotplug.dsl +1 -1
index dee4843..34aab5a 100644
@@ -93,7 +93,7 @@ Scope(\_SB) {
     }
 
     Device(CPU_HOTPLUG_RESOURCE_DEVICE) {
-        Name(_HID, "ACPI0004")
+        Name(_HID, EisaId("PNP0A06"))
 
         Name(_CRS, ResourceTemplate() {
             IO(Decode16, CPU_STATUS_BASE, CPU_STATUS_BASE, 0, CPU_STATUS_LEN)
Signature · 1 line
MST