From: "Leif Lindholm" <leif@nuviainc.com>
To: Rebecca Cran <rebecca@nuviainc.com>
Cc: devel@edk2.groups.io, Ard Biesheuvel <ardb+tianocore@kernel.org>,
Graeme Gregory <graeme@nuviainc.com>,
Radoslaw Biernacki <rad@semihalf.com>
Subject: Re: [PATCH 1/1] Qemu: SbsaQemu: Set the DSDT revision value to 2 to use 64-bit math
Date: Thu, 23 Sep 2021 11:30:43 +0100 [thread overview]
Message-ID: <20210923103043.mwguttbkzkldhclo@leviathan> (raw)
In-Reply-To: <20210922223709.15665-1-rebecca@nuviainc.com>
Not just an improvement, but an actual bugfix.
I would propose a subject line change though:
Qemu: SbsaQemu: Set the DSDT revision value to 2 to use 64-bit math
->
Platform/Qemu: fix SbsaQemu DSDT format version
If you're OK with the change, I can fold that in.
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
On Wed, Sep 22, 2021 at 16:37:09 -0600, Rebecca Cran wrote:
> Set the DSDT revision value to 2 by using the define from Acpi60.h
> EFI_ACPI_6_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION. This
> causes the AML interpreter to use full 64-bit integers and math.
>
> Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
> ---
> Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl b/Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl
> index e056d6cdb02e..1bf9fbb99e75 100644
> --- a/Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl
> +++ b/Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl
> @@ -6,6 +6,7 @@
> * SPDX-License-Identifier: BSD-2-Clause-Patent
> **/
>
> +#include <IndustryStandard/Acpi60.h>
> #include <IndustryStandard/SbsaQemuAcpi.h>
>
> #define LINK_DEVICE(Uid, LinkName, Irq) \
> @@ -25,8 +26,9 @@
> Address, Pin, Link, Zero \
> }
>
> -DefinitionBlock ("DsdtTable.aml", "DSDT", 1, "LINARO", "SBSAQEMU",
> - FixedPcdGet32 (PcdAcpiDefaultOemRevision)) {
> +DefinitionBlock ("DsdtTable.aml", "DSDT",
> + EFI_ACPI_6_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION,
> + "LINARO", "SBSAQEMU", FixedPcdGet32 (PcdAcpiDefaultOemRevision)) {
> Scope (_SB) {
> // UART PL011
> Device (COM0) {
> --
> 2.31.1
>
next prev parent reply other threads:[~2021-09-23 10:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-22 22:37 [PATCH 1/1] Qemu: SbsaQemu: Set the DSDT revision value to 2 to use 64-bit math Rebecca Cran
2021-09-23 10:30 ` Leif Lindholm [this message]
2021-09-23 12:54 ` Rebecca Cran
2021-09-23 13:57 ` Leif Lindholm
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-list 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=20210923103043.mwguttbkzkldhclo@leviathan \
--to=devel@edk2.groups.io \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox