public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ardb@kernel.org>
To: Leif Lindholm <leif@nuviainc.com>
Cc: edk2-devel-groups-io <devel@edk2.groups.io>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	 Graeme Gregory <graeme@nuviainc.com>,
	Radoslaw Biernacki <rad@semihalf.com>
Subject: Re: [PATCH edk2-platforms 1/1] Silicon/Qemu: don't advertise GICC legacy mmio interface in SbsaQamu MADT
Date: Fri, 8 Oct 2021 16:18:44 +0200	[thread overview]
Message-ID: <CAMj1kXGc5w6w0wg9fLq3cVddR8GMk3kJ2=s9SX=yWJF3g=CWkw@mail.gmail.com> (raw)
In-Reply-To: <20211008103425.1810992-1-leif@nuviainc.com>

On Fri, 8 Oct 2021 at 12:34, Leif Lindholm <leif@nuviainc.com> wrote:
>
> The MADT GICC structure contains the field PhysicalBaseAddress, which
> is needed for a GICv1/v2 implementation, or to indicate legacy
> compatibility in modern GICs.
>
> Linux commit 9739f6ef053f1, included in v5.12, adds a warning message
> when this field is populated but invalid:
>   [Firmware Bug]: CPU interface incapable of MMIO access
>
> As it happens, we currently initialize this to PcdGicDistributorBase
> instead of PcdGicInterruptInterfaceBase, and as a result we now trigger
> this warning.
>
> Since this is an SBSA reference implementation, and legacy GIC support
> has never worked for this port, set the field to 0.
>
> Signed-off-by: Leif Lindholm <leif@nuviainc.com>
> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> Cc: Graeme Gregory <graeme@nuviainc.com>
> Cc: Radoslaw Biernacki <rad@semihalf.com>

Acked-by: Ard Biesheuvel <ardb@kernel.org>

> ---
>  Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c b/Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c
> index b8901030ecd0..dbc5e9475358 100644
> --- a/Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c
> +++ b/Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c
> @@ -71,7 +71,7 @@ AddMadtTable (
>      0,                                     /* Mpidr */
>      EFI_ACPI_6_0_GIC_ENABLED,              /* Flags */
>      SBSAQEMU_MADT_GIC_PMU_IRQ,             /* PMU Irq */
> -    FixedPcdGet32 (PcdGicDistributorBase), /* PhysicalBaseAddress */
> +    0,                                     /* PhysicalBaseAddress */
>      SBSAQEMU_MADT_GIC_VBASE,               /* GicVBase */
>      SBSAQEMU_MADT_GIC_HBASE,               /* GicHBase */
>      25,                                    /* GsivId */
> --
> 2.30.2
>

  reply	other threads:[~2021-10-08 14:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-08 10:34 [PATCH edk2-platforms 1/1] Silicon/Qemu: don't advertise GICC legacy mmio interface in SbsaQamu MADT Leif Lindholm
2021-10-08 14:18 ` Ard Biesheuvel [this message]
2021-10-12 10:17   ` 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='CAMj1kXGc5w6w0wg9fLq3cVddR8GMk3kJ2=s9SX=yWJF3g=CWkw@mail.gmail.com' \
    --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