From nobody Sat Apr 27 08:25:40 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+64110+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+64110+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1597246463; cv=none; d=zohomail.com; s=zohoarc; b=iQ7n+iSCEYKO2SExf8rOoZ9Mgh+kuUjD+Ha7NdEgZlpVrEE1Aq+ZpxP4NOkGffgSDHwcyYnyF/LgnmmUTKrcUe0BfYCEiqhmUSL4xnRUQro6BWa9uhUVimyXnASkndOb8gz4+xJZXzUqDtjjsVbd2JhwhlkRP2/i9KWIYHO07m4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1597246463; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=AVgP7hUgHNxVSZ8AObkJVlSw+z8gytLn3FNl5QBFl7Y=; b=JrW6Xjli4BuK1JTho0Tbt1SsCP9UhFcjk6VY5eakcBmmJd3vfPANbGRiPKUsWm+8LO3mRE1eZapptlSny246BQhpQkKroI3KnzNNjbu01wejDi/+gOucIuada0Lx+EWQ0Nn8L7O8Xo8ZFrfOaplS71yS4s+b8mXOqm5Ac/mIaZw= 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+64110+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 1597246463876748.6180986323376; Wed, 12 Aug 2020 08:34:23 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id wTE8YY1788612xr9L6c1xvS5; Wed, 12 Aug 2020 08:34:23 -0700 X-Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web10.17425.1597246459888196126 for ; Wed, 12 Aug 2020 08:34:20 -0700 IronPort-SDR: L67WA+cozCHQno2TDPZPdTtuf+Z4QkIfH44u6znrjaPKJZpaEc8ueUnQvT9pINPSuusm/cA5IS ZqNUDL3ie0xQ== X-IronPort-AV: E=McAfee;i="6000,8403,9711"; a="141822444" X-IronPort-AV: E=Sophos;i="5.76,304,1592895600"; d="scan'208";a="141822444" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2020 08:34:19 -0700 IronPort-SDR: F1JP7vj9VhMtaoyNW/Rk3UVVZtIplI6nWygNBGhSl+gmWemrCx3032LsrjyYBoWL2VlLzS04Bi n9ZLTzUzkMCA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,304,1592895600"; d="scan'208";a="334952779" X-Received: from pidsbabios005.gar.corp.intel.com ([10.66.224.110]) by orsmga007.jf.intel.com with ESMTP; 12 Aug 2020 08:34:17 -0700 From: "Javeed, Ashraf" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: =?UTF-8?B?W2VkazItZGV2ZWxdIFtQQVRDSCBWMV0g77u/TWRlUGtnL0luY2x1ZGUvR3VpZC9DcGVyLmg6IENYTCBQcm90b2NvbCBFcnJvcg==?= Date: Wed, 12 Aug 2020 21:02:45 +0530 Message-Id: <20200812153245.3404-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: qcqq647xSvYn550hFKi8ASDYx1787277AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1597246463; bh=UKEGU2PgjcRggZEwlkqIvzF3MhhThmkvECWYjUH+osw=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=gyVr6dvqYDRGDTZNsENLQotLQwPNyOkQ0TkDD+mXvCilFQwkF9BYdlTRmfp+2BTi3ER BmvnCO2OK8ACQPOXzDLhf3ObthTiG39csgAJXmtJs+nU7T/YJC8tMLABT/KIRpIOA5UNo yZBv8GTL06kGejDIecA8j2EYCcq8zuONf+M= X-ZohoMail-DKIM: pass (identity @groups.io) BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2884 Added new approved ECR for the CXL Protocol Error Section. Signed-off-by: Ashraf Javeed Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu -- --- MdePkg/Include/Guid/Cper.h | 75 ++++++++++++++++++++++++++++++++++++++++++= ++++++++++++++++++++++++++++++--- MdePkg/MdePkg.dec | 3 +++ 2 files changed, 75 insertions(+), 3 deletions(-) diff --git a/MdePkg/Include/Guid/Cper.h b/MdePkg/Include/Guid/Cper.h index 948f586427..28a0f3d3da 100644 --- a/MdePkg/Include/Guid/Cper.h +++ b/MdePkg/Include/Guid/Cper.h @@ -1,7 +1,7 @@ /** @file GUIDs and definitions used for Common Platform Error Record. =20 - Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2011 - 2020, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -10,8 +10,8 @@ =20 **/ =20 -#ifndef __CPER_GUID_H__ -#define __CPER_GUID_H__ +#ifndef CPER_GUID_H__ +#define CPER_GUID_H__ =20 #pragma pack(1) =20 @@ -1249,4 +1249,73 @@ extern EFI_GUID gEfiIa32X64ErrorTypeMsCheckGuid; =20 #endif =20 +// +// Compute Express Link (CXL) Protocol Error Section Descriptor body +//@{ + +/// +/// CXL Protocol Error Section Type +/// +#define EFI_ERROR_SECTION_CXL_PROTOCOL_GUID \ + { \ + 0x80B9EFB4, 0x52B5, 0x4DE3, { 0xA7, 0x77, 0x68, 0x78, 0x4B, 0x77, 0x10= , 0x48 } \ + } + +// +// Validation Bits to indicate the valid fields of the error section +// +#define EFI_CXL_PROTOCOL_ERROR_AGENT_TYPE_VALID BIT0 +#define EFI_CXL_PROTOCOL_ERROR_AGENT_ADDRESS_VALID BIT1 +#define EFI_CXL_PROTOCOL_ERROR_DEVICE_ID_VALID BIT2 +#define EFI_CXL_PROTOCOL_ERROR_DEVICE_SERIAL_NUMBER_VALID BIT3 +#define EFI_CXL_PROTOCOL_ERROR_CAPABILITY_STRUCTURE_VALID BIT4 +#define EFI_CXL_PROTOCOL_ERROR_CXL_DVSEC_VALID BIT5 +#define EFI_CXL_PROTOCOL_ERROR_CXL_ERROR_LOG_VALID BIT6 + +/// +/// Compute Express Link (CXL) Protocol Error Section +/// +typedef struct { + // Indicates which of the following fields are valid + UINT64 Validation= Bits; + // + // error was detected by a CXL 1.1 device (0) or downstream port (1), ot= her + // values reserved + UINT8 CxlAgentTy= pe; + UINT8 Reserved[7= ]; + // + // PCI address of the CXL 1.1. Device, or RCRB base address of the + // CXL 1.1 downstream port + UINT64 CxlAgentAd= dress; + // + // to uniquely identify CXL 1.1 Device - Vendor, Device ID, sussystem ID= s, + // Class Code and slot number + UINT16 DeviceId[8= ]; + // + // Device Serial NUmber of the CXL 1.1 Device + UINT64 DeviceSeri= alNumber; + // + // PCIe Capability Structure of the CXL 1.1 Device + UINT8 Capability= Structure[60]; + // + // The length in bytes of the CXL DVSEC field + UINT16 CxlDvsecLe= ngth; + // + // The length in bytes of the CXL Error Log field + UINT16 CxlErrorLo= gLength; + UINT32 Reserved2; + // + // variable-length structure, is defined by the CXL DVSEC Length field; = either + // CXL 1.1 Device or CXL 1.1 downstream port + UINT8 CxlDvsec[1= ]; + // + // variable-length structure, is defined by the CXL Error Log Length fie= ld; + // contains copy of its =EF=BF=BDCXL RAS Capability Structure=EF=BF=BD, = as defined in the + // CXL 1.1 Specification + UINT8 CxlErrorLo= g[0]; +} EFI_CXL_PROTOCOL_ERROR_DATA; + +extern EFI_GUID gEfiCxlProtocolErrorSectionGuid; +//@} + #endif diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 73f6c24073..0f83b21be9 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -484,6 +484,9 @@ ## Include/Guid/Cper.h gEfiIommuDMArErrorSectionGuid =3D { 0x036f84e1, 0x7f37, 0x428c, { 0= xa7, 0x9e, 0x57, 0x5f, 0xdf, 0xaa, 0x84, 0xec }} =20 + ## Include/Guid/Cper.h + gEfiCxlProtocolErrorSectionGuid =3D { 0x80B9EFB4, 0x52B5, 0x4DE3, { 0= xA7, 0x77, 0x68, 0x78, 0x4B, 0x77, 0x10, 0x48 }} + # # GUID defined in UEFI2.2 # --=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 (#64110): https://edk2.groups.io/g/devel/message/64110 Mute This Topic: https://groups.io/mt/76149406/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-