From: "Marcello Sylvester Bauer" <marcello.bauer@9elements.com>
To: "Ni, Ray" <ray.ni@intel.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: Re: [edk2-devel] [PATCH v2 0/2] Add support for scanning Option ROMs
Date: Mon, 21 Sep 2020 15:25:02 +0200 [thread overview]
Message-ID: <CAB1kMnfPYxqyvHfdd8TMud2MnYm-Ez6XFvkKeAUgOrZOzCGGwQ@mail.gmail.com> (raw)
In-Reply-To: <BY5PR11MB4007B6563B5FAF0BFE8EF26C8C210@BY5PR11MB4007.namprd11.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 3151 bytes --]
hi Ray,
> I guess it is because the PciIoDevice->AllOpRomProcessed is set which
causes GetPciRom() is skipped.
exactly. Therefore we need this for the gPciPlatformProtocol implementation
to work.
I will add this information as a code comment.
> In your UefiPayloadPkg change, you have an assumption that the option ROM
BAR still contain the correct base address.
> Is it always true in real world? Do you think maybe the boot loader
should supply a MMIO space range so UeifPayloadPkg
> can use for option rom decoding?
Every option ROM in coreboot does have it's own memory space and can not be
provided as MMIO space range. Probably we could
add some kind of validation to verify the validity of the base address.
thanks,
Marcello
On Wed, Sep 16, 2020 at 10:28 AM Ni, Ray <ray.ni@intel.com> wrote:
> Why running it will disable the ability of PciPlatform code to scan for
> ROMs?
>
> I guess it is because the PciIoDevice->AllOpRomProcessed is set which
> causes GetPciRom() is skipped.
>
> Can you explain more in the code comment?
>
> > -----Original Message-----
> > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Marcello
> > Sylvester Bauer
> > Sent: Tuesday, September 15, 2020 8:26 PM
> > To: devel@edk2.groups.io
> > Subject: [edk2-devel] [PATCH v2 0/2] Add support for scanning Option ROMs
> >
> > Fix Option ROM enumeration and support scanning.
> >
> > v2:
> > * add correct Maintainer and Reviewer to Cc
> > * PciPlatformDxe:
> > - Update description
> > - add function description
> >
> > Branch: https://github.com/9elements/edk2-1/tree/UefiPayloadPkg-
> > Option_ROMs
> > PR: https://github.com/tianocore/edk2/pull/926
> >
> > Patrick Rudolph (2):
> > MdeModulePkg: Fix OptionROM scanning
> > UefiPayloadPkg: Scan for Option ROMs
> >
> > UefiPayloadPkg/UefiPayloadPkgIa32.dsc | 1 +
> > UefiPayloadPkg/UefiPayloadPkgIa32X64.dsc | 1 +
> > UefiPayloadPkg/UefiPayloadPkg.fdf | 1 +
> > UefiPayloadPkg/PciPlatformDxe/PciPlatformDxe.inf | 46 +++
> > UefiPayloadPkg/PciPlatformDxe/PciPlatformDxe.h | 19 +
> > MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 10 +-
> > UefiPayloadPkg/PciPlatformDxe/PciPlatformDxe.c | 426
> > ++++++++++++++++++++
> > 7 files changed, 500 insertions(+), 4 deletions(-)
> > create mode 100644 UefiPayloadPkg/PciPlatformDxe/PciPlatformDxe.inf
> > create mode 100644 UefiPayloadPkg/PciPlatformDxe/PciPlatformDxe.h
> > create mode 100644 UefiPayloadPkg/PciPlatformDxe/PciPlatformDxe.c
> >
> > --
> > 2.28.0
> >
> >
> >
>
>
--
*[Marcello Sylvester Bauer]*
9elements Agency GmbH, Kortumstraße 19-21, 44787 Bochum, Germany
Email: [DEINE EMAIL ADDRESSE]
<https://static.9elements.com/email_signatur.html>
Phone: *+49 234 68 94 188 <+492346894188>*
Mobile: *+49 1722847618 <+491722847618>*
Sitz der Gesellschaft: Bochum
Handelsregister: Amtsgericht Bochum, HRB 17519
Geschäftsführung: Sebastian Deutsch, Eray Basar
Datenschutzhinweise nach Art. 13 DSGVO <https://9elements.com/privacy>
[-- Attachment #2: Type: text/html, Size: 6101 bytes --]
next prev parent reply other threads:[~2020-09-21 13:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-15 12:26 [PATCH v2 0/2] Add support for scanning Option ROMs Marcello Sylvester Bauer
2020-09-15 12:26 ` [PATCH v2 1/2] MdeModulePkg: Fix OptionROM scanning Marcello Sylvester Bauer
2020-09-15 12:34 ` [edk2-devel] " Laszlo Ersek
2020-09-15 12:26 ` [PATCH v2 2/2] UefiPayloadPkg: Scan for Option ROMs Marcello Sylvester Bauer
2020-09-16 8:28 ` [edk2-devel] [PATCH v2 0/2] Add support for scanning " Ni, Ray
2020-09-21 13:25 ` Marcello Sylvester Bauer [this message]
2020-09-22 23:58 ` Michael D Kinney
2020-11-10 15:01 ` Marcello Sylvester Bauer
2024-10-09 9:11 ` Dmitry Ponamorev
[not found] ` <16353648FD0ACD96.16285@groups.io>
2020-09-17 1:41 ` Ni, Ray
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=CAB1kMnfPYxqyvHfdd8TMud2MnYm-Ez6XFvkKeAUgOrZOzCGGwQ@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