From: "Sami Mujawar" <sami.mujawar@arm.com>
To: Pierre.Gondois@arm.com, devel@edk2.groups.io
Cc: Thomas Abraham <thomas.abraham@arm.com>,
Ard Biesheuvel <ardb+tianocore@kernel.org>,
Fabien Ficheau <fabien.ficheau@arm.com>,
"nd@arm.com" <nd@arm.com>
Subject: Re: [PATCH 1/1] Platform/ARM/JunoPkg: Don't setup PCIe root bridge for Juno-r0
Date: Thu, 13 Apr 2023 17:04:28 +0100 [thread overview]
Message-ID: <fd275069-1ad3-ccfd-0172-af5978178ac0@arm.com> (raw)
In-Reply-To: <20230413131448.70329-1-Pierre.Gondois@arm.com>
Hi Pierre,
Thank you for this patch.
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Regards,
Sami Mujawar
On 13/04/2023 02:14 pm, Pierre.Gondois@arm.com wrote:
> From: Pierre Gondois <pierre.gondois@arm.com>
>
> Booting a Juno-r0 with a DEBUG build triggers an ASSERT when
> processing the library constructors of:
> MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
>
> JunoPciHostBridgeLib.inf::HWPciRbInit() returns an error code
> as Juno-r0 doesn't support PCIe.
>
> Check Juno's revision in HWPciRbInit() before setting up the
> PCIe root complex.
>
> Reported-by: Fabien Ficheau <fabien.ficheau@arm.com>
> Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
> ---
> .../ARM/JunoPkg/Library/JunoPciHostBridgeLib/XPressRich3.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/XPressRich3.c b/Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/XPressRich3.c
> index 0755dc155616..583efd0efb16 100644
> --- a/Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/XPressRich3.c
> +++ b/Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/XPressRich3.c
> @@ -69,6 +69,13 @@ HWPciRbInit (
> UINTN TranslationTable;
> EFI_CPU_IO2_PROTOCOL *CpuIo;
> EFI_STATUS Status;
> + UINT32 JunoRevision;
> +
> + GetJunoRevision (JunoRevision);
> + DEBUG ((DEBUG_ERROR, "Juno rev=%d\n", JunoRevision));
> + if (JunoRevision == JUNO_REVISION_R0) {
> + return EFI_SUCCESS;
> + }
>
> PCI_TRACE ("VExpressPciRbInit()");
>
next prev parent reply other threads:[~2023-04-13 16:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-13 13:14 [PATCH 1/1] Platform/ARM/JunoPkg: Don't setup PCIe root bridge for Juno-r0 PierreGondois
2023-04-13 16:04 ` Sami Mujawar [this message]
2023-04-13 22:04 ` [edk2-devel] " Rebecca Cran
2023-04-14 7:12 ` PierreGondois
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=fd275069-1ad3-ccfd-0172-af5978178ac0@arm.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