From nobody Sat Apr 27 13:26:09 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of groups.io designates
66.175.222.108 as permitted sender) client-ip=66.175.222.108;
envelope-from=bounce+27952+79771+1787277+3901457@groups.io;
helo=mail02.groups.io;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as
permitted sender)
smtp.mailfrom=bounce+27952+79771+1787277+3901457@groups.io;
arc=fail (BodyHash is different from the expected one);
dmarc=fail(p=none dis=none) header.from=intel.com
Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by
mx.zohomail.com
with SMTPS id 1629819185764280.5772542584642;
Tue, 24 Aug 2021 08:33:05 -0700 (PDT)
Return-Path: Before trying to access parent root port to check AR=
I capabilities, enumerator should see if Endpoint device is not Root=
Complex integrated to avoid undefined parent register accesses in these=
cases. Signed-off-by: Damian Bassa
damian.bassa@intel.com --- .../Bus/Pci/PciBusDxe/PciEnumeratorSupport.c &n=
bsp; | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnume=
ratorSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c index db1b35f8ef..6451fb8af9 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSu=
pport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSu=
pport.c @@ -2153,6 +2153,7 @@ CreatePciIoDevice ( PCI_IO_DEVICE &n=
bsp; *PciIoDevice; EFI_PCI_IO_PROTOCOL *PciIo; EFI_STATUS &nbs=
p; Status; + PCI_REG_PCIE_CAPABILITY Capability; PciIoDevice =3D AllocateZeroPool (=
sizeof (PCI_IO_DEVICE)); if (PciIoDevice =3D=3D NULL) { @@ -2229,7 +2230,16 @@ CreatePciIoDevice ( return NULL; } - if (PcdGetBool (PcdAriSupport)) { + PciIo->Pci.Read ( + &nb=
sp; PciIo, + &nb=
sp; EfiPciIoWidthUint16, + &nb=
sp; PciIoDevice->PciExpressCapabilit=
yOffset + OFFSET_OF (PCI_CAPABILITY_PCIEXP, Capability), + &nb=
sp; 1, + &nb=
sp; &Capability.Uint16 + &nb=
sp; ); + + if (PcdGetBool (PcdAriSupport) && + Capability.Bits.DevicePortType !=
=3D PCIE_DEVICE_PORT_TYPE_ROOT_COMPLEX_INTEGRATED_ENDPOINT) { // // Check if the device is a=
n ARI device. // -- 2.27.0.windows.1
Intel =
Technology Poland sp. z o.o.
ul. Słowackiego 173 | 80-298 Gdańsk | Sąd Rejonowy G=
dańsk Północ | VII Wydział Gospodarczy Krajowego Rejest=
ru Sądowego - KRS 101882 | NIP 957-07-52-316 | Kapitał zakła=
dowy 200.000 PLN.
Ta wiadomość wraz z załącznikami jest przeznacz=
ona dla określonego adresata i może zawierać informacje pouf=
ne. W razie przypadkowego otrzymania tej wiadomości, prosimy o powiado=
mienie nadawcy oraz trwałe jej usunięcie; jakiekolwiek przegl=
1;danie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material f=
or the sole use of the intended recipient(s). If you are not the intended r=
ecipient, please contact the sender and delete all copies; any review or di=
stribution by others is strictly prohibited.
You receive all messages sent to this group.
Vi=
ew/Reply Online (#79771) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [importer@patchew.org]