Skip to contentSkip to conversation

hw/i386/acpi: Pre-compute the _PRT table

PATCH In review Ricardo Ribalda 3 participants 10 messages Aug 14, 2024 – Sep 22, 2024

lore
Share & tools
lore
#0 lore raw

v5 cover hw/i386/acpi: Pre-compute the _PRT table

Today for x86 the _PRT() table is computed in runtime. Under some configurations, computing the _PRT table can take more than 30 seconds and the ACPI timeout is violated.

This patchset modifies _PRT() to return a pre-computed table.

Changelog v3->v4 Thanks Richard:
- Make link_name struct static

Changelog v3->v4 Thanks Igor:
- Add missing files to tests/qtest/bios-tables-test-allowed-diff.h

Changelog v2->v3 Thanks Michael:
- Code style
- Add cover letter

Ricardo Ribalda (3):
tests/acpi: pc: allow DSDT acpi table changes hw/i386/acpi-build: Return a pre-computed _PRT table tests/acpi: pc: update golden masters for DSDT

 hw/i386/acpi-build.c                 | 120 +++++----------------------
 tests/data/acpi/x86/pc/DSDT          | Bin 6830 -> 8527 bytes
 tests/data/acpi/x86/pc/DSDT.acpierst | Bin 6741 -> 8438 bytes
 tests/data/acpi/x86/pc/DSDT.acpihmat | Bin 8155 -> 9852 bytes
 tests/data/acpi/x86/pc/DSDT.bridge   | Bin 13701 -> 15398 bytes
 tests/data/acpi/x86/pc/DSDT.cphp     | Bin 7294 -> 8991 bytes
 tests/data/acpi/x86/pc/DSDT.dimmpxm  | Bin 8484 -> 10181 bytes
 tests/data/acpi/x86/pc/DSDT.hpbridge | Bin 6781 -> 8478 bytes
 tests/data/acpi/x86/pc/DSDT.hpbrroot | Bin 3337 -> 5034 bytes
 tests/data/acpi/x86/pc/DSDT.ipmikcs  | Bin 6902 -> 8599 bytes
 tests/data/acpi/x86/pc/DSDT.memhp    | Bin 8189 -> 9886 bytes
 tests/data/acpi/x86/pc/DSDT.nohpet   | Bin 6688 -> 8385 bytes
 tests/data/acpi/x86/pc/DSDT.numamem  | Bin 6836 -> 8533 bytes
 tests/data/acpi/x86/pc/DSDT.roothp   | Bin 10623 -> 12320 bytes
 tests/data/acpi/x86/q35/DSDT.cxl     | Bin 9714 -> 13148 bytes
 tests/data/acpi/x86/q35/DSDT.viot    | Bin 9464 -> 14615 bytes
 16 files changed, 22 insertions(+), 98 deletions(-)
Signature · 1 line
2.46.0.76.ge559c4bf1a-goog
#1 lore raw

PATCH v5 1/3 tests/acpi: pc: allow DSDT acpi table changes

---
 tests/qtest/bios-tables-test-allowed-diff.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
tests/qtest/bios-tables-test-allowed-diff.h +15 -0
index dfb8523c8b..f81f4e2469 100644
@@ -1 +1,16 @@
 /* List of comma-separated changed AML files to ignore */
+"tests/data/acpi/x86/pc/DSDT",
+"tests/data/acpi/x86/pc/DSDT.acpierst",
+"tests/data/acpi/x86/pc/DSDT.acpihmat",
+"tests/data/acpi/x86/pc/DSDT.bridge",
+"tests/data/acpi/x86/pc/DSDT.cphp",
+"tests/data/acpi/x86/pc/DSDT.dimmpxm",
+"tests/data/acpi/x86/pc/DSDT.hpbridge",
+"tests/data/acpi/x86/pc/DSDT.hpbrroot",
+"tests/data/acpi/x86/pc/DSDT.ipmikcs",
+"tests/data/acpi/x86/pc/DSDT.memhp",
+"tests/data/acpi/x86/pc/DSDT.nohpet",
+"tests/data/acpi/x86/pc/DSDT.numamem",
+"tests/data/acpi/x86/pc/DSDT.roothp",
+"tests/data/acpi/x86/q35/DSDT.cxl",
+"tests/data/acpi/x86/q35/DSDT.viot",
Signature · 1 line
2.46.0.76.ge559c4bf1a-goog
Reviewed-by on v5 1/3
#2 lore raw

Re: [PATCH v5 1/3] tests/acpi: pc: allow DSDT acpi table changes

Quoted 1 line · On Wed, 14 Aug 2024 11:56:09 +0000 Ricardo Ribalda <[email protected]> wrote:
Quoted 15 lines
---
 tests/qtest/bios-tables-test-allowed-diff.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
tests/qtest/bios-tables-test-allowed-diff.h +5 -0
index dfb8523c8b..f81f4e2469 100644
@@ -1 +1,16 @@
 /* List of comma-separated changed AML files to ignore */
+"tests/data/acpi/x86/pc/DSDT",
+"tests/data/acpi/x86/pc/DSDT.acpierst",
+"tests/data/acpi/x86/pc/DSDT.acpihmat",
+"tests/data/acpi/x86/pc/DSDT.bridge",
+"tests/data/acpi/x86/pc/DSDT.cphp",

tests/qtest/bios-tables-test-allowed-diff.h line 16

Quoted 10 lines
tests/qtest/bios-tables-test-allowed-diff.h +10 -0
+"tests/data/acpi/x86/pc/DSDT.dimmpxm",
+"tests/data/acpi/x86/pc/DSDT.hpbridge",
+"tests/data/acpi/x86/pc/DSDT.hpbrroot",
+"tests/data/acpi/x86/pc/DSDT.ipmikcs",
+"tests/data/acpi/x86/pc/DSDT.memhp",
+"tests/data/acpi/x86/pc/DSDT.nohpet",
+"tests/data/acpi/x86/pc/DSDT.numamem",
+"tests/data/acpi/x86/pc/DSDT.roothp",
+"tests/data/acpi/x86/q35/DSDT.cxl",
+"tests/data/acpi/x86/q35/DSDT.viot",

g

#3 lore raw

PATCH v5 2/3 hw/i386/acpi-build: Return a pre-computed _PRT table

In reply to Ricardo Ribalda

When qemu runs without kvm acceleration the ACPI executions take a great amount of time. If they take more than the default time (30sec), the ACPI calls fail and the system might not behave correctly.

Now the _PRT table is computed on the fly. We can drastically reduce the execution of the _PRT method if we return a pre-computed table.

Without this patch:

[   51.343484] ACPI Error: Aborting method \_SB.PCI0._PRT due to previous error (AE_AML_LOOP_TIMEOUT) (20230628/psparse-529)
[   51.527032] ACPI Error: Method execution failed \_SB.PCI0._PRT due to previous error (AE_AML_LOOP_TIMEOUT) (20230628/uteval-68)
[   51.530049] virtio-pci 0000:00:02.0: can't derive routing for PCI INT A
[   51.530797] virtio-pci 0000:00:02.0: PCI INT A: no GSI
[   81.922901] ACPI Error: Aborting method \_SB.PCI0._PRT due to previous error (AE_AML_LOOP_TIMEOUT) (20230628/psparse-529)
[   82.103534] ACPI Error: Method execution failed \_SB.PCI0._PRT due to previous error (AE_AML_LOOP_TIMEOUT) (20230628/uteval-68)
[   82.106088] virtio-pci 0000:00:04.0: can't derive routing for PCI INT A
[   82.106761] virtio-pci 0000:00:04.0: PCI INT A: no GSI
[  112.192568] ACPI Error: Aborting method \_SB.PCI0._PRT due to previous error (AE_AML_LOOP_TIMEOUT) (20230628/psparse-529)
[  112.486687] ACPI Error: Method execution failed \_SB.PCI0._PRT due to previous error (AE_AML_LOOP_TIMEOUT) (20230628/uteval-68)
[  112.489554] virtio-pci 0000:00:05.0: can't derive routing for PCI INT A
[  112.490027] virtio-pci 0000:00:05.0: PCI INT A: no GSI
[  142.559448] ACPI Error: Aborting method \_SB.PCI0._PRT due to previous error (AE_AML_LOOP_TIMEOUT) (20230628/psparse-529)
[  142.718596] ACPI Error: Method execution failed \_SB.PCI0._PRT due to previous error (AE_AML_LOOP_TIMEOUT) (20230628/uteval-68)
[  142.722889] virtio-pci 0000:00:06.0: can't derive routing for PCI INT A
[  142.724578] virtio-pci 0000:00:06.0: PCI INT A: no GSI

With this patch:

[   22.938076] ACPI: \_SB_.LNKB: Enabled at IRQ 10
[   24.214002] ACPI: \_SB_.LNKD: Enabled at IRQ 11
[   25.465170] ACPI: \_SB_.LNKA: Enabled at IRQ 10
[   27.944920] ACPI: \_SB_.LNKC: Enabled at IRQ 11

ACPI disassembly:

        Scope (PCI0)
        {
            Method (_PRT, 0, NotSerialized)  // _PRT: PCI Routing Table
            {
                Return (Package (0x80)
                {
                    Package (0x04)
                    {
                        0xFFFF,
                        Zero,
                        LNKD,
                        Zero
                    },

                    Package (0x04)
                    {
                        0xFFFF,
                        One,
                        LNKA,
                        Zero
                    },

                    Package (0x04)
                    {
                        0xFFFF,
                        0x02,
                        LNKB,
                        Zero
                    },

                    Package (0x04)
                    {
                        0xFFFF,
                        0x03,
                        LNKC,
                        Zero
                    },

                    Package (0x04)
                    {
                        0x0001FFFF,
                        Zero,
                        LNKS,
                        Zero
                    },

Context: https://lore.kernel.org/virtualization/[email protected]/T/#t

---
 hw/i386/acpi-build.c | 120 ++++++++-----------------------------------
 1 file changed, 22 insertions(+), 98 deletions(-)
hw/i386/acpi-build.c +22 -98
index 5d4bd2b710..4967aa7459 100644
@@ -724,120 +724,44 @@ static Aml *aml_pci_pdsm(void)
     return method;
 }
 
-/**
- * build_prt_entry:
- * @link_name: link name for PCI route entry
- *
- * build AML package containing a PCI route entry for @link_name
- */
-static Aml *build_prt_entry(const char *link_name)
-{
-    Aml *a_zero = aml_int(0);
-    Aml *pkg = aml_package(4);
-    aml_append(pkg, a_zero);
-    aml_append(pkg, a_zero);
-    aml_append(pkg, aml_name("%s", link_name));
-    aml_append(pkg, a_zero);
-    return pkg;
-}
-
 /*
- * initialize_route - Initialize the interrupt routing rule
- * through a specific LINK:
- *  if (lnk_idx == idx)
- *      route using link 'link_name'
- */
-static Aml *initialize_route(Aml *route, const char *link_name,
-                             Aml *lnk_idx, int idx)
-{
-    Aml *if_ctx = aml_if(aml_equal(lnk_idx, aml_int(idx)));
-    Aml *pkg = build_prt_entry(link_name);
-
-    aml_append(if_ctx, aml_store(pkg, route));
-
-    return if_ctx;
-}
-
-/*
- * build_prt - Define interrupt rounting rules
+ * build_prt - Define interrupt routing rules
  *
  * Returns an array of 128 routes, one for each device,
  * based on device location.
  * The main goal is to equally distribute the interrupts
  * over the 4 existing ACPI links (works only for i440fx).
- * The hash function is  (slot + pin) & 3 -> "LNK[D|A|B|C]".
+ * The hash function is: (slot + pin) & 3 -> "LNK[D|A|B|C]".
  *
  */
 static Aml *build_prt(bool is_pci0_prt)
 {
-    Aml *method, *while_ctx, *pin, *res;
+    const int nroutes = 128;
+    Aml *rt_pkg, *method;
+    int pin;
 
     method = aml_method("_PRT", 0, AML_NOTSERIALIZED);
-    res = aml_local(0);
-    pin = aml_local(1);
-    aml_append(method, aml_store(aml_package(128), res));
-    aml_append(method, aml_store(aml_int(0), pin));
+    rt_pkg = aml_varpackage(nroutes);
 
-    /* while (pin < 128) */
-    while_ctx = aml_while(aml_lless(pin, aml_int(128)));
-    {
-        Aml *slot = aml_local(2);
-        Aml *lnk_idx = aml_local(3);
-        Aml *route = aml_local(4);
-
-        /* slot = pin >> 2 */
-        aml_append(while_ctx,
-                   aml_store(aml_shiftright(pin, aml_int(2), NULL), slot));
-        /* lnk_idx = (slot + pin) & 3 */
-        aml_append(while_ctx,
-            aml_store(aml_and(aml_add(pin, slot, NULL), aml_int(3), NULL),
-                      lnk_idx));
-
-        /* route[2] = "LNK[D|A|B|C]", selection based on pin % 3  */
-        aml_append(while_ctx, initialize_route(route, "LNKD", lnk_idx, 0));
-        if (is_pci0_prt) {
-            Aml *if_device_1, *if_pin_4, *else_pin_4;
-
-            /* device 1 is the power-management device, needs SCI */
-            if_device_1 = aml_if(aml_equal(lnk_idx, aml_int(1)));
-            {
-                if_pin_4 = aml_if(aml_equal(pin, aml_int(4)));
-                {
-                    aml_append(if_pin_4,
-                        aml_store(build_prt_entry("LNKS"), route));
-                }
-                aml_append(if_device_1, if_pin_4);
-                else_pin_4 = aml_else();
-                {
-                    aml_append(else_pin_4,
-                        aml_store(build_prt_entry("LNKA"), route));
-                }
-                aml_append(if_device_1, else_pin_4);
-            }
-            aml_append(while_ctx, if_device_1);
+    for (pin = 0; pin < nroutes; pin++) {
+        Aml *pkg = aml_package(4);
+        int slot = pin >> 2;
+
+        aml_append(pkg, aml_int((slot << 16) | 0xFFFF));
+        aml_append(pkg, aml_int(pin & 3));
+        /* device 1 is the power-management device, needs SCI */
+        if (is_pci0_prt && pin == 4) {
+            aml_append(pkg, aml_name("%s", "LNKS"));
         } else {
-            aml_append(while_ctx, initialize_route(route, "LNKA", lnk_idx, 1));
+            static const char link_name[][5] = {"LNKD", "LNKA", "LNKB", "LNKC"};
+            int hash = (slot + pin) & 3;
+            aml_append(pkg, aml_name("%s", link_name[hash]));
         }
-        aml_append(while_ctx, initialize_route(route, "LNKB", lnk_idx, 2));
-        aml_append(while_ctx, initialize_route(route, "LNKC", lnk_idx, 3));
-
-        /* route[0] = 0x[slot]FFFF */
-        aml_append(while_ctx,
-            aml_store(aml_or(aml_shiftleft(slot, aml_int(16)), aml_int(0xFFFF),
-                             NULL),
-                      aml_index(route, aml_int(0))));
-        /* route[1] = pin & 3 */
-        aml_append(while_ctx,
-            aml_store(aml_and(pin, aml_int(3), NULL),
-                      aml_index(route, aml_int(1))));
-        /* res[pin] = route */
-        aml_append(while_ctx, aml_store(route, aml_index(res, pin)));
-        /* pin++ */
-        aml_append(while_ctx, aml_increment(pin));
+        aml_append(pkg, aml_int(0));
+        aml_append(rt_pkg, pkg);
     }
-    aml_append(method, while_ctx);
-    /* return res*/
-    aml_append(method, aml_return(res));
+
+    aml_append(method, aml_return(rt_pkg));
 
     return method;
 }
Signature · 1 line
2.46.0.76.ge559c4bf1a-goog
#4 lore raw

PATCH v5 3/3 tests/acpi: pc: update golden masters for DSDT

In reply to Ricardo Ribalda
---
 tests/data/acpi/x86/pc/DSDT                 | Bin 6830 -> 8527 bytes
 tests/data/acpi/x86/pc/DSDT.acpierst        | Bin 6741 -> 8438 bytes
 tests/data/acpi/x86/pc/DSDT.acpihmat        | Bin 8155 -> 9852 bytes
 tests/data/acpi/x86/pc/DSDT.bridge          | Bin 13701 -> 15398 bytes
 tests/data/acpi/x86/pc/DSDT.cphp            | Bin 7294 -> 8991 bytes
 tests/data/acpi/x86/pc/DSDT.dimmpxm         | Bin 8484 -> 10181 bytes
 tests/data/acpi/x86/pc/DSDT.hpbridge        | Bin 6781 -> 8478 bytes
 tests/data/acpi/x86/pc/DSDT.hpbrroot        | Bin 3337 -> 5034 bytes
 tests/data/acpi/x86/pc/DSDT.ipmikcs         | Bin 6902 -> 8599 bytes
 tests/data/acpi/x86/pc/DSDT.memhp           | Bin 8189 -> 9886 bytes
 tests/data/acpi/x86/pc/DSDT.nohpet          | Bin 6688 -> 8385 bytes
 tests/data/acpi/x86/pc/DSDT.numamem         | Bin 6836 -> 8533 bytes
 tests/data/acpi/x86/pc/DSDT.roothp          | Bin 10623 -> 12320 bytes
 tests/data/acpi/x86/q35/DSDT.cxl            | Bin 9714 -> 13148 bytes
 tests/data/acpi/x86/q35/DSDT.viot           | Bin 9464 -> 14615 bytes
 tests/qtest/bios-tables-test-allowed-diff.h |  15 ---------------
 16 files changed, 15 deletions(-)
tests/data/acpi/x86/pc/DSDT binary +0 -0
index c93ad6b7f83a168a1833d7dba1112dd2ab8a431f..92225236e717b2e522a2ee00492fb0ded418dc7b 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.acpierst binary +0 -0
index f643fa2d034053fa07f74f095565b64f021d4290..25b39955059409b177870800949eaf937cd39005 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.acpihmat binary +0 -0
index 9d3695ff289036856886a093733926667a32a058..73a9ce59e9426b180fea0ec5820c4841ebdb6700 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.bridge binary +0 -0
index 840b45f354ac14c858d0af8fbd31e97949a65d4b..4cef454e379e1009141694e0f4036a2a701c80d7 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.cphp binary +0 -0
index dbc0141b2bbc77a6d806ff046dc137992c59a899..1dc928333d7ae7e4df6bb51d850af5e1cb480158 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.dimmpxm binary +0 -0
index 1294f655d418dbdccc095e0d47ab220869a61a07..9f71d2e58b1707e733584e38dab7f73f9bda5eb7 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.hpbridge binary +0 -0
index 8012b5eb3155377dc7995b73059ecb267d19232c..db420593a3c51eced25cd57420353fbb9ccdf63c 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.hpbrroot binary +0 -0
index 4fa0c6fe720f7859f0541b82f828c0329a3c0548..31b6adb4eb941e5bf0c02ec8c3819c9213adf022 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.ipmikcs binary +0 -0
index 0a891baf458abee4a772ffba7a31914ec22418ec..c2a0330d97d495298889b9e28bde2f90235cea88 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.memhp binary +0 -0
index 9b442a64cf711b33d80691fe84f1d3a6256f943b..c15a9fae947bb3929a30c60b7c0f2092705868f8 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.nohpet binary +0 -0
index 1754c6878839fc657230e1e714cd7c5142e0a77e..dd29f5cb620e5164601e303e37524530ddb12684 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.numamem binary +0 -0
index 9fc731d3d2bcde5e2612a8ccd81e12098134afe9..8a6b56fe7da18bf42c339d13b863aabf81780527 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.roothp binary +0 -0
index e654c83ebe40c413b204c711adcefe3f04655e8c..a16b0d9d4becec47fa3cf57ed0077ff6cff88908 100644
GIT binary patch
tests/data/acpi/x86/q35/DSDT.cxl binary +0 -0
index afcdc0d0ba8e41bb70ac20a78dcc8562ca0cb74b..f561750cab8b061c123c041fe2209d74c7a740f1 100644
GIT binary patch
tests/data/acpi/x86/q35/DSDT.viot binary +0 -0
index 64e81f571120e3eb2b8c6c9545293a78c75b7bbd..8d98dd8845a60a08df5aff27097646bea4913b75 100644
GIT binary patch
tests/qtest/bios-tables-test-allowed-diff.h +0 -15
index f81f4e2469..dfb8523c8b 100644
@@ -1,16 +1 @@
 /* List of comma-separated changed AML files to ignore */
-"tests/data/acpi/x86/pc/DSDT",
-"tests/data/acpi/x86/pc/DSDT.acpierst",
-"tests/data/acpi/x86/pc/DSDT.acpihmat",
-"tests/data/acpi/x86/pc/DSDT.bridge",
-"tests/data/acpi/x86/pc/DSDT.cphp",
-"tests/data/acpi/x86/pc/DSDT.dimmpxm",
-"tests/data/acpi/x86/pc/DSDT.hpbridge",
-"tests/data/acpi/x86/pc/DSDT.hpbrroot",
-"tests/data/acpi/x86/pc/DSDT.ipmikcs",
-"tests/data/acpi/x86/pc/DSDT.memhp",
-"tests/data/acpi/x86/pc/DSDT.nohpet",
-"tests/data/acpi/x86/pc/DSDT.numamem",
-"tests/data/acpi/x86/pc/DSDT.roothp",
-"tests/data/acpi/x86/q35/DSDT.cxl",
-"tests/data/acpi/x86/q35/DSDT.viot",
Signature · 1 line
2.46.0.76.ge559c4bf1a-goog
Acked-by on v5 3/3
#5 lore raw

Re: [PATCH v5 3/3] tests/acpi: pc: update golden masters for DSDT

Quoted 1 line · On Wed, 14 Aug 2024 11:56:11 +0000 Ricardo Ribalda <[email protected]> wrote:
Quoted 435 lines
---
 tests/data/acpi/x86/pc/DSDT                 | Bin 6830 -> 8527 bytes
 tests/data/acpi/x86/pc/DSDT.acpierst        | Bin 6741 -> 8438 bytes
 tests/data/acpi/x86/pc/DSDT.acpihmat        | Bin 8155 -> 9852 bytes
 tests/data/acpi/x86/pc/DSDT.bridge          | Bin 13701 -> 15398 bytes
 tests/data/acpi/x86/pc/DSDT.cphp            | Bin 7294 -> 8991 bytes
 tests/data/acpi/x86/pc/DSDT.dimmpxm         | Bin 8484 -> 10181 bytes
 tests/data/acpi/x86/pc/DSDT.hpbridge        | Bin 6781 -> 8478 bytes
 tests/data/acpi/x86/pc/DSDT.hpbrroot        | Bin 3337 -> 5034 bytes
 tests/data/acpi/x86/pc/DSDT.ipmikcs         | Bin 6902 -> 8599 bytes
 tests/data/acpi/x86/pc/DSDT.memhp           | Bin 8189 -> 9886 bytes
 tests/data/acpi/x86/pc/DSDT.nohpet          | Bin 6688 -> 8385 bytes
 tests/data/acpi/x86/pc/DSDT.numamem         | Bin 6836 -> 8533 bytes
 tests/data/acpi/x86/pc/DSDT.roothp          | Bin 10623 -> 12320 bytes
 tests/data/acpi/x86/q35/DSDT.cxl            | Bin 9714 -> 13148 bytes
 tests/data/acpi/x86/q35/DSDT.viot           | Bin 9464 -> 14615 bytes
 tests/qtest/bios-tables-test-allowed-diff.h |  15 ---------------
 16 files changed, 15 deletions(-)
tests/data/acpi/x86/pc/DSDT binary +0 -0
index c93ad6b7f83a168a1833d7dba1112dd2ab8a431f..92225236e717b2e522a2ee00492fb0ded418dc7b 100644
GIT binary patch

zcmY+_OK#gR6aRPmVc7lmCBo0R=kA0^&G>phg?inPg;S4auBYNk<(QD7uD@yN<4c zy?hjfcW1ixyAY2k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SZd<%nv@SXH98lp9s zui^$$O{9w9D*0-hO^j4ADpf?^#ByY|Db2Wqrt!@<+6+yMN)ypH<tTMO{E%_kV-Yq zrlA^_kEo?BX~reAq!~wBp&3_?sG;o&YQyT=QjN21mLh6thol{nc36s7O9AZ?wCkJJ zKR|gZU6vwhX^*5mlJ;1NsHIsY4bY6BnX$B|8B24L<|NHoim0UpNegL4XrZCjIb<#E zleACLK1&gbU@MpNe7B-$+E?Jeq3%ha?@6bjVUfEgg|`MADI#I)|vCW8akhmjg5= z>6oR6T3V8{Bx%V~#2^j(KOyMESba_>EJf7PDM_a!ow5{BOJ~xI$8@Hl*3DRosHJm~ z&Ph6FDWaAxNV<?_-2O!kwQ}~5wRB0+B}tboMby$2Nmp9xRt!Z%)7C$|Ym%->x@IY& zmTpM8A?c=;3KUU8x5id~FY*d*NxEezqL%JRx+Ce1rHH;6f8h5TrH^-Ln)?OAjPH Qko3S(#323iFZsUs5AYbxUH||9

delta 204 zcmez7c-4f<CD<h-REmLtF?bFE>pdSNqn$VynrXfU~E8hznPIKu!nfe=$eLIFeK zA}7wNiChf@Rf$|o3qsmMTtoaT+9r~3j)70~K+yFfjP|dAl&AEKr%8%(y^sav~QC zTsW8^Wg#z|=Ll3JI60Y%2=IU5-|n}F~fzN8Bz*rE0eec7XrcXXr>_U?|g1X|dU W!pKmN(vgtJP@1?TVRIK}jyM3xel%79

tests/data/acpi/x86/pc/DSDT.acpihmat binary +0 -0
index 9d3695ff289036856886a093733926667a32a058..73a9ce59e9426b180fea0ec5820c4841ebdb6700 100644
GIT binary patch

zS1#+_nQ!v0T*u~{=9#^*z@)L{Oye~t>rKKHgk_ZZrA(U<nr?L@c3^2;pO)9PuxO zUB24yRgo9oo6Dz<XAemxV|%089uie!hH&Dga=a%^V0j437u<LJNbV_?4H8ly8d zRB;2TW>Up)okBIuW=5(Ql3LrVmUI~mS$Q)+k|EsZO0}?rHL4tau<j7=2A^d$fcTQ z^H@#GN7T}eG}96~(oCbB*i5TO)X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ivhYmpncVLk?w#ha$=yt1Oejtq}{XFVIb6#2Ula=?mMf<JBj#;K4eP7I06_B;Wp zNNb}?+epd&DLv>PeL<wOMh}Iu0Nn{cbJW$gEOgo!Ebwx1@IDK*;=<kbz#)pcH`2 Uczak11yYnT$AQ1%&qcqEezU1GV*mgE

tests/data/acpi/x86/pc/DSDT.hpbrroot binary +0 -0
index 4fa0c6fe720f7859f0541b82f828c0329a3c0548..31b6adb4eb941e5bf0c02ec8c3819c9213adf022 100644
GIT binary patch
tests/data/acpi/x86/pc/DSDT.ipmikcs binary +0 -0
index 0a891baf458abee4a772ffba7a31914ec22418ec..c2a0330d97d495298889b9e28bde2f90235cea88 100644
GIT binary patch

zzKR=2HIXWY>*T9(HZfAgs8kVs6U&j=wlw1s+Qv8IXgf49DosS+l)G50H<fB!LMqib zn}%v!KBAU(q#2jck!Bq2gl1elqK0;Bs12*{N;S@QS&FEoJ(BiF+G8nVBL%ci(7tb4 z{{ZEw^jV6ir2~=<NIGCCqLya0G(a<gX2#N<W-QG~nv*nVDWaAZBrT*Fp@oK8=a99u zBxy;~lBI}RIwa|kq{GmRZzQ5-kEy;M<gAQbi6bEgh3|OwzHII)|vC6W^5mmjg5* z>4c?-T3V5B5B1^#2^j(KPBkYSba{XEJf7P8A)d(ov{>AOXt#z$8@ft*3DUpsHF>% zE=amyDWaAxNxGC~-2P<)wQ}~5wRA<&6-ietMby$YN!MEH)(k~N(>6c78<K8Fx?w4z zmTpP9CF!=23KUU8cgEI#FY*fRNV;PwqL%JSx+m$LrHH;6f8Y-qpq3kdSEG{mL5rZ QB<Yc*h(Y@2UsA5#0rkwxng9R*

delta 204 zcmbR4{LPfhCD<k8n-l{BWBW!fU8Z^ullWk#cmZ#&0B27F5frbfS?eD0wJbgaU@d zMNXVk6S*1+suH=F7?KLAixQI<xR@D|7YIyF1}frYVPNp_^LAlKS)ejGnQ?*O<U}qO zxNtB-%0gZ^&k?9daB?yi6I{dzBw`E{VulMjGo%#MRwi)?FmV6>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tN8k8Im VIcpC~u0ZfIVK}mP^1TM@CUYNH9`OY

tests/data/acpi/x86/pc/DSDT.nohpet binary +0 -0
index 1754c6878839fc657230e1e714cd7c5142e0a77e..dd29f5cb620e5164601e303e37524530ddb12684 100644
GIT binary patch

zM^Siprfa_o@raR>+a*2oi3-hj~inew|}xviGBKcy*yk;=l7S#r_a+b@7I^tH}iXP z{+|6P^E7wPoS(m*Ot@~~e@3+f1V>4>2?m9!=R#3+EcfcP@4EEesCAchbXXh}LAj ziW^8Zkt&9(<g0NuF;c~-R1tj>%aPfpG~*JQ#y8_=Gc++OO+??6yI8C@m1<l<D%Cif zhH6|sqL#L#8JEzKW*lvWW?Vg@hPErH4XbZUHO{tKim0U>l6FYiVJTuQ1++hu5ViZ z0OhH4S&FEoJ(BiF+G8oAmS&YSKr@17#?qc<EX_%plQd^3qLvmUEu<Ntg@#(^khQc= z(mqN1EJf7P0Z9iW9fW3lBN2VXsZ1ml5|MYAxjapbVSk-Nk>}h9HNGfeN*;d4$zpS zW0oRnX-U$Oq$NucgEZ{_grE~+^*Noe6j4j3B%P9U%2Grvok=qu)0u^H)AQHmd;5! zC+VD}h+4WJ=|Y-uxiCT%GpEK(jfkBwex;QA<}OU1_OXF%%I^TmST~NxCNKnx%+Z zx*_R?q?=kQP(%&g8e9Fn$Sb%d>6WF4TDl|Yj-)%5BKl_hf!}NBH@7G0o~4LddLZe6 Pqz9HF2I=2_$^GI#o+Hc)

delta 204 zcmX@;xWI(VCD<iIL5hKa@ybRnU8Z^ullWk#cmZ#&0B27F5frbfS?eD0wJbgaU@d zMNXVk6S*1+suH=F7?KLAixQI<xR@D|7YIyF1}frYVPNp_^LAlKS)ejGnQ?*O<U}qO zxNtB-%0gZ^&k?9daB?yi6I{dzBw`E{VulMjGo%#MRwi)?FmV6>&(M*=z)(<~2(+*x Wg^{5kr6VDcp)_$x!saecb8!HyWi$f-

tests/data/acpi/x86/pc/DSDT.numamem binary +0 -0
index 9fc731d3d2bcde5e2612a8ccd81e12098134afe9..8a6b56fe7da18bf42c339d13b863aabf81780527 100644
GIT binary patch

zcmY+_OK#gR6aRPl7Eu?lmCBo0R=kA0^&G>phgkY>DcHRnmN0Yj=F)O-9^V;L{CG zK8nJ-GhO>#h({FdKX?C5T2T&SQ+~R{AS{pV+4#x9jOPzPvs^JbjowzTTccznGuX z%eVY{Rb+*8=JM&|*@WvBuJ27%p@$O;S@uP@L;MzRyx-*zH@DoZ((p4zLOqCL$oIM zRop<TiBvIMCtr=TiIFNsrHbgASdPr5(u_+;jc>-$G&C_PO+??6yI8C@lWJT-Ce=8b zg=$<rqL#L$8JEzOW*lvYW?Vg@hIVSG4Xf+HO_Weim0Vsl6FbjWhr7K1++)do^M+J z0OhIlSc<5neUkP+Gi=EmgcoIKy!lT#?qeVEG<Y{khEYaqL!8<Eu|TurG{GPkhOF z(g8^aEJf7PAxVcM9foFnBN2V`-qia)BI$^vBbFj+>6oNrl8&|1IYbSe_@?Z?9H0qF zCoDzO(u$-NNh_8j25H#;DM6>k>T^0}DWaCnNIE0wjHQTLI+tcVrgIIoZq8CfEnSdw zLDB_F5w&zl(xo)x_AeW#m9vMer7M!INV;MvqL!{ny4F&+W+)<>w)yGZkaR=R4NDQV zbW74LNw<wupoki}Gq(PFkymg>(j7|?wRBI?JxTX0MfA=11AoxaukJw714|LL^hnYp PNslZ=4AS3k$=~IF&pOOL

delta 204 zcmccWw8fOmCD<ioixdL<JOH_x=i&RCh@^e@dDml0nVNVA}(C<0YM=Q1wu>>2?Y#^ zi<~&8CUP|tR3&mTF(egK7bPY!a4|C^FA$iV3{=F)!oc9;=k3CfvOr~WGUEcl$%$Mn zaN%Hvl!d%-o+D6^;N)a3Cb)<bNW>T@#0(d5W=JWhtxVz)VBr4$pP?g#fuW!}5olpY W3L^7N=HH>LuulYgw0)?r^Nv%qBS-E

tests/data/acpi/x86/pc/DSDT.roothp binary +0 -0
index e654c83ebe40c413b204c711adcefe3f04655e8c..a16b0d9d4becec47fa3cf57ed0077ff6cff88908 100644
GIT binary patch

zW^ZMl=FXYZx5uLi*9~0Xn6mJnX9>b>3{8YPQ})xsxrXtbbDew(gM;v$^eHtHJPvC z22xF=is35xYMf1sR52=5MBl6WVR{IxP+$h%{bZ&O^iwt(KqET7VAx=8kdktHO{7? z8kdi#r7da3CA6d&M_Zv8SC6Qn?Fwqc>f2I{vu&0lYH5e09g=ofidahl?Gm)>o7O)- zc99&B5G-mq&<@MSc<5nStSk7jG&pZw5J(MbCTvH%~^5r3Fa~X+~(Fq1HKME$x%E zPtrb15w&zc(g8^ap&8#uMBltI)&37jIwa|krHEQOBI$^vBQ13fQA5YRDf=%6XiU;E zOA)oSBxy;~lBI}28uoue(2247oK9GZsHIbqPDwgtDWaCnq#2LtOhcku@q5D=Omqz zbk0&lEnSdwA<ekiyCU>>>+FElB7$LE?J7Gr7M!IwA8H_iioDIe|py>U6XXpQbaA? zkaR=RO)V8DqK0mbt^Qu*72J|^%Th!w-H~)h(j7|?eKY>R?=|#?+mm$9Qba91kn}*( O14|Ku^xsGF{^b*&XU!!5

delta 204 zcmX}lK?;IE7{&4D=*BMsjgAmOiy){Aq_ZfD5OuGkbATaeQ4+e8wo+{^x<GV5vyIF5 z;}5S%+JJb-qhbbVj}OgRv025T6I&kn?shTe6#GF0HDYC=AYP7n6I80RAcj=s2a$qw zWQ|p4U1S=-Ztro(W>RNbW7mR=o<qpzuwUygvg?dkFV0_<9qB!}km_<u$-<y*QAt4M UqC2dl1|_RR;3(e7_iEm!KQx0i9RL6T

tests/data/acpi/x86/q35/DSDT.cxl binary +0 -0
index afcdc0d0ba8e41bb70ac20a78dcc8562ca0cb74b..f561750cab8b061c123c041fe2209d74c7a740f1 100644
GIT binary patch

z!|k7Hs4YumEuE2cM$#Ee5w&zq(m6@zz8Rp1uDLa5{@=17>4KySmLiJu_E-19!X*3V z35|KeV<PG?mo(;*#$584h<;3el@(37GSNf-M9Ut#;xQ5ZnBRLB@4}dC8gtEKBI+?W zH0FlJ-0+x)e$3lH>-T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=W*~}zbc%dH{J}yAzsUO^S0<~(

delta 518 zcmbPU^uv?OCD<k8hYAA&<CBeC!m|6qA~HoPVv!Aj-rz_WS7)CaK;A&g)kHdF*PI< zFeEPWW1pJH)lg8C$i>8vR8U=%n8d)v%#gf5U~)205hn+gO8uL3quM>fDta>2ow;U zoXop7jc4$FvCTh8Bz*rE0eec7XrcXXr>_U?`|g6a*UHk;2GOkkXNm$WWTNBw@0k cstk%NEmQ}iD;0H7UFo4a2wl0^(DWHI0MXZo^8f$<

tests/qtest/bios-tables-test-allowed-diff.h +0 -15
index f81f4e2469..dfb8523c8b 100644
@@ -1,16 +1 @@
 /* List of comma-separated changed AML files to ignore */
-"tests/data/acpi/x86/pc/DSDT",
-"tests/data/acpi/x86/pc/DSDT.acpierst",
-"tests/data/acpi/x86/pc/DSDT.acpihmat",
-"tests/data/acpi/x86/pc/DSDT.bridge",
-"tests/data/acpi/x86/pc/DSDT.cphp",
-"tests/data/acpi/x86/pc/DSDT.dimmpxm",
-"tests/data/acpi/x86/pc/DSDT.hpbridge",
-"tests/data/acpi/x86/pc/DSDT.hpbrroot",
-"tests/data/acpi/x86/pc/DSDT.ipmikcs",
-"tests/data/acpi/x86/pc/DSDT.memhp",
-"tests/data/acpi/x86/pc/DSDT.nohpet",
-"tests/data/acpi/x86/pc/DSDT.numamem",
-"tests/data/acpi/x86/pc/DSDT.roothp",
-"tests/data/acpi/x86/q35/DSDT.cxl",
-"tests/data/acpi/x86/q35/DSDT.viot",
#6 lore raw
In reply to Ricardo Ribalda
Quoted 5 lines · On Wed, 14 Aug 2024 11:56:08 +0000 Ricardo Ribalda <[email protected]> wrote:

Today for x86 the _PRT() table is computed in runtime. Under some configurations, computing the _PRT table can take more than 30 seconds and the ACPI timeout is violated.

This patchset modifies _PRT() to return a pre-computed table.

To be sure we are not breaking anything boot tested it with rhel6.7/9.0, winxp, ws2022

Quoted 33 lines

Changelog v3->v4 Thanks Richard:
- Make link_name struct static

Changelog v3->v4 Thanks Igor:
- Add missing files to tests/qtest/bios-tables-test-allowed-diff.h

Changelog v2->v3 Thanks Michael:
- Code style
- Add cover letter

Ricardo Ribalda (3):
tests/acpi: pc: allow DSDT acpi table changes hw/i386/acpi-build: Return a pre-computed _PRT table tests/acpi: pc: update golden masters for DSDT

 hw/i386/acpi-build.c                 | 120 +++++----------------------
 tests/data/acpi/x86/pc/DSDT          | Bin 6830 -> 8527 bytes
 tests/data/acpi/x86/pc/DSDT.acpierst | Bin 6741 -> 8438 bytes
 tests/data/acpi/x86/pc/DSDT.acpihmat | Bin 8155 -> 9852 bytes
 tests/data/acpi/x86/pc/DSDT.bridge   | Bin 13701 -> 15398 bytes
 tests/data/acpi/x86/pc/DSDT.cphp     | Bin 7294 -> 8991 bytes
 tests/data/acpi/x86/pc/DSDT.dimmpxm  | Bin 8484 -> 10181 bytes
 tests/data/acpi/x86/pc/DSDT.hpbridge | Bin 6781 -> 8478 bytes
 tests/data/acpi/x86/pc/DSDT.hpbrroot | Bin 3337 -> 5034 bytes
 tests/data/acpi/x86/pc/DSDT.ipmikcs  | Bin 6902 -> 8599 bytes
 tests/data/acpi/x86/pc/DSDT.memhp    | Bin 8189 -> 9886 bytes
 tests/data/acpi/x86/pc/DSDT.nohpet   | Bin 6688 -> 8385 bytes
 tests/data/acpi/x86/pc/DSDT.numamem  | Bin 6836 -> 8533 bytes
 tests/data/acpi/x86/pc/DSDT.roothp   | Bin 10623 -> 12320 bytes
 tests/data/acpi/x86/q35/DSDT.cxl     | Bin 9714 -> 13148 bytes
 tests/data/acpi/x86/q35/DSDT.viot    | Bin 9464 -> 14615 bytes
 16 files changed, 22 insertions(+), 98 deletions(-)
#7 lore raw
Quoted 11 lines · Igor Mammedov
Quoted 5 lines · On Wed, 14 Aug 2024 11:56:08 +0000 Ricardo Ribalda <[email protected]> wrote:

Today for x86 the _PRT() table is computed in runtime. Under some configurations, computing the _PRT table can take more than 30 seconds and the ACPI timeout is violated.

This patchset modifies _PRT() to return a pre-computed table.

To be sure we are not breaking anything boot tested it with rhel6.7/9.0, winxp, ws2022

Hi Ricardo/Igor,

Unfortunately it seems that this series (and in particular commit 99cb2c6c7b ("hw/i386/acpi-build: Return a pre-computed _PRT table") breaks my WinXP ISO boot test case using the dc390/am53C974 SCSI device.

Current master hangs when booting WinXP from a dc390 SCSI CD just after loading the kernel device drivers and displaying "Setup is starting Windows" instead of proceeding to the "Welcome to Setup" screen.

Note that there is a separate timeout issue caused by a bug in SeaBIOS which is fixed in the SeaBIOS repository as commit 2424e4c0 ("esp-scsi: indicate acceptance of MESSAGE IN phase data"). As the QEMU SeaBIOS binaries haven't yet been updated to contain this fix, I've uploaded a pre-built bios.bin to https://www.ilande.co.uk/tmp/qemu/bios.bin to help reproduce the issue.

Once the above file is downloaded the issue can be reproduced with the command line below:

./qemu-system-x86_64 \
-m 1G \
-device dc390,id=scsi0 \
-device scsi-cd,drive=drive0,bus=scsi0.0,channel=0,scsi-id=6,lun=0 \
-drive file=winxp.iso,if=none,id=drive0 \
-vga cirrus \
-boot d \
-trace 'esp*' \
-bios bios.bin

With the ESP tracing enabled it is possible to see that WinXP appears to get stuck in a loop trying to send a SCSI command followed by a "Bus Reset". Reverting 99cb2c6c7b allows the WinXP ISO to boot to the "Welcome to Setup" screen as before.

ATB,

Mark.

Quoted 32 lines
Quoted 32 lines

Changelog v3->v4 Thanks Richard:
- Make link_name struct static

Changelog v3->v4 Thanks Igor:
- Add missing files to tests/qtest/bios-tables-test-allowed-diff.h

Changelog v2->v3 Thanks Michael:
- Code style
- Add cover letter

Ricardo Ribalda (3):
tests/acpi: pc: allow DSDT acpi table changes hw/i386/acpi-build: Return a pre-computed _PRT table tests/acpi: pc: update golden masters for DSDT

  hw/i386/acpi-build.c                 | 120 +++++----------------------
  tests/data/acpi/x86/pc/DSDT          | Bin 6830 -> 8527 bytes
  tests/data/acpi/x86/pc/DSDT.acpierst | Bin 6741 -> 8438 bytes
  tests/data/acpi/x86/pc/DSDT.acpihmat | Bin 8155 -> 9852 bytes
  tests/data/acpi/x86/pc/DSDT.bridge   | Bin 13701 -> 15398 bytes
  tests/data/acpi/x86/pc/DSDT.cphp     | Bin 7294 -> 8991 bytes
  tests/data/acpi/x86/pc/DSDT.dimmpxm  | Bin 8484 -> 10181 bytes
  tests/data/acpi/x86/pc/DSDT.hpbridge | Bin 6781 -> 8478 bytes
  tests/data/acpi/x86/pc/DSDT.hpbrroot | Bin 3337 -> 5034 bytes
  tests/data/acpi/x86/pc/DSDT.ipmikcs  | Bin 6902 -> 8599 bytes
  tests/data/acpi/x86/pc/DSDT.memhp    | Bin 8189 -> 9886 bytes
  tests/data/acpi/x86/pc/DSDT.nohpet   | Bin 6688 -> 8385 bytes
  tests/data/acpi/x86/pc/DSDT.numamem  | Bin 6836 -> 8533 bytes
  tests/data/acpi/x86/pc/DSDT.roothp   | Bin 10623 -> 12320 bytes
  tests/data/acpi/x86/q35/DSDT.cxl     | Bin 9714 -> 13148 bytes
  tests/data/acpi/x86/q35/DSDT.viot    | Bin 9464 -> 14615 bytes
  16 files changed, 22 insertions(+), 98 deletions(-)
#8 lore raw

Hi Mark

Quoted 44 lines · Mark Cave-Ayland
Quoted 11 lines · Igor Mammedov
Quoted 5 lines · On Wed, 14 Aug 2024 11:56:08 +0000 Ricardo Ribalda <[email protected]> wrote:

Today for x86 the _PRT() table is computed in runtime. Under some configurations, computing the _PRT table can take more than 30 seconds and the ACPI timeout is violated.

This patchset modifies _PRT() to return a pre-computed table.

To be sure we are not breaking anything boot tested it with rhel6.7/9.0, winxp, ws2022

Hi Ricardo/Igor,

Unfortunately it seems that this series (and in particular commit 99cb2c6c7b ("hw/i386/acpi-build: Return a pre-computed _PRT table") breaks my WinXP ISO boot test case using the dc390/am53C974 SCSI device.

Current master hangs when booting WinXP from a dc390 SCSI CD just after loading the kernel device drivers and displaying "Setup is starting Windows" instead of proceeding to the "Welcome to Setup" screen.

Note that there is a separate timeout issue caused by a bug in SeaBIOS which is fixed in the SeaBIOS repository as commit 2424e4c0 ("esp-scsi: indicate acceptance of MESSAGE IN phase data"). As the QEMU SeaBIOS binaries haven't yet been updated to contain this fix, I've uploaded a pre-built bios.bin to
https://www.ilande.co.uk/tmp/qemu/bios.bin to help reproduce the issue.

Once the above file is downloaded the issue can be reproduced with the command line below:

./qemu-system-x86_64 \
   -m 1G \
   -device dc390,id=scsi0 \
   -device scsi-cd,drive=drive0,bus=scsi0.0,channel=0,scsi-id=6,lun=0 \
   -drive file=winxp.iso,if=none,id=drive0 \
   -vga cirrus \
   -boot d \
   -trace 'esp*' \
   -bios bios.bin
Quoted 8 lines

With the ESP tracing enabled it is possible to see that WinXP appears to get stuck in a loop trying to send a SCSI command followed by a "Bus Reset". Reverting 99cb2c6c7b allows the WinXP ISO to boot to the "Welcome to Setup" screen as before.

ATB,

Mark.

Thanks for the detailed report, and sorry for breaking your testcase.

I managed to reproduce locally.

Could you check if this patch fixes your issue and the rest of your testcases? If so, I will prepare a proper patchset.

Thanks!

hw/i386/acpi-build.c +1 -1
index 4967aa7459..e7db51afba 100644
@@ -741,7 +741,7 @@ static Aml *build_prt(bool is_pci0_prt)
     int pin;
 
     method = aml_method("_PRT", 0, AML_NOTSERIALIZED);
-    rt_pkg = aml_varpackage(nroutes);
+    rt_pkg = aml_package(nroutes);
 
     for (pin = 0; pin < nroutes; pin++) {
         Aml *pkg = aml_package(4);
Quoted 34 lines
Quoted 33 lines
Quoted 33 lines

Changelog v3->v4 Thanks Richard:
- Make link_name struct static

Changelog v3->v4 Thanks Igor:
- Add missing files to tests/qtest/bios-tables-test-allowed-diff.h

Changelog v2->v3 Thanks Michael:
- Code style
- Add cover letter

Ricardo Ribalda (3):
tests/acpi: pc: allow DSDT acpi table changes hw/i386/acpi-build: Return a pre-computed _PRT table tests/acpi: pc: update golden masters for DSDT

  hw/i386/acpi-build.c                 | 120 +++++----------------------
  tests/data/acpi/x86/pc/DSDT          | Bin 6830 -> 8527 bytes
  tests/data/acpi/x86/pc/DSDT.acpierst | Bin 6741 -> 8438 bytes
  tests/data/acpi/x86/pc/DSDT.acpihmat | Bin 8155 -> 9852 bytes
  tests/data/acpi/x86/pc/DSDT.bridge   | Bin 13701 -> 15398 bytes
  tests/data/acpi/x86/pc/DSDT.cphp     | Bin 7294 -> 8991 bytes
  tests/data/acpi/x86/pc/DSDT.dimmpxm  | Bin 8484 -> 10181 bytes
  tests/data/acpi/x86/pc/DSDT.hpbridge | Bin 6781 -> 8478 bytes
  tests/data/acpi/x86/pc/DSDT.hpbrroot | Bin 3337 -> 5034 bytes
  tests/data/acpi/x86/pc/DSDT.ipmikcs  | Bin 6902 -> 8599 bytes
  tests/data/acpi/x86/pc/DSDT.memhp    | Bin 8189 -> 9886 bytes
  tests/data/acpi/x86/pc/DSDT.nohpet   | Bin 6688 -> 8385 bytes
  tests/data/acpi/x86/pc/DSDT.numamem  | Bin 6836 -> 8533 bytes
  tests/data/acpi/x86/pc/DSDT.roothp   | Bin 10623 -> 12320 bytes
  tests/data/acpi/x86/q35/DSDT.cxl     | Bin 9714 -> 13148 bytes
  tests/data/acpi/x86/q35/DSDT.viot    | Bin 9464 -> 14615 bytes
  16 files changed, 22 insertions(+), 98 deletions(-)
Signature · 1 line
Ricardo Ribalda
#9 lore raw
Quoted 71 lines · Ricardo Ribalda

Hi Mark

Quoted 44 lines · Mark Cave-Ayland
Quoted 11 lines · Igor Mammedov
Quoted 5 lines · On Wed, 14 Aug 2024 11:56:08 +0000 Ricardo Ribalda <[email protected]> wrote:

Today for x86 the _PRT() table is computed in runtime. Under some configurations, computing the _PRT table can take more than 30 seconds and the ACPI timeout is violated.

This patchset modifies _PRT() to return a pre-computed table.

To be sure we are not breaking anything boot tested it with rhel6.7/9.0, winxp, ws2022

Hi Ricardo/Igor,

Unfortunately it seems that this series (and in particular commit 99cb2c6c7b ("hw/i386/acpi-build: Return a pre-computed _PRT table") breaks my WinXP ISO boot test case using the dc390/am53C974 SCSI device.

Current master hangs when booting WinXP from a dc390 SCSI CD just after loading the kernel device drivers and displaying "Setup is starting Windows" instead of proceeding to the "Welcome to Setup" screen.

Note that there is a separate timeout issue caused by a bug in SeaBIOS which is fixed in the SeaBIOS repository as commit 2424e4c0 ("esp-scsi: indicate acceptance of MESSAGE IN phase data"). As the QEMU SeaBIOS binaries haven't yet been updated to contain this fix, I've uploaded a pre-built bios.bin to
https://www.ilande.co.uk/tmp/qemu/bios.bin to help reproduce the issue.

Once the above file is downloaded the issue can be reproduced with the command line below:

./qemu-system-x86_64 \
    -m 1G \
    -device dc390,id=scsi0 \
    -device scsi-cd,drive=drive0,bus=scsi0.0,channel=0,scsi-id=6,lun=0 \
    -drive file=winxp.iso,if=none,id=drive0 \
    -vga cirrus \
    -boot d \
    -trace 'esp*' \
    -bios bios.bin
Quoted 8 lines

With the ESP tracing enabled it is possible to see that WinXP appears to get stuck in a loop trying to send a SCSI command followed by a "Bus Reset". Reverting 99cb2c6c7b allows the WinXP ISO to boot to the "Welcome to Setup" screen as before.

ATB,

Mark.

Thanks for the detailed report, and sorry for breaking your testcase.

I managed to reproduce locally.

Could you check if this patch fixes your issue and the rest of your testcases? If so, I will prepare a proper patchset.

Thanks!

hw/i386/acpi-build.c +0 -0
index 4967aa7459..e7db51afba 100644

hw/i386/acpi-build.c static Aml *build_prt(bool is_pci0_prt) · line 747

Quoted 8 lines
hw/i386/acpi-build.c +1 -1
@@ -741,7 +741,7 @@ static Aml *build_prt(bool is_pci0_prt)
      int pin;
 
      method = aml_method("_PRT", 0, AML_NOTSERIALIZED);
-    rt_pkg = aml_varpackage(nroutes);
+    rt_pkg = aml_package(nroutes);
 
      for (pin = 0; pin < nroutes; pin++) {
          Aml *pkg = aml_package(4);

Hi Ricardo,

I can confirm that the above patch fixes my particular test case here - thanks so much for the quick reply!

ATB,

Mark.

Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines

Changelog v3->v4 Thanks Richard:
- Make link_name struct static

Changelog v3->v4 Thanks Igor:
- Add missing files to tests/qtest/bios-tables-test-allowed-diff.h

Changelog v2->v3 Thanks Michael:
- Code style
- Add cover letter

Ricardo Ribalda (3):
tests/acpi: pc: allow DSDT acpi table changes hw/i386/acpi-build: Return a pre-computed _PRT table tests/acpi: pc: update golden masters for DSDT

   hw/i386/acpi-build.c                 | 120 +++++----------------------
   tests/data/acpi/x86/pc/DSDT          | Bin 6830 -> 8527 bytes
   tests/data/acpi/x86/pc/DSDT.acpierst | Bin 6741 -> 8438 bytes
   tests/data/acpi/x86/pc/DSDT.acpihmat | Bin 8155 -> 9852 bytes
   tests/data/acpi/x86/pc/DSDT.bridge   | Bin 13701 -> 15398 bytes
   tests/data/acpi/x86/pc/DSDT.cphp     | Bin 7294 -> 8991 bytes
   tests/data/acpi/x86/pc/DSDT.dimmpxm  | Bin 8484 -> 10181 bytes
   tests/data/acpi/x86/pc/DSDT.hpbridge | Bin 6781 -> 8478 bytes
   tests/data/acpi/x86/pc/DSDT.hpbrroot | Bin 3337 -> 5034 bytes
   tests/data/acpi/x86/pc/DSDT.ipmikcs  | Bin 6902 -> 8599 bytes
   tests/data/acpi/x86/pc/DSDT.memhp    | Bin 8189 -> 9886 bytes
   tests/data/acpi/x86/pc/DSDT.nohpet   | Bin 6688 -> 8385 bytes
   tests/data/acpi/x86/pc/DSDT.numamem  | Bin 6836 -> 8533 bytes
   tests/data/acpi/x86/pc/DSDT.roothp   | Bin 10623 -> 12320 bytes
   tests/data/acpi/x86/q35/DSDT.cxl     | Bin 9714 -> 13148 bytes
   tests/data/acpi/x86/q35/DSDT.viot    | Bin 9464 -> 14615 bytes
   16 files changed, 22 insertions(+), 98 deletions(-)