[edk2-devel] [PATCH] MdeModulePkg/Bus/Pci/PciBusDxe: Handle BAR sizing fail in high 32bit of MEM64.

Wu, Hao A hao.a.wu at intel.com
Mon Jan 18 01:44:16 UTC 2021


> -----Original Message-----
> From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of Wu, Hao
> A
> Sent: Monday, January 18, 2021 9:12 AM
> To: devel at edk2.groups.io; nmd114 at sina.com
> Cc: Zhong, Zarcd <zarcd.zhong at intel.com>
> Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/Bus/Pci/PciBusDxe:
> Handle BAR sizing fail in high 32bit of MEM64.
> 
> > -----Original Message-----
> > From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of
> > nmd5434
> > Sent: Friday, January 15, 2021 5:34 PM
> > To: devel at edk2.groups.io
> > Cc: Zhong, Zarcd <zarcd.zhong at intel.com>
> > Subject: [edk2-devel] [PATCH] MdeModulePkg/Bus/Pci/PciBusDxe: Handle
> > BAR sizing fail in high 32bit of MEM64.
> >
> > From: Zarcd Zhong <zarcd.zhong at intel.com>
> >
> >     REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3149
> >
> >     Address MEM64 BAR in type unknown if sizing fail in high 32bit.
> >
> >     L: devel at edk2.groups.io
> >     Cc: Ray Ni <ray.ni at intel.com>
> >     Cc: Hao A Wu <hao.a.wu at intel.com>
> >
> >     Reviewed-by: Ray Ni <ray.ni at intel.com>
> 
> 
> Found that there is no "Signed-off-by:" tag.
> Will add the tag when pushing this change.


Patch pushed via:
PR - https://github.com/tianocore/edk2/pull/1360
Commit - https://github.com/tianocore/edk2/commit/a7ef2a03b96c464c776a139c104471fb2b84e39b

Best Regards,
Hao Wu


> 
> Best Regards,
> Hao Wu
> 
> 
> > ---
> >  MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
> > b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
> > index 1b64924b7b..a24065e8ba 100644
> > --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
> > +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
> > @@ -1686,6 +1686,7 @@ PciIovParseVfBar (
> >                  );
> >
> >        if (EFI_ERROR (Status)) {
> > +        PciIoDevice->VfPciBar[BarIndex].BarType = PciBarTypeUnknown;
> >          return Offset + 4;
> >        }
> >
> > --
> > 2.16.2.windows.1
> >
> >
> >
> >
> >
> 
> 
> 
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#70472): https://edk2.groups.io/g/devel/message/70472
Mute This Topic: https://groups.io/mt/79438989/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list