All of lore.kernel.org
 help / color / mirror / Atom feed
From: Igor Mammedov <imammedo@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Laurent Vivier <lvivier@redhat.com>,
	Thomas Huth <thuth@redhat.com>,
	Xiao Guangrong <xiaoguangrong.eric@gmail.com>,
	Vishal Verma <vishal.l.verma@intel.com>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	qemu-devel@nongnu.org, Eduardo Habkost <ehabkost@redhat.com>,
	jingqi.liu@intel.com, Paolo Bonzini <pbonzini@redhat.com>,
	Dan Williams <dan.j.williams@intel.com>,
	Richard Henderson <rth@twiddle.net>
Subject: Re: [PATCH v5 3/3] tests/acpi: update expected SRAT files
Date: Wed, 10 Jun 2020 14:20:18 +0200	[thread overview]
Message-ID: <20200610142018.031539fc@redhat.com> (raw)
In-Reply-To: <20200609101341-mutt-send-email-mst@kernel.org>

On Tue, 9 Jun 2020 10:19:14 -0400
"Michael S. Tsirkin" <mst@redhat.com> wrote:

> On Fri, Jun 05, 2020 at 06:09:11PM -0600, Vishal Verma wrote:
> > Update expected SRAT files for the change to account for NVDIMM NUMA
> > nodes in the SRAT.
> > 
> > AML diffs:
> > 
> > tests/data/acpi/pc/SRAT.dimmpxm:
> > --- /tmp/asl-3P2IL0.dsl	2020-05-28 15:11:02.326439263 -0600
> > +++ /tmp/asl-1N4IL0.dsl	2020-05-28 15:11:02.325439280 -0600
> > @@ -3,7 +3,7 @@
> >   * AML/ASL+ Disassembler version 20190509 (64-bit version)
> >   * Copyright (c) 2000 - 2019 Intel Corporation
> >   *
> > - * Disassembly of tests/data/acpi/pc/SRAT.dimmpxm, Thu May 28 15:11:02 2020
> > + * Disassembly of /tmp/aml-4D4IL0, Thu May 28 15:11:02 2020
> >   *
> >   * ACPI Data Table [SRAT]
> >   *
> > @@ -13,7 +13,7 @@
> >  [000h 0000   4]                    Signature : "SRAT"    [System Resource Affinity Table]
> >  [004h 0004   4]                 Table Length : 00000188
> >  [008h 0008   1]                     Revision : 01
> > -[009h 0009   1]                     Checksum : 80
> > +[009h 0009   1]                     Checksum : 68
> >  [00Ah 0010   6]                       Oem ID : "BOCHS "
> >  [010h 0016   8]                 Oem Table ID : "BXPCSRAT"
> >  [018h 0024   4]                 Oem Revision : 00000001
> > @@ -140,15 +140,15 @@
> >  [138h 0312   1]                Subtable Type : 01 [Memory Affinity]
> >  [139h 0313   1]                       Length : 28
> > 
> > -[13Ah 0314   4]             Proximity Domain : 00000000
> > +[13Ah 0314   4]             Proximity Domain : 00000002
> >  [13Eh 0318   2]                    Reserved1 : 0000
> > -[140h 0320   8]                 Base Address : 0000000000000000
> > -[148h 0328   8]               Address Length : 0000000000000000
> > +[140h 0320   8]                 Base Address : 0000000108000000
> > +[148h 0328   8]               Address Length : 0000000008000000
> >  [150h 0336   4]                    Reserved2 : 00000000
> > -[154h 0340   4]        Flags (decoded below) : 00000000
> > -                                     Enabled : 0
> > +[154h 0340   4]        Flags (decoded below) : 00000005
> > +                                     Enabled : 1
> >                                 Hot Pluggable : 0
> > -                                Non-Volatile : 0
> > +                                Non-Volatile : 1
> >  [158h 0344   8]                    Reserved3 : 0000000000000000
> > 
> >  [160h 0352   1]                Subtable Type : 01 [Memory Affinity]
> > 
> > tests/data/acpi/q35/SRAT.dimmpxm:
> > --- /tmp/asl-HW2LL0.dsl	2020-05-28 15:11:05.446384514 -0600
> > +++ /tmp/asl-8MYLL0.dsl	2020-05-28 15:11:05.445384532 -0600
> > @@ -3,7 +3,7 @@
> >   * AML/ASL+ Disassembler version 20190509 (64-bit version)
> >   * Copyright (c) 2000 - 2019 Intel Corporation
> >   *
> > - * Disassembly of tests/data/acpi/q35/SRAT.dimmpxm, Thu May 28 15:11:05 2020
> > + * Disassembly of /tmp/aml-2CYLL0, Thu May 28 15:11:05 2020
> >   *
> >   * ACPI Data Table [SRAT]
> >   *
> > @@ -13,7 +13,7 @@
> >  [000h 0000   4]                    Signature : "SRAT"    [System Resource Affinity Table]
> >  [004h 0004   4]                 Table Length : 00000188
> >  [008h 0008   1]                     Revision : 01
> > -[009h 0009   1]                     Checksum : 80
> > +[009h 0009   1]                     Checksum : 68
> >  [00Ah 0010   6]                       Oem ID : "BOCHS "
> >  [010h 0016   8]                 Oem Table ID : "BXPCSRAT"
> >  [018h 0024   4]                 Oem Revision : 00000001
> > @@ -140,15 +140,15 @@
> >  [138h 0312   1]                Subtable Type : 01 [Memory Affinity]
> >  [139h 0313   1]                       Length : 28
> > 
> > -[13Ah 0314   4]             Proximity Domain : 00000000
> > +[13Ah 0314   4]             Proximity Domain : 00000002
> >  [13Eh 0318   2]                    Reserved1 : 0000
> > -[140h 0320   8]                 Base Address : 0000000000000000
> > -[148h 0328   8]               Address Length : 0000000000000000
> > +[140h 0320   8]                 Base Address : 0000000108000000
> > +[148h 0328   8]               Address Length : 0000000008000000
> >  [150h 0336   4]                    Reserved2 : 00000000
> > -[154h 0340   4]        Flags (decoded below) : 00000000
> > -                                     Enabled : 0
> > +[154h 0340   4]        Flags (decoded below) : 00000005
> > +                                     Enabled : 1
> >                                 Hot Pluggable : 0
> > -                                Non-Volatile : 0
> > +                                Non-Volatile : 1
> >  [158h 0344   8]                    Reserved3 : 0000000000000000
> > 
> >  [160h 0352   1]                Subtable Type : 01 [Memory Affinity]
> > 
> > tests/data/acpi/virt/SRAT.memhp:
> > --- /tmp/asl-E32WL0.dsl	2020-05-28 15:19:56.976095582 -0600
> > +++ /tmp/asl-Y69WL0.dsl	2020-05-28 15:19:56.974095617 -0600
> > @@ -3,7 +3,7 @@
> >   * AML/ASL+ Disassembler version 20190509 (64-bit version)
> >   * Copyright (c) 2000 - 2019 Intel Corporation
> >   *
> > - * Disassembly of tests/data/acpi/virt/SRAT.memhp, Thu May 28 15:19:56 2020
> > + * Disassembly of /tmp/aml-2CCXL0, Thu May 28 15:19:56 2020
> >   *
> >   * ACPI Data Table [SRAT]
> >   *
> > @@ -11,9 +11,9 @@
> >   */
> > 
> >  [000h 0000   4]                    Signature : "SRAT"    [System Resource Affinity Table]
> > -[004h 0004   4]                 Table Length : 000000BA
> > +[004h 0004   4]                 Table Length : 000000E2
> >  [008h 0008   1]                     Revision : 03
> > -[009h 0009   1]                     Checksum : 43
> > +[009h 0009   1]                     Checksum : 5C
> >  [00Ah 0010   6]                       Oem ID : "BOCHS "
> >  [010h 0016   8]                 Oem Table ID : "BXPCSRAT"
> >  [018h 0024   4]                 Oem Revision : 00000001
> > @@ -65,18 +65,32 @@
> > 
> >  [094h 0148   4]             Proximity Domain : 00000001
> >  [098h 0152   2]                    Reserved1 : 0000
> > -[09Ah 0154   8]                 Base Address : 0000000080000000
> > -[0A2h 0162   8]               Address Length : 00000000F0000000
> > +[09Ah 0154   8]                 Base Address : 0000000088000000
> > +[0A2h 0162   8]               Address Length : 0000000008000000
> >  [0AAh 0170   4]                    Reserved2 : 00000000
> > -[0AEh 0174   4]        Flags (decoded below) : 00000003
> > +[0AEh 0174   4]        Flags (decoded below) : 00000005
> > +                                     Enabled : 1
> > +                               Hot Pluggable : 0
> > +                                Non-Volatile : 1
> > +[0B2h 0178   8]                    Reserved3 : 0000000000000000
> > +
> > +[0BAh 0186   1]                Subtable Type : 01 [Memory Affinity]
> > +[0BBh 0187   1]                       Length : 28
> > +
> > +[0BCh 0188   4]             Proximity Domain : 00000001
> > +[0C0h 0192   2]                    Reserved1 : 0000
> > +[0C2h 0194   8]                 Base Address : 0000000080000000
> > +[0CAh 0202   8]               Address Length : 00000000F0000000
> > +[0D2h 0210   4]                    Reserved2 : 00000000
> > +[0D6h 0214   4]        Flags (decoded below) : 00000003
> >                                       Enabled : 1
> >                                 Hot Pluggable : 1
> >                                  Non-Volatile : 0
> > -[0B2h 0178   8]                    Reserved3 : 0000000000000000
> > +[0DAh 0218   8]                    Reserved3 : 0000000000000000
> > 
> > Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>  
> 
> So I went to apply this and notices that virt tests
> did not seem to run. Igor did you notice this too?
> Anyway, not this patch's fault.
> 

It runs fine here on current master + patches 1-2
3/3 doesn't apply cleanly anymore.

> 
> > ---
> >  tests/data/acpi/pc/SRAT.dimmpxm             | Bin 392 -> 392 bytes
> >  tests/data/acpi/q35/SRAT.dimmpxm            | Bin 392 -> 392 bytes
> >  tests/data/acpi/virt/SRAT.memhp             | Bin 186 -> 226 bytes
> >  tests/qtest/bios-tables-test-allowed-diff.h |   3 ---
> >  4 files changed, 3 deletions(-)
> > 
> > diff --git a/tests/data/acpi/pc/SRAT.dimmpxm b/tests/data/acpi/pc/SRAT.dimmpxm
> > index f5c0267ea24bb404b6b4e687390140378fbdc3f1..5a13c61b9041c6045c29643bf93a111fb1c0c76a 100644
> > GIT binary patch
> > delta 51
> > scmeBR?qKE$4ss0XU}Rum%-G0fz$nec00kUCF%aN@Pz(&LlS3Je0lmQmhyVZp
> > 
> > delta 51
> > icmeBR?qKE$4ss0XU}RumY}m+Uz$ndt8%z#mGzI{_tp$hx
> > 
> > diff --git a/tests/data/acpi/q35/SRAT.dimmpxm b/tests/data/acpi/q35/SRAT.dimmpxm
> > index f5c0267ea24bb404b6b4e687390140378fbdc3f1..5a13c61b9041c6045c29643bf93a111fb1c0c76a 100644
> > GIT binary patch
> > delta 51
> > scmeBR?qKE$4ss0XU}Rum%-G0fz$nec00kUCF%aN@Pz(&LlS3Je0lmQmhyVZp
> > 
> > delta 51
> > icmeBR?qKE$4ss0XU}RumY}m+Uz$ndt8%z#mGzI{_tp$hx
> > 
> > diff --git a/tests/data/acpi/virt/SRAT.memhp b/tests/data/acpi/virt/SRAT.memhp
> > index 1b57db2072e7f7e2085c4a427aa31c7383851b71..9a35adb40c6f7cd822e5af37abba8aad033617cb 100644
> > GIT binary patch
> > delta 43
> > rcmdnR_=u4!ILI;N5d#AQbIe4p$wD1K76@=aC<X@BiSc3+=gI;A(y0ha
> > 
> > delta 21
> > dcmaFFxQmf1ILI+%7Xt$Wv-3o*$rF#t0suzv27~|r
> > 
> > diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h
> > index e8f2766a63..dfb8523c8b 100644
> > --- a/tests/qtest/bios-tables-test-allowed-diff.h
> > +++ b/tests/qtest/bios-tables-test-allowed-diff.h
> > @@ -1,4 +1 @@
> >  /* List of comma-separated changed AML files to ignore */
> > -"tests/data/acpi/pc/SRAT.dimmpxm",
> > -"tests/data/acpi/q35/SRAT.dimmpxm",
> > -"tests/data/acpi/virt/SRAT.memhp",
> > -- 
> > 2.26.2  
> 



      reply	other threads:[~2020-06-10 12:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-06  0:09 [PATCH v5 0/3] account for NVDIMM nodes during SRAT generation Vishal Verma
2020-06-06  0:09 ` [PATCH v5 1/3] diffs-allowed: add the SRAT AML to diffs-allowed Vishal Verma
2020-06-06  0:09 ` [PATCH v5 2/3] hw/acpi/nvdimm: add a helper to augment SRAT generation Vishal Verma
2020-06-06  0:09 ` [PATCH v5 3/3] tests/acpi: update expected SRAT files Vishal Verma
2020-06-09 14:19   ` Michael S. Tsirkin
2020-06-10 12:20     ` Igor Mammedov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200610142018.031539fc@redhat.com \
    --to=imammedo@redhat.com \
    --cc=dan.j.williams@intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=ehabkost@redhat.com \
    --cc=jingqi.liu@intel.com \
    --cc=lvivier@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=thuth@redhat.com \
    --cc=vishal.l.verma@intel.com \
    --cc=xiaoguangrong.eric@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.