qemu/tests/data/acpi/pc
Robert Hoo a023c4b2e7 test/acpi/bios-tables-test: SSDT: update golden master binaries
And empty bios-tables-test-allowed-diff.h.

Diff of ASL form, from qtest testlog.txt:

@@ -1,30 +1,30 @@
 /*
  * Intel ACPI Component Architecture
  * AML/ASL+ Disassembler version 20180629 (64-bit version)
  * Copyright (c) 2000 - 2018 Intel Corporation
  *
  * Disassembling to symbolic ASL+ operators
  *
- * Disassembly of tests/data/acpi/pc/SSDT.dimmpxm, Thu Sep 22 18:25:06 2022
+ * Disassembly of /tmp/aml-YYZZS1, Thu Sep 22 18:25:06 2022
  *
  * Original Table Header:
  *     Signature        "SSDT"
- *     Length           0x000002DE (734)
+ *     Length           0x00000717 (1815)
  *     Revision         0x01
- *     Checksum         0x56
+ *     Checksum         0xBC
  *     OEM ID           "BOCHS "
  *     OEM Table ID     "NVDIMM"
  *     OEM Revision     0x00000001 (1)
  *     Compiler ID      "BXPC"
  *     Compiler Version 0x00000001 (1)
  */
 DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM", 0x00000001)
 {
     Scope (\_SB)
     {
         Device (NVDR)
         {
             Name (_HID, "ACPI0012" /* NVDIMM Root Device */)  // _HID: Hardware ID
             Method (NCAL, 5, Serialized)
             {
                 Local6 = MEMA /* \MEMA */
@@ -49,52 +49,52 @@
                     ODAT,   32736
                 }

                 If ((Arg4 == Zero))
                 {
                     Local0 = ToUUID ("2f10e7a4-9e91-11e4-89d3-123b93f75cba")
                 }
                 ElseIf ((Arg4 == 0x00010000))
                 {
                     Local0 = ToUUID ("648b9cf2-cda1-4312-8ad9-49c4af32bd62")
                 }
                 Else
                 {
                     Local0 = ToUUID ("4309ac30-0d11-11e4-9191-0800200c9a66")
                 }

-                If (((Local6 == Zero) | (Arg0 != Local0)))
+                If (((Local6 == Zero) || (Arg0 != Local0)))
                 {
                     If ((Arg2 == Zero))
                     {
                         Return (Buffer (One)
                         {
                              0x00                                             // .
                         })
                     }

                     Return (Buffer (One)
                     {
                          0x01                                             // .
                     })
                 }

                 HDLE = Arg4
                 REVS = Arg1
                 FUNC = Arg2
-                If (((ObjectType (Arg3) == 0x04) & (SizeOf (Arg3) == One)))
+                If (((ObjectType (Arg3) == 0x04) && (SizeOf (Arg3) == One)))
                 {
                     Local2 = Arg3 [Zero]
                     Local3 = DerefOf (Local2)
                     FARG = Local3
                 }

                 NTFI = Local6
                 Local1 = (RLEN - 0x04)
                 If ((Local1 < 0x08))
                 {
                     Local2 = Zero
                     Name (TBUF, Buffer (One)
                     {
                          0x00                                             // .
                     })
                     Local7 = Buffer (Zero){}
@@ -161,45 +161,234 @@
                     Else
                     {
                         If ((Local1 == Zero))
                         {
                             Return (Local2)
                         }

                         Local3 += Local1
                         Concatenate (Local2, Local0, Local2)
                     }
                 }
             }

             Device (NV00)
             {
                 Name (_ADR, One)  // _ADR: Address
+                Method (_LSI, 0, Serialized)  // _LSI: Label Storage Information
+                {
+                    Local0 = NCAL (ToUUID ("4309ac30-0d11-11e4-9191-0800200c9a66"), One, 0x04, Zero, One)
+                    CreateDWordField (Local0, Zero, STTS)
+                    CreateDWordField (Local0, 0x04, SLSA)
+                    CreateDWordField (Local0, 0x08, MAXT)
+                    Local1 = Package (0x03)
+                        {
+                            STTS,
+                            SLSA,
+                            MAXT
+                        }
+                    Return (Local1)
+                }
+
+                Method (_LSR, 2, Serialized)  // _LSR: Label Storage Read
+                {
+                    Name (INPT, Buffer (0x08)
+                    {
+                         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00   // ........
+                    })
+                    CreateDWordField (INPT, Zero, OFST)
+                    CreateDWordField (INPT, 0x04, LEN)
+                    OFST = Arg0
+                    LEN = Arg1
+                    Local0 = Package (0x01)
+                        {
+                            INPT
+                        }
+                    Local3 = NCAL (ToUUID ("4309ac30-0d11-11e4-9191-0800200c9a66"), One, 0x05, Local0, One)
+                    CreateDWordField (Local3, Zero, STTS)
+                    CreateField (Local3, 0x20, (LEN << 0x03), LDAT)
+                    Name (LSA, Buffer (Zero){})
+                    ToBuffer (LDAT, LSA) /* \_SB_.NVDR.NV00._LSR.LSA_ */
+                    Local1 = Package (0x02)
+                        {
+                            STTS,
+                            LSA
+                        }
+                    Return (Local1)
+                }
+
+                Method (_LSW, 3, Serialized)  // _LSW: Label Storage Write
+                {
+                    Local2 = Arg2
+                    Name (INPT, Buffer (0x08)
+                    {
+                         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00   // ........
+                    })
+                    CreateDWordField (INPT, Zero, OFST)
+                    CreateDWordField (INPT, 0x04, TLEN)
+                    OFST = Arg0
+                    TLEN = Arg1
+                    Concatenate (INPT, Local2, INPT) /* \_SB_.NVDR.NV00._LSW.INPT */
+                    Local0 = Package (0x01)
+                        {
+                            INPT
+                        }
+                    Local3 = NCAL (ToUUID ("4309ac30-0d11-11e4-9191-0800200c9a66"), One, 0x06, Local0, One)
+                    CreateDWordField (Local3, Zero, STTS)
+                    Return (STTS) /* \_SB_.NVDR.NV00._LSW.STTS */
+                }
+
(iterates in each NV)

Message-Id: <20220922122155.1326543-6-robert.hu@linux.intel.com>
Signed-off-by: Robert Hoo <robert.hu@linux.intel.com>
Acked-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2022-11-02 06:56:32 -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 tests: acpi: update expected blobs 2022-10-09 16:38:46 -04:00
DSDT.acpierst tests: acpi: update expected blobs 2022-10-09 16:38:46 -04:00
DSDT.acpihmat tests: acpi: update expected blobs 2022-10-09 16:38:46 -04:00
DSDT.bridge tests: acpi: update expected blobs 2022-10-09 16:38:46 -04:00
DSDT.cphp tests: acpi: update expected blobs 2022-10-09 16:38:46 -04:00
DSDT.dimmpxm tests: acpi: update expected blobs 2022-10-09 16:38:46 -04:00
DSDT.hpbridge tests: acpi: update expected blobs 2022-10-09 16:38:46 -04:00
DSDT.hpbrroot tests: acpi: update expected blobs after HPET move 2022-10-09 16:38:45 -04:00
DSDT.ipmikcs tests: acpi: update expected blobs 2022-10-09 16:38:46 -04:00
DSDT.memhp tests: acpi: update expected blobs 2022-10-09 16:38:46 -04:00
DSDT.nohpet tests: acpi: update expected blobs 2022-10-09 16:38:46 -04:00
DSDT.numamem tests: acpi: update expected blobs 2022-10-09 16:38:46 -04:00
DSDT.roothp tests: acpi: update expected blobs 2022-10-09 16:38:46 -04:00
ERST.acpierst ACPI ERST: step 6 of bios-tables-test.c 2022-02-06 04:33:50 -05: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
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.numamem tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00
SSDT.dimmpxm test/acpi/bios-tables-test: SSDT: update golden master binaries 2022-11-02 06:56:32 -04:00
WAET tests/acpi: update expected data files 2021-02-05 08:52:59 -05:00