Skip to contentSkip to conversation

pc: acpi: fix pvpanic regression

PATCH In review Igor Mammedov 3 participants 4 messages Mar 30, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pc: acpi: fix pvpanic regression

Commit cd61cb2 pc: acpi-build: generate pvpanic device description dynamically

introduced regression changing pvpanic device HID from QEMU0001 to QEMU0002.
Fix AML generated code so that pvpanic device would keep its original HID. i.e. QEMU0001

---
 hw/i386/acpi-build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-build.c +1 -1
index d0a5c85..e761005 100644
@@ -788,7 +788,7 @@ build_ssdt(GArray *table_data, GArray *linker,
         scope = aml_scope("\\_SB.PCI0.ISA");
 
         dev = aml_device("PEVR");
-        aml_append(dev, aml_name_decl("_HID", aml_string("QEMU0002")));
+        aml_append(dev, aml_name_decl("_HID", aml_string("QEMU0001")));
 
         crs = aml_resource_template();
         aml_append(crs,
Signature · 1 line
2.1.0
#1 lore raw
Quoted 19 lines · Igor Mammedov

Commit cd61cb2 pc: acpi-build: generate pvpanic device description dynamically

introduced regression changing pvpanic device HID from QEMU0001 to QEMU0002.
Fix AML generated code so that pvpanic device would keep its original HID. i.e. QEMU0001

---
 hw/i386/acpi-build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-build.c +0 -0
index d0a5c85..e761005 100644

hw/i386/acpi-build.c build_ssdt(GArray *table_data, GArray *linker, · line 794

Quoted 8 lines
hw/i386/acpi-build.c +1 -1
@@ -788,7 +788,7 @@ build_ssdt(GArray *table_data, GArray *linker,
         scope = aml_scope("\\_SB.PCI0.ISA");
 
         dev = aml_device("PEVR");
-        aml_append(dev, aml_name_decl("_HID", aml_string("QEMU0002")));
+        aml_append(dev, aml_name_decl("_HID", aml_string("QEMU0001")));
 
         crs = aml_resource_template();
         aml_append(crs,

Pretty obvious, so I can take this through my tree.

Paolo

#2 lore raw
Quoted 27 lines · On Mon, 30 Mar 2015 14:27:05 +0200 Paolo Bonzini <[email protected]> wrote:
Quoted 24 lines · Igor Mammedov

Commit cd61cb2 pc: acpi-build: generate pvpanic device description dynamically

introduced regression changing pvpanic device HID from QEMU0001 to QEMU0002.
Fix AML generated code so that pvpanic device would keep its original HID. i.e. QEMU0001

---
 hw/i386/acpi-build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-build.c +1 -1
index d0a5c85..e761005 100644
@@ -788,7 +788,7 @@ build_ssdt(GArray *table_data, GArray *linker,
         scope = aml_scope("\\_SB.PCI0.ISA");
 
         dev = aml_device("PEVR");
-        aml_append(dev, aml_name_decl("_HID", aml_string("QEMU0002")));
+        aml_append(dev, aml_name_decl("_HID", aml_string("QEMU0001")));
 
Quoted 5 lines

hw/i386/acpi-build.c build_ssdt(GArray *table_data, GArray *linker, · line 794

Quoted 3 lines
hw/i386/acpi-build.c +0 -0
         crs = aml_resource_template();
         aml_append(crs,

Pretty obvious, so I can take this through my tree.

Thanks!

I'll post additional test patch for 2.4

Quoted 3 lines

Paolo

Acked-by Reviewed-by on v1 1/1
#3 lore raw
In reply to Igor Mammedov
Quoted 9 lines · Igor Mammedov

Commit cd61cb2 pc: acpi-build: generate pvpanic device description dynamically

introduced regression changing pvpanic device HID from QEMU0001 to QEMU0002.
Fix AML generated code so that pvpanic device would keep its original HID. i.e. QEMU0001

Quoted 19 lines
---
 hw/i386/acpi-build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-build.c +1 -1
index d0a5c85..e761005 100644
@@ -788,7 +788,7 @@ build_ssdt(GArray *table_data, GArray *linker,
         scope = aml_scope("\\_SB.PCI0.ISA");
 
         dev = aml_device("PEVR");
-        aml_append(dev, aml_name_decl("_HID", aml_string("QEMU0002")));
+        aml_append(dev, aml_name_decl("_HID", aml_string("QEMU0001")));
 
         crs = aml_resource_template();
         aml_append(crs,
Signature · 1 line
2.1.0