From: "PierreGondois" <pierre.gondois@arm.com>
To: devel@edk2.groups.io, prabin.ca@arm.com
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>,
Leif Lindholm <quic_llindhol@quicinc.com>,
Sami Mujawar <sami.mujawar@arm.com>
Subject: Re: [edk2-devel] [edk2-platforms][PATCH V2 3/8] Platform/Sgi: Introduce a flag to enable PCIe support for RD Platforms
Date: Mon, 15 Jan 2024 12:10:15 +0100 [thread overview]
Message-ID: <e3f9b05a-9858-4032-a3fd-3d133186c34e@arm.com> (raw)
In-Reply-To: <20240112154759.1222138-4-prabin.ca@arm.com>
Hello Prabin,
On 1/12/24 16:47, Prabin CA via groups.io wrote:
> Introducing a flag called PCIE_ENABLE, which can be set to TRUE or
> FALSE from the respective <platform>.dsc files to enable or disable the
> PCIe support. As not all reference design platforms have PCIe support
> enabled, this flag is introduced.
>
> Signed-off-by: Prabin CA <prabin.ca@arm.com>
> ---
> Platform/ARM/SgiPkg/SgiPlatform.dec | 1 +
> Platform/ARM/SgiPkg/SgiPlatform.dsc.inc | 6 ++++++
> Platform/ARM/SgiPkg/RdE1Edge/RdE1Edge.dsc | 4 +++-
> Platform/ARM/SgiPkg/RdN1Edge/RdN1Edge.dsc | 4 +++-
> Platform/ARM/SgiPkg/RdN1EdgeX2/RdN1EdgeX2.dsc | 4 +++-
> Platform/ARM/SgiPkg/RdV1/RdV1.dsc | 4 +++-
> Platform/ARM/SgiPkg/RdV1Mc/RdV1Mc.dsc | 4 +++-
> Platform/ARM/SgiPkg/Sgi575/Sgi575.dsc | 4 +++-
> Platform/ARM/SgiPkg/SgiPlatform.fdf | 4 +++-
> Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.inf | 5 ++++-
> Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c | 19 +++++++++++--------
> 11 files changed, 43 insertions(+), 16 deletions(-)
>
> diff --git a/Platform/ARM/SgiPkg/SgiPlatform.dec b/Platform/ARM/SgiPkg/SgiPlatform.dec
> index 4087ff6cad2e..af7887e54126 100644
> --- a/Platform/ARM/SgiPkg/SgiPlatform.dec
> +++ b/Platform/ARM/SgiPkg/SgiPlatform.dec
> @@ -31,6 +31,7 @@ [Guids.common]
> [PcdsFeatureFlag.common]
> gArmSgiTokenSpaceGuid.PcdVirtioBlkSupported|FALSE|BOOLEAN|0x00000001
> gArmSgiTokenSpaceGuid.PcdVirtioNetSupported|FALSE|BOOLEAN|0x00000010
> + gArmSgiTokenSpaceGuid.PcdPcieEnable|FALSE|BOOLEAN|0x0000002E
>
> [PcdsFixedAtBuild]
> gArmSgiTokenSpaceGuid.PcdDramBlock2Base|0|UINT64|0x00000002
> diff --git a/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc b/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc
> index 1cfe07c7e4ed..1bf489ffeb39 100644
> --- a/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc
> +++ b/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc
> @@ -103,6 +103,10 @@ [PcdsFeatureFlag.common]
> gArmSgiTokenSpaceGuid.PcdVirtioNetSupported|TRUE
> gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
>
> +!if $(PCIE_ENABLE) == TRUE
> + gArmSgiTokenSpaceGuid.PcdPcieEnable|TRUE
> +!endif
> +
> [PcdsFixedAtBuild.common]
> gArmTokenSpaceGuid.PcdVFPEnabled|1
> gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
> @@ -330,6 +334,7 @@ [Components.common]
> # Virtio Network
> OvmfPkg/VirtioNetDxe/VirtioNet.inf
>
> +!if $(PCIE_ENABLE) == TRUE
> #
> # Required by PCI
> #
> @@ -343,6 +348,7 @@ [Components.common]
> <PcdsFixedAtBuild>
> gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8010004F
> }
> +!endif
>
> #
> # AHCI Support
Does the following module also require to be only enabed when PCI is available ?
Or is it kept because the module gracefully fails to be loaded by detecting
the absence of PCI ?
MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
[snip]
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#113816): https://edk2.groups.io/g/devel/message/113816
Mute This Topic: https://groups.io/mt/103685115/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2024-01-16 5:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-12 15:47 [edk2-devel] [edk2-platforms][PATCH V2 0/8] Platform/Sgi: Add support for RD-Fremont platform Prabin CA
2024-01-12 15:47 ` [edk2-devel] [edk2-platforms][PATCH V2 1/8] Platform/Sgi: Update the datatype of PcdSmmuBase from u32 to u64 Prabin CA
2024-01-12 15:47 ` [edk2-devel] [edk2-platforms][PATCH V2 2/8] Platform/Sgi: Refactor system memory base and size definitions Prabin CA
2024-01-12 15:47 ` [edk2-devel] [edk2-platforms][PATCH V2 3/8] Platform/Sgi: Introduce a flag to enable PCIe support for RD Platforms Prabin CA
2024-01-15 11:10 ` PierreGondois [this message]
2024-01-25 18:31 ` Prabin CA
2024-01-12 15:47 ` [edk2-devel] [edk2-platforms][PATCH V2 4/8] Platform/Sgi: Add ACPI tables for RD-Fremont platform Prabin CA
2024-01-15 11:10 ` PierreGondois
2024-01-25 18:32 ` Prabin CA
2024-01-12 15:47 ` [edk2-devel] [edk2-platforms][PATCH V2 5/8] Platform/Sgi: Add initial support " Prabin CA
2024-01-12 15:47 ` [edk2-devel] [edk2-platforms][PATCH V2 6/8] Platform/Sgi: Extend SMBIOS support for RD-Fremont Prabin CA
2024-01-12 15:47 ` [edk2-devel] [edk2-platforms][PATCH V2 7/8] Platform/Sgi: Low Power Idle States " Prabin CA
2024-01-12 15:47 ` [edk2-devel] [edk2-platforms][PATCH V2 8/8] Platform/Sgi: Add CPPC support for RD-Fremont platform Prabin CA
2024-01-15 11:12 ` [edk2-devel] [edk2-platforms][PATCH V2 0/8] Platform/Sgi: Add " PierreGondois
2024-01-25 18:29 ` Prabin CA
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=e3f9b05a-9858-4032-a3fd-3d133186c34e@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