qemu/tests/data/acpi/q35
Julia Suvorova 1580b897c7 bios-tables-test: Update golden binaries
Add ACPI hot-plug registers to DSDT Q35 tables.
Changes in the tables:

+    Scope (_SB.PCI0)
+    {
+        OperationRegion (PCST, SystemIO, 0x0CC4, 0x08)
+        Field (PCST, DWordAcc, NoLock, WriteAsZeros)
+        {
+            PCIU,   32,
+            PCID,   32
+        }
+
+        OperationRegion (SEJ, SystemIO, 0x0CCC, 0x04)
+        Field (SEJ, DWordAcc, NoLock, WriteAsZeros)
+        {
+            B0EJ,   32
+        }
+
+        OperationRegion (BNMR, SystemIO, 0x0CD4, 0x08)
+        Field (BNMR, DWordAcc, NoLock, WriteAsZeros)
+        {
+            BNUM,   32,
+            PIDX,   32
+        }
+
+        Mutex (BLCK, 0x00)
+        Method (PCEJ, 2, NotSerialized)
+        {
+            Acquire (BLCK, 0xFFFF)
+            BNUM = Arg0
+            B0EJ = (One << Arg1)
+            Release (BLCK)
+            Return (Zero)
+        }
+
+        Method (AIDX, 2, NotSerialized)
+        {
+            Acquire (BLCK, 0xFFFF)
+            BNUM = Arg0
+            PIDX = (One << Arg1)
+            Local0 = PIDX /* \_SB_.PCI0.PIDX */
+            Release (BLCK)
+            Return (Local0)
+        }
+
+        Method (PDSM, 6, Serialized)
+        {
+            If ((Arg0 == ToUUID ("e5c937d0-3553-4d7a-9117-ea4d19c3434d") /* Device Labeling Interface */))
+            {
+                Local0 = AIDX (Arg4, Arg5)
+                If ((Arg2 == Zero))
+                {
+                    If ((Arg1 == 0x02))
+                    {
+                        If (!((Local0 == Zero) | (Local0 == 0xFFFFFFFF)))
+                        {
+                            Return (Buffer (One)
+                            {
+                                 0x81                                             // .
+                            })
+                        }
+                    }
+
+                    Return (Buffer (One)
+                    {
+                         0x00                                             // .
+                    })
+                }
+                ElseIf ((Arg2 == 0x07))
+                {
+                    Local1 = Package (0x02)
+                        {
+                            Zero,
+                            ""
+                        }
+                    Local1 [Zero] = Local0
+                    Return (Local1)
+                }
+            }
+        }
+    }
+
...

     Scope (_GPE)
     {
         Name (_HID, "ACPI0006" /* GPE Block Device */)  // _HID: Hardware ID
+        Method (_E01, 0, NotSerialized)  // _Exx: Edge-Triggered GPE, xx=0x00-0xFF
+        {
+            Acquire (\_SB.PCI0.BLCK, 0xFFFF)
+            \_SB.PCI0.PCNT ()
+            Release (\_SB.PCI0.BLCK)
+        }
...

+
+        Device (PHPR)
+        {
+            Name (_HID, "PNP0A06" /* Generic Container Device */)  // _HID: Hardware ID
+            Name (_UID, "PCI Hotplug resources")  // _UID: Unique ID
+            Name (_STA, 0x0B)  // _STA: Status
+            Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
+            {
+                IO (Decode16,
+                    0x0CC4,             // Range Minimum
+                    0x0CC4,             // Range Maximum
+                    0x01,               // Alignment
+                    0x18,               // Length
+                    )
+            })
+        }
     }
...

And if there is a port in configuration:

             Device (S10)
             {
                 Name (_ADR, 0x00020000)  // _ADR: Address
+                Name (BSEL, Zero)
+                Device (S00)
+                {
+                    Name (_SUN, Zero)  // _SUN: Slot User Number
+                    Name (_ADR, Zero)  // _ADR: Address
+                    Method (_EJ0, 1, NotSerialized)  // _EJx: Eject Device, x=0-9
+                    {
+                        PCEJ (BSEL, _SUN)
+                    }
+
+                    Method (_DSM, 4, Serialized)  // _DSM: Device-Specific Method
+                    {
+                        Return (PDSM (Arg0, Arg1, Arg2, Arg3, BSEL, _SUN))
+                    }
+                }
+
...

+                Method (DVNT, 2, NotSerialized)
+                {
+                    If ((Arg0 & One))
+                    {
+                        Notify (S00, Arg1)
+                    }
...

Signed-off-by: Julia Suvorova <jusual@redhat.com>
Message-Id: <20210713004205.775386-7-jusual@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2021-07-16 04:34:23 -04:00
..
APIC tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
APIC.acpihmat tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
APIC.cphp tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
APIC.dimmpxm tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
DSDT bios-tables-test: Update golden binaries 2021-07-16 04:34:23 -04:00
DSDT.acpihmat bios-tables-test: Update golden binaries 2021-07-16 04:34:23 -04:00
DSDT.bridge bios-tables-test: Update golden binaries 2021-07-16 04:34:23 -04:00
DSDT.cphp bios-tables-test: Update golden binaries 2021-07-16 04:34:23 -04:00
DSDT.dimmpxm bios-tables-test: Update golden binaries 2021-07-16 04:34:23 -04:00
DSDT.ipmibt bios-tables-test: Update golden binaries 2021-07-16 04:34:23 -04:00
DSDT.memhp bios-tables-test: Update golden binaries 2021-07-16 04:34:23 -04:00
DSDT.mmio64 bios-tables-test: Update golden binaries 2021-07-16 04:34:23 -04:00
DSDT.nohpet bios-tables-test: Update golden binaries 2021-07-16 04:34:23 -04:00
DSDT.numamem bios-tables-test: Update golden binaries 2021-07-16 04:34:23 -04:00
DSDT.tis bios-tables-test: Update golden binaries 2021-07-16 04:34:23 -04:00
FACP tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
FACP.nosmm qtest/acpi/bios-tables-test: update acpi tables 2021-02-23 10:58:42 -05:00
FACS tests: Move tests/acpi-test-data/ to tests/data/acpi/ 2018-11-05 13:23:31 -05:00
HMAT.acpihmat tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
HPET tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
MCFG tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
NFIT.dimmpxm tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
SLIT.cphp tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
SLIT.memhp tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
SRAT.acpihmat tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
SRAT.cphp tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
SRAT.dimmpxm tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
SRAT.memhp tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
SRAT.mmio64 tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
SRAT.numamem tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
SSDT.dimmpxm tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
TPM2.tis tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
WAET tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00