From: "Laszlo Ersek" <lersek@redhat.com>
To: marcello.bauer@9elements.com
Cc: devel@edk2.groups.io,
Patrick Rudolph <patrick.rudolph@9elements.com>,
Christian Walter <christian.walter@9elements.com>,
Maurice Ma <maurice.ma@intel.com>,
Nate DeSimone <nathaniel.l.desimone@intel.com>,
Star Zeng <star.zeng@intel.com>,
Jian J Wang <jian.j.wang@intel.com>,
Hao A Wu <hao.a.wu@intel.com>, Ray Ni <ray.ni@intel.com>,
Anthony Perard <anthony.perard@citrix.com>,
Julien Grall <julien@xen.org>
Subject: Re: [edk2-devel] [PATCH v1 1/2] MdeModulePkg: Fix OptionROM scanning
Date: Mon, 13 Jul 2020 17:26:21 +0200 [thread overview]
Message-ID: <250ee1a1-45e2-a289-20b7-f51782004747@redhat.com> (raw)
In-Reply-To: <20200713102202.814-2-marcello.bauer@9elements.com>
Hi,
On 07/13/20 12:22, Marcello Sylvester Bauer wrote:
> From: Patrick Rudolph <patrick.rudolph@9elements.com>
>
> The Option ROM scanner can't work as enumeration was done by the
> first stage bootloader. Running it will disable the ability of the
> PCIPlatform code to scan for ROMs.
>
> Required for the following patch that enables custom Option ROM
> scanning using gPciPlatformProtocol.
>
> Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
> Signed-off-by: Marcello Sylvester Bauer <marcello.bauer@9elements.com>
> Cc: Patrick Rudolph <patrick.rudolph@9elements.com>
> Cc: Christian Walter <christian.walter@9elements.com>
> Cc: Maurice Ma <maurice.ma@intel.com>
> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
> Cc: Star Zeng <star.zeng@intel.com>
> ---
> MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
Please don't forget to CC the maintainers / designated reviewers of this
code.
$ python BaseTools/Scripts/GetMaintainer.py \
-l MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
Jian J Wang <jian.j.wang@intel.com>
Hao A Wu <hao.a.wu@intel.com>
Ray Ni <ray.ni@intel.com>
devel@edk2.groups.io
I'm adding Jian, Hao, and Ray now.
Also CC'ing Anthony and Julien, because OVMF runs on Xen with
PcdPciDisableBusEnumeration=TRUE, and this patch changes behavior in
that case.
Thanks
Laszlo
>
> diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
> index 6c68a97d4e46..7420f0079f7d 100644
> --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
> +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
> @@ -2530,10 +2530,12 @@ PciEnumeratorLight (
> //
> RemoveRejectedPciDevices (RootBridgeDev->Handle, RootBridgeDev);
>
> - //
> - // Process option rom light
> - //
> - ProcessOptionRomLight (RootBridgeDev);
> + if (!PcdGetBool (PcdPciDisableBusEnumeration)) {
> + //
> + // Process option rom light
> + //
> + ProcessOptionRomLight (RootBridgeDev);
> + }
>
> //
> // Determine attributes for all devices under this root bridge
>
next prev parent reply other threads:[~2020-07-13 15:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-13 10:22 [PATCH v1 0/2] Add support for scanning Option ROMs Marcello Sylvester Bauer
2020-07-13 10:22 ` [PATCH v1 1/2] MdeModulePkg: Fix OptionROM scanning Marcello Sylvester Bauer
2020-07-13 15:26 ` Laszlo Ersek [this message]
2020-07-13 10:22 ` [PATCH v1 2/2] UefiPayloadPkg: Scan for Option ROMs Marcello Sylvester Bauer
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=250ee1a1-45e2-a289-20b7-f51782004747@redhat.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