[PATCH v4 3/3] tests/acpi: i386: update FACP table differences

Liav Albani posted 3 patches 3 years, 11 months ago
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Ani Sinha <ani@anisinha.ca>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Eduardo Habkost <eduardo@habkost.net>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
There is a newer version of this series
[PATCH v4 3/3] tests/acpi: i386: update FACP table differences
Posted by Liav Albani 3 years, 11 months ago
After changing the IAPC boot flags register to indicate support of i8042
in the machine chipset to help the guest OS to determine its existence
"faster", we need to have the updated FACP ACPI binary images in tree.

@@ -1,32 +1,32 @@
 /*
  * Intel ACPI Component Architecture
  * AML/ASL+ Disassembler version 20211217 (64-bit version)
  * Copyright (c) 2000 - 2021 Intel Corporation
  *
- * Disassembly of tests/data/acpi/q35/FACP, Wed Feb 23 22:37:39 2022
+ * Disassembly of /tmp/aml-BBFBI1, Wed Feb 23 22:37:39 2022
  *
  * ACPI Data Table [FACP]
  *
  * Format: [HexOffset DecimalOffset ByteLength]  FieldName : FieldValue (in hex)
  */

 [000h 0000   4]                    Signature : "FACP"    [Fixed ACPI Description Table (FADT)]
 [004h 0004   4]                 Table Length : 000000F4
 [008h 0008   1]                     Revision : 03
-[009h 0009   1]                     Checksum : B9
+[009h 0009   1]                     Checksum : B7
 [00Ah 0010   6]                       Oem ID : "BOCHS "
 [010h 0016   8]                 Oem Table ID : "BXPC    "
 [018h 0024   4]                 Oem Revision : 00000001
 [01Ch 0028   4]              Asl Compiler ID : "BXPC"
 [020h 0032   4]        Asl Compiler Revision : 00000001

 [024h 0036   4]                 FACS Address : 00000000
 [028h 0040   4]                 DSDT Address : 00000000
 [02Ch 0044   1]                        Model : 01
 [02Dh 0045   1]                   PM Profile : 00 [Unspecified]
 [02Eh 0046   2]                SCI Interrupt : 0009
 [030h 0048   4]             SMI Command Port : 000000B2
 [034h 0052   1]            ACPI Enable Value : 02
 [035h 0053   1]           ACPI Disable Value : 03
 [036h 0054   1]               S4BIOS Command : 00
 [037h 0055   1]              P-State Control : 00
@@ -42,35 +42,35 @@
 [059h 0089   1]     PM1 Control Block Length : 02
 [05Ah 0090   1]     PM2 Control Block Length : 00
 [05Bh 0091   1]        PM Timer Block Length : 04
 [05Ch 0092   1]            GPE0 Block Length : 10
 [05Dh 0093   1]            GPE1 Block Length : 00
 [05Eh 0094   1]             GPE1 Base Offset : 00
 [05Fh 0095   1]                 _CST Support : 00
 [060h 0096   2]                   C2 Latency : 0FFF
 [062h 0098   2]                   C3 Latency : 0FFF
 [064h 0100   2]               CPU Cache Size : 0000
 [066h 0102   2]           Cache Flush Stride : 0000
 [068h 0104   1]            Duty Cycle Offset : 00
 [069h 0105   1]             Duty Cycle Width : 00
 [06Ah 0106   1]          RTC Day Alarm Index : 00
 [06Bh 0107   1]        RTC Month Alarm Index : 00
 [06Ch 0108   1]            RTC Century Index : 32
-[06Dh 0109   2]   Boot Flags (decoded below) : 0000
+[06Dh 0109   2]   Boot Flags (decoded below) : 0002
                Legacy Devices Supported (V2) : 0
-            8042 Present on ports 60/64 (V2) : 0
+            8042 Present on ports 60/64 (V2) : 1
                         VGA Not Present (V4) : 0
                       MSI Not Supported (V4) : 0
                 PCIe ASPM Not Supported (V4) : 0
                    CMOS RTC Not Present (V5) : 0
 [06Fh 0111   1]                     Reserved : 00
 [070h 0112   4]        Flags (decoded below) : 000084A5
       WBINVD instruction is operational (V1) : 1
               WBINVD flushes all caches (V1) : 0
                     All CPUs support C1 (V1) : 1
                   C2 works on MP system (V1) : 0
             Control Method Power Button (V1) : 0
             Control Method Sleep Button (V1) : 1
         RTC wake not in fixed reg space (V1) : 0
             RTC can wake system from S4 (V1) : 1
                         32-bit PM Timer (V1) : 0
                       Docking Supported (V1) : 0
@@ -148,32 +148,32 @@
 [0DCh 0220   1]                     Space ID : 01 [SystemIO]
 [0DDh 0221   1]                    Bit Width : 80
 [0DEh 0222   1]                   Bit Offset : 00
 [0DFh 0223   1]         Encoded Access Width : 00 [Undefined/Legacy]
 [0E0h 0224   8]                      Address : 0000000000000620

 [0E8h 0232  12]                   GPE1 Block : [Generic Address Structure]
 [0E8h 0232   1]                     Space ID : 00 [SystemMemory]
 [0E9h 0233   1]                    Bit Width : 00
 [0EAh 0234   1]                   Bit Offset : 00
 [0EBh 0235   1]         Encoded Access Width : 00 [Undefined/Legacy]
 [0ECh 0236   8]                      Address : 0000000000000000

 Raw Table Data: Length 244 (0xF4)

-    0000: 46 41 43 50 F4 00 00 00 03 B9 42 4F 43 48 53 20  // FACP......BOCHS
+    0000: 46 41 43 50 F4 00 00 00 03 B7 42 4F 43 48 53 20  // FACP......BOCHS
     0010: 42 58 50 43 20 20 20 20 01 00 00 00 42 58 50 43  // BXPC    ....BXPC
     0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00  // ................
     0030: B2 00 00 00 02 03 00 00 00 06 00 00 00 00 00 00  // ................
     0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00  // ................
     0050: 20 06 00 00 00 00 00 00 04 02 00 04 10 00 00 00  //  ...............
-    0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00  // ............2...
+    0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 02 00 00  // ............2...
     0070: A5 84 00 00 01 08 00 00 F9 0C 00 00 00 00 00 00  // ................
     0080: 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
     0090: 00 00 00 00 01 20 00 00 00 06 00 00 00 00 00 00  // ..... ..........
     00A0: 00 00 00 00 00 00 00 00 00 00 00 00 01 10 00 00  // ................
     00B0: 04 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
     00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
     00D0: 01 20 00 00 08 06 00 00 00 00 00 00 01 80 00 00  // . ..............
     00E0: 20 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00  //  ...............
     00F0: 00 00 00 00                                      // ....
**

Signed-off-by: Liav Albani <liavalb@gmail.com>
---
 tests/data/acpi/q35/FACP                    | Bin 244 -> 244 bytes
 tests/data/acpi/q35/FACP.nosmm              | Bin 244 -> 244 bytes
 tests/data/acpi/q35/FACP.slic               | Bin 244 -> 244 bytes
 tests/data/acpi/q35/FACP.xapic              | Bin 244 -> 244 bytes
 tests/qtest/bios-tables-test-allowed-diff.h |   4 ----
 5 files changed, 4 deletions(-)

diff --git a/tests/data/acpi/q35/FACP b/tests/data/acpi/q35/FACP
index f6a864cc863c7763f6c09d3814ad184a658fa0a0..a8f6a8961109d01059aceef9f1869cde09a2f10c 100644
GIT binary patch
delta 23
ecmeyu_=S<n&CxmF3j+fK^Y)2c$&5@B^V$GgGY3Ne

delta 23
ecmeyu_=S<n&CxmF3j+fK^UjG}$&3sW^V$GgJqJSo

diff --git a/tests/data/acpi/q35/FACP.nosmm b/tests/data/acpi/q35/FACP.nosmm
index 6a9aa5f370eb9af6a03dc739d8a159be58fdee01..c4e6d18ee5fc64159160d4589aa96b4d648c913a 100644
GIT binary patch
delta 23
ecmeyu_=S<n&CxmF3j+fKbKXR*WJacmd2Ik#q6Yc^

delta 23
ecmeyu_=S<n&CxmF3j+fKbHPNeWJZRGd2Ik#tOoi3

diff --git a/tests/data/acpi/q35/FACP.slic b/tests/data/acpi/q35/FACP.slic
index 15986e095cf2db7ee92f7ce113c1d46d54018c62..48bbb1cf5ad0ceda1d2f6d56edf5c1e207bd1a04 100644
GIT binary patch
delta 23
ecmeyu_=S<n&CxmF3j+fK^M#3A$&5@B^V$Gh6bD=Y

delta 23
ecmeyu_=S<n&CxmF3j+fK^QDPg$&3sW^V$Gh9tT_i

diff --git a/tests/data/acpi/q35/FACP.xapic b/tests/data/acpi/q35/FACP.xapic
index 2d3659c9c6753d07c3d48742343cb8e8cc034de7..31fa5dd19c213034eef4eeefa6a04e61dadd8a2a 100644
GIT binary patch
delta 23
ecmeyu_=S<n&CxmF3j+fK^X7?M$&5@B^V$Gg4+lR0

delta 23
ecmeyu_=S<n&CxmF3j+fK^VW%6$&3sW^V$Gg83#WA

diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h
index 7570e39369..dfb8523c8b 100644
--- a/tests/qtest/bios-tables-test-allowed-diff.h
+++ b/tests/qtest/bios-tables-test-allowed-diff.h
@@ -1,5 +1 @@
 /* List of comma-separated changed AML files to ignore */
-"tests/data/acpi/q35/FACP",
-"tests/data/acpi/q35/FACP.nosmm",
-"tests/data/acpi/q35/FACP.slic",
-"tests/data/acpi/q35/FACP.xapic",
-- 
2.35.1
Re: [PATCH v4 3/3] tests/acpi: i386: update FACP table differences
Posted by Ani Sinha 3 years, 11 months ago

On Mon, 28 Feb 2022, Liav Albani wrote:

> After changing the IAPC boot flags register to indicate support of i8042
> in the machine chipset to help the guest OS to determine its existence
> "faster", we need to have the updated FACP ACPI binary images in tree.
>
> @@ -1,32 +1,32 @@
>  /*
>   * Intel ACPI Component Architecture
>   * AML/ASL+ Disassembler version 20211217 (64-bit version)
>   * Copyright (c) 2000 - 2021 Intel Corporation
>   *
> - * Disassembly of tests/data/acpi/q35/FACP, Wed Feb 23 22:37:39 2022
> + * Disassembly of /tmp/aml-BBFBI1, Wed Feb 23 22:37:39 2022
>   *
>   * ACPI Data Table [FACP]
>   *
>   * Format: [HexOffset DecimalOffset ByteLength]  FieldName : FieldValue (in hex)
>   */
>
>  [000h 0000   4]                    Signature : "FACP"    [Fixed ACPI Description Table (FADT)]
>  [004h 0004   4]                 Table Length : 000000F4
>  [008h 0008   1]                     Revision : 03
> -[009h 0009   1]                     Checksum : B9
> +[009h 0009   1]                     Checksum : B7
>  [00Ah 0010   6]                       Oem ID : "BOCHS "
>  [010h 0016   8]                 Oem Table ID : "BXPC    "
>  [018h 0024   4]                 Oem Revision : 00000001
>  [01Ch 0028   4]              Asl Compiler ID : "BXPC"
>  [020h 0032   4]        Asl Compiler Revision : 00000001
>
>  [024h 0036   4]                 FACS Address : 00000000
>  [028h 0040   4]                 DSDT Address : 00000000
>  [02Ch 0044   1]                        Model : 01
>  [02Dh 0045   1]                   PM Profile : 00 [Unspecified]
>  [02Eh 0046   2]                SCI Interrupt : 0009
>  [030h 0048   4]             SMI Command Port : 000000B2
>  [034h 0052   1]            ACPI Enable Value : 02
>  [035h 0053   1]           ACPI Disable Value : 03
>  [036h 0054   1]               S4BIOS Command : 00
>  [037h 0055   1]              P-State Control : 00
> @@ -42,35 +42,35 @@
>  [059h 0089   1]     PM1 Control Block Length : 02
>  [05Ah 0090   1]     PM2 Control Block Length : 00
>  [05Bh 0091   1]        PM Timer Block Length : 04
>  [05Ch 0092   1]            GPE0 Block Length : 10
>  [05Dh 0093   1]            GPE1 Block Length : 00
>  [05Eh 0094   1]             GPE1 Base Offset : 00
>  [05Fh 0095   1]                 _CST Support : 00
>  [060h 0096   2]                   C2 Latency : 0FFF
>  [062h 0098   2]                   C3 Latency : 0FFF
>  [064h 0100   2]               CPU Cache Size : 0000
>  [066h 0102   2]           Cache Flush Stride : 0000
>  [068h 0104   1]            Duty Cycle Offset : 00
>  [069h 0105   1]             Duty Cycle Width : 00
>  [06Ah 0106   1]          RTC Day Alarm Index : 00
>  [06Bh 0107   1]        RTC Month Alarm Index : 00
>  [06Ch 0108   1]            RTC Century Index : 32
> -[06Dh 0109   2]   Boot Flags (decoded below) : 0000
> +[06Dh 0109   2]   Boot Flags (decoded below) : 0002
>                 Legacy Devices Supported (V2) : 0
> -            8042 Present on ports 60/64 (V2) : 0
> +            8042 Present on ports 60/64 (V2) : 1
>                          VGA Not Present (V4) : 0
>                        MSI Not Supported (V4) : 0
>                  PCIe ASPM Not Supported (V4) : 0
>                     CMOS RTC Not Present (V5) : 0
>  [06Fh 0111   1]                     Reserved : 00
>  [070h 0112   4]        Flags (decoded below) : 000084A5
>        WBINVD instruction is operational (V1) : 1
>                WBINVD flushes all caches (V1) : 0
>                      All CPUs support C1 (V1) : 1
>                    C2 works on MP system (V1) : 0
>              Control Method Power Button (V1) : 0
>              Control Method Sleep Button (V1) : 1
>          RTC wake not in fixed reg space (V1) : 0
>              RTC can wake system from S4 (V1) : 1
>                          32-bit PM Timer (V1) : 0
>                        Docking Supported (V1) : 0
> @@ -148,32 +148,32 @@
>  [0DCh 0220   1]                     Space ID : 01 [SystemIO]
>  [0DDh 0221   1]                    Bit Width : 80
>  [0DEh 0222   1]                   Bit Offset : 00
>  [0DFh 0223   1]         Encoded Access Width : 00 [Undefined/Legacy]
>  [0E0h 0224   8]                      Address : 0000000000000620
>
>  [0E8h 0232  12]                   GPE1 Block : [Generic Address Structure]
>  [0E8h 0232   1]                     Space ID : 00 [SystemMemory]
>  [0E9h 0233   1]                    Bit Width : 00
>  [0EAh 0234   1]                   Bit Offset : 00
>  [0EBh 0235   1]         Encoded Access Width : 00 [Undefined/Legacy]
>  [0ECh 0236   8]                      Address : 0000000000000000
>
>  Raw Table Data: Length 244 (0xF4)
>
> -    0000: 46 41 43 50 F4 00 00 00 03 B9 42 4F 43 48 53 20  // FACP......BOCHS
> +    0000: 46 41 43 50 F4 00 00 00 03 B7 42 4F 43 48 53 20  // FACP......BOCHS
>      0010: 42 58 50 43 20 20 20 20 01 00 00 00 42 58 50 43  // BXPC    ....BXPC
>      0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00  // ................
>      0030: B2 00 00 00 02 03 00 00 00 06 00 00 00 00 00 00  // ................
>      0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00  // ................
>      0050: 20 06 00 00 00 00 00 00 04 02 00 04 10 00 00 00  //  ...............
> -    0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00  // ............2...
> +    0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 02 00 00  // ............2...
>      0070: A5 84 00 00 01 08 00 00 F9 0C 00 00 00 00 00 00  // ................
>      0080: 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
>      0090: 00 00 00 00 01 20 00 00 00 06 00 00 00 00 00 00  // ..... ..........
>      00A0: 00 00 00 00 00 00 00 00 00 00 00 00 01 10 00 00  // ................
>      00B0: 04 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
>      00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
>      00D0: 01 20 00 00 08 06 00 00 00 00 00 00 01 80 00 00  // . ..............
>      00E0: 20 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00  //  ...............
>      00F0: 00 00 00 00                                      // ....
> **

Please retain tags from earlier revisions of the patch.

>
> Signed-off-by: Liav Albani <liavalb@gmail.com>

Acked-by: Ani Sinha <ani@anisinha.ca>

> ---
>  tests/data/acpi/q35/FACP                    | Bin 244 -> 244 bytes
>  tests/data/acpi/q35/FACP.nosmm              | Bin 244 -> 244 bytes
>  tests/data/acpi/q35/FACP.slic               | Bin 244 -> 244 bytes
>  tests/data/acpi/q35/FACP.xapic              | Bin 244 -> 244 bytes
>  tests/qtest/bios-tables-test-allowed-diff.h |   4 ----
>  5 files changed, 4 deletions(-)
>
> diff --git a/tests/data/acpi/q35/FACP b/tests/data/acpi/q35/FACP
> index f6a864cc863c7763f6c09d3814ad184a658fa0a0..a8f6a8961109d01059aceef9f1869cde09a2f10c 100644
> GIT binary patch
> delta 23
> ecmeyu_=S<n&CxmF3j+fK^Y)2c$&5@B^V$GgGY3Ne
>
> delta 23
> ecmeyu_=S<n&CxmF3j+fK^UjG}$&3sW^V$GgJqJSo
>
> diff --git a/tests/data/acpi/q35/FACP.nosmm b/tests/data/acpi/q35/FACP.nosmm
> index 6a9aa5f370eb9af6a03dc739d8a159be58fdee01..c4e6d18ee5fc64159160d4589aa96b4d648c913a 100644
> GIT binary patch
> delta 23
> ecmeyu_=S<n&CxmF3j+fKbKXR*WJacmd2Ik#q6Yc^
>
> delta 23
> ecmeyu_=S<n&CxmF3j+fKbHPNeWJZRGd2Ik#tOoi3
>
> diff --git a/tests/data/acpi/q35/FACP.slic b/tests/data/acpi/q35/FACP.slic
> index 15986e095cf2db7ee92f7ce113c1d46d54018c62..48bbb1cf5ad0ceda1d2f6d56edf5c1e207bd1a04 100644
> GIT binary patch
> delta 23
> ecmeyu_=S<n&CxmF3j+fK^M#3A$&5@B^V$Gh6bD=Y
>
> delta 23
> ecmeyu_=S<n&CxmF3j+fK^QDPg$&3sW^V$Gh9tT_i
>
> diff --git a/tests/data/acpi/q35/FACP.xapic b/tests/data/acpi/q35/FACP.xapic
> index 2d3659c9c6753d07c3d48742343cb8e8cc034de7..31fa5dd19c213034eef4eeefa6a04e61dadd8a2a 100644
> GIT binary patch
> delta 23
> ecmeyu_=S<n&CxmF3j+fK^X7?M$&5@B^V$Gg4+lR0
>
> delta 23
> ecmeyu_=S<n&CxmF3j+fK^VW%6$&3sW^V$Gg83#WA
>
> diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h
> index 7570e39369..dfb8523c8b 100644
> --- a/tests/qtest/bios-tables-test-allowed-diff.h
> +++ b/tests/qtest/bios-tables-test-allowed-diff.h
> @@ -1,5 +1 @@
>  /* List of comma-separated changed AML files to ignore */
> -"tests/data/acpi/q35/FACP",
> -"tests/data/acpi/q35/FACP.nosmm",
> -"tests/data/acpi/q35/FACP.slic",
> -"tests/data/acpi/q35/FACP.xapic",
> --
> 2.35.1
>
>
Re: [PATCH v4 3/3] tests/acpi: i386: update FACP table differences
Posted by Michael S. Tsirkin 3 years, 11 months ago
On Tue, Mar 01, 2022 at 08:29:57AM +0530, Ani Sinha wrote:
> 
> 
> On Mon, 28 Feb 2022, Liav Albani wrote:
> 
> > After changing the IAPC boot flags register to indicate support of i8042
> > in the machine chipset to help the guest OS to determine its existence
> > "faster", we need to have the updated FACP ACPI binary images in tree.
> >
> > @@ -1,32 +1,32 @@
> >  /*
> >   * Intel ACPI Component Architecture
> >   * AML/ASL+ Disassembler version 20211217 (64-bit version)
> >   * Copyright (c) 2000 - 2021 Intel Corporation
> >   *
> > - * Disassembly of tests/data/acpi/q35/FACP, Wed Feb 23 22:37:39 2022
> > + * Disassembly of /tmp/aml-BBFBI1, Wed Feb 23 22:37:39 2022

cut this out pls

> >   *
> >   * ACPI Data Table [FACP]
> >   *
> >   * Format: [HexOffset DecimalOffset ByteLength]  FieldName : FieldValue (in hex)
> >   */
> >
> >  [000h 0000   4]                    Signature : "FACP"    [Fixed ACPI Description Table (FADT)]
> >  [004h 0004   4]                 Table Length : 000000F4
> >  [008h 0008   1]                     Revision : 03
> > -[009h 0009   1]                     Checksum : B9
> > +[009h 0009   1]                     Checksum : B7

and this

> >  [00Ah 0010   6]                       Oem ID : "BOCHS "
> >  [010h 0016   8]                 Oem Table ID : "BXPC    "
> >  [018h 0024   4]                 Oem Revision : 00000001
> >  [01Ch 0028   4]              Asl Compiler ID : "BXPC"
> >  [020h 0032   4]        Asl Compiler Revision : 00000001
> >
> >  [024h 0036   4]                 FACS Address : 00000000
> >  [028h 0040   4]                 DSDT Address : 00000000
> >  [02Ch 0044   1]                        Model : 01
> >  [02Dh 0045   1]                   PM Profile : 00 [Unspecified]
> >  [02Eh 0046   2]                SCI Interrupt : 0009
> >  [030h 0048   4]             SMI Command Port : 000000B2
> >  [034h 0052   1]            ACPI Enable Value : 02
> >  [035h 0053   1]           ACPI Disable Value : 03
> >  [036h 0054   1]               S4BIOS Command : 00
> >  [037h 0055   1]              P-State Control : 00
> > @@ -42,35 +42,35 @@
> >  [059h 0089   1]     PM1 Control Block Length : 02
> >  [05Ah 0090   1]     PM2 Control Block Length : 00
> >  [05Bh 0091   1]        PM Timer Block Length : 04
> >  [05Ch 0092   1]            GPE0 Block Length : 10
> >  [05Dh 0093   1]            GPE1 Block Length : 00
> >  [05Eh 0094   1]             GPE1 Base Offset : 00
> >  [05Fh 0095   1]                 _CST Support : 00
> >  [060h 0096   2]                   C2 Latency : 0FFF
> >  [062h 0098   2]                   C3 Latency : 0FFF
> >  [064h 0100   2]               CPU Cache Size : 0000
> >  [066h 0102   2]           Cache Flush Stride : 0000
> >  [068h 0104   1]            Duty Cycle Offset : 00
> >  [069h 0105   1]             Duty Cycle Width : 00
> >  [06Ah 0106   1]          RTC Day Alarm Index : 00
> >  [06Bh 0107   1]        RTC Month Alarm Index : 00
> >  [06Ch 0108   1]            RTC Century Index : 32
> > -[06Dh 0109   2]   Boot Flags (decoded below) : 0000
> > +[06Dh 0109   2]   Boot Flags (decoded below) : 0002
> >                 Legacy Devices Supported (V2) : 0
> > -            8042 Present on ports 60/64 (V2) : 0
> > +            8042 Present on ports 60/64 (V2) : 1
> >                          VGA Not Present (V4) : 0
> >                        MSI Not Supported (V4) : 0
> >                  PCIe ASPM Not Supported (V4) : 0
> >                     CMOS RTC Not Present (V5) : 0


leaving just this

> >  [06Fh 0111   1]                     Reserved : 00
> >  [070h 0112   4]        Flags (decoded below) : 000084A5
> >        WBINVD instruction is operational (V1) : 1
> >                WBINVD flushes all caches (V1) : 0
> >                      All CPUs support C1 (V1) : 1
> >                    C2 works on MP system (V1) : 0
> >              Control Method Power Button (V1) : 0
> >              Control Method Sleep Button (V1) : 1
> >          RTC wake not in fixed reg space (V1) : 0
> >              RTC can wake system from S4 (V1) : 1
> >                          32-bit PM Timer (V1) : 0
> >                        Docking Supported (V1) : 0
> > @@ -148,32 +148,32 @@
> >  [0DCh 0220   1]                     Space ID : 01 [SystemIO]
> >  [0DDh 0221   1]                    Bit Width : 80
> >  [0DEh 0222   1]                   Bit Offset : 00
> >  [0DFh 0223   1]         Encoded Access Width : 00 [Undefined/Legacy]
> >  [0E0h 0224   8]                      Address : 0000000000000620
> >
> >  [0E8h 0232  12]                   GPE1 Block : [Generic Address Structure]
> >  [0E8h 0232   1]                     Space ID : 00 [SystemMemory]
> >  [0E9h 0233   1]                    Bit Width : 00
> >  [0EAh 0234   1]                   Bit Offset : 00
> >  [0EBh 0235   1]         Encoded Access Width : 00 [Undefined/Legacy]
> >  [0ECh 0236   8]                      Address : 0000000000000000
> >
> >  Raw Table Data: Length 244 (0xF4)
> >
> > -    0000: 46 41 43 50 F4 00 00 00 03 B9 42 4F 43 48 53 20  // FACP......BOCHS
> > +    0000: 46 41 43 50 F4 00 00 00 03 B7 42 4F 43 48 53 20  // FACP......BOCHS
> >      0010: 42 58 50 43 20 20 20 20 01 00 00 00 42 58 50 43  // BXPC    ....BXPC
> >      0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00  // ................
> >      0030: B2 00 00 00 02 03 00 00 00 06 00 00 00 00 00 00  // ................
> >      0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00  // ................
> >      0050: 20 06 00 00 00 00 00 00 04 02 00 04 10 00 00 00  //  ...............
> > -    0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00  // ............2...
> > +    0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 02 00 00  // ............2...
> >      0070: A5 84 00 00 01 08 00 00 F9 0C 00 00 00 00 00 00  // ................
> >      0080: 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
> >      0090: 00 00 00 00 01 20 00 00 00 06 00 00 00 00 00 00  // ..... ..........
> >      00A0: 00 00 00 00 00 00 00 00 00 00 00 00 01 10 00 00  // ................
> >      00B0: 04 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
> >      00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
> >      00D0: 01 20 00 00 08 06 00 00 00 00 00 00 01 80 00 00  // . ..............
> >      00E0: 20 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00  //  ...............
> >      00F0: 00 00 00 00                                      // ....

this isn't helpful either and will be wrong if cherry picked.


> > **
> 
> Please retain tags from earlier revisions of the patch.
> 
> >
> > Signed-off-by: Liav Albani <liavalb@gmail.com>
> 
> Acked-by: Ani Sinha <ani@anisinha.ca>
> 
> > ---
> >  tests/data/acpi/q35/FACP                    | Bin 244 -> 244 bytes
> >  tests/data/acpi/q35/FACP.nosmm              | Bin 244 -> 244 bytes
> >  tests/data/acpi/q35/FACP.slic               | Bin 244 -> 244 bytes
> >  tests/data/acpi/q35/FACP.xapic              | Bin 244 -> 244 bytes
> >  tests/qtest/bios-tables-test-allowed-diff.h |   4 ----
> >  5 files changed, 4 deletions(-)
> >
> > diff --git a/tests/data/acpi/q35/FACP b/tests/data/acpi/q35/FACP
> > index f6a864cc863c7763f6c09d3814ad184a658fa0a0..a8f6a8961109d01059aceef9f1869cde09a2f10c 100644
> > GIT binary patch
> > delta 23
> > ecmeyu_=S<n&CxmF3j+fK^Y)2c$&5@B^V$GgGY3Ne
> >
> > delta 23
> > ecmeyu_=S<n&CxmF3j+fK^UjG}$&3sW^V$GgJqJSo
> >
> > diff --git a/tests/data/acpi/q35/FACP.nosmm b/tests/data/acpi/q35/FACP.nosmm
> > index 6a9aa5f370eb9af6a03dc739d8a159be58fdee01..c4e6d18ee5fc64159160d4589aa96b4d648c913a 100644
> > GIT binary patch
> > delta 23
> > ecmeyu_=S<n&CxmF3j+fKbKXR*WJacmd2Ik#q6Yc^
> >
> > delta 23
> > ecmeyu_=S<n&CxmF3j+fKbHPNeWJZRGd2Ik#tOoi3
> >
> > diff --git a/tests/data/acpi/q35/FACP.slic b/tests/data/acpi/q35/FACP.slic
> > index 15986e095cf2db7ee92f7ce113c1d46d54018c62..48bbb1cf5ad0ceda1d2f6d56edf5c1e207bd1a04 100644
> > GIT binary patch
> > delta 23
> > ecmeyu_=S<n&CxmF3j+fK^M#3A$&5@B^V$Gh6bD=Y
> >
> > delta 23
> > ecmeyu_=S<n&CxmF3j+fK^QDPg$&3sW^V$Gh9tT_i
> >
> > diff --git a/tests/data/acpi/q35/FACP.xapic b/tests/data/acpi/q35/FACP.xapic
> > index 2d3659c9c6753d07c3d48742343cb8e8cc034de7..31fa5dd19c213034eef4eeefa6a04e61dadd8a2a 100644
> > GIT binary patch
> > delta 23
> > ecmeyu_=S<n&CxmF3j+fK^X7?M$&5@B^V$Gg4+lR0
> >
> > delta 23
> > ecmeyu_=S<n&CxmF3j+fK^VW%6$&3sW^V$Gg83#WA
> >
> > diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h
> > index 7570e39369..dfb8523c8b 100644
> > --- a/tests/qtest/bios-tables-test-allowed-diff.h
> > +++ b/tests/qtest/bios-tables-test-allowed-diff.h
> > @@ -1,5 +1 @@
> >  /* List of comma-separated changed AML files to ignore */
> > -"tests/data/acpi/q35/FACP",
> > -"tests/data/acpi/q35/FACP.nosmm",
> > -"tests/data/acpi/q35/FACP.slic",
> > -"tests/data/acpi/q35/FACP.xapic",
> > --
> > 2.35.1
> >
> >
Re: [PATCH v4 3/3] tests/acpi: i386: update FACP table differences
Posted by Liav Albani 3 years, 11 months ago
On 3/1/22 13:21, Michael S. Tsirkin wrote:
> On Tue, Mar 01, 2022 at 08:29:57AM +0530, Ani Sinha wrote:
>>
>> On Mon, 28 Feb 2022, Liav Albani wrote:
>>
>>> After changing the IAPC boot flags register to indicate support of i8042
>>> in the machine chipset to help the guest OS to determine its existence
>>> "faster", we need to have the updated FACP ACPI binary images in tree.
>>>
>>> @@ -1,32 +1,32 @@
>>>   /*
>>>    * Intel ACPI Component Architecture
>>>    * AML/ASL+ Disassembler version 20211217 (64-bit version)
>>>    * Copyright (c) 2000 - 2021 Intel Corporation
>>>    *
>>> - * Disassembly of tests/data/acpi/q35/FACP, Wed Feb 23 22:37:39 2022
>>> + * Disassembly of /tmp/aml-BBFBI1, Wed Feb 23 22:37:39 2022
> cut this out pls
I see, this is indeed not very useful...
>>>    *
>>>    * ACPI Data Table [FACP]
>>>    *
>>>    * Format: [HexOffset DecimalOffset ByteLength]  FieldName : FieldValue (in hex)
>>>    */
>>>
>>>   [000h 0000   4]                    Signature : "FACP"    [Fixed ACPI Description Table (FADT)]
>>>   [004h 0004   4]                 Table Length : 000000F4
>>>   [008h 0008   1]                     Revision : 03
>>> -[009h 0009   1]                     Checksum : B9
>>> +[009h 0009   1]                     Checksum : B7
> and this
>
>>>   [00Ah 0010   6]                       Oem ID : "BOCHS "
>>>   [010h 0016   8]                 Oem Table ID : "BXPC    "
>>>   [018h 0024   4]                 Oem Revision : 00000001
>>>   [01Ch 0028   4]              Asl Compiler ID : "BXPC"
>>>   [020h 0032   4]        Asl Compiler Revision : 00000001
>>>
>>>   [024h 0036   4]                 FACS Address : 00000000
>>>   [028h 0040   4]                 DSDT Address : 00000000
>>>   [02Ch 0044   1]                        Model : 01
>>>   [02Dh 0045   1]                   PM Profile : 00 [Unspecified]
>>>   [02Eh 0046   2]                SCI Interrupt : 0009
>>>   [030h 0048   4]             SMI Command Port : 000000B2
>>>   [034h 0052   1]            ACPI Enable Value : 02
>>>   [035h 0053   1]           ACPI Disable Value : 03
>>>   [036h 0054   1]               S4BIOS Command : 00
>>>   [037h 0055   1]              P-State Control : 00
>>> @@ -42,35 +42,35 @@
>>>   [059h 0089   1]     PM1 Control Block Length : 02
>>>   [05Ah 0090   1]     PM2 Control Block Length : 00
>>>   [05Bh 0091   1]        PM Timer Block Length : 04
>>>   [05Ch 0092   1]            GPE0 Block Length : 10
>>>   [05Dh 0093   1]            GPE1 Block Length : 00
>>>   [05Eh 0094   1]             GPE1 Base Offset : 00
>>>   [05Fh 0095   1]                 _CST Support : 00
>>>   [060h 0096   2]                   C2 Latency : 0FFF
>>>   [062h 0098   2]                   C3 Latency : 0FFF
>>>   [064h 0100   2]               CPU Cache Size : 0000
>>>   [066h 0102   2]           Cache Flush Stride : 0000
>>>   [068h 0104   1]            Duty Cycle Offset : 00
>>>   [069h 0105   1]             Duty Cycle Width : 00
>>>   [06Ah 0106   1]          RTC Day Alarm Index : 00
>>>   [06Bh 0107   1]        RTC Month Alarm Index : 00
>>>   [06Ch 0108   1]            RTC Century Index : 32
>>> -[06Dh 0109   2]   Boot Flags (decoded below) : 0000
>>> +[06Dh 0109   2]   Boot Flags (decoded below) : 0002
>>>                  Legacy Devices Supported (V2) : 0
>>> -            8042 Present on ports 60/64 (V2) : 0
>>> +            8042 Present on ports 60/64 (V2) : 1
>>>                           VGA Not Present (V4) : 0
>>>                         MSI Not Supported (V4) : 0
>>>                   PCIe ASPM Not Supported (V4) : 0
>>>                      CMOS RTC Not Present (V5) : 0
>
> leaving just this
>
It will be fixed in version 5.
>>>   [06Fh 0111   1]                     Reserved : 00
>>>   [070h 0112   4]        Flags (decoded below) : 000084A5
>>>         WBINVD instruction is operational (V1) : 1
>>>                 WBINVD flushes all caches (V1) : 0
>>>                       All CPUs support C1 (V1) : 1
>>>                     C2 works on MP system (V1) : 0
>>>               Control Method Power Button (V1) : 0
>>>               Control Method Sleep Button (V1) : 1
>>>           RTC wake not in fixed reg space (V1) : 0
>>>               RTC can wake system from S4 (V1) : 1
>>>                           32-bit PM Timer (V1) : 0
>>>                         Docking Supported (V1) : 0
>>> @@ -148,32 +148,32 @@
>>>   [0DCh 0220   1]                     Space ID : 01 [SystemIO]
>>>   [0DDh 0221   1]                    Bit Width : 80
>>>   [0DEh 0222   1]                   Bit Offset : 00
>>>   [0DFh 0223   1]         Encoded Access Width : 00 [Undefined/Legacy]
>>>   [0E0h 0224   8]                      Address : 0000000000000620
>>>
>>>   [0E8h 0232  12]                   GPE1 Block : [Generic Address Structure]
>>>   [0E8h 0232   1]                     Space ID : 00 [SystemMemory]
>>>   [0E9h 0233   1]                    Bit Width : 00
>>>   [0EAh 0234   1]                   Bit Offset : 00
>>>   [0EBh 0235   1]         Encoded Access Width : 00 [Undefined/Legacy]
>>>   [0ECh 0236   8]                      Address : 0000000000000000
>>>
>>>   Raw Table Data: Length 244 (0xF4)
>>>
>>> -    0000: 46 41 43 50 F4 00 00 00 03 B9 42 4F 43 48 53 20  // FACP......BOCHS
>>> +    0000: 46 41 43 50 F4 00 00 00 03 B7 42 4F 43 48 53 20  // FACP......BOCHS
>>>       0010: 42 58 50 43 20 20 20 20 01 00 00 00 42 58 50 43  // BXPC    ....BXPC
>>>       0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00  // ................
>>>       0030: B2 00 00 00 02 03 00 00 00 06 00 00 00 00 00 00  // ................
>>>       0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00  // ................
>>>       0050: 20 06 00 00 00 00 00 00 04 02 00 04 10 00 00 00  //  ...............
>>> -    0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00  // ............2...
>>> +    0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 02 00 00  // ............2...
>>>       0070: A5 84 00 00 01 08 00 00 F9 0C 00 00 00 00 00 00  // ................
>>>       0080: 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
>>>       0090: 00 00 00 00 01 20 00 00 00 06 00 00 00 00 00 00  // ..... ..........
>>>       00A0: 00 00 00 00 00 00 00 00 00 00 00 00 01 10 00 00  // ................
>>>       00B0: 04 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
>>>       00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
>>>       00D0: 01 20 00 00 08 06 00 00 00 00 00 00 01 80 00 00  // . ..............
>>>       00E0: 20 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00  //  ...............
>>>       00F0: 00 00 00 00                                      // ....
> this isn't helpful either and will be wrong if cherry picked.

It will be fixed in version 5 :)

I'll have to not retain the Ack sign of Ani, right?

>
>>> **
>> Please retain tags from earlier revisions of the patch.
>>
>>> Signed-off-by: Liav Albani <liavalb@gmail.com>
>> Acked-by: Ani Sinha <ani@anisinha.ca>
>>
>>> ---
>>>   tests/data/acpi/q35/FACP                    | Bin 244 -> 244 bytes
>>>   tests/data/acpi/q35/FACP.nosmm              | Bin 244 -> 244 bytes
>>>   tests/data/acpi/q35/FACP.slic               | Bin 244 -> 244 bytes
>>>   tests/data/acpi/q35/FACP.xapic              | Bin 244 -> 244 bytes
>>>   tests/qtest/bios-tables-test-allowed-diff.h |   4 ----
>>>   5 files changed, 4 deletions(-)
>>>
>>> diff --git a/tests/data/acpi/q35/FACP b/tests/data/acpi/q35/FACP
>>> index f6a864cc863c7763f6c09d3814ad184a658fa0a0..a8f6a8961109d01059aceef9f1869cde09a2f10c 100644
>>> GIT binary patch
>>> delta 23
>>> ecmeyu_=S<n&CxmF3j+fK^Y)2c$&5@B^V$GgGY3Ne
>>>
>>> delta 23
>>> ecmeyu_=S<n&CxmF3j+fK^UjG}$&3sW^V$GgJqJSo
>>>
>>> diff --git a/tests/data/acpi/q35/FACP.nosmm b/tests/data/acpi/q35/FACP.nosmm
>>> index 6a9aa5f370eb9af6a03dc739d8a159be58fdee01..c4e6d18ee5fc64159160d4589aa96b4d648c913a 100644
>>> GIT binary patch
>>> delta 23
>>> ecmeyu_=S<n&CxmF3j+fKbKXR*WJacmd2Ik#q6Yc^
>>>
>>> delta 23
>>> ecmeyu_=S<n&CxmF3j+fKbHPNeWJZRGd2Ik#tOoi3
>>>
>>> diff --git a/tests/data/acpi/q35/FACP.slic b/tests/data/acpi/q35/FACP.slic
>>> index 15986e095cf2db7ee92f7ce113c1d46d54018c62..48bbb1cf5ad0ceda1d2f6d56edf5c1e207bd1a04 100644
>>> GIT binary patch
>>> delta 23
>>> ecmeyu_=S<n&CxmF3j+fK^M#3A$&5@B^V$Gh6bD=Y
>>>
>>> delta 23
>>> ecmeyu_=S<n&CxmF3j+fK^QDPg$&3sW^V$Gh9tT_i
>>>
>>> diff --git a/tests/data/acpi/q35/FACP.xapic b/tests/data/acpi/q35/FACP.xapic
>>> index 2d3659c9c6753d07c3d48742343cb8e8cc034de7..31fa5dd19c213034eef4eeefa6a04e61dadd8a2a 100644
>>> GIT binary patch
>>> delta 23
>>> ecmeyu_=S<n&CxmF3j+fK^X7?M$&5@B^V$Gg4+lR0
>>>
>>> delta 23
>>> ecmeyu_=S<n&CxmF3j+fK^VW%6$&3sW^V$Gg83#WA
>>>
>>> diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h
>>> index 7570e39369..dfb8523c8b 100644
>>> --- a/tests/qtest/bios-tables-test-allowed-diff.h
>>> +++ b/tests/qtest/bios-tables-test-allowed-diff.h
>>> @@ -1,5 +1 @@
>>>   /* List of comma-separated changed AML files to ignore */
>>> -"tests/data/acpi/q35/FACP",
>>> -"tests/data/acpi/q35/FACP.nosmm",
>>> -"tests/data/acpi/q35/FACP.slic",
>>> -"tests/data/acpi/q35/FACP.xapic",
>>> --
>>> 2.35.1
>>>
>>>
Re: [PATCH v4 3/3] tests/acpi: i386: update FACP table differences
Posted by Ani Sinha 3 years, 11 months ago
On Wed, Mar 2, 2022 at 12:43 AM Liav Albani <liavalb@gmail.com> wrote:
>
>
> On 3/1/22 13:21, Michael S. Tsirkin wrote:
> > On Tue, Mar 01, 2022 at 08:29:57AM +0530, Ani Sinha wrote:
> >>
> >> On Mon, 28 Feb 2022, Liav Albani wrote:
> >>
> >>> After changing the IAPC boot flags register to indicate support of i8042
> >>> in the machine chipset to help the guest OS to determine its existence
> >>> "faster", we need to have the updated FACP ACPI binary images in tree.
> >>>
> >>> @@ -1,32 +1,32 @@
> >>>   /*
> >>>    * Intel ACPI Component Architecture
> >>>    * AML/ASL+ Disassembler version 20211217 (64-bit version)
> >>>    * Copyright (c) 2000 - 2021 Intel Corporation
> >>>    *
> >>> - * Disassembly of tests/data/acpi/q35/FACP, Wed Feb 23 22:37:39 2022
> >>> + * Disassembly of /tmp/aml-BBFBI1, Wed Feb 23 22:37:39 2022
> > cut this out pls
> I see, this is indeed not very useful...
> >>>    *
> >>>    * ACPI Data Table [FACP]
> >>>    *
> >>>    * Format: [HexOffset DecimalOffset ByteLength]  FieldName : FieldValue (in hex)
> >>>    */
> >>>
> >>>   [000h 0000   4]                    Signature : "FACP"    [Fixed ACPI Description Table (FADT)]
> >>>   [004h 0004   4]                 Table Length : 000000F4
> >>>   [008h 0008   1]                     Revision : 03
> >>> -[009h 0009   1]                     Checksum : B9
> >>> +[009h 0009   1]                     Checksum : B7
> > and this
> >
> >>>   [00Ah 0010   6]                       Oem ID : "BOCHS "
> >>>   [010h 0016   8]                 Oem Table ID : "BXPC    "
> >>>   [018h 0024   4]                 Oem Revision : 00000001
> >>>   [01Ch 0028   4]              Asl Compiler ID : "BXPC"
> >>>   [020h 0032   4]        Asl Compiler Revision : 00000001
> >>>
> >>>   [024h 0036   4]                 FACS Address : 00000000
> >>>   [028h 0040   4]                 DSDT Address : 00000000
> >>>   [02Ch 0044   1]                        Model : 01
> >>>   [02Dh 0045   1]                   PM Profile : 00 [Unspecified]
> >>>   [02Eh 0046   2]                SCI Interrupt : 0009
> >>>   [030h 0048   4]             SMI Command Port : 000000B2
> >>>   [034h 0052   1]            ACPI Enable Value : 02
> >>>   [035h 0053   1]           ACPI Disable Value : 03
> >>>   [036h 0054   1]               S4BIOS Command : 00
> >>>   [037h 0055   1]              P-State Control : 00
> >>> @@ -42,35 +42,35 @@
> >>>   [059h 0089   1]     PM1 Control Block Length : 02
> >>>   [05Ah 0090   1]     PM2 Control Block Length : 00
> >>>   [05Bh 0091   1]        PM Timer Block Length : 04
> >>>   [05Ch 0092   1]            GPE0 Block Length : 10
> >>>   [05Dh 0093   1]            GPE1 Block Length : 00
> >>>   [05Eh 0094   1]             GPE1 Base Offset : 00
> >>>   [05Fh 0095   1]                 _CST Support : 00
> >>>   [060h 0096   2]                   C2 Latency : 0FFF
> >>>   [062h 0098   2]                   C3 Latency : 0FFF
> >>>   [064h 0100   2]               CPU Cache Size : 0000
> >>>   [066h 0102   2]           Cache Flush Stride : 0000
> >>>   [068h 0104   1]            Duty Cycle Offset : 00
> >>>   [069h 0105   1]             Duty Cycle Width : 00
> >>>   [06Ah 0106   1]          RTC Day Alarm Index : 00
> >>>   [06Bh 0107   1]        RTC Month Alarm Index : 00
> >>>   [06Ch 0108   1]            RTC Century Index : 32
> >>> -[06Dh 0109   2]   Boot Flags (decoded below) : 0000
> >>> +[06Dh 0109   2]   Boot Flags (decoded below) : 0002
> >>>                  Legacy Devices Supported (V2) : 0
> >>> -            8042 Present on ports 60/64 (V2) : 0
> >>> +            8042 Present on ports 60/64 (V2) : 1
> >>>                           VGA Not Present (V4) : 0
> >>>                         MSI Not Supported (V4) : 0
> >>>                   PCIe ASPM Not Supported (V4) : 0
> >>>                      CMOS RTC Not Present (V5) : 0
> >
> > leaving just this
> >
> It will be fixed in version 5.
> >>>   [06Fh 0111   1]                     Reserved : 00
> >>>   [070h 0112   4]        Flags (decoded below) : 000084A5
> >>>         WBINVD instruction is operational (V1) : 1
> >>>                 WBINVD flushes all caches (V1) : 0
> >>>                       All CPUs support C1 (V1) : 1
> >>>                     C2 works on MP system (V1) : 0
> >>>               Control Method Power Button (V1) : 0
> >>>               Control Method Sleep Button (V1) : 1
> >>>           RTC wake not in fixed reg space (V1) : 0
> >>>               RTC can wake system from S4 (V1) : 1
> >>>                           32-bit PM Timer (V1) : 0
> >>>                         Docking Supported (V1) : 0
> >>> @@ -148,32 +148,32 @@
> >>>   [0DCh 0220   1]                     Space ID : 01 [SystemIO]
> >>>   [0DDh 0221   1]                    Bit Width : 80
> >>>   [0DEh 0222   1]                   Bit Offset : 00
> >>>   [0DFh 0223   1]         Encoded Access Width : 00 [Undefined/Legacy]
> >>>   [0E0h 0224   8]                      Address : 0000000000000620
> >>>
> >>>   [0E8h 0232  12]                   GPE1 Block : [Generic Address Structure]
> >>>   [0E8h 0232   1]                     Space ID : 00 [SystemMemory]
> >>>   [0E9h 0233   1]                    Bit Width : 00
> >>>   [0EAh 0234   1]                   Bit Offset : 00
> >>>   [0EBh 0235   1]         Encoded Access Width : 00 [Undefined/Legacy]
> >>>   [0ECh 0236   8]                      Address : 0000000000000000
> >>>
> >>>   Raw Table Data: Length 244 (0xF4)
> >>>
> >>> -    0000: 46 41 43 50 F4 00 00 00 03 B9 42 4F 43 48 53 20  // FACP......BOCHS
> >>> +    0000: 46 41 43 50 F4 00 00 00 03 B7 42 4F 43 48 53 20  // FACP......BOCHS
> >>>       0010: 42 58 50 43 20 20 20 20 01 00 00 00 42 58 50 43  // BXPC    ....BXPC
> >>>       0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00  // ................
> >>>       0030: B2 00 00 00 02 03 00 00 00 06 00 00 00 00 00 00  // ................
> >>>       0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00  // ................
> >>>       0050: 20 06 00 00 00 00 00 00 04 02 00 04 10 00 00 00  //  ...............
> >>> -    0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00  // ............2...
> >>> +    0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 02 00 00  // ............2...
> >>>       0070: A5 84 00 00 01 08 00 00 F9 0C 00 00 00 00 00 00  // ................
> >>>       0080: 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
> >>>       0090: 00 00 00 00 01 20 00 00 00 06 00 00 00 00 00 00  // ..... ..........
> >>>       00A0: 00 00 00 00 00 00 00 00 00 00 00 00 01 10 00 00  // ................
> >>>       00B0: 04 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
> >>>       00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
> >>>       00D0: 01 20 00 00 08 06 00 00 00 00 00 00 01 80 00 00  // . ..............
> >>>       00E0: 20 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00  //  ...............
> >>>       00F0: 00 00 00 00                                      // ....
> > this isn't helpful either and will be wrong if cherry picked.
>
> It will be fixed in version 5 :)
>
> I'll have to not retain the Ack sign of Ani, right?

No you do but you should still address Michael's comments. Different
reviewers look for different things and they can ack/tag reviewed-by
if they were satisfied. Others can raise further concerns or comments
thereafter also. It does not mean previous tags needs removal. They
stand on their own merit.
Re: [PATCH v4 3/3] tests/acpi: i386: update FACP table differences
Posted by Michael S. Tsirkin 3 years, 11 months ago
On Tue, Mar 01, 2022 at 09:13:04PM +0200, Liav Albani wrote:
> 
> On 3/1/22 13:21, Michael S. Tsirkin wrote:
> > On Tue, Mar 01, 2022 at 08:29:57AM +0530, Ani Sinha wrote:
> > > 
> > > On Mon, 28 Feb 2022, Liav Albani wrote:
> > > 
> > > > After changing the IAPC boot flags register to indicate support of i8042
> > > > in the machine chipset to help the guest OS to determine its existence
> > > > "faster", we need to have the updated FACP ACPI binary images in tree.
> > > > 
> > > > @@ -1,32 +1,32 @@
> > > >   /*
> > > >    * Intel ACPI Component Architecture
> > > >    * AML/ASL+ Disassembler version 20211217 (64-bit version)
> > > >    * Copyright (c) 2000 - 2021 Intel Corporation
> > > >    *
> > > > - * Disassembly of tests/data/acpi/q35/FACP, Wed Feb 23 22:37:39 2022
> > > > + * Disassembly of /tmp/aml-BBFBI1, Wed Feb 23 22:37:39 2022
> > cut this out pls
> I see, this is indeed not very useful...
> > > >    *
> > > >    * ACPI Data Table [FACP]
> > > >    *
> > > >    * Format: [HexOffset DecimalOffset ByteLength]  FieldName : FieldValue (in hex)
> > > >    */
> > > > 
> > > >   [000h 0000   4]                    Signature : "FACP"    [Fixed ACPI Description Table (FADT)]
> > > >   [004h 0004   4]                 Table Length : 000000F4
> > > >   [008h 0008   1]                     Revision : 03
> > > > -[009h 0009   1]                     Checksum : B9
> > > > +[009h 0009   1]                     Checksum : B7
> > and this
> > 
> > > >   [00Ah 0010   6]                       Oem ID : "BOCHS "
> > > >   [010h 0016   8]                 Oem Table ID : "BXPC    "
> > > >   [018h 0024   4]                 Oem Revision : 00000001
> > > >   [01Ch 0028   4]              Asl Compiler ID : "BXPC"
> > > >   [020h 0032   4]        Asl Compiler Revision : 00000001
> > > > 
> > > >   [024h 0036   4]                 FACS Address : 00000000
> > > >   [028h 0040   4]                 DSDT Address : 00000000
> > > >   [02Ch 0044   1]                        Model : 01
> > > >   [02Dh 0045   1]                   PM Profile : 00 [Unspecified]
> > > >   [02Eh 0046   2]                SCI Interrupt : 0009
> > > >   [030h 0048   4]             SMI Command Port : 000000B2
> > > >   [034h 0052   1]            ACPI Enable Value : 02
> > > >   [035h 0053   1]           ACPI Disable Value : 03
> > > >   [036h 0054   1]               S4BIOS Command : 00
> > > >   [037h 0055   1]              P-State Control : 00
> > > > @@ -42,35 +42,35 @@
> > > >   [059h 0089   1]     PM1 Control Block Length : 02
> > > >   [05Ah 0090   1]     PM2 Control Block Length : 00
> > > >   [05Bh 0091   1]        PM Timer Block Length : 04
> > > >   [05Ch 0092   1]            GPE0 Block Length : 10
> > > >   [05Dh 0093   1]            GPE1 Block Length : 00
> > > >   [05Eh 0094   1]             GPE1 Base Offset : 00
> > > >   [05Fh 0095   1]                 _CST Support : 00
> > > >   [060h 0096   2]                   C2 Latency : 0FFF
> > > >   [062h 0098   2]                   C3 Latency : 0FFF
> > > >   [064h 0100   2]               CPU Cache Size : 0000
> > > >   [066h 0102   2]           Cache Flush Stride : 0000
> > > >   [068h 0104   1]            Duty Cycle Offset : 00
> > > >   [069h 0105   1]             Duty Cycle Width : 00
> > > >   [06Ah 0106   1]          RTC Day Alarm Index : 00
> > > >   [06Bh 0107   1]        RTC Month Alarm Index : 00
> > > >   [06Ch 0108   1]            RTC Century Index : 32
> > > > -[06Dh 0109   2]   Boot Flags (decoded below) : 0000
> > > > +[06Dh 0109   2]   Boot Flags (decoded below) : 0002
> > > >                  Legacy Devices Supported (V2) : 0
> > > > -            8042 Present on ports 60/64 (V2) : 0
> > > > +            8042 Present on ports 60/64 (V2) : 1
> > > >                           VGA Not Present (V4) : 0
> > > >                         MSI Not Supported (V4) : 0
> > > >                   PCIe ASPM Not Supported (V4) : 0
> > > >                      CMOS RTC Not Present (V5) : 0
> > 
> > leaving just this
> > 
> It will be fixed in version 5.
> > > >   [06Fh 0111   1]                     Reserved : 00
> > > >   [070h 0112   4]        Flags (decoded below) : 000084A5
> > > >         WBINVD instruction is operational (V1) : 1
> > > >                 WBINVD flushes all caches (V1) : 0
> > > >                       All CPUs support C1 (V1) : 1
> > > >                     C2 works on MP system (V1) : 0
> > > >               Control Method Power Button (V1) : 0
> > > >               Control Method Sleep Button (V1) : 1
> > > >           RTC wake not in fixed reg space (V1) : 0
> > > >               RTC can wake system from S4 (V1) : 1
> > > >                           32-bit PM Timer (V1) : 0
> > > >                         Docking Supported (V1) : 0
> > > > @@ -148,32 +148,32 @@
> > > >   [0DCh 0220   1]                     Space ID : 01 [SystemIO]
> > > >   [0DDh 0221   1]                    Bit Width : 80
> > > >   [0DEh 0222   1]                   Bit Offset : 00
> > > >   [0DFh 0223   1]         Encoded Access Width : 00 [Undefined/Legacy]
> > > >   [0E0h 0224   8]                      Address : 0000000000000620
> > > > 
> > > >   [0E8h 0232  12]                   GPE1 Block : [Generic Address Structure]
> > > >   [0E8h 0232   1]                     Space ID : 00 [SystemMemory]
> > > >   [0E9h 0233   1]                    Bit Width : 00
> > > >   [0EAh 0234   1]                   Bit Offset : 00
> > > >   [0EBh 0235   1]         Encoded Access Width : 00 [Undefined/Legacy]
> > > >   [0ECh 0236   8]                      Address : 0000000000000000
> > > > 
> > > >   Raw Table Data: Length 244 (0xF4)
> > > > 
> > > > -    0000: 46 41 43 50 F4 00 00 00 03 B9 42 4F 43 48 53 20  // FACP......BOCHS
> > > > +    0000: 46 41 43 50 F4 00 00 00 03 B7 42 4F 43 48 53 20  // FACP......BOCHS
> > > >       0010: 42 58 50 43 20 20 20 20 01 00 00 00 42 58 50 43  // BXPC    ....BXPC
> > > >       0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00  // ................
> > > >       0030: B2 00 00 00 02 03 00 00 00 06 00 00 00 00 00 00  // ................
> > > >       0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00  // ................
> > > >       0050: 20 06 00 00 00 00 00 00 04 02 00 04 10 00 00 00  //  ...............
> > > > -    0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00  // ............2...
> > > > +    0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 02 00 00  // ............2...
> > > >       0070: A5 84 00 00 01 08 00 00 F9 0C 00 00 00 00 00 00  // ................
> > > >       0080: 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
> > > >       0090: 00 00 00 00 01 20 00 00 00 06 00 00 00 00 00 00  // ..... ..........
> > > >       00A0: 00 00 00 00 00 00 00 00 00 00 00 00 01 10 00 00  // ................
> > > >       00B0: 04 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
> > > >       00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  // ................
> > > >       00D0: 01 20 00 00 08 06 00 00 00 00 00 00 01 80 00 00  // . ..............
> > > >       00E0: 20 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00  //  ...............
> > > >       00F0: 00 00 00 00                                      // ....
> > this isn't helpful either and will be wrong if cherry picked.
> 
> It will be fixed in version 5 :)
> 
> I'll have to not retain the Ack sign of Ani, right?

if all you change is commit log, acks normally stand.

> > 
> > > > **
> > > Please retain tags from earlier revisions of the patch.
> > > 
> > > > Signed-off-by: Liav Albani <liavalb@gmail.com>
> > > Acked-by: Ani Sinha <ani@anisinha.ca>
> > > 
> > > > ---
> > > >   tests/data/acpi/q35/FACP                    | Bin 244 -> 244 bytes
> > > >   tests/data/acpi/q35/FACP.nosmm              | Bin 244 -> 244 bytes
> > > >   tests/data/acpi/q35/FACP.slic               | Bin 244 -> 244 bytes
> > > >   tests/data/acpi/q35/FACP.xapic              | Bin 244 -> 244 bytes
> > > >   tests/qtest/bios-tables-test-allowed-diff.h |   4 ----
> > > >   5 files changed, 4 deletions(-)
> > > > 
> > > > diff --git a/tests/data/acpi/q35/FACP b/tests/data/acpi/q35/FACP
> > > > index f6a864cc863c7763f6c09d3814ad184a658fa0a0..a8f6a8961109d01059aceef9f1869cde09a2f10c 100644
> > > > GIT binary patch
> > > > delta 23
> > > > ecmeyu_=S<n&CxmF3j+fK^Y)2c$&5@B^V$GgGY3Ne
> > > > 
> > > > delta 23
> > > > ecmeyu_=S<n&CxmF3j+fK^UjG}$&3sW^V$GgJqJSo
> > > > 
> > > > diff --git a/tests/data/acpi/q35/FACP.nosmm b/tests/data/acpi/q35/FACP.nosmm
> > > > index 6a9aa5f370eb9af6a03dc739d8a159be58fdee01..c4e6d18ee5fc64159160d4589aa96b4d648c913a 100644
> > > > GIT binary patch
> > > > delta 23
> > > > ecmeyu_=S<n&CxmF3j+fKbKXR*WJacmd2Ik#q6Yc^
> > > > 
> > > > delta 23
> > > > ecmeyu_=S<n&CxmF3j+fKbHPNeWJZRGd2Ik#tOoi3
> > > > 
> > > > diff --git a/tests/data/acpi/q35/FACP.slic b/tests/data/acpi/q35/FACP.slic
> > > > index 15986e095cf2db7ee92f7ce113c1d46d54018c62..48bbb1cf5ad0ceda1d2f6d56edf5c1e207bd1a04 100644
> > > > GIT binary patch
> > > > delta 23
> > > > ecmeyu_=S<n&CxmF3j+fK^M#3A$&5@B^V$Gh6bD=Y
> > > > 
> > > > delta 23
> > > > ecmeyu_=S<n&CxmF3j+fK^QDPg$&3sW^V$Gh9tT_i
> > > > 
> > > > diff --git a/tests/data/acpi/q35/FACP.xapic b/tests/data/acpi/q35/FACP.xapic
> > > > index 2d3659c9c6753d07c3d48742343cb8e8cc034de7..31fa5dd19c213034eef4eeefa6a04e61dadd8a2a 100644
> > > > GIT binary patch
> > > > delta 23
> > > > ecmeyu_=S<n&CxmF3j+fK^X7?M$&5@B^V$Gg4+lR0
> > > > 
> > > > delta 23
> > > > ecmeyu_=S<n&CxmF3j+fK^VW%6$&3sW^V$Gg83#WA
> > > > 
> > > > diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h
> > > > index 7570e39369..dfb8523c8b 100644
> > > > --- a/tests/qtest/bios-tables-test-allowed-diff.h
> > > > +++ b/tests/qtest/bios-tables-test-allowed-diff.h
> > > > @@ -1,5 +1 @@
> > > >   /* List of comma-separated changed AML files to ignore */
> > > > -"tests/data/acpi/q35/FACP",
> > > > -"tests/data/acpi/q35/FACP.nosmm",
> > > > -"tests/data/acpi/q35/FACP.slic",
> > > > -"tests/data/acpi/q35/FACP.xapic",
> > > > --
> > > > 2.35.1
> > > > 
> > > >