qemu/tests/data/acpi/pc
Igor Mammedov 6e2e2e8a42 tests: acpi: update acpi blobs with new AML
here is diff against tests/data/acpi/q35/DSDT
for currently shipped ovmf binary.
(once firmware blob is updated, it will negotiate CPU hotplug
feature which will ad extra hunk sending SMI and Q35 tests will
need to be updated), but otherwise diff shows new CPU hotplug
AML that is shared between q35 and pc machines.

             Method (CSCN, 0, Serialized)
             {
                 Acquire (\_SB.PCI0.PRES.CPLK, 0xFFFF)
-                Local0 = One
-                While ((Local0 == One))
-                {
-                    Local0 = Zero
-                    \_SB.PCI0.PRES.CCMD = Zero
-                    If ((\_SB.PCI0.PRES.CINS == One))
+                Name (CNEW, Package (0xFF){})
+                Local3 = Zero
+                Local4 = One
+                While ((Local4 == One))
+                {
+                    Local4 = Zero
+                    Local0 = One
+                    Local1 = Zero
+                    While (((Local0 == One) && (Local3 < One)))
                     {
-                        CTFY (\_SB.PCI0.PRES.CDAT, One)
-                        \_SB.PCI0.PRES.CINS = One
-                        Local0 = One
+                        Local0 = Zero
+                        \_SB.PCI0.PRES.CSEL = Local3
+                        \_SB.PCI0.PRES.CCMD = Zero
+                        If ((\_SB.PCI0.PRES.CDAT < Local3))
+                        {
+                            Break
+                        }
+
+                        If ((Local1 == 0xFF))
+                        {
+                            Local4 = One
+                            Break
+                        }
+
+                        Local3 = \_SB.PCI0.PRES.CDAT
+                        If ((\_SB.PCI0.PRES.CINS == One))
+                        {
+                            CNEW [Local1] = Local3
+                            Local1++
+                            Local0 = One
+                        }
+                        ElseIf ((\_SB.PCI0.PRES.CRMV == One))
+                        {
+                            CTFY (Local3, 0x03)
+                            \_SB.PCI0.PRES.CRMV = One
+                            Local0 = One
+                        }
+
+                        Local3++
                     }
-                    ElseIf ((\_SB.PCI0.PRES.CRMV == One))
+
+                    Local2 = Zero
+                    While ((Local2 < Local1))
                     {
-                        CTFY (\_SB.PCI0.PRES.CDAT, 0x03)
-                        \_SB.PCI0.PRES.CRMV = One
-                        Local0 = One
+                        Local3 = DerefOf (CNEW [Local2])
+                        CTFY (Local3, One)
+                        Debug = Local3
+                        \_SB.PCI0.PRES.CSEL = Local3
+                        \_SB.PCI0.PRES.CINS = One
+                        Local2++
                     }
                 }

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20200923094650.1301166-11-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2020-09-29 02:15:24 -04:00
..
APIC tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
APIC.acpihmat ACPI: add expected files for HMAT tests (acpihmat) 2020-01-05 07:03:03 -05:00
APIC.cphp tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
APIC.dimmpxm tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
DSDT tests: acpi: update acpi blobs with new AML 2020-09-29 02:15:24 -04:00
DSDT.acpihmat tests: acpi: update acpi blobs with new AML 2020-09-29 02:15:24 -04:00
DSDT.bridge tests: acpi: update acpi blobs with new AML 2020-09-29 02:15:24 -04:00
DSDT.cphp tests: acpi: update acpi blobs with new AML 2020-09-29 02:15:24 -04:00
DSDT.dimmpxm tests: acpi: update acpi blobs with new AML 2020-09-29 02:15:24 -04:00
DSDT.ipmikcs tests: acpi: update acpi blobs with new AML 2020-09-29 02:15:24 -04:00
DSDT.memhp tests: acpi: update acpi blobs with new AML 2020-09-29 02:15:24 -04:00
DSDT.numamem tests: acpi: update acpi blobs with new AML 2020-09-29 02:15:24 -04:00
FACP tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
FACS tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
HMAT.acpihmat ACPI: add expected files for HMAT tests (acpihmat) 2020-01-05 07:03:03 -05:00
HPET tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
NFIT.dimmpxm tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
SLIT.cphp tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
SLIT.memhp tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
SRAT.acpihmat ACPI: add expected files for HMAT tests (acpihmat) 2020-01-05 07:03:03 -05:00
SRAT.cphp tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
SRAT.dimmpxm tests/acpi: update expected SRAT files 2020-06-09 12:46:45 -04:00
SRAT.memhp tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
SRAT.numamem tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
SSDT.dimmpxm tests/acpi: add expected tables for bios-tables-test 2020-05-04 10:25:03 -04:00
WAET acpi: unit-test: Update WAET ACPI Table expected binaries 2020-05-04 10:25:03 -04:00