From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web11.9464.1630431891174977021 for ; Tue, 31 Aug 2021 10:44:51 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=somltffb; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: damian.bassa@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10093"; a="216685445" X-IronPort-AV: E=Sophos;i="5.84,366,1620716400"; d="scan'208,217";a="216685445" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 10:44:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,366,1620716400"; d="scan'208,217";a="519806216" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga004.fm.intel.com with ESMTP; 31 Aug 2021 10:44:49 -0700 Received: from orsmsx604.amr.corp.intel.com (10.22.229.17) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 31 Aug 2021 10:44:49 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Tue, 31 Aug 2021 10:44:49 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Tue, 31 Aug 2021 10:44:48 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ehQt6mUlHNN8HMKPdiGFILC1E63WQZ/6jWTYiyR/rRj8q9cX8pWn4QZLh5f9xgZX22Etq1KddGTC30M+fg1nK7MMog0jE93eS/OUimqFex7TaIlWeMHGBCdpABrOoHS7sUyJjxEznYIcnBAHeli5u6KbgedCyW8sj0zT4kImJK19OLYESzPA7nldi8EaKS30IkrdkXpfvQDqw7G9h4nlc43pNzFTHrZL4yVyTXv0Uo3kfHw/hC8osoaOEXsjTzBPl9XM3g67u8jJ1vS5mm51++Bj27S9WtutupKFQ4k+GxJRzy3yOHI/fVSOIwU8fgFAqBWl0a/PD9b/4KvDEI2Oew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ywiA18b9QOqbMih1hc6YuIxlAJdWMclM1G4zoi/uKiM=; b=Jdyu5O74USK0605Tag+xWXGI3S6jRtHlKUHMEJzjak3NeZv1ZjN4ilbtWUiuJvV9PLUGgRw2oRoBaaR2WeGFYROUALF/SZ5kUR/nEoTbIJhC2Id840NSEyOcIbPmK9SmxjQTxbFidlPbdzC7sUdAuN7+wg5ykWnmHYLmG4PDB8xL37sl+bm2lBf9C1G6seTYWDePvVKJLJC22DF3CUT22dv82G4m9qmJt6eViffAxAMLW8O2sGJYV+3M6/rufsb9o51iuSU8CzGAxxyUeKsecDoxxH1hNVLQH1GFEW4z49+UrwJQp8pfth5KOBOunbWPL2hCswnLCX5xC31eNjKJhA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ywiA18b9QOqbMih1hc6YuIxlAJdWMclM1G4zoi/uKiM=; b=somltffbDr2hnOKYh+CmL23qJdhLyfXKbY6TxrUNfK+LwS6i8XnDdPEciPYyGEP5kgII7S0vereWtBHlj+hzGvkzPAuhrjLFn3H2T3+C0uU8Nrw2GeZGmZfXpdnampoUCXiLy/tQkXKrWOyWv+LfjZikNh9TFS0Qyfauo6PwSvY= Received: from CO1PR11MB5187.namprd11.prod.outlook.com (2603:10b6:303:95::15) by CO1PR11MB5042.namprd11.prod.outlook.com (2603:10b6:303:99::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.17; Tue, 31 Aug 2021 17:44:48 +0000 Received: from CO1PR11MB5187.namprd11.prod.outlook.com ([fe80::f0d2:19e5:dd41:168e]) by CO1PR11MB5187.namprd11.prod.outlook.com ([fe80::f0d2:19e5:dd41:168e%8]) with mapi id 15.20.4457.025; Tue, 31 Aug 2021 17:44:48 +0000 From: "Bassa, Damian" To: "Wu, Hao A" , "devel@edk2.groups.io" , "Ni, Ray" Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/PciBusDxe: Enumerator to check for RCiEP before looking for RP Thread-Topic: [edk2-devel] [PATCH] MdeModulePkg/PciBusDxe: Enumerator to check for RCiEP before looking for RP Thread-Index: AdeY+paMpehWSOTWSAKEuG98y9jpqAFJPSagAABB0NAAEpzXsA== Date: Tue, 31 Aug 2021 17:44:48 +0000 Message-ID: References: In-Reply-To: Accept-Language: pl-PL, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.200.16 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 78dcbd6e-1353-4fa5-6dc4-08d96ca706ff x-ms-traffictypediagnostic: CO1PR11MB5042: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: voGQpxTLSbNhl3qEX8yk767XNGhhNTOcqN3RIX2jeKRHUJ76JCc+gpb9GVwAvAKPulUps1xviP5uD6G/yCrmzFvzP55TMSETiZ2x2G7r1b+IHx2/A+WDXLtnFoLALJxMn3Xa6DCOPVcmJbXTdtMVi/UgsDy9yQWM4Nd2p+yo+qHuGlbukWkPCE81BFwoeKspwxvgK5ekIlRmL6N2bSfRgRDUQlf0slAEgdRRAF3rl5d/pfnNBnFUrcCcyA0dLmkxpCBgjcN0URYftLnxIetO6Yyr3Q7SuTYxOp/0h7uA+iLemLtUL1m3SLYkIYj5Ku4nyDW6+TniuXyiSHtD/sokUKtC4bA1NL7JTNVCz+nujtvtPGwsyB+BdANex4DzKeUvD3ydFgIe7zOfpQ/Ut+vUut316/ua9uxfHY7a5ks1A3MtnH5RliMJlW/fJ155vgGGwJyxaw64S/CqDzRFfVyFw5aZfwxfKbS5vqboL/Dzz2TMjzpsECOSoNLmsnmm23E1lHI17x7HXJmVeFqwCHo2LHcYl3Bsz6ghhSqX4zeIQ6UhPgJhWSEJnX27IDivRUt3LfAzNyOMMShuD6Gc8bfDb5cjtjUAg6mP2wKZD4wZAK9Bm0fXl5uWRnTP1+sJhTtupTI9hX0U1ibwiZaJY8H/tlTuVjq5im597Zrq8Zw0YuswK701u8NhnmBPrw80haa9slG6cYnGNFHVQI4Ry/ZYy+9o7F8mVTYYdCai1B6gRruK1QG9CKEhs2gDfSjh0sma/3uIP6zZ9D6PpQkdaene0QZkKX7AO7SVqXLgXCjqm0/vpwCdTt7iC13DQPgA/9BwOfSPbgL9gzIPv0lAirhS+w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB5187.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(7696005)(38070700005)(8676002)(52536014)(38100700002)(6506007)(53546011)(86362001)(2906002)(6636002)(76236003)(8936002)(508600001)(122000001)(66574015)(83380400001)(5660300002)(66446008)(26005)(64756008)(66946007)(71200400001)(66556008)(66476007)(316002)(186003)(76116006)(33656002)(110136005)(55016002)(166002)(9686003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-2?Q?qEIu/f4Jsvd2qTBCTkDy0KZFbdnUMWmSmHtlgAIA1g0Hr2baUXHCs/7f2o?= =?iso-8859-2?Q?1vjQetKgnZCBCvaSIm23jqat15G/mSCMcfTu0nQoTXzxkYolF1MbAPdHhQ?= =?iso-8859-2?Q?sr+hzn+nLf0iNrdKPvIuVTaogKfiEg/zpNzkRj5U6X+IKeCEb6y3x5+ldS?= =?iso-8859-2?Q?tLOCVBdjvLNF3MN2tNoZR10VZiIJK8ZOC3mAPhk3Wa/1G8KzxMy73vIoFq?= =?iso-8859-2?Q?CIuROA2wG+mcmnYP48r+BrsZR/ubmLj2IHGLdonGhzvw3VOOAsy+QbNPPc?= =?iso-8859-2?Q?P2/aXcbYcC98EBY9/c7eK/yz0SxmfFYA+HL7ua99ww1il7GyHPFUTfn1lF?= =?iso-8859-2?Q?aULoMoPbs+sxuwiGOUZry5Pb7XYsvYRGFWLD01gaZ91UCt87wIgcSMlfAF?= =?iso-8859-2?Q?/bqf01hley2zbleYWD/Z0VfeCV88SPPcY3XjfLkMTlbxgu5fkzHafa+v8a?= =?iso-8859-2?Q?8vfj3GrcN2J2kNSptO5LsT0Ipw0eH6L1mc2ui/e/MM+VeivCr7G6YHddsJ?= =?iso-8859-2?Q?K/svfOsGgFWL7jiNa3475CKHLqzy9dezr9zyvB3/SH36R7/cEClNixxzXJ?= =?iso-8859-2?Q?PwANi9GdOcEbCvMY544bhcT3Xu7q8lPIws1p6e812J3WbLyvOvmtP85kMt?= =?iso-8859-2?Q?LWJsoir1esp0TlObwNENVhvLOOuPWO71SOk43XBF+53QF8+uR6hkuYI+o5?= =?iso-8859-2?Q?oE85TANvSfV+NgC5l/ce1s2X9xycLAuJtIjEtrjGocfCa/BzcktXuTGyiZ?= =?iso-8859-2?Q?2G7Ar/mWef2YKyttmAJd1/PRLIb7ZgqBMUI6kwdxs705uRFoA4/6lfggoi?= =?iso-8859-2?Q?ec2gMAXT15C00AdfzEeI/V1VT2/fYVXq2FNvZ5GE1SFSuRc+zdYSs1qgtz?= =?iso-8859-2?Q?lnJv8LsNb1AUzG4mQ4TT2iXJB6r8R+ruHY9OMrSc8M5X2QTA9O8Fr1QfyI?= =?iso-8859-2?Q?2vP7y2GtJzFqcQlhGB7DxedByfbGl/5cUbNKr8Sj5OrwLDRDKWFRuTnL4J?= =?iso-8859-2?Q?oW5cQjt1LHur+k4XY7pURUCXGWAuhvP/bYXJGi4+9i6/qT7qADFpHxY8ct?= =?iso-8859-2?Q?nqddGQBILBjYFJPb+U+jiOHcTcxl//uaHye/EVOlX9U7Je9p94jItc1Ktx?= =?iso-8859-2?Q?QaAb9cuFGpz6v6Y3MrDKAX0Z4T3DRZVAxKxLJSvddpMuJLQcbEuBNK4DE5?= =?iso-8859-2?Q?M9AoPtBvamidKk9U1n06pyHJ+ZIh5ofvO1WoFXqChNaKe/fAifKUeuvU9g?= =?iso-8859-2?Q?91Kry/WbnNtoHKzBuLL8Dh9q5KbSI/msc1TSkhv7XzTpWj3Lc9g0Nhv6sx?= =?iso-8859-2?Q?Jg+YMeUmoow96LfKeXXpMd5PyEBLwt8L9Qmi1UI1lvZVx2o=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5187.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78dcbd6e-1353-4fa5-6dc4-08d96ca706ff X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2021 17:44:48.1650 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6Xi1cfvKRxsNLw7gIC5MKfUELNzorSNbiTtH9wFClNuiLJKPpoIJld18kBhUEWSGRnl8nw0f1GpnLNxiKcOO9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB5042 Return-Path: damian.bassa@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_CO1PR11MB51877027E16AADD3E5D065118DCC9CO1PR11MB5187namp_" --_000_CO1PR11MB51877027E16AADD3E5D065118DCC9CO1PR11MB5187namp_ Content-Type: text/plain; charset="iso-8859-2" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable It refers to access to the root port device that doesn't exist in case we a= re dealing with RCiEP device. There can be specific case where RCiEP device has ARI extended capability I= D (even though it's unsupported in this case). In such a case PciSearchDevice goes to CreatePciIoDevice through GatherDevi= ceInfo. And in this case parent is PCI_IO_DEVICE instance created from Crea= teRootBridge function, which isn't valid PCIe device and doesn't have speci= fic bus, only a range of buses. In that case enumerator tries to use this i= nstance to read operation using default 0 bus number, which isn't correct. Damian From: Wu, Hao A Sent: Tuesday, August 31, 2021 6:28 AM To: devel@edk2.groups.io; Wu, Hao A ; Bassa, Damian ; Ni, Ray Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/PciBusDxe: Enumerator to che= ck for RCiEP before looking for RP From: devel@edk2.groups.io > On Behalf Of Wu, Hao A Sent: Tuesday, August 31, 2021 12:25 PM To: devel@edk2.groups.io; Bassa, Damian > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/PciBusDxe: Enumerator to che= ck for RCiEP before looking for RP Really sorry, Could you help to provide more information on the below statement? "undefined parent register accesses" Thanks in advance. Best Regards, Hao Wu From: devel@edk2.groups.io > On Behalf Of Bassa, Damian Sent: Tuesday, August 24, 2021 11:15 PM To: devel@edk2.groups.io Subject: [edk2-devel] [PATCH] MdeModulePkg/PciBusDxe: Enumerator to check f= or RCiEP before looking for RP Before trying to access parent root port to check ARI 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 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c b/MdeMod= ulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c index db1b35f8ef..6451fb8af9 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c @@ -2153,6 +2153,7 @@ CreatePciIoDevice ( PCI_IO_DEVICE *PciIoDevice; EFI_PCI_IO_PROTOCOL *PciIo; EFI_STATUS 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 ( + PciIo, + EfiPciIoWidthUint16, + PciIoDevice->PciExpressCapabilityOffset + OFFSET_OF (PCI_C= APABILITY_PCIEXP, Capability), + 1, + &Capability.Uint16 + ); + + if (PcdGetBool (PcdAriSupport) && + Capability.Bits.DevicePortType !=3D PCIE_DEVICE_PORT_TYPE_ROOT_COMPLEX= _INTEGRATED_ENDPOINT) { // // Check if the device is an ARI device. // -- 2.27.0.windows.1 ________________________________ Intel Technology Poland sp. z o.o. ul. S=B3owackiego 173 | 80-298 Gda=F1sk | S=B1d Rejonowy Gda=F1sk P=F3=B3no= c | VII Wydzia=B3 Gospodarczy Krajowego Rejestru S=B1dowego - KRS 101882 | = NIP 957-07-52-316 | Kapita=B3 zak=B3adowy 200.000 PLN. Ta wiadomo=B6=E6 wraz z za=B3=B1cznikami jest przeznaczona dla okre=B6loneg= o adresata i mo=BFe zawiera=E6 informacje poufne. W razie przypadkowego otr= zymania tej wiadomo=B6ci, prosimy o powiadomienie nadawcy oraz trwa=B3e jej= usuni=EAcie; jakiekolwiek przegl=B1danie lub rozpowszechnianie jest zabron= ione. This e-mail and any attachments may contain confidential material for the s= ole use of the intended recipient(s). If you are not the intended recipient= , please contact the sender and delete all copies; any review or distributi= on by others is strictly prohibited. --------------------------------------------------------------------- Intel Technology Poland sp. z o.o. ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydz= ial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-31= 6 | Kapital zakladowy 200.000 PLN. Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata= i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wi= adomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiek= olwiek przegladanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the s= ole use of the intended recipient(s). If you are not the intended recipient= , please contact the sender and delete all copies; any review or distributi= on by others is strictly prohibited. --_000_CO1PR11MB51877027E16AADD3E5D065118DCC9CO1PR11MB5187namp_ Content-Type: text/html; charset="iso-8859-2" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

It refers to access to the root port device that doe= sn’t exist in case we are dealing with RCiEP device.

There can be specific case where RCiEP device has AR= I extended capability ID (even though it’s unsupported in this case).

In such a case PciSearchDevice goes to CreatePciIoDe= vice through GatherDeviceInfo. And in this case parent is PCI_IO_DEVICE ins= tance created from CreateRootBridge function, which isn’t valid PCIe = device and doesn’t have specific bus, only a range of buses. In that case enumerator tries to use this instance to re= ad operation using default 0 bus number, which isn’t correct.

 

Damian

 

From: Wu, Hao A <hao.a.wu@intel.com> Sent: Tuesday, August 31, 2021 6:28 AM
To: devel@edk2.groups.io; Wu, Hao A <hao.a.wu@intel.com>; Bass= a, Damian <damian.bassa@intel.com>; Ni, Ray <ray.ni@intel.com><= br> Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/PciBusDxe: Enumerator= to check for RCiEP before looking for RP

 

From: devel@edk2.groups.io <devel= @edk2.groups.io> On Behalf Of Wu, Hao A
Sent: Tuesday, August 31, 2021 12:25 PM
To: devel@edk2.groups.io= ; Bassa, Damian <damian.bassa@= intel.com>
Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/PciBusDxe: Enumerator= to check for RCiEP before looking for RP

 

Really sorry,

 

Could you help to provide more information on the be= low statement?

“undefined parent register accesses”

 

Thanks in advance.

 

Best Regards,

Hao Wu

 

From: devel@edk2.groups.io <devel= @edk2.groups.io> On Behalf Of Bassa, Damian
Sent: Tuesday, August 24, 2021 11:15 PM
To: devel@edk2.groups.io=
Subject: [edk2-devel] [PATCH] MdeModulePkg/PciBusDxe: Enumerator to = check for RCiEP before looking for RP

 

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;<= /o:p>

   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 Technol= ogy Poland sp. z o.o.
ul. S=B3owackiego 173 | 80-298 Gd= a=F1sk | S=B1d Rejonowy Gda=F1sk P=F3=B3noc | VII Wydzia=B3 Gospodarczy Kra= jowego Rejestru S=B1dowego - KRS 101882 | NIP 957-07-52-316 | Kapita=B3 zak=B3adowy 200.000 PLN.

Ta wiadomo=B6= =E6 wraz z za=B3=B1cznikami jest przeznaczona dla okre=B6lonego adresata i = mo=BFe zawiera=E6 informacje poufne. W razie przypadkowego otrzymania tej wiadomo=B6ci, prosimy o powiadomienie nadawcy oraz trwa=B3e jej usuni= =EAcie; jakiekolwiek przegl=B1danie lub rozpowszechnianie jest zabronione.<= br> This e-mail and any at= tachments may contain confidential material for the sole use of the intende= d recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or = distribution by others is strictly prohibited.

 


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.

--_000_CO1PR11MB51877027E16AADD3E5D065118DCC9CO1PR11MB5187namp_--