From nobody Thu Apr 25 17:09:25 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+53116+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+53116+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1578628465; cv=none; d=zohomail.com; s=zohoarc; b=A0+KmS5/+2nKt7IhWbsSohjR6oh1vQxNDiGvYr65RjlVQOW0Ha6dU5YTSHIKqNzenpr3jal8ZfsgSwPmS+6C/ELSuv8+7rih9vGZpvnCZTUKiH4kKecUmrRgkEPbsLVDCTiLhHr+1w+SKuztI188Ws06zHRJa/3OFuFVT3RWvIM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578628465; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=9HwpT0EJjC9/9HQ6ErDxkY204gkG+h7ylZdp96VSYzY=; b=MAbzgqRIR64XwkHz6r4KfbM5Z0UaXTpfo+3bFy9QUNslvvY6JnfgZ0MPEXsxdPHPMHO4Dvu1i4baBPdamnl2FI3eY1j54G7koe34sFw7j3zkC5c+QqcLLxJiCujpDobwoMoPhsOpuD6OWtiRsm/zRkkHOFwMWXUHdUxLUXwarH8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+53116+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1578628465615593.2861163051796; Thu, 9 Jan 2020 19:54:25 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id lNbpYY1788612xfF60ub0Df8; Thu, 09 Jan 2020 19:54:25 -0800 X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web09.5603.1578628464269478824 for ; Thu, 09 Jan 2020 19:54:24 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2020 19:54:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,415,1571727600"; d="scan'208";a="254827082" X-Received: from unknown (HELO PIDSBABIOS005.gar.corp.intel.com) ([10.223.9.183]) by fmsmga002.fm.intel.com with ESMTP; 09 Jan 2020 19:54:21 -0800 From: "Javeed, Ashraf" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Ray Ni Subject: [edk2-devel] [edk2-staging/UEFI_PCI_ENHANCE-2 PATCH V8] MdePkg/Protocols: New PCI Express Platform Protocol, EFI encodings Date: Fri, 10 Jan 2020 09:24:16 +0530 Message-Id: <20200110035416.19584-1-ashraf.javeed@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ashraf.javeed@intel.com X-Gm-Message-State: xByFqgBk0yiuYuOqvXyfxJLax1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1578628465; bh=iohRkgckNAAIR2C+qkFAhESrp9ZgNE96OnUlKXPteKA=; h=Cc:Date:From:Reply-To:Subject:To; b=LCb/B3shZEi+bA4EfBCesbFgYYrrhgr87VKMnWu3xqThiQfcH0w1ePMC09MR7h3vw9L 1CV18LB+bUbKBz7N9ixHlwuktG0Lf40/GCUh8qlmFqlM7ayP7lnEcdqxRw1y9niaHFHj7 a0BNTYnIBjEUvR4EEWfotE/Jrhv4u5YOv+s= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1954 Three interfaces added to PCI Express Platform Protocol:- (1) GetDevicePolicy() -> to retrieve device-specific platform policies (2) NotifyDeviceState() -> to notify platform about device PCI Express configuration state (3) GetPolicy() -> to retrieve platform policy about the PCI Express feature list PCI Express Override Protocol is made alias to PCI Express Platform Protocol. EFI encodings introduced for the following PCI Express features, are: 1. Maximum Payload Size (MPS) 2. Maximum Read Request Size (MRRS) 3. Extended Tag 4. Relax Order Enable 5. No Snoop Enable 6. ASPM support 7. Common Clock Configuration 8. Extended SYNC 9. Atomic Op 10. LTR Enable 11. PTM support 12. CTO support 13. CPM 14. L1 PM Substates New source files with unique definitions are: MdePkg/Include/Protocol/PciExpressPlatform.h, MdePkg/Include/Protocol/PciExpressOverride.h Signed-off-by: Ashraf Javeed Cc: Michael D Kinney Cc: Liming Gao Cc: Ray Ni --- In V8: Code Syntax correction made. In V7: Revised ECR to define additional interface GetPolicy() in the PCI Express Platform Protocol / PCI Express Override Protocol, Renamed EFI_PCI_EXPRESS_PLATFORM_POLICY to EFI_PCI_EXPRESS_DEVICE_POLICY, Removed the reserved fields from the EFI_PCI_EXPRESS_DEVICE_POLICY, added input parameter to give the length of input buffer in GetDevicePolicy(), and NotifyDeviceState(), introduced new data type EFI_PCI_EXPRESS_PLATFORM_POLICY for the interface GetPolicy(). In V6: renamed the protocol definition source files, remove PCD comments, and renamed NotifyDeviceConfiguration -> NotifyDeviceState In V5: Revised ECR to define new PCI Platform Protocol to support the PCI Express capability features:- EFI_PCI_EXPRESS_PLATFORM_PROTOCOL, EFI_PCI_EXPRESS_OVERRIDE_PROTOCOL. Added new interface -> NotifyDeviceConfiguration Added new EFI encodings / data types for PCIe features:- CPM, L1 PM substates. Enhance the definition of the PCIe feature AtomicOp to support additional attribute - Egress blocking of the port. In V4: Redefinition of the existing interfaces in the EFI_PCI_PLATFORM_- PROTOCOL2, to avoid type casting and to avoid further future change In V3: License update in the header sections of source files In V2: Correction made to header sections of source files --- MdePkg/Include/Protocol/PciExpressPlatform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdePkg/Include/Protocol/PciExpressPlatform.h b/MdePkg/Include/= Protocol/PciExpressPlatform.h index 8a28418..dc58268 100644 --- a/MdePkg/Include/Protocol/PciExpressPlatform.h +++ b/MdePkg/Include/Protocol/PciExpressPlatform.h @@ -643,11 +643,11 @@ typedef struct { **/ typedef EFI_STATUS -(EFIAPI * EFI_PCI_EXPRESS_GET_POLICY) { +(EFIAPI * EFI_PCI_EXPRESS_GET_POLICY) ( IN CONST EFI_PCI_EXPRESS_PLATFORM_PROTOCOL *This, IN UINTN Size, IN OUT EFI_PCI_EXPRESS_PLATFORM_POLICY *PlatformPolicy -}; +); =20 /// /// This protocol provides the interface between the PCI bus driver/PCI Ho= st --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#53116): https://edk2.groups.io/g/devel/message/53116 Mute This Topic: https://groups.io/mt/69594616/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-