[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:12:15 UTC 2021
> -----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.
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 (#70469): https://edk2.groups.io/g/devel/message/70469
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