From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78413+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640587471624.6140262249384; Fri, 30 Jul 2021 03:23:07 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id BmY2YY1788612xRIlAFkOC2o; Fri, 30 Jul 2021 03:23:07 -0700 X-Received: from EUR02-VE1-obe.outbound.protection.outlook.com (EUR02-VE1-obe.outbound.protection.outlook.com [40.107.2.49]) by mx.groups.io with SMTP id smtpd.web10.22186.1627640584839930895 for ; Fri, 30 Jul 2021 03:23:05 -0700 X-Received: from AM5PR1001CA0026.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:2::39) by AM0PR08MB3937.eurprd08.prod.outlook.com (2603:10a6:208:12f::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Fri, 30 Jul 2021 10:22:57 +0000 X-Received: from AM5EUR03FT017.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:2:cafe::bf) by AM5PR1001CA0026.outlook.office365.com (2603:10a6:206:2::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78413+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT017.mail.protection.outlook.com (10.152.16.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:56 +0000 X-Received: ("Tessian outbound 1942ea606101:v100"); Fri, 30 Jul 2021 10:22:56 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e146afd685ff160f X-CR-MTA-TID: 64aa7808 X-Received: from b2f0503a5acb.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5852E350-5889-4FAB-9541-72C5C55C2338.1; Fri, 30 Jul 2021 10:22:49 +0000 X-Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b2f0503a5acb.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NlRA40ujPpKMPmB0X7Fx+YmWcXYRxQp3njBvBUKhc2cJupDQwp2cndhv4bPAfJU8uAjmzcays6S0J6CY3qlyfiiGnJLY8giGWsY7+33ShxHpMaQl51U3THu2z1llD3NIy7xe/H/kvmTojV0DLgQe3QQosF+oVtsg3p2bC5W+JUGF9zAMFyCmcVzQi7X65PiAf2Ts7aUFRt2I3q64i8UGYsJ31LRaevo1XbrOilygM4JO8cVT9/aa09OXAvYNLwik1TPwSoioqF5ZxV0N6AVheZxT09L8OMwp23r41xB4MvxdRnp8wszJjwZ2diHaBAqotRqez84YZoqIGpW6PgCt+g== 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:X-MS-Exchange-SenderADCheck; bh=cEtgIpTr8VElXSp9/dMNHG3ozMzHfd6jU3FC5j18Slo=; b=EurzbCDZVJoufDPfjr4Ujj3SDrZbl+aYc5786+f70uUfNHsBUKHcAQjf5zRHmyo5cP3Hnlj+KMONUQvZMXPWqj+OcQ+FMGyvBZ1YzwXzQmaI1P/FC6eCi6xucLMdilQ9YaJMxBG63btpLP/ENeEbjzWLG4c60CDunBTqvpAGpm4c2qYX2TJQF7tOuX/+lFWebLGFMGAG9HiE3mALAuUrU2dQC4BmQmt2BDgdoz5CUpXuwi55AGUYXKdTTxD9Ad/m2sycJ07p4Lpw/3NGvx5Qtz4QDIfpuinS6jp/jubBSDb/c42F2ObcuAJiTO/WBPArgDMLTL0K6sG0j28ZB1QUeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB6PR1001CA0007.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:b7::17) by AM6PR08MB4454.eurprd08.prod.outlook.com (2603:10a6:20b:bf::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.17; Fri, 30 Jul 2021 10:22:45 +0000 X-Received: from DB5EUR03FT042.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:b7:cafe::27) by DB6PR1001CA0007.outlook.office365.com (2603:10a6:4:b7::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT042.mail.protection.outlook.com (10.152.21.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:44 +0000 X-Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:42 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:41 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:41 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 01/13] MdePkg: Add ACPI 6.4 header file Date: Fri, 30 Jul 2021 11:22:29 +0100 Message-ID: <20210730102241.508-2-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c22091e2-59fa-488b-6077-08d95343ffd5 X-MS-TrafficTypeDiagnostic: AM6PR08MB4454:|AM0PR08MB3937: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:9508;OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: DVpSuk7RdCtsk0tlYG8d2iDwP+fBVQZ+LF+RLxLx30GUESt/6w+qx/ysy02Y6RXLn3dH6HlZxNcPE2M4FaBNRq3X3F9S0rbOSiZxs8hskIq0yPLAbp3aw83p40Glh7/mAqF1HTzrk2AwGdutGYM/wFgq2Xt3GnwA3PpZotrBM/7dy5s276LC0X+1Sp69FbBNJ1jJzGgrAUz/bkXgIs/EW8Xw7zfoIWbhVGhXyaFlYct+mRmqksDmYvf2KaFEpCHHrxUJJZrf92mBtvum7iheUfmt1fI8/+0Kycwt8sVXcMp4Q/Uqf6n6ZBywZiSkdPzjHZteYB4C9E4QDdbd3xdBLVC1KklX2CebYuDG143qxDf+ZEpvKnDpSFFuU8ima+PuNvDoMJHQ9R/K/heCaKEwR+Vmt0mbGR6gR03OWGKTu5tt4cGboHFGGcXLuuXHsWu+AVZXoMpeqOfwBjS38j4uWnMR9wpvyYeoTb5/EzurRhL70++PCuN8KnaSaORHYOe/ycAUiSwkkWRoo3QHk3SEvR65Xk04WvIsTiiHtwIQRZidJG6VwsO8/JIcn0jsolKMuZEBqUgOK0E0TV9dJ+NbU3sc9UoKUDahxwnZlTbfzGVeyBHqlJTEeudrpzx1O192N8d9TehmKYdtc+SToqseEu+0t9IotQWqMFDUDDepHxK5cQ0onBX9qOhwQY1n6Mg14LaqvPTr8LFVrrjYq2n77hdiHDWWfu0LEWds0qYDXEDzPRWGE3Zf+ihU9GOUVsPlMDMBvqPw9Fp1Qes48xBB0lA2FUsKY56V/3QbRbatqczOWxiqRf4L9lSQqiUg5Ei9 X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(346002)(136003)(376002)(39850400004)(396003)(36840700001)(46966006)(86362001)(6666004)(36756003)(4326008)(336012)(36860700001)(7696005)(82740400003)(19627235002)(83380400001)(70586007)(5660300002)(316002)(47076005)(70206006)(2616005)(26005)(6916009)(81166007)(82310400003)(8936002)(356005)(1076003)(54906003)(8676002)(426003)(2906002)(478600001)(186003)(30864003)(36900700001)(579004)(559001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4454 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT017.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: ca5c1d86-c5c3-45d4-a401-08d95343f8ac X-Microsoft-Antispam-Message-Info: UGrwIXonARzyfUc0lNnYziPL6+0sde7+O9V7yynqQwXzWi/hWw7x3vGnH5dCFDTEWTBBknE6w57IpOHJhaxTUnFaTnceSBT/kLjLTsQp1KHYD+6XjVRYOt4BEk+saJQENiINWiPXBw2ZnuTP522RkRHS4W8cpx/PgLGiJifd9OJcPDdgxhI+SNheCT/928HROU92EE/bjnyTmREHJvRphuL14FU/WyJtBhoomWcZt+nnpim9GRTrS8cfb9E8a6fgxbq6Xwbp29ELRg76jp3ROfeqrjMSZMhrHppJI2SDNkrL8dZFaarwYzkjnZlZF+0BP1W4p/HqGh6YHp48lIEs4lqu8XqH2FAIgIMQNJGoSQ+eY6DJslbw5dhYm+cB1K4TXKvyK4/eMZoI8wq5HYrNJ7hX5Mplzx6jl+Mrk6h6F6JQE8e9AE2jcv+mECaYrQyOGtdJ2WAFuT52BAj3nfyZilkfG0qu3pVADbBWAtG14QHyYSNm7p/mKs6aBTHnq71+2YFFZaH++5Dlnd6PPkFQANObkFmDq3Dd4gX4kvBvdgLH7seLzs3cIQBpEzMhqFXZIi5+o1oU/dM1q2bfsGiBz2L90rsW4gt6Bl4FTNEPAnXxlRl1xKBFI/lMoVk/f0tCkVRZW6PtPCO7w3ktGszfmgDy5IiwUh4eSiAG30criI4Gd9wSUty7DZYOCHN9wHT2J75RlbRi97CAMHXw5CPh8ybQ63YHWlGyV3D+K0FuGg/oraE/sFX00ygcj+62YM7l7q+GHjSKKibVT0ukQB5uIn4+vzDYa35O3P8TK3VOH70= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:22:56.9134 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c22091e2-59fa-488b-6077-08d95343ffd5 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT017.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3937 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: CbGLk4upOFZW5RVylTajSM4gx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640587; bh=z0ByWJtCYM/eGeBZ9pWzRkTUd6hD/m8TcQIzwKQ/7HU=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=kCdqlqUI9ahbiGE7/sgOBTeH6Noik3873Ctm6pf7OO9nP+PPRgzcLKYFyKLPm9vLm6i /OMYCnX+JSgvHPn++bvsKwLRHlNcmifeT2FIqdI+FDunsyq9YousNXZGsVDF0sDsbDxvu mT97QEuVgs7W6/vqmWLuRjEf44l5MlF+0Kw= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640589122100014 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) This patch introduces a header file for the ACPI specification version 6.4. Currently it is based on the Acpi63.h header file however makes six changes: 1. Replace all occurences of "6_3"/"6.3" with "6_4/6.4". 2. Remove the trailing underscore from the header guard in accordance with the EDK2 coding standards, section 5.3.5. 3. Make Acpi64.h the latest ACPI definition included by Acpi.h. 4. Fix the BGRT Status field comment to match the ACPI 6.3A spec. 5. Fix several typos where definitions were named "PMMT" when it should be "PMTT". 6. Fix a typo: "PPTT Platform Communication Channel" should be "PDTT Platform Communication Channel". Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi.h | 4 +- MdePkg/Include/IndustryStandard/Acpi64.h | 2967 ++++++++++++++++++++ 2 files changed, 2969 insertions(+), 2 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi.h b/MdePkg/Include/Indust= ryStandard/Acpi.h index 48f4d7176125ee33db0f103268af199c7efacdad..05969a36b18ebf95d62d857576e= effdb89fd194e 100644 --- a/MdePkg/Include/IndustryStandard/Acpi.h +++ b/MdePkg/Include/IndustryStandard/Acpi.h @@ -3,7 +3,7 @@ consumed by drivers that do not care about ACPI versions. =20 Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
- Copyright (c) 2019, ARM Ltd. All rights reserved.
+ Copyright (c) 2019 - 2021, ARM Ltd. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -11,6 +11,6 @@ #ifndef _ACPI_H_ #define _ACPI_H_ =20 -#include +#include =20 #endif diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h new file mode 100644 index 0000000000000000000000000000000000000000..efbfd8b7a540a130b3de45e4cdd= 02f099a79dfc3 --- /dev/null +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -0,0 +1,2967 @@ +/** @file + ACPI 6.4 definitions from the ACPI Specification Revision 6.4 Jan, 2021. + + Copyright (c) 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2019 - 2021, ARM Ltd. All rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#ifndef ACPI_6_4_H_ +#define ACPI_6_4_H_ + +#include + +// +// Ensure proper structure formats +// +#pragma pack(1) + +/// +/// ACPI 6.4 Generic Address Space definition +/// +typedef struct { + UINT8 AddressSpaceId; + UINT8 RegisterBitWidth; + UINT8 RegisterBitOffset; + UINT8 AccessSize; + UINT64 Address; +} EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE; + +// +// Generic Address Space Address IDs +// +#define EFI_ACPI_6_4_SYSTEM_MEMORY 0x00 +#define EFI_ACPI_6_4_SYSTEM_IO 0x01 +#define EFI_ACPI_6_4_PCI_CONFIGURATION_SPACE 0x02 +#define EFI_ACPI_6_4_EMBEDDED_CONTROLLER 0x03 +#define EFI_ACPI_6_4_SMBUS 0x04 +#define EFI_ACPI_6_4_SYSTEM_CMOS 0x05 +#define EFI_ACPI_6_4_PCI_BAR_TARGET 0x06 +#define EFI_ACPI_6_4_IPMI 0x07 +#define EFI_ACPI_6_4_GENERAL_PURPOSE_IO 0x08 +#define EFI_ACPI_6_4_GENERIC_SERIAL_BUS 0x09 +#define EFI_ACPI_6_4_PLATFORM_COMMUNICATION_CHANNEL 0x0A +#define EFI_ACPI_6_4_FUNCTIONAL_FIXED_HARDWARE 0x7F + +// +// Generic Address Space Access Sizes +// +#define EFI_ACPI_6_4_UNDEFINED 0 +#define EFI_ACPI_6_4_BYTE 1 +#define EFI_ACPI_6_4_WORD 2 +#define EFI_ACPI_6_4_DWORD 3 +#define EFI_ACPI_6_4_QWORD 4 + +// +// ACPI 6.4 table structures +// + +/// +/// Root System Description Pointer Structure +/// +typedef struct { + UINT64 Signature; + UINT8 Checksum; + UINT8 OemId[6]; + UINT8 Revision; + UINT32 RsdtAddress; + UINT32 Length; + UINT64 XsdtAddress; + UINT8 ExtendedChecksum; + UINT8 Reserved[3]; +} EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_POINTER; + +/// +/// RSD_PTR Revision (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02 ///< A= CPISpec (Revision 6.4) says current value is 2 + +/// +/// Common table header, this prefaces all ACPI tables, including FACS, but +/// excluding the RSD PTR structure +/// +typedef struct { + UINT32 Signature; + UINT32 Length; +} EFI_ACPI_6_4_COMMON_HEADER; + +// +// Root System Description Table +// No definition needed as it is a common description table header, the sa= me with +// EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT32 ta= ble pointers. +// + +/// +/// RSDT Revision (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01 + +// +// Extended System Description Table +// No definition needed as it is a common description table header, the sa= me with +// EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 ta= ble pointers. +// + +/// +/// XSDT Revision (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01 + +/// +/// Fixed ACPI Description Table Structure (FADT) +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 FirmwareCtrl; + UINT32 Dsdt; + UINT8 Reserved0; + UINT8 PreferredPmProfile; + UINT16 SciInt; + UINT32 SmiCmd; + UINT8 AcpiEnable; + UINT8 AcpiDisable; + UINT8 S4BiosReq; + UINT8 PstateCnt; + UINT32 Pm1aEvtBlk; + UINT32 Pm1bEvtBlk; + UINT32 Pm1aCntBlk; + UINT32 Pm1bCntBlk; + UINT32 Pm2CntBlk; + UINT32 PmTmrBlk; + UINT32 Gpe0Blk; + UINT32 Gpe1Blk; + UINT8 Pm1EvtLen; + UINT8 Pm1CntLen; + UINT8 Pm2CntLen; + UINT8 PmTmrLen; + UINT8 Gpe0BlkLen; + UINT8 Gpe1BlkLen; + UINT8 Gpe1Base; + UINT8 CstCnt; + UINT16 PLvl2Lat; + UINT16 PLvl3Lat; + UINT16 FlushSize; + UINT16 FlushStride; + UINT8 DutyOffset; + UINT8 DutyWidth; + UINT8 DayAlrm; + UINT8 MonAlrm; + UINT8 Century; + UINT16 IaPcBootArch; + UINT8 Reserved1; + UINT32 Flags; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ResetReg; + UINT8 ResetValue; + UINT16 ArmBootArch; + UINT8 MinorVersion; + UINT64 XFirmwareCtrl; + UINT64 XDsdt; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm1aEvtBlk; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm1bEvtBlk; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm1aCntBlk; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm1bCntBlk; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm2CntBlk; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPmTmrBlk; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XGpe0Blk; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XGpe1Blk; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE SleepControlReg; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE SleepStatusReg; + UINT64 HypervisorVendorIdentity; +} EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE; + +/// +/// FADT Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x06 +#define EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION 0x03 + +// +// Fixed ACPI Description Table Preferred Power Management Profile +// +#define EFI_ACPI_6_4_PM_PROFILE_UNSPECIFIED 0 +#define EFI_ACPI_6_4_PM_PROFILE_DESKTOP 1 +#define EFI_ACPI_6_4_PM_PROFILE_MOBILE 2 +#define EFI_ACPI_6_4_PM_PROFILE_WORKSTATION 3 +#define EFI_ACPI_6_4_PM_PROFILE_ENTERPRISE_SERVER 4 +#define EFI_ACPI_6_4_PM_PROFILE_SOHO_SERVER 5 +#define EFI_ACPI_6_4_PM_PROFILE_APPLIANCE_PC 6 +#define EFI_ACPI_6_4_PM_PROFILE_PERFORMANCE_SERVER 7 +#define EFI_ACPI_6_4_PM_PROFILE_TABLET 8 + +// +// Fixed ACPI Description Table Boot Architecture Flags +// All other bits are reserved and must be set to 0. +// +#define EFI_ACPI_6_4_LEGACY_DEVICES BIT0 +#define EFI_ACPI_6_4_8042 BIT1 +#define EFI_ACPI_6_4_VGA_NOT_PRESENT BIT2 +#define EFI_ACPI_6_4_MSI_NOT_SUPPORTED BIT3 +#define EFI_ACPI_6_4_PCIE_ASPM_CONTROLS BIT4 +#define EFI_ACPI_6_4_CMOS_RTC_NOT_PRESENT BIT5 + +// +// Fixed ACPI Description Table Arm Boot Architecture Flags +// All other bits are reserved and must be set to 0. +// +#define EFI_ACPI_6_4_ARM_PSCI_COMPLIANT BIT0 +#define EFI_ACPI_6_4_ARM_PSCI_USE_HVC BIT1 + +// +// Fixed ACPI Description Table Fixed Feature Flags +// All other bits are reserved and must be set to 0. +// +#define EFI_ACPI_6_4_WBINVD BIT0 +#define EFI_ACPI_6_4_WBINVD_FLUSH BIT1 +#define EFI_ACPI_6_4_PROC_C1 BIT2 +#define EFI_ACPI_6_4_P_LVL2_UP BIT3 +#define EFI_ACPI_6_4_PWR_BUTTON BIT4 +#define EFI_ACPI_6_4_SLP_BUTTON BIT5 +#define EFI_ACPI_6_4_FIX_RTC BIT6 +#define EFI_ACPI_6_4_RTC_S4 BIT7 +#define EFI_ACPI_6_4_TMR_VAL_EXT BIT8 +#define EFI_ACPI_6_4_DCK_CAP BIT9 +#define EFI_ACPI_6_4_RESET_REG_SUP BIT10 +#define EFI_ACPI_6_4_SEALED_CASE BIT11 +#define EFI_ACPI_6_4_HEADLESS BIT12 +#define EFI_ACPI_6_4_CPU_SW_SLP BIT13 +#define EFI_ACPI_6_4_PCI_EXP_WAK BIT14 +#define EFI_ACPI_6_4_USE_PLATFORM_CLOCK BIT15 +#define EFI_ACPI_6_4_S4_RTC_STS_VALID BIT16 +#define EFI_ACPI_6_4_REMOTE_POWER_ON_CAPABLE BIT17 +#define EFI_ACPI_6_4_FORCE_APIC_CLUSTER_MODEL BIT18 +#define EFI_ACPI_6_4_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19 +#define EFI_ACPI_6_4_HW_REDUCED_ACPI BIT20 +#define EFI_ACPI_6_4_LOW_POWER_S0_IDLE_CAPABLE BIT21 + +/// +/// Firmware ACPI Control Structure +/// +typedef struct { + UINT32 Signature; + UINT32 Length; + UINT32 HardwareSignature; + UINT32 FirmwareWakingVector; + UINT32 GlobalLock; + UINT32 Flags; + UINT64 XFirmwareWakingVector; + UINT8 Version; + UINT8 Reserved0[3]; + UINT32 OspmFlags; + UINT8 Reserved1[24]; +} EFI_ACPI_6_4_FIRMWARE_ACPI_CONTROL_STRUCTURE; + +/// +/// FACS Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x02 + +/// +/// Firmware Control Structure Feature Flags +/// All other bits are reserved and must be set to 0. +/// +#define EFI_ACPI_6_4_S4BIOS_F BIT0 +#define EFI_ACPI_6_4_64BIT_WAKE_SUPPORTED_F BIT1 + +/// +/// OSPM Enabled Firmware Control Structure Flags +/// All other bits are reserved and must be set to 0. +/// +#define EFI_ACPI_6_4_OSPM_64BIT_WAKE_F BIT0 + +// +// Differentiated System Description Table, +// Secondary System Description Table +// and Persistent System Description Table, +// no definition needed as they are common description table header, the s= ame with +// EFI_ACPI_DESCRIPTION_HEADER, followed by a definition block. +// +#define EFI_ACPI_6_4_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x= 02 +#define EFI_ACPI_6_4_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x= 02 + +/// +/// Multiple APIC Description Table header definition. The rest of the ta= ble +/// must be defined in a platform specific manner. +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 LocalApicAddress; + UINT32 Flags; +} EFI_ACPI_6_4_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER; + +/// +/// MADT Revision (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x05 + +/// +/// Multiple APIC Flags +/// All other bits are reserved and must be set to 0. +/// +#define EFI_ACPI_6_4_PCAT_COMPAT BIT0 + +// +// Multiple APIC Description Table APIC structure types +// All other values between 0x0D and 0x7F are reserved and +// will be ignored by OSPM. 0x80 ~ 0xFF are reserved for OEM. +// +#define EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC 0x00 +#define EFI_ACPI_6_4_IO_APIC 0x01 +#define EFI_ACPI_6_4_INTERRUPT_SOURCE_OVERRIDE 0x02 +#define EFI_ACPI_6_4_NON_MASKABLE_INTERRUPT_SOURCE 0x03 +#define EFI_ACPI_6_4_LOCAL_APIC_NMI 0x04 +#define EFI_ACPI_6_4_LOCAL_APIC_ADDRESS_OVERRIDE 0x05 +#define EFI_ACPI_6_4_IO_SAPIC 0x06 +#define EFI_ACPI_6_4_LOCAL_SAPIC 0x07 +#define EFI_ACPI_6_4_PLATFORM_INTERRUPT_SOURCES 0x08 +#define EFI_ACPI_6_4_PROCESSOR_LOCAL_X2APIC 0x09 +#define EFI_ACPI_6_4_LOCAL_X2APIC_NMI 0x0A +#define EFI_ACPI_6_4_GIC 0x0B +#define EFI_ACPI_6_4_GICD 0x0C +#define EFI_ACPI_6_4_GIC_MSI_FRAME 0x0D +#define EFI_ACPI_6_4_GICR 0x0E +#define EFI_ACPI_6_4_GIC_ITS 0x0F + +// +// APIC Structure Definitions +// + +/// +/// Processor Local APIC Structure Definition +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 AcpiProcessorUid; + UINT8 ApicId; + UINT32 Flags; +} EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC_STRUCTURE; + +/// +/// Local APIC Flags. All other bits are reserved and must be 0. +/// +#define EFI_ACPI_6_4_LOCAL_APIC_ENABLED BIT0 +#define EFI_ACPI_6_4_LOCAL_APIC_ONLINE_CAPABLE BIT1 + +/// +/// IO APIC Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 IoApicId; + UINT8 Reserved; + UINT32 IoApicAddress; + UINT32 GlobalSystemInterruptBase; +} EFI_ACPI_6_4_IO_APIC_STRUCTURE; + +/// +/// Interrupt Source Override Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 Bus; + UINT8 Source; + UINT32 GlobalSystemInterrupt; + UINT16 Flags; +} EFI_ACPI_6_4_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE; + +/// +/// Platform Interrupt Sources Structure Definition +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT16 Flags; + UINT8 InterruptType; + UINT8 ProcessorId; + UINT8 ProcessorEid; + UINT8 IoSapicVector; + UINT32 GlobalSystemInterrupt; + UINT32 PlatformInterruptSourceFlags; + UINT8 CpeiProcessorOverride; + UINT8 Reserved[31]; +} EFI_ACPI_6_4_PLATFORM_INTERRUPT_APIC_STRUCTURE; + +// +// MPS INTI flags. +// All other bits are reserved and must be set to 0. +// +#define EFI_ACPI_6_4_POLARITY (3 << 0) +#define EFI_ACPI_6_4_TRIGGER_MODE (3 << 2) + +/// +/// Non-Maskable Interrupt Source Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT16 Flags; + UINT32 GlobalSystemInterrupt; +} EFI_ACPI_6_4_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE; + +/// +/// Local APIC NMI Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 AcpiProcessorUid; + UINT16 Flags; + UINT8 LocalApicLint; +} EFI_ACPI_6_4_LOCAL_APIC_NMI_STRUCTURE; + +/// +/// Local APIC Address Override Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT16 Reserved; + UINT64 LocalApicAddress; +} EFI_ACPI_6_4_LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE; + +/// +/// IO SAPIC Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 IoApicId; + UINT8 Reserved; + UINT32 GlobalSystemInterruptBase; + UINT64 IoSapicAddress; +} EFI_ACPI_6_4_IO_SAPIC_STRUCTURE; + +/// +/// Local SAPIC Structure +/// This struct followed by a null-terminated ASCII string - ACPI Processo= r UID String +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 AcpiProcessorId; + UINT8 LocalSapicId; + UINT8 LocalSapicEid; + UINT8 Reserved[3]; + UINT32 Flags; + UINT32 ACPIProcessorUIDValue; +} EFI_ACPI_6_4_PROCESSOR_LOCAL_SAPIC_STRUCTURE; + +/// +/// Platform Interrupt Sources Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT16 Flags; + UINT8 InterruptType; + UINT8 ProcessorId; + UINT8 ProcessorEid; + UINT8 IoSapicVector; + UINT32 GlobalSystemInterrupt; + UINT32 PlatformInterruptSourceFlags; +} EFI_ACPI_6_4_PLATFORM_INTERRUPT_SOURCES_STRUCTURE; + +/// +/// Platform Interrupt Source Flags. +/// All other bits are reserved and must be set to 0. +/// +#define EFI_ACPI_6_4_CPEI_PROCESSOR_OVERRIDE BIT0 + +/// +/// Processor Local x2APIC Structure Definition +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 Reserved[2]; + UINT32 X2ApicId; + UINT32 Flags; + UINT32 AcpiProcessorUid; +} EFI_ACPI_6_4_PROCESSOR_LOCAL_X2APIC_STRUCTURE; + +/// +/// Local x2APIC NMI Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT16 Flags; + UINT32 AcpiProcessorUid; + UINT8 LocalX2ApicLint; + UINT8 Reserved[3]; +} EFI_ACPI_6_4_LOCAL_X2APIC_NMI_STRUCTURE; + +/// +/// GIC Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT16 Reserved; + UINT32 CPUInterfaceNumber; + UINT32 AcpiProcessorUid; + UINT32 Flags; + UINT32 ParkingProtocolVersion; + UINT32 PerformanceInterruptGsiv; + UINT64 ParkedAddress; + UINT64 PhysicalBaseAddress; + UINT64 GICV; + UINT64 GICH; + UINT32 VGICMaintenanceInterrupt; + UINT64 GICRBaseAddress; + UINT64 MPIDR; + UINT8 ProcessorPowerEfficiencyClass; + UINT8 Reserved2; + UINT16 SpeOverflowInterrupt; +} EFI_ACPI_6_4_GIC_STRUCTURE; + +/// +/// GIC Flags. All other bits are reserved and must be 0. +/// +#define EFI_ACPI_6_4_GIC_ENABLED BIT0 +#define EFI_ACPI_6_4_PERFORMANCE_INTERRUPT_MODEL BIT1 +#define EFI_ACPI_6_4_VGIC_MAINTENANCE_INTERRUPT_MODE_FLAGS BIT2 + +/// +/// GIC Distributor Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT16 Reserved1; + UINT32 GicId; + UINT64 PhysicalBaseAddress; + UINT32 SystemVectorBase; + UINT8 GicVersion; + UINT8 Reserved2[3]; +} EFI_ACPI_6_4_GIC_DISTRIBUTOR_STRUCTURE; + +/// +/// GIC Version +/// +#define EFI_ACPI_6_4_GIC_V1 0x01 +#define EFI_ACPI_6_4_GIC_V2 0x02 +#define EFI_ACPI_6_4_GIC_V3 0x03 +#define EFI_ACPI_6_4_GIC_V4 0x04 + +/// +/// GIC MSI Frame Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT16 Reserved1; + UINT32 GicMsiFrameId; + UINT64 PhysicalBaseAddress; + UINT32 Flags; + UINT16 SPICount; + UINT16 SPIBase; +} EFI_ACPI_6_4_GIC_MSI_FRAME_STRUCTURE; + +/// +/// GIC MSI Frame Flags. All other bits are reserved and must be 0. +/// +#define EFI_ACPI_6_4_SPI_COUNT_BASE_SELECT BIT0 + +/// +/// GICR Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT16 Reserved; + UINT64 DiscoveryRangeBaseAddress; + UINT32 DiscoveryRangeLength; +} EFI_ACPI_6_4_GICR_STRUCTURE; + +/// +/// GIC Interrupt Translation Service Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT16 Reserved; + UINT32 GicItsId; + UINT64 PhysicalBaseAddress; + UINT32 Reserved2; +} EFI_ACPI_6_4_GIC_ITS_STRUCTURE; + +/// +/// Smart Battery Description Table (SBST) +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 WarningEnergyLevel; + UINT32 LowEnergyLevel; + UINT32 CriticalEnergyLevel; +} EFI_ACPI_6_4_SMART_BATTERY_DESCRIPTION_TABLE; + +/// +/// SBST Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01 + +/// +/// Embedded Controller Boot Resources Table (ECDT) +/// The table is followed by a null terminated ASCII string that contains +/// a fully qualified reference to the name space object. +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE EcControl; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE EcData; + UINT32 Uid; + UINT8 GpeBit; +} EFI_ACPI_6_4_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE; + +/// +/// ECDT Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x= 01 + +/// +/// System Resource Affinity Table (SRAT). The rest of the table +/// must be defined in a platform specific manner. +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 Reserved1; ///< Must be set to 1 + UINT64 Reserved2; +} EFI_ACPI_6_4_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER; + +/// +/// SRAT Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03 + +// +// SRAT structure types. +// All other values between 0x06 an 0xFF are reserved and +// will be ignored by OSPM. +// +#define EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00 +#define EFI_ACPI_6_4_MEMORY_AFFINITY 0x01 +#define EFI_ACPI_6_4_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02 +#define EFI_ACPI_6_4_GICC_AFFINITY 0x03 +#define EFI_ACPI_6_4_GIC_ITS_AFFINITY 0x04 +#define EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY 0x05 + +/// +/// Processor Local APIC/SAPIC Affinity Structure Definition +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 ProximityDomain7To0; + UINT8 ApicId; + UINT32 Flags; + UINT8 LocalSapicEid; + UINT8 ProximityDomain31To8[3]; + UINT32 ClockDomain; +} EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE; + +/// +/// Local APIC/SAPIC Flags. All other bits are reserved and must be 0. +/// +#define EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0) + +/// +/// Memory Affinity Structure Definition +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT32 ProximityDomain; + UINT16 Reserved1; + UINT32 AddressBaseLow; + UINT32 AddressBaseHigh; + UINT32 LengthLow; + UINT32 LengthHigh; + UINT32 Reserved2; + UINT32 Flags; + UINT64 Reserved3; +} EFI_ACPI_6_4_MEMORY_AFFINITY_STRUCTURE; + +// +// Memory Flags. All other bits are reserved and must be 0. +// +#define EFI_ACPI_6_4_MEMORY_ENABLED (1 << 0) +#define EFI_ACPI_6_4_MEMORY_HOT_PLUGGABLE (1 << 1) +#define EFI_ACPI_6_4_MEMORY_NONVOLATILE (1 << 2) + +/// +/// Processor Local x2APIC Affinity Structure Definition +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 Reserved1[2]; + UINT32 ProximityDomain; + UINT32 X2ApicId; + UINT32 Flags; + UINT32 ClockDomain; + UINT8 Reserved2[4]; +} EFI_ACPI_6_4_PROCESSOR_LOCAL_X2APIC_AFFINITY_STRUCTURE; + +/// +/// GICC Affinity Structure Definition +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT32 ProximityDomain; + UINT32 AcpiProcessorUid; + UINT32 Flags; + UINT32 ClockDomain; +} EFI_ACPI_6_4_GICC_AFFINITY_STRUCTURE; + +/// +/// GICC Flags. All other bits are reserved and must be 0. +/// +#define EFI_ACPI_6_4_GICC_ENABLED (1 << 0) + +/// +/// GIC Interrupt Translation Service (ITS) Affinity Structure Definition +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT32 ProximityDomain; + UINT8 Reserved[2]; + UINT32 ItsId; +} EFI_ACPI_6_4_GIC_ITS_AFFINITY_STRUCTURE; + +// +// Generic Initiator Affinity Structure Device Handle Types +// All other values between 0x02 an 0xFF are reserved and +// will be ignored by OSPM. +// +#define EFI_ACPI_6_4_ACPI_DEVICE_HANDLE 0x00 +#define EFI_ACPI_6_4_PCI_DEVICE_HANDLE 0x01 + +/// +/// Device Handle - ACPI +/// +typedef struct { + UINT64 AcpiHid; + UINT32 AcpiUid; + UINT8 Reserved[4]; +} EFI_ACPI_6_4_DEVICE_HANDLE_ACPI; + +/// +/// Device Handle - PCI +/// +typedef struct { + UINT16 PciSegment; + UINT16 PciBdfNumber; + UINT8 Reserved[12]; +} EFI_ACPI_6_4_DEVICE_HANDLE_PCI; + +/// +/// Generic Initiator Affinity Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 Reserved1; + UINT8 DeviceHandleType; + UINT32 ProximityDomain; + + union { + EFI_ACPI_6_4_DEVICE_HANDLE_ACPI Acpi; + EFI_ACPI_6_4_DEVICE_HANDLE_PCI Pci; + } DeviceHandle; + + UINT32 Flags; + UINT8 Reserved2[4]; +} EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE; + +/// +/// Generic Initiator Affinity Structure Flags. All other bits are reserved +/// and must be 0. +/// +#define EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE_ENABLED (1 << 0) + +/// +/// System Locality Distance Information Table (SLIT). +/// The rest of the table is a matrix. +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT64 NumberOfSystemLocalities; +} EFI_ACPI_6_4_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_HEADER; + +/// +/// SLIT Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION = 0x01 + +/// +/// Corrected Platform Error Polling Table (CPEP) +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT8 Reserved[8]; +} EFI_ACPI_6_4_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_HEADER; + +/// +/// CPEP Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01 + +// +// CPEP processor structure types. +// +#define EFI_ACPI_6_4_CPEP_PROCESSOR_APIC_SAPIC 0x00 + +/// +/// Corrected Platform Error Polling Processor Structure Definition +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 ProcessorId; + UINT8 ProcessorEid; + UINT32 PollingInterval; +} EFI_ACPI_6_4_CPEP_PROCESSOR_APIC_SAPIC_STRUCTURE; + +/// +/// Maximum System Characteristics Table (MSCT) +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 OffsetProxDomInfo; + UINT32 MaximumNumberOfProximityDomains; + UINT32 MaximumNumberOfClockDomains; + UINT64 MaximumPhysicalAddress; +} EFI_ACPI_6_4_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_HEADER; + +/// +/// MSCT Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01 + +/// +/// Maximum Proximity Domain Information Structure Definition +/// +typedef struct { + UINT8 Revision; + UINT8 Length; + UINT32 ProximityDomainRangeLow; + UINT32 ProximityDomainRangeHigh; + UINT32 MaximumProcessorCapacity; + UINT64 MaximumMemoryCapacity; +} EFI_ACPI_6_4_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE; + +/// +/// ACPI RAS Feature Table definition. +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT8 PlatformCommunicationChannelIdentifier[12]; +} EFI_ACPI_6_4_RAS_FEATURE_TABLE; + +/// +/// RASF Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_RAS_FEATURE_TABLE_REVISION 0x01 + +/// +/// ACPI RASF Platform Communication Channel Shared Memory Region definiti= on. +/// +typedef struct { + UINT32 Signature; + UINT16 Command; + UINT16 Status; + UINT16 Version; + UINT8 RASCapabilities[16]; + UINT8 SetRASCapabilities[16]; + UINT16 NumberOfRASFParameterBlocks; + UINT32 SetRASCapabilitiesStatus; +} EFI_ACPI_6_4_RASF_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION; + +/// +/// ACPI RASF PCC command code +/// +#define EFI_ACPI_6_4_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND 0x01 + +/// +/// ACPI RASF Platform RAS Capabilities +/// +#define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SC= RUB_SUPPORTED BIT0 +#define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SC= RUB_SUPPORTED_AND_EXPOSED_TO_SOFTWARE BIT1 +#define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDIM= M_DURABILITY_ON_POWER_LOSS BIT2 +#define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_MEMORY_CONTROLLER_FLUSH_= TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT3 +#define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_BYTE_ADDRESSABLE_PERSIST= ENT_MEMORY_HARDWARE_MIRRORING BIT4 + +/// +/// ACPI RASF Parameter Block structure for PATROL_SCRUB +/// +typedef struct { + UINT16 Type; + UINT16 Version; + UINT16 Length; + UINT16 PatrolScrubCommand; + UINT64 RequestedAddressRange[2]; + UINT64 ActualAddressRange[2]; + UINT16 Flags; + UINT8 RequestedSpeed; +} EFI_ACPI_6_4_RASF_PATROL_SCRUB_PLATFORM_BLOCK_STRUCTURE; + +/// +/// ACPI RASF Patrol Scrub command +/// +#define EFI_ACPI_6_4_RASF_PATROL_SCRUB_COMMAND_GET_PATROL_PARAMETERS 0x01 +#define EFI_ACPI_6_4_RASF_PATROL_SCRUB_COMMAND_START_PATROL_SCRUBBER 0x02 +#define EFI_ACPI_6_4_RASF_PATROL_SCRUB_COMMAND_STOP_PATROL_SCRUBBER 0x03 + +/// +/// Memory Power State Table definition. +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT8 PlatformCommunicationChannelIdentifier; + UINT8 Reserved[3]; +// Memory Power Node Structure +// Memory Power State Characteristics +} EFI_ACPI_6_4_MEMORY_POWER_STATUS_TABLE; + +/// +/// MPST Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_MEMORY_POWER_STATE_TABLE_REVISION 0x01 + +/// +/// MPST Platform Communication Channel Shared Memory Region definition. +/// +typedef struct { + UINT32 Signature; + UINT16 Command; + UINT16 Status; + UINT32 MemoryPowerCommandRegister; + UINT32 MemoryPowerStatusRegister; + UINT32 PowerStateId; + UINT32 MemoryPowerNodeId; + UINT64 MemoryEnergyConsumed; + UINT64 ExpectedAveragePowerComsuned; +} EFI_ACPI_6_4_MPST_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION; + +/// +/// ACPI MPST PCC command code +/// +#define EFI_ACPI_6_4_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND 0x03 + +/// +/// ACPI MPST Memory Power command +/// +#define EFI_ACPI_6_4_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_POWER_STATE = 0x01 +#define EFI_ACPI_6_4_MPST_MEMORY_POWER_COMMAND_SET_MEMORY_POWER_STATE = 0x02 +#define EFI_ACPI_6_4_MPST_MEMORY_POWER_COMMAND_GET_AVERAGE_POWER_CONSUMED = 0x03 +#define EFI_ACPI_6_4_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_ENERGY_CONSUMED = 0x04 + +/// +/// MPST Memory Power Node Table +/// +typedef struct { + UINT8 PowerStateValue; + UINT8 PowerStateInformationI= ndex; +} EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE; + +typedef struct { + UINT8 Flag; + UINT8 Reserved; + UINT16 MemoryPowerNodeId; + UINT32 Length; + UINT64 AddressBase; + UINT64 AddressLength; + UINT32 NumberOfPowerStates; + UINT32 NumberOfPhysicalCompon= ents; +//EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE MemoryPowerState[Numbe= rOfPowerStates]; +//UINT16 PhysicalComponentIdent= ifier[NumberOfPhysicalComponents]; +} EFI_ACPI_6_4_MPST_MEMORY_POWER_STRUCTURE; + +#define EFI_ACPI_6_4_MPST_MEMORY_POWER_STRUCTURE_FLAG_ENABLE 0x01 +#define EFI_ACPI_6_4_MPST_MEMORY_POWER_STRUCTURE_FLAG_POWER_MANAGED 0x02 +#define EFI_ACPI_6_4_MPST_MEMORY_POWER_STRUCTURE_FLAG_HOT_PLUGGABLE 0x04 + +typedef struct { + UINT16 MemoryPowerNodeCount; + UINT8 Reserved[2]; +} EFI_ACPI_6_4_MPST_MEMORY_POWER_NODE_TABLE; + +/// +/// MPST Memory Power State Characteristics Table +/// +typedef struct { + UINT8 PowerStateStructureID; + UINT8 Flag; + UINT16 Reserved; + UINT32 AveragePowerConsumedIn= MPS0; + UINT32 RelativePowerSavingToM= PS0; + UINT64 ExitLatencyToMPS0; +} EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE; + +#define EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLA= G_MEMORY_CONTENT_PRESERVED 0x01 +#define EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLA= G_AUTONOMOUS_MEMORY_POWER_STATE_ENTRY 0x02 +#define EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLA= G_AUTONOMOUS_MEMORY_POWER_STATE_EXIT 0x04 + +typedef struct { + UINT16 MemoryPowerStateCharacteristicsCount; + UINT8 Reserved[2]; +} EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_TABLE; + +/// +/// Memory Topology Table definition. +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 Reserved; +} EFI_ACPI_6_4_MEMORY_TOPOLOGY_TABLE; + +/// +/// PMTT Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_MEMORY_TOPOLOGY_TABLE_REVISION 0x01 + +/// +/// Common Memory Aggregator Device Structure. +/// +typedef struct { + UINT8 Type; + UINT8 Reserved; + UINT16 Length; + UINT16 Flags; + UINT16 Reserved1; +} EFI_ACPI_6_4_PMTT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE; + +/// +/// Memory Aggregator Device Type +/// +#define EFI_ACPI_6_4_PMTT_MEMORY_AGGREGATOR_DEVICE_TYPE_SOCKET = 0x1 +#define EFI_ACPI_6_4_PMTT_MEMORY_AGGREGATOR_DEVICE_TYPE_MEMORY_CONTROLLER = 0x2 +#define EFI_ACPI_6_4_PMTT_MEMORY_AGGREGATOR_DEVICE_TYPE_DIMM = 0x3 + +/// +/// Socket Memory Aggregator Device Structure. +/// +typedef struct { + EFI_ACPI_6_4_PMTT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header; + UINT16 SocketIdent= ifier; + UINT16 Reserved; +//EFI_ACPI_6_4_PMTT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE = MemoryController[]; +} EFI_ACPI_6_4_PMTT_SOCKET_MEMORY_AGGREGATOR_DEVICE_STRUCTURE; + +/// +/// MemoryController Memory Aggregator Device Structure. +/// +typedef struct { + EFI_ACPI_6_4_PMTT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header; + UINT32 ReadLatency; + UINT32 WriteLatenc= y; + UINT32 ReadBandwid= th; + UINT32 WriteBandwi= dth; + UINT16 OptimalAcce= ssUnit; + UINT16 OptimalAcce= ssAlignment; + UINT16 Reserved; + UINT16 NumberOfPro= ximityDomains; +//UINT32 ProximityDo= main[NumberOfProximityDomains]; +//EFI_ACPI_6_4_PMTT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE PhysicalCom= ponent[]; +} EFI_ACPI_6_4_PMTT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE; + +/// +/// DIMM Memory Aggregator Device Structure. +/// +typedef struct { + EFI_ACPI_6_4_PMTT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header; + UINT16 PhysicalCom= ponentIdentifier; + UINT16 Reserved; + UINT32 SizeOfDimm; + UINT32 SmbiosHandl= e; +} EFI_ACPI_6_4_PMTT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE; + +/// +/// Boot Graphics Resource Table definition. +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + /// + /// 2-bytes (16 bit) version ID. This value must be 1. + /// + UINT16 Version; + /// + /// 1-byte status field indicating current status about the table. + /// Bits[7:3] =3D Reserved (must be zero) + /// Bits[2:1] =3D Orientation Offset. These bits describe the clockw= ise + /// degree offset from the image's default orientation. + /// [00] =3D 0, no offset + /// [01] =3D 90 + /// [10] =3D 180 + /// [11] =3D 270 + /// Bit [0] =3D Displayed. A one indicates the boot image graphic is + /// displayed. + /// + UINT8 Status; + /// + /// 1-byte enumerated type field indicating format of the image. + /// 0 =3D Bitmap + /// 1 - 255 Reserved (for future use) + /// + UINT8 ImageType; + /// + /// 8-byte (64 bit) physical address pointing to the firmware's in-memor= y copy + /// of the image bitmap. + /// + UINT64 ImageAddress; + /// + /// A 4-byte (32-bit) unsigned long describing the display X-offset of t= he boot image. + /// (X, Y) display offset of the top left corner of the boot image. + /// The top left corner of the display is at offset (0, 0). + /// + UINT32 ImageOffsetX; + /// + /// A 4-byte (32-bit) unsigned long describing the display Y-offset of t= he boot image. + /// (X, Y) display offset of the top left corner of the boot image. + /// The top left corner of the display is at offset (0, 0). + /// + UINT32 ImageOffsetY; +} EFI_ACPI_6_4_BOOT_GRAPHICS_RESOURCE_TABLE; + +/// +/// BGRT Revision +/// +#define EFI_ACPI_6_4_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1 + +/// +/// BGRT Version +/// +#define EFI_ACPI_6_4_BGRT_VERSION 0x01 + +/// +/// BGRT Status +/// +#define EFI_ACPI_6_4_BGRT_STATUS_NOT_DISPLAYED 0x00 +#define EFI_ACPI_6_4_BGRT_STATUS_DISPLAYED 0x01 + +/// +/// BGRT Image Type +/// +#define EFI_ACPI_6_4_BGRT_IMAGE_TYPE_BMP 0x00 + +/// +/// FPDT Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01 + +/// +/// FPDT Performance Record Types +/// +#define EFI_ACPI_6_4_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER 0x0= 000 +#define EFI_ACPI_6_4_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER 0x0= 001 + +/// +/// FPDT Performance Record Revision +/// +#define EFI_ACPI_6_4_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER 0x01 +#define EFI_ACPI_6_4_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER 0x01 + +/// +/// FPDT Runtime Performance Record Types +/// +#define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME 0x0= 000 +#define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND 0x0= 001 +#define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT 0x0= 002 + +/// +/// FPDT Runtime Performance Record Revision +/// +#define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME 0x01 +#define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND 0x01 +#define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT 0x02 + +/// +/// FPDT Performance Record header +/// +typedef struct { + UINT16 Type; + UINT8 Length; + UINT8 Revision; +} EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER; + +/// +/// FPDT Performance Table header +/// +typedef struct { + UINT32 Signature; + UINT32 Length; +} EFI_ACPI_6_4_FPDT_PERFORMANCE_TABLE_HEADER; + +/// +/// FPDT Firmware Basic Boot Performance Pointer Record Structure +/// +typedef struct { + EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header; + UINT32 Reserved; + /// + /// 64-bit processor-relative physical address of the Basic Boot Perform= ance Table. + /// + UINT64 BootPerformanceTablePoin= ter; +} EFI_ACPI_6_4_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD; + +/// +/// FPDT S3 Performance Table Pointer Record Structure +/// +typedef struct { + EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header; + UINT32 Reserved; + /// + /// 64-bit processor-relative physical address of the S3 Performance Tab= le. + /// + UINT64 S3PerformanceTablePointe= r; +} EFI_ACPI_6_4_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD; + +/// +/// FPDT Firmware Basic Boot Performance Record Structure +/// +typedef struct { + EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header; + UINT32 Reserved; + /// + /// Timer value logged at the beginning of firmware image execution. + /// This may not always be zero or near zero. + /// + UINT64 ResetEnd; + /// + /// Timer value logged just prior to loading the OS boot loader into mem= ory. + /// For non-UEFI compatible boots, this field must be zero. + /// + UINT64 OsLoaderLoadImageStart; + /// + /// Timer value logged just prior to launching the previously loaded OS = boot loader image. + /// For non-UEFI compatible boots, the timer value logged will be just p= rior + /// to the INT 19h handler invocation. + /// + UINT64 OsLoaderStartImageStart; + /// + /// Timer value logged at the point when the OS loader calls the + /// ExitBootServices function for UEFI compatible firmware. + /// For non-UEFI compatible boots, this field must be zero. + /// + UINT64 ExitBootServicesEntry; + /// + /// Timer value logged at the point just prior towhen the OS loader gain= ing + /// control back from calls the ExitBootServices function for UEFI compa= tible firmware. + /// For non-UEFI compatible boots, this field must be zero. + /// + UINT64 ExitBootServicesExit; +} EFI_ACPI_6_4_FPDT_FIRMWARE_BASIC_BOOT_RECORD; + +/// +/// FPDT Firmware Basic Boot Performance Table signature +/// +#define EFI_ACPI_6_4_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('= F', 'B', 'P', 'T') + +// +// FPDT Firmware Basic Boot Performance Table +// +typedef struct { + EFI_ACPI_6_4_FPDT_PERFORMANCE_TABLE_HEADER Header; + // + // one or more Performance Records. + // +} EFI_ACPI_6_4_FPDT_FIRMWARE_BASIC_BOOT_TABLE; + +/// +/// FPDT "S3PT" S3 Performance Table +/// +#define EFI_ACPI_6_4_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('S'= , '3', 'P', 'T') + +// +// FPDT Firmware S3 Boot Performance Table +// +typedef struct { + EFI_ACPI_6_4_FPDT_PERFORMANCE_TABLE_HEADER Header; + // + // one or more Performance Records. + // +} EFI_ACPI_6_4_FPDT_FIRMWARE_S3_BOOT_TABLE; + +/// +/// FPDT Basic S3 Resume Performance Record +/// +typedef struct { + EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header; + /// + /// A count of the number of S3 resume cycles since the last full boot s= equence. + /// + UINT32 ResumeCount; + /// + /// Timer recorded at the end of BIOS S3 resume, just prior to handoff t= o the + /// OS waking vector. Only the most recent resume cycle's time is retain= ed. + /// + UINT64 FullResume; + /// + /// Average timer value of all resume cycles logged since the last full = boot + /// sequence, including the most recent resume. Note that the entire lo= g of + /// timer values does not need to be retained in order to calculate this= average. + /// + UINT64 AverageResume; +} EFI_ACPI_6_4_FPDT_S3_RESUME_RECORD; + +/// +/// FPDT Basic S3 Suspend Performance Record +/// +typedef struct { + EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header; + /// + /// Timer value recorded at the OS write to SLP_TYP upon entry to S3. + /// Only the most recent suspend cycle's timer value is retained. + /// + UINT64 SuspendStart; + /// + /// Timer value recorded at the final firmware write to SLP_TYP (or other + /// mechanism) used to trigger hardware entry to S3. + /// Only the most recent suspend cycle's timer value is retained. + /// + UINT64 SuspendEnd; +} EFI_ACPI_6_4_FPDT_S3_SUSPEND_RECORD; + +/// +/// Firmware Performance Record Table definition. +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; +} EFI_ACPI_6_4_FIRMWARE_PERFORMANCE_RECORD_TABLE; + +/// +/// Generic Timer Description Table definition. +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT64 CntControlBasePhysicalAddress; + UINT32 Reserved; + UINT32 SecurePL1TimerGSIV; + UINT32 SecurePL1TimerFlags; + UINT32 NonSecurePL1TimerGSIV; + UINT32 NonSecurePL1TimerFlags; + UINT32 VirtualTimerGSIV; + UINT32 VirtualTimerFlags; + UINT32 NonSecurePL2TimerGSIV; + UINT32 NonSecurePL2TimerFlags; + UINT64 CntReadBasePhysicalAddress; + UINT32 PlatformTimerCount; + UINT32 PlatformTimerOffset; + UINT32 VirtualPL2TimerGSIV; + UINT32 VirtualPL2TimerFlags; +} EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE; + +/// +/// GTDT Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x03 + +/// +/// Timer Flags. All other bits are reserved and must be 0. +/// +#define EFI_ACPI_6_4_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0 +#define EFI_ACPI_6_4_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1 +#define EFI_ACPI_6_4_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY BIT2 + +/// +/// Platform Timer Type +/// +#define EFI_ACPI_6_4_GTDT_GT_BLOCK 0 +#define EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG 1 + +/// +/// GT Block Structure +/// +typedef struct { + UINT8 Type; + UINT16 Length; + UINT8 Reserved; + UINT64 CntCtlBase; + UINT32 GTBlockTimerCount; + UINT32 GTBlockTimerOffset; +} EFI_ACPI_6_4_GTDT_GT_BLOCK_STRUCTURE; + +/// +/// GT Block Timer Structure +/// +typedef struct { + UINT8 GTFrameNumber; + UINT8 Reserved[3]; + UINT64 CntBaseX; + UINT64 CntEL0BaseX; + UINT32 GTxPhysicalTimerGSIV; + UINT32 GTxPhysicalTimerFlags; + UINT32 GTxVirtualTimerGSIV; + UINT32 GTxVirtualTimerFlags; + UINT32 GTxCommonFlags; +} EFI_ACPI_6_4_GTDT_GT_BLOCK_TIMER_STRUCTURE; + +/// +/// GT Block Physical Timers and Virtual Timers Flags. All other bits are= reserved and must be 0. +/// +#define EFI_ACPI_6_4_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_MODE = BIT0 +#define EFI_ACPI_6_4_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_POLARITY = BIT1 + +/// +/// Common Flags Flags. All other bits are reserved and must be 0. +/// +#define EFI_ACPI_6_4_GTDT_GT_BLOCK_COMMON_FLAG_SECURE_TIMER B= IT0 +#define EFI_ACPI_6_4_GTDT_GT_BLOCK_COMMON_FLAG_ALWAYS_ON_CAPABILITY B= IT1 + +/// +/// SBSA Generic Watchdog Structure +/// +typedef struct { + UINT8 Type; + UINT16 Length; + UINT8 Reserved; + UINT64 RefreshFramePhysicalAddress; + UINT64 WatchdogControlFramePhysicalAddress; + UINT32 WatchdogTimerGSIV; + UINT32 WatchdogTimerFlags; +} EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE; + +/// +/// SBSA Generic Watchdog Timer Flags. All other bits are reserved and mu= st be 0. +/// +#define EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_MODE = BIT0 +#define EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_POLAR= ITY BIT1 +#define EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_SECURE_TIMER = BIT2 + +// +// NVDIMM Firmware Interface Table definition. +// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 Reserved; +} EFI_ACPI_6_4_NVDIMM_FIRMWARE_INTERFACE_TABLE; + +// +// NFIT Version (as defined in ACPI 6.4 spec.) +// +#define EFI_ACPI_6_4_NVDIMM_FIRMWARE_INTERFACE_TABLE_REVISION 0x1 + +// +// Definition for NFIT Table Structure Types +// +#define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE_TYPE = 0 +#define EFI_ACPI_6_4_NFIT_NVDIMM_REGION_MAPPING_STRUCTURE_TYPE = 1 +#define EFI_ACPI_6_4_NFIT_INTERLEAVE_STRUCTURE_TYPE = 2 +#define EFI_ACPI_6_4_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE_TYPE = 3 +#define EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE = 4 +#define EFI_ACPI_6_4_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE_TYPE = 5 +#define EFI_ACPI_6_4_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE = 6 + +// +// Definition for NFIT Structure Header +// +typedef struct { + UINT16 Type; + UINT16 Length; +} EFI_ACPI_6_4_NFIT_STRUCTURE_HEADER; + +// +// Definition for System Physical Address Range Structure +// +#define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_CONTROL_REGI= ON_FOR_MANAGEMENT BIT0 +#define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_PROXIMITY_DO= MAIN_VALID BIT1 +#define EFI_ACPI_6_4_NFIT_GUID_VOLATILE_MEMORY_REGION = { 0x7305944F, 0xFDDA, 0x44E3, { 0xB1, 0x6C, 0x3F, 0x22, 0xD2, 0x52,= 0xE5, 0xD0 }} +#define EFI_ACPI_6_4_NFIT_GUID_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_REGION = { 0x66F0D379, 0xB4F3, 0x4074, { 0xAC, 0x43, 0x0D, 0x33, 0x18, 0xB7,= 0x8C, 0xDB }} +#define EFI_ACPI_6_4_NFIT_GUID_NVDIMM_CONTROL_REGION = { 0x92F701F6, 0x13B4, 0x405D, { 0x91, 0x0B, 0x29, 0x93, 0x67, 0xE8,= 0x23, 0x4C }} +#define EFI_ACPI_6_4_NFIT_GUID_NVDIMM_BLOCK_DATA_WINDOW_REGION = { 0x91AF0530, 0x5D86, 0x470E, { 0xA6, 0xB0, 0x0A, 0x2D, 0xB9, 0x40,= 0x82, 0x49 }} +#define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_VOL= ATILE { 0x77AB535A, 0x45FC, 0x624B, { 0x55, 0x60, 0xF7, 0xB2, 0x81, 0xD1,= 0xF9, 0x6E }} +#define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_VOLAT= ILE { 0x3D5ABD30, 0x4175, 0x87CE, { 0x6D, 0x64, 0xD2, 0xAD, 0xE5, 0x23,= 0xC4, 0xBB }} +#define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_PER= SISTENT { 0x5CEA02C9, 0x4D07, 0x69D3, { 0x26, 0x9F ,0x44, 0x96, 0xFB, 0xE0,= 0x96, 0xF9 }} +#define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_PERSI= STENT { 0x08018188, 0x42CD, 0xBB48, { 0x10, 0x0F, 0x53, 0x87, 0xD5, 0x3D,= 0xED, 0x3D }} +typedef struct { + UINT16 Type; + UINT16 Length; + UINT16 SPARangeStructureIndex; + UINT16 Flags; + UINT32 Reserved_8; + UINT32 ProximityDomain; + GUID AddressRangeTypeGUID; + UINT64 SystemPhysicalAddressRangeBa= se; + UINT64 SystemPhysicalAddressRangeLe= ngth; + UINT64 AddressRangeMemoryMappingAtt= ribute; +} EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE; + +// +// Definition for Memory Device to System Physical Address Range Mapping S= tructure +// +typedef struct { + UINT32 DIMMNumber:4; + UINT32 MemoryChannelNumber:4; + UINT32 MemoryControllerID:4; + UINT32 SocketID:4; + UINT32 NodeControllerID:12; + UINT32 Reserved_28:4; +} EFI_ACPI_6_4_NFIT_DEVICE_HANDLE; + +#define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_PREVIOUS_SAVE_FAIL = BIT0 +#define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_LAST_RESTORE_FAIL = BIT1 +#define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_PLATFORM_FLUSH_FAIL = BIT2 +#define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_NOT_ARMED_PRIOR_TO_OSP= M_HAND_OFF BIT3 +#define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_SMART_HEALTH_EVENTS_PR= IOR_OSPM_HAND_OFF BIT4 +#define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_ENABLED_TO_NO= TIFY_OSPM_ON_SMART_HEALTH_EVENTS BIT5 +#define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_NOT_MAP_NVDIM= M_TO_SPA BIT6 +typedef struct { + UINT16 Type; + UINT16 Length; + EFI_ACPI_6_4_NFIT_DEVICE_HANDLE NFITDeviceHandle; + UINT16 NVDIMMPhysicalID; + UINT16 NVDIMMRegionID; + UINT16 SPARangeStructureIndex ; + UINT16 NVDIMMControlRegionStructure= Index; + UINT64 NVDIMMRegionSize; + UINT64 RegionOffset; + UINT64 NVDIMMPhysicalAddressRegionB= ase; + UINT16 InterleaveStructureIndex; + UINT16 InterleaveWays; + UINT16 NVDIMMStateFlags; + UINT16 Reserved_46; +} EFI_ACPI_6_4_NFIT_NVDIMM_REGION_MAPPING_STRUCTURE; + +// +// Definition for Interleave Structure +// +typedef struct { + UINT16 Type; + UINT16 Length; + UINT16 InterleaveStructureIndex; + UINT16 Reserved_6; + UINT32 NumberOfLines; + UINT32 LineSize; +//UINT32 LineOffset[NumberOfLines]; +} EFI_ACPI_6_4_NFIT_INTERLEAVE_STRUCTURE; + +// +// Definition for SMBIOS Management Information Structure +// +typedef struct { + UINT16 Type; + UINT16 Length; + UINT32 Reserved_4; +//UINT8 Data[]; +} EFI_ACPI_6_4_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE; + +// +// Definition for NVDIMM Control Region Structure +// +#define EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_VALID_FIELDS_MANUFACTURING= BIT0 + +#define EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_FLAGS_BLOCK_DATA_WINDOWS_B= UFFERED BIT0 +typedef struct { + UINT16 Type; + UINT16 Length; + UINT16 NVDIMMControlRegionStructure= Index; + UINT16 VendorID; + UINT16 DeviceID; + UINT16 RevisionID; + UINT16 SubsystemVendorID; + UINT16 SubsystemDeviceID; + UINT16 SubsystemRevisionID; + UINT8 ValidFields; + UINT8 ManufacturingLocation; + UINT16 ManufacturingDate; + UINT8 Reserved_22[2]; + UINT32 SerialNumber; + UINT16 RegionFormatInterfaceCode; + UINT16 NumberOfBlockControlWindows; + UINT64 SizeOfBlockControlWindow; + UINT64 CommandRegisterOffsetInBlock= ControlWindow; + UINT64 SizeOfCommandRegisterInBlock= ControlWindows; + UINT64 StatusRegisterOffsetInBlockC= ontrolWindow; + UINT64 SizeOfStatusRegisterInBlockC= ontrolWindows; + UINT16 NVDIMMControlRegionFlag; + UINT8 Reserved_74[6]; +} EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE; + +// +// Definition for NVDIMM Block Data Window Region Structure +// +typedef struct { + UINT16 Type; + UINT16 Length; + UINT16 NVDIMMControlRegionStructure= Index; + UINT16 NumberOfBlockDataWindows; + UINT64 BlockDataWindowStartOffset; + UINT64 SizeOfBlockDataWindow; + UINT64 BlockAccessibleMemoryCapacit= y; + UINT64 BeginningAddressOfFirstBlock= InBlockAccessibleMemory; +} EFI_ACPI_6_4_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE; + +// +// Definition for Flush Hint Address Structure +// +typedef struct { + UINT16 Type; + UINT16 Length; + EFI_ACPI_6_4_NFIT_DEVICE_HANDLE NFITDeviceHandle; + UINT16 NumberOfFlushHintAddresses; + UINT8 Reserved_10[6]; +//UINT64 FlushHintAddress[NumberOfFlu= shHintAddresses]; +} EFI_ACPI_6_4_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE; + +/// +/// Secure DEVices Table (SDEV) +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; +} EFI_ACPI_6_4_SECURE_DEVICES_TABLE_HEADER; + +/// +/// SDEV Revision (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_SECURE_DEVICES_TABLE_REVISION 0x01 + +/// +/// Secure Devcice types +/// +#define EFI_ACPI_6_4_SDEV_TYPE_PCIE_ENDPOINT_DEVICE 0x01 +#define EFI_ACPI_6_4_SDEV_TYPE_ACPI_NAMESPACE_DEVICE 0x00 + +/// +/// Secure Devcice flags +/// +#define EFI_ACPI_6_4_SDEV_FLAG_ALLOW_HANDOFF BIT0 + +/// +/// SDEV Structure Header +/// +typedef struct { + UINT8 Type; + UINT8 Flags; + UINT16 Length; +} EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER; + +/// +/// PCIe Endpoint Device based Secure Device Structure +/// +typedef struct { + UINT8 Type; + UINT8 Flags; + UINT16 Length; + UINT16 PciSegmentNumber; + UINT16 StartBusNumber; + UINT16 PciPathOffset; + UINT16 PciPathLength; + UINT16 VendorSpecificDataOffset; + UINT16 VendorSpecificDataLength; +} EFI_ACPI_6_4_SDEV_STRUCTURE_PCIE_ENDPOINT_DEVICE; + +/// +/// ACPI_NAMESPACE_DEVICE based Secure Device Structure +/// +typedef struct { + UINT8 Type; + UINT8 Flags; + UINT16 Length; + UINT16 DeviceIdentifierOffset; + UINT16 DeviceIdentifierLength; + UINT16 VendorSpecificDataOffset; + UINT16 VendorSpecificDataLength; +} EFI_ACPI_6_4_SDEV_STRUCTURE_ACPI_NAMESPACE_DEVICE; + +/// +/// Boot Error Record Table (BERT) +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 BootErrorRegionLength; + UINT64 BootErrorRegion; +} EFI_ACPI_6_4_BOOT_ERROR_RECORD_TABLE_HEADER; + +/// +/// BERT Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_BOOT_ERROR_RECORD_TABLE_REVISION 0x01 + +/// +/// Boot Error Region Block Status Definition +/// +typedef struct { + UINT32 UncorrectableErrorValid:1; + UINT32 CorrectableErrorValid:1; + UINT32 MultipleUncorrectableErrors:1; + UINT32 MultipleCorrectableErrors:1; + UINT32 ErrorDataEntryCount:10; + UINT32 Reserved:18; +} EFI_ACPI_6_4_ERROR_BLOCK_STATUS; + +/// +/// Boot Error Region Definition +/// +typedef struct { + EFI_ACPI_6_4_ERROR_BLOCK_STATUS BlockStatus; + UINT32 RawDataOffset; + UINT32 RawDataLength; + UINT32 DataLength; + UINT32 ErrorSeverity; +} EFI_ACPI_6_4_BOOT_ERROR_REGION_STRUCTURE; + +// +// Boot Error Severity types +// +#define EFI_ACPI_6_4_ERROR_SEVERITY_CORRECTABLE 0x00 +#define EFI_ACPI_6_4_ERROR_SEVERITY_FATAL 0x01 +#define EFI_ACPI_6_4_ERROR_SEVERITY_CORRECTED 0x02 +#define EFI_ACPI_6_4_ERROR_SEVERITY_NONE 0x03 + +/// +/// Generic Error Data Entry Definition +/// +typedef struct { + UINT8 SectionType[16]; + UINT32 ErrorSeverity; + UINT16 Revision; + UINT8 ValidationBits; + UINT8 Flags; + UINT32 ErrorDataLength; + UINT8 FruId[16]; + UINT8 FruText[20]; + UINT8 Timestamp[8]; +} EFI_ACPI_6_4_GENERIC_ERROR_DATA_ENTRY_STRUCTURE; + +/// +/// Generic Error Data Entry Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0300 + +/// +/// HEST - Hardware Error Source Table +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 ErrorSourceCount; +} EFI_ACPI_6_4_HARDWARE_ERROR_SOURCE_TABLE_HEADER; + +/// +/// HEST Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01 + +// +// Error Source structure types. +// +#define EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00 +#define EFI_ACPI_6_4_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01 +#define EFI_ACPI_6_4_IA32_ARCHITECTURE_NMI_ERROR 0x02 +#define EFI_ACPI_6_4_PCI_EXPRESS_ROOT_PORT_AER 0x06 +#define EFI_ACPI_6_4_PCI_EXPRESS_DEVICE_AER 0x07 +#define EFI_ACPI_6_4_PCI_EXPRESS_BRIDGE_AER 0x08 +#define EFI_ACPI_6_4_GENERIC_HARDWARE_ERROR 0x09 +#define EFI_ACPI_6_4_GENERIC_HARDWARE_ERROR_VERSION_2 0x0A +#define EFI_ACPI_6_4_IA32_ARCHITECTURE_DEFERRED_MACHINE_CHECK 0x0B + +// +// Error Source structure flags. +// +#define EFI_ACPI_6_4_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0) +#define EFI_ACPI_6_4_ERROR_SOURCE_FLAG_GLOBAL (1 << 1) +#define EFI_ACPI_6_4_ERROR_SOURCE_FLAG_GHES_ASSIST (1 << 2) + +/// +/// IA-32 Architecture Machine Check Exception Structure Definition +/// +typedef struct { + UINT16 Type; + UINT16 SourceId; + UINT8 Reserved0[2]; + UINT8 Flags; + UINT8 Enabled; + UINT32 NumberOfRecordsToPreAllocate; + UINT32 MaxSectionsPerRecord; + UINT64 GlobalCapabilityInitData; + UINT64 GlobalControlInitData; + UINT8 NumberOfHardwareBanks; + UINT8 Reserved1[7]; +} EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION_STRUCTURE; + +/// +/// IA-32 Architecture Machine Check Bank Structure Definition +/// +typedef struct { + UINT8 BankNumber; + UINT8 ClearStatusOnInitialization; + UINT8 StatusDataFormat; + UINT8 Reserved0; + UINT32 ControlRegisterMsrAddress; + UINT64 ControlInitData; + UINT32 StatusRegisterMsrAddress; + UINT32 AddressRegisterMsrAddress; + UINT32 MiscRegisterMsrAddress; +} EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_BANK_STRUCTURE; + +/// +/// IA-32 Architecture Machine Check Bank Structure MCA data format +/// +#define EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA3= 2 0x00 +#define EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INT= EL64 0x01 +#define EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD= 64 0x02 + +// +// Hardware Error Notification types. All other values are reserved +// +#define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_POLLED = 0x00 +#define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT = 0x01 +#define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT = 0x02 +#define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_SCI = 0x03 +#define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_NMI = 0x04 +#define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_CMCI = 0x05 +#define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_MCE = 0x06 +#define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_GPIO_SIGNAL = 0x07 +#define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_ARMV8_SEA = 0x08 +#define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_ARMV8_SEI = 0x09 +#define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_GSIV = 0x0A +#define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_SOFTWARE_DELEGATED_EXCEPT= ION 0x0B + +/// +/// Hardware Error Notification Configuration Write Enable Structure Defin= ition +/// +typedef struct { + UINT16 Type:1; + UINT16 PollInterval:1; + UINT16 SwitchToPollingThresholdValue:1; + UINT16 SwitchToPollingThresholdWindow:1; + UINT16 ErrorThresholdValue:1; + UINT16 ErrorThresholdWindow:1; + UINT16 Reserved:10; +} EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRU= CTURE; + +/// +/// Hardware Error Notification Structure Definition +/// +typedef struct { + UINT8 = Type; + UINT8 = Length; + EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRU= CTURE ConfigurationWriteEnable; + UINT32 = PollInterval; + UINT32 = Vector; + UINT32 = SwitchToPollingThresholdValue; + UINT32 = SwitchToPollingThresholdWindow; + UINT32 = ErrorThresholdValue; + UINT32 = ErrorThresholdWindow; +} EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE; + +/// +/// IA-32 Architecture Corrected Machine Check Structure Definition +/// +typedef struct { + UINT16 Type; + UINT16 SourceId; + UINT8 Reserved0[2]; + UINT8 Flags; + UINT8 Enabled; + UINT32 NumberOfRecordsTo= PreAllocate; + UINT32 MaxSectionsPerRec= ord; + EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStruc= ture; + UINT8 NumberOfHardwareB= anks; + UINT8 Reserved1[3]; +} EFI_ACPI_6_4_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK_STRUCTURE; + +/// +/// IA-32 Architecture NMI Error Structure Definition +/// +typedef struct { + UINT16 Type; + UINT16 SourceId; + UINT8 Reserved0[2]; + UINT32 NumberOfRecordsToPreAllocate; + UINT32 MaxSectionsPerRecord; + UINT32 MaxRawDataLength; +} EFI_ACPI_6_4_IA32_ARCHITECTURE_NMI_ERROR_STRUCTURE; + +/// +/// PCI Express Root Port AER Structure Definition +/// +typedef struct { + UINT16 Type; + UINT16 SourceId; + UINT8 Reserved0[2]; + UINT8 Flags; + UINT8 Enabled; + UINT32 NumberOfRecordsToPreAllocate; + UINT32 MaxSectionsPerRecord; + UINT32 Bus; + UINT16 Device; + UINT16 Function; + UINT16 DeviceControl; + UINT8 Reserved1[2]; + UINT32 UncorrectableErrorMask; + UINT32 UncorrectableErrorSeverity; + UINT32 CorrectableErrorMask; + UINT32 AdvancedErrorCapabilitiesAndControl; + UINT32 RootErrorCommand; +} EFI_ACPI_6_4_PCI_EXPRESS_ROOT_PORT_AER_STRUCTURE; + +/// +/// PCI Express Device AER Structure Definition +/// +typedef struct { + UINT16 Type; + UINT16 SourceId; + UINT8 Reserved0[2]; + UINT8 Flags; + UINT8 Enabled; + UINT32 NumberOfRecordsToPreAllocate; + UINT32 MaxSectionsPerRecord; + UINT32 Bus; + UINT16 Device; + UINT16 Function; + UINT16 DeviceControl; + UINT8 Reserved1[2]; + UINT32 UncorrectableErrorMask; + UINT32 UncorrectableErrorSeverity; + UINT32 CorrectableErrorMask; + UINT32 AdvancedErrorCapabilitiesAndControl; +} EFI_ACPI_6_4_PCI_EXPRESS_DEVICE_AER_STRUCTURE; + +/// +/// PCI Express Bridge AER Structure Definition +/// +typedef struct { + UINT16 Type; + UINT16 SourceId; + UINT8 Reserved0[2]; + UINT8 Flags; + UINT8 Enabled; + UINT32 NumberOfRecordsToPreAllocate; + UINT32 MaxSectionsPerRecord; + UINT32 Bus; + UINT16 Device; + UINT16 Function; + UINT16 DeviceControl; + UINT8 Reserved1[2]; + UINT32 UncorrectableErrorMask; + UINT32 UncorrectableErrorSeverity; + UINT32 CorrectableErrorMask; + UINT32 AdvancedErrorCapabilitiesAndControl; + UINT32 SecondaryUncorrectableErrorMask; + UINT32 SecondaryUncorrectableErrorSeverity; + UINT32 SecondaryAdvancedErrorCapabilitiesAndControl; +} EFI_ACPI_6_4_PCI_EXPRESS_BRIDGE_AER_STRUCTURE; + +/// +/// Generic Hardware Error Source Structure Definition +/// +typedef struct { + UINT16 Type; + UINT16 SourceId; + UINT16 RelatedSourceId; + UINT8 Flags; + UINT8 Enabled; + UINT32 NumberOfRecordsTo= PreAllocate; + UINT32 MaxSectionsPerRec= ord; + UINT32 MaxRawDataLength; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddres= s; + EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStruc= ture; + UINT32 ErrorStatusBlockL= ength; +} EFI_ACPI_6_4_GENERIC_HARDWARE_ERROR_SOURCE_STRUCTURE; + +/// +/// Generic Hardware Error Source Version 2 Structure Definition +/// +typedef struct { + UINT16 Type; + UINT16 SourceId; + UINT16 RelatedSourceId; + UINT8 Flags; + UINT8 Enabled; + UINT32 NumberOfRecordsTo= PreAllocate; + UINT32 MaxSectionsPerRec= ord; + UINT32 MaxRawDataLength; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddres= s; + EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStruc= ture; + UINT32 ErrorStatusBlockL= ength; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ReadAckRegister; + UINT64 ReadAckPreserve; + UINT64 ReadAckWrite; +} EFI_ACPI_6_4_GENERIC_HARDWARE_ERROR_SOURCE_VERSION_2_STRUCTURE; + +/// +/// Generic Error Status Definition +/// +typedef struct { + EFI_ACPI_6_4_ERROR_BLOCK_STATUS BlockStatus; + UINT32 RawDataOffset; + UINT32 RawDataLength; + UINT32 DataLength; + UINT32 ErrorSeverity; +} EFI_ACPI_6_4_GENERIC_ERROR_STATUS_STRUCTURE; + +/// +/// IA-32 Architecture Deferred Machine Check Structure Definition +/// +typedef struct { + UINT16 Type; + UINT16 SourceId; + UINT8 Reserved0[2]; + UINT8 Flags; + UINT8 Enabled; + UINT32 NumberOfRecordsToP= reAllocate; + UINT32 MaxSectionsPerReco= rd; + EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStruct= ure; + UINT8 NumberOfHardwareBa= nks; + UINT8 Reserved1[3]; +} EFI_ACPI_6_4_IA32_ARCHITECTURE_DEFERRED_MACHINE_CHECK_STRUCTURE;; + +/// +/// HMAT - Heterogeneous Memory Attribute Table +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT8 Reserved[4]; +} EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_HEADER; + +/// +/// HMAT Revision (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_REVISION 0x02 + +/// +/// HMAT types +/// +#define EFI_ACPI_6_4_HMAT_TYPE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES = 0x00 +#define EFI_ACPI_6_4_HMAT_TYPE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO = 0x01 +#define EFI_ACPI_6_4_HMAT_TYPE_MEMORY_SIDE_CACHE_INFO = 0x02 + +/// +/// HMAT Structure Header +/// +typedef struct { + UINT16 Type; + UINT8 Reserved[2]; + UINT32 Length; +} EFI_ACPI_6_4_HMAT_STRUCTURE_HEADER; + +/// +/// Memory Proximity Domain Attributes Structure flags +/// +typedef struct { + UINT16 InitiatorProximityDomainValid:1; + UINT16 Reserved:15; +} EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES_FLAGS; + +/// +/// Memory Proximity Domain Attributes Structure +/// +typedef struct { + UINT16 Ty= pe; + UINT8 Re= served[2]; + UINT32 Le= ngth; + EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES_FLAGS Fl= ags; + UINT8 Re= served1[2]; + UINT32 In= itiatorProximityDomain; + UINT32 Me= moryProximityDomain; + UINT8 Re= served2[20]; +} EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES; + +/// +/// System Locality Latency and Bandwidth Information Structure flags +/// +typedef struct { + UINT8 MemoryHierarchy:4; + UINT8 Reserved:4; +} EFI_ACPI_6_4_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_F= LAGS; + +/// +/// System Locality Latency and Bandwidth Information Structure +/// +typedef struct { + UINT16 = Type; + UINT8 = Reserved[2]; + UINT32 = Length; + EFI_ACPI_6_4_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_F= LAGS Flags; + UINT8 = DataType; + UINT8 = Reserved1[2]; + UINT32 = NumberOfInitiatorProximityDomains; + UINT32 = NumberOfTargetProximityDomains; + UINT8 = Reserved2[4]; + UINT64 = EntryBaseUnit; +} EFI_ACPI_6_4_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO; + +/// +/// Memory Side Cache Information Structure cache attributes +/// +typedef struct { + UINT32 TotalCacheLevels:4; + UINT32 CacheLevel:4; + UINT32 CacheAssociativity:4; + UINT32 WritePolicy:4; + UINT32 CacheLineSize:16; +} EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO_CACHE_ATTRIBUTES; + +/// +/// Memory Side Cache Information Structure +/// +typedef struct { + UINT16 Ty= pe; + UINT8 Re= served[2]; + UINT32 Le= ngth; + UINT32 Me= moryProximityDomain; + UINT8 Re= served1[4]; + UINT64 Me= morySideCacheSize; + EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO_CACHE_ATTRIBUTES Ca= cheAttributes; + UINT8 Re= served2[2]; + UINT16 Nu= mberOfSmbiosHandles; +} EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO; + +/// +/// ERST - Error Record Serialization Table +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 SerializationHeaderSize; + UINT8 Reserved0[4]; + UINT32 InstructionEntryCount; +} EFI_ACPI_6_4_ERROR_RECORD_SERIALIZATION_TABLE_HEADER; + +/// +/// ERST Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01 + +/// +/// ERST Serialization Actions +/// +#define EFI_ACPI_6_4_ERST_BEGIN_WRITE_OPERATION 0x00 +#define EFI_ACPI_6_4_ERST_BEGIN_READ_OPERATION 0x01 +#define EFI_ACPI_6_4_ERST_BEGIN_CLEAR_OPERATION 0x02 +#define EFI_ACPI_6_4_ERST_END_OPERATION 0x03 +#define EFI_ACPI_6_4_ERST_SET_RECORD_OFFSET 0x04 +#define EFI_ACPI_6_4_ERST_EXECUTE_OPERATION 0x05 +#define EFI_ACPI_6_4_ERST_CHECK_BUSY_STATUS 0x06 +#define EFI_ACPI_6_4_ERST_GET_COMMAND_STATUS 0x07 +#define EFI_ACPI_6_4_ERST_GET_RECORD_IDENTIFIER 0x08 +#define EFI_ACPI_6_4_ERST_SET_RECORD_IDENTIFIER 0x09 +#define EFI_ACPI_6_4_ERST_GET_RECORD_COUNT 0x0A +#define EFI_ACPI_6_4_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B +#define EFI_ACPI_6_4_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D +#define EFI_ACPI_6_4_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E +#define EFI_ACPI_6_4_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F +#define EFI_ACPI_6_4_ERST_GET_EXECUTE_OPERATION_TIMINGS 0x10 + +/// +/// ERST Action Command Status +/// +#define EFI_ACPI_6_4_ERST_STATUS_SUCCESS 0x00 +#define EFI_ACPI_6_4_ERST_STATUS_NOT_ENOUGH_SPACE 0x01 +#define EFI_ACPI_6_4_ERST_STATUS_HARDWARE_NOT_AVAILABLE 0x02 +#define EFI_ACPI_6_4_ERST_STATUS_FAILED 0x03 +#define EFI_ACPI_6_4_ERST_STATUS_RECORD_STORE_EMPTY 0x04 +#define EFI_ACPI_6_4_ERST_STATUS_RECORD_NOT_FOUND 0x05 + +/// +/// ERST Serialization Instructions +/// +#define EFI_ACPI_6_4_ERST_READ_REGISTER 0x00 +#define EFI_ACPI_6_4_ERST_READ_REGISTER_VALUE 0x01 +#define EFI_ACPI_6_4_ERST_WRITE_REGISTER 0x02 +#define EFI_ACPI_6_4_ERST_WRITE_REGISTER_VALUE 0x03 +#define EFI_ACPI_6_4_ERST_NOOP 0x04 +#define EFI_ACPI_6_4_ERST_LOAD_VAR1 0x05 +#define EFI_ACPI_6_4_ERST_LOAD_VAR2 0x06 +#define EFI_ACPI_6_4_ERST_STORE_VAR1 0x07 +#define EFI_ACPI_6_4_ERST_ADD 0x08 +#define EFI_ACPI_6_4_ERST_SUBTRACT 0x09 +#define EFI_ACPI_6_4_ERST_ADD_VALUE 0x0A +#define EFI_ACPI_6_4_ERST_SUBTRACT_VALUE 0x0B +#define EFI_ACPI_6_4_ERST_STALL 0x0C +#define EFI_ACPI_6_4_ERST_STALL_WHILE_TRUE 0x0D +#define EFI_ACPI_6_4_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E +#define EFI_ACPI_6_4_ERST_GOTO 0x0F +#define EFI_ACPI_6_4_ERST_SET_SRC_ADDRESS_BASE 0x10 +#define EFI_ACPI_6_4_ERST_SET_DST_ADDRESS_BASE 0x11 +#define EFI_ACPI_6_4_ERST_MOVE_DATA 0x12 + +/// +/// ERST Instruction Flags +/// +#define EFI_ACPI_6_4_ERST_PRESERVE_REGISTER 0x01 + +/// +/// ERST Serialization Instruction Entry +/// +typedef struct { + UINT8 SerializationAction; + UINT8 Instruction; + UINT8 Flags; + UINT8 Reserved0; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE RegisterRegion; + UINT64 Value; + UINT64 Mask; +} EFI_ACPI_6_4_ERST_SERIALIZATION_INSTRUCTION_ENTRY; + +/// +/// EINJ - Error Injection Table +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 InjectionHeaderSize; + UINT8 InjectionFlags; + UINT8 Reserved0[3]; + UINT32 InjectionEntryCount; +} EFI_ACPI_6_4_ERROR_INJECTION_TABLE_HEADER; + +/// +/// EINJ Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_ERROR_INJECTION_TABLE_REVISION 0x01 + +/// +/// EINJ Error Injection Actions +/// +#define EFI_ACPI_6_4_EINJ_BEGIN_INJECTION_OPERATION 0x00 +#define EFI_ACPI_6_4_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01 +#define EFI_ACPI_6_4_EINJ_SET_ERROR_TYPE 0x02 +#define EFI_ACPI_6_4_EINJ_GET_ERROR_TYPE 0x03 +#define EFI_ACPI_6_4_EINJ_END_OPERATION 0x04 +#define EFI_ACPI_6_4_EINJ_EXECUTE_OPERATION 0x05 +#define EFI_ACPI_6_4_EINJ_CHECK_BUSY_STATUS 0x06 +#define EFI_ACPI_6_4_EINJ_GET_COMMAND_STATUS 0x07 +#define EFI_ACPI_6_4_EINJ_TRIGGER_ERROR 0xFF + +/// +/// EINJ Action Command Status +/// +#define EFI_ACPI_6_4_EINJ_STATUS_SUCCESS 0x00 +#define EFI_ACPI_6_4_EINJ_STATUS_UNKNOWN_FAILURE 0x01 +#define EFI_ACPI_6_4_EINJ_STATUS_INVALID_ACCESS 0x02 + +/// +/// EINJ Error Type Definition +/// +#define EFI_ACPI_6_4_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 <= < 0) +#define EFI_ACPI_6_4_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 <= < 1) +#define EFI_ACPI_6_4_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 <= < 2) +#define EFI_ACPI_6_4_EINJ_ERROR_MEMORY_CORRECTABLE (1 <= < 3) +#define EFI_ACPI_6_4_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 <= < 4) +#define EFI_ACPI_6_4_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 <= < 5) +#define EFI_ACPI_6_4_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 <= < 6) +#define EFI_ACPI_6_4_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 <= < 7) +#define EFI_ACPI_6_4_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 <= < 8) +#define EFI_ACPI_6_4_EINJ_ERROR_PLATFORM_CORRECTABLE (1 <= < 9) +#define EFI_ACPI_6_4_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 <= < 10) +#define EFI_ACPI_6_4_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 <= < 11) + +/// +/// EINJ Injection Instructions +/// +#define EFI_ACPI_6_4_EINJ_READ_REGISTER 0x00 +#define EFI_ACPI_6_4_EINJ_READ_REGISTER_VALUE 0x01 +#define EFI_ACPI_6_4_EINJ_WRITE_REGISTER 0x02 +#define EFI_ACPI_6_4_EINJ_WRITE_REGISTER_VALUE 0x03 +#define EFI_ACPI_6_4_EINJ_NOOP 0x04 + +/// +/// EINJ Instruction Flags +/// +#define EFI_ACPI_6_4_EINJ_PRESERVE_REGISTER 0x01 + +/// +/// EINJ Injection Instruction Entry +/// +typedef struct { + UINT8 InjectionAction; + UINT8 Instruction; + UINT8 Flags; + UINT8 Reserved0; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE RegisterRegion; + UINT64 Value; + UINT64 Mask; +} EFI_ACPI_6_4_EINJ_INJECTION_INSTRUCTION_ENTRY; + +/// +/// EINJ Trigger Action Table +/// +typedef struct { + UINT32 HeaderSize; + UINT32 Revision; + UINT32 TableSize; + UINT32 EntryCount; +} EFI_ACPI_6_4_EINJ_TRIGGER_ACTION_TABLE; + +/// +/// Platform Communications Channel Table (PCCT) +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 Flags; + UINT64 Reserved; +} EFI_ACPI_6_4_PLATFORM_COMMUNICATION_CHANNEL_TABLE_HEADER; + +/// +/// PCCT Version (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x02 + +/// +/// PCCT Global Flags +/// +#define EFI_ACPI_6_4_PCCT_FLAGS_PLATFORM_INTERRUPT BIT0 + +// +// PCCT Subspace type +// +#define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_GENERIC 0x= 00 +#define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_1_HW_REDUCED_COMMUNICATIONS 0x= 01 +#define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_2_HW_REDUCED_COMMUNICATIONS 0x= 02 +#define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_3_EXTENDED_PCC 0x= 03 +#define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_4_EXTENDED_PCC 0x= 04 + +/// +/// PCC Subspace Structure Header +/// +typedef struct { + UINT8 Type; + UINT8 Length; +} EFI_ACPI_6_4_PCCT_SUBSPACE_HEADER; + +/// +/// Generic Communications Subspace Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 Reserved[6]; + UINT64 BaseAddress; + UINT64 AddressLength; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister; + UINT64 DoorbellPreserve; + UINT64 DoorbellWrite; + UINT32 NominalLatency; + UINT32 MaximumPeriodicAccessRate; + UINT16 MinimumRequestTurnaroundTime; +} EFI_ACPI_6_4_PCCT_SUBSPACE_GENERIC; + +/// +/// Generic Communications Channel Shared Memory Region +/// + +typedef struct { + UINT8 Command; + UINT8 Reserved:7; + UINT8 NotifyOnCompletion:1; +} EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND; + +typedef struct { + UINT8 CommandComplete:1; + UINT8 PlatformInterrupt:1; + UINT8 Error:1; + UINT8 PlatformNotification:1; + UINT8 Reserved:4; + UINT8 Reserved1; +} EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS; + +typedef struct { + UINT32 Signature; + EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND Command; + EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS Status; +} EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER; + +#define EFI_ACPI_6_4_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_POLARITY BI= T0 +#define EFI_ACPI_6_4_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_MODE BI= T1 + +/// +/// Type 1 HW-Reduced Communications Subspace Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT32 PlatformInterrupt; + UINT8 PlatformInterruptFlags; + UINT8 Reserved; + UINT64 BaseAddress; + UINT64 AddressLength; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister; + UINT64 DoorbellPreserve; + UINT64 DoorbellWrite; + UINT32 NominalLatency; + UINT32 MaximumPeriodicAccessRate; + UINT16 MinimumRequestTurnaroundTime; +} EFI_ACPI_6_4_PCCT_SUBSPACE_1_HW_REDUCED_COMMUNICATIONS; + +/// +/// Type 2 HW-Reduced Communications Subspace Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT32 PlatformInterrupt; + UINT8 PlatformInterruptFlags; + UINT8 Reserved; + UINT64 BaseAddress; + UINT64 AddressLength; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister; + UINT64 DoorbellPreserve; + UINT64 DoorbellWrite; + UINT32 NominalLatency; + UINT32 MaximumPeriodicAccessRate; + UINT16 MinimumRequestTurnaroundTime; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE PlatformInterruptAckRegister; + UINT64 PlatformInterruptAckPreserve; + UINT64 PlatformInterruptAckWrite; +} EFI_ACPI_6_4_PCCT_SUBSPACE_2_HW_REDUCED_COMMUNICATIONS; + +/// +/// Type 3 Extended PCC Subspace Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT32 PlatformInterrupt; + UINT8 PlatformInterruptFlags; + UINT8 Reserved; + UINT64 BaseAddress; + UINT32 AddressLength; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister; + UINT64 DoorbellPreserve; + UINT64 DoorbellWrite; + UINT32 NominalLatency; + UINT32 MaximumPeriodicAccessRate; + UINT32 MinimumRequestTurnaroundTime; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE PlatformInterruptAckRegister; + UINT64 PlatformInterruptAckPreserve; + UINT64 PlatformInterruptAckSet; + UINT8 Reserved1[8]; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE CommandCompleteCheckRegister; + UINT64 CommandCompleteCheckMask; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE CommandCompleteUpdateRegister; + UINT64 CommandCompleteUpdatePreserve; + UINT64 CommandCompleteUpdateSet; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ErrorStatusRegister; + UINT64 ErrorStatusMask; +} EFI_ACPI_6_4_PCCT_SUBSPACE_3_EXTENDED_PCC; + +/// +/// Type 4 Extended PCC Subspace Structure +/// +typedef EFI_ACPI_6_4_PCCT_SUBSPACE_3_EXTENDED_PCC EFI_ACPI_6_4_PCCT_SUBSPA= CE_4_EXTENDED_PCC; + +#define EFI_ACPI_6_4_PCCT_MASTER_SLAVE_COMMUNICATIONS_CHANNEL_FLAGS_NOTIFY= _ON_COMPLETION BIT0 + +typedef struct { + UINT32 Signature; + UINT32 Flags; + UINT32 Length; + UINT32 Command; +} EFI_ACPI_6_4_PCCT_EXTENDED_PCC_SHARED_MEMORY_REGION_HEADER; + +/// +/// Platform Debug Trigger Table (PDTT) +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT8 TriggerCount; + UINT8 Reserved[3]; + UINT32 TriggerIdentifierArrayOffset; +} EFI_ACPI_6_4_PLATFORM_DEBUG_TRIGGER_TABLE_HEADER; + +/// +/// PDTT Revision (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_PLATFORM_DEBUG_TRIGGER_TABLE_REVISION 0x00 + +/// +/// PDTT Platform Communication Channel Identifier Structure +/// +typedef struct { + UINT16 SubChannelIdentifer:8; + UINT16 Runtime:1; + UINT16 WaitForCompletion:1; + UINT16 TriggerOrder:1; + UINT16 Reserved:5; +} EFI_ACPI_6_4_PDTT_PCC_IDENTIFIER; + +/// +/// PCC Commands Codes used by Platform Debug Trigger Table +/// +#define EFI_ACPI_6_4_PDTT_PCC_COMMAND_DOORBELL_ONLY 0x00 +#define EFI_ACPI_6_4_PDTT_PCC_COMMAND_VENDOR_SPECIFIC 0x01 + +/// +/// PDTT Platform Communication Channel +/// +typedef EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER EFI_ACPI_6_4= _PDTT_PCC; + +/// +/// Processor Properties Topology Table (PPTT) +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; +} EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_HEADER; + +/// +/// PPTT Revision (as defined in ACPI 6.4 spec.) +/// +#define EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_REVISION 0x02 + +/// +/// PPTT types +/// +#define EFI_ACPI_6_4_PPTT_TYPE_PROCESSOR 0x00 +#define EFI_ACPI_6_4_PPTT_TYPE_CACHE 0x01 +#define EFI_ACPI_6_4_PPTT_TYPE_ID 0x02 + +/// +/// PPTT Structure Header +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 Reserved[2]; +} EFI_ACPI_6_4_PPTT_STRUCTURE_HEADER; + +/// +/// For PPTT struct processor flags +/// +#define EFI_ACPI_6_4_PPTT_PACKAGE_NOT_PHYSICAL 0x0 +#define EFI_ACPI_6_4_PPTT_PACKAGE_PHYSICAL 0x1 +#define EFI_ACPI_6_4_PPTT_PROCESSOR_ID_INVALID 0x0 +#define EFI_ACPI_6_4_PPTT_PROCESSOR_ID_VALID 0x1 +#define EFI_ACPI_6_4_PPTT_PROCESSOR_IS_NOT_THREAD 0x0 +#define EFI_ACPI_6_4_PPTT_PROCESSOR_IS_THREAD 0x1 +#define EFI_ACPI_6_4_PPTT_NODE_IS_NOT_LEAF 0x0 +#define EFI_ACPI_6_4_PPTT_NODE_IS_LEAF 0x1 +#define EFI_ACPI_6_4_PPTT_IMPLEMENTATION_NOT_IDENTICAL 0x0 +#define EFI_ACPI_6_4_PPTT_IMPLEMENTATION_IDENTICAL 0x1 + +/// +/// Processor hierarchy node structure flags +/// +typedef struct { + UINT32 PhysicalPackage:1; + UINT32 AcpiProcessorIdValid:1; + UINT32 ProcessorIsAThread:1; + UINT32 NodeIsALeaf:1; + UINT32 IdenticalImplementation:1; + UINT32 Reserved:27; +} EFI_ACPI_6_4_PPTT_STRUCTURE_PROCESSOR_FLAGS; + +/// +/// Processor hierarchy node structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 Reserved[2]; + EFI_ACPI_6_4_PPTT_STRUCTURE_PROCESSOR_FLAGS Flags; + UINT32 Parent; + UINT32 AcpiProcessorId; + UINT32 NumberOfPrivateResources; +} EFI_ACPI_6_4_PPTT_STRUCTURE_PROCESSOR; + +/// +/// For PPTT struct cache flags +/// +#define EFI_ACPI_6_4_PPTT_CACHE_SIZE_INVALID 0x0 +#define EFI_ACPI_6_4_PPTT_CACHE_SIZE_VALID 0x1 +#define EFI_ACPI_6_4_PPTT_NUMBER_OF_SETS_INVALID 0x0 +#define EFI_ACPI_6_4_PPTT_NUMBER_OF_SETS_VALID 0x1 +#define EFI_ACPI_6_4_PPTT_ASSOCIATIVITY_INVALID 0x0 +#define EFI_ACPI_6_4_PPTT_ASSOCIATIVITY_VALID 0x1 +#define EFI_ACPI_6_4_PPTT_ALLOCATION_TYPE_INVALID 0x0 +#define EFI_ACPI_6_4_PPTT_ALLOCATION_TYPE_VALID 0x1 +#define EFI_ACPI_6_4_PPTT_CACHE_TYPE_INVALID 0x0 +#define EFI_ACPI_6_4_PPTT_CACHE_TYPE_VALID 0x1 +#define EFI_ACPI_6_4_PPTT_WRITE_POLICY_INVALID 0x0 +#define EFI_ACPI_6_4_PPTT_WRITE_POLICY_VALID 0x1 +#define EFI_ACPI_6_4_PPTT_LINE_SIZE_INVALID 0x0 +#define EFI_ACPI_6_4_PPTT_LINE_SIZE_VALID 0x1 + +/// +/// Cache Type Structure flags +/// +typedef struct { + UINT32 SizePropertyValid:1; + UINT32 NumberOfSetsValid:1; + UINT32 AssociativityValid:1; + UINT32 AllocationTypeValid:1; + UINT32 CacheTypeValid:1; + UINT32 WritePolicyValid:1; + UINT32 LineSizeValid:1; + UINT32 Reserved:25; +} EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_FLAGS; + +/// +/// For cache attributes +/// +#define EFI_ACPI_6_4_CACHE_ATTRIBUTES_ALLOCATION_READ 0x0 +#define EFI_ACPI_6_4_CACHE_ATTRIBUTES_ALLOCATION_WRITE 0x1 +#define EFI_ACPI_6_4_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE 0x2 +#define EFI_ACPI_6_4_CACHE_ATTRIBUTES_CACHE_TYPE_DATA 0x0 +#define EFI_ACPI_6_4_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION 0x1 +#define EFI_ACPI_6_4_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED 0x2 +#define EFI_ACPI_6_4_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK 0x0 +#define EFI_ACPI_6_4_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_THROUGH 0x1 + +/// +/// Cache Type Structure cache attributes +/// +typedef struct { + UINT8 AllocationType:2; + UINT8 CacheType:2; + UINT8 WritePolicy:1; + UINT8 Reserved:3; +} EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_ATTRIBUTES; + +/// +/// Cache Type Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 Reserved[2]; + EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_FLAGS Flags; + UINT32 NextLevelOfCache; + UINT32 Size; + UINT32 NumberOfSets; + UINT8 Associativity; + EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_ATTRIBUTES Attributes; + UINT16 LineSize; +} EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE; + +/// +/// ID structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 Reserved[2]; + UINT32 VendorId; + UINT64 Level1Id; + UINT64 Level2Id; + UINT16 MajorRev; + UINT16 MinorRev; + UINT16 SpinRev; +} EFI_ACPI_6_4_PPTT_STRUCTURE_ID; + +// +// Known table signatures +// + +/// +/// "RSD PTR " Root System Description Pointer +/// +#define EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_= 64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ') + +/// +/// "APIC" Multiple APIC Description Table +/// +#define EFI_ACPI_6_4_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_= 32('A', 'P', 'I', 'C') + +/// +/// "BERT" Boot Error Record Table +/// +#define EFI_ACPI_6_4_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', = 'E', 'R', 'T') + +/// +/// "BGRT" Boot Graphics Resource Table +/// +#define EFI_ACPI_6_4_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE SIGNATURE_32(= 'B', 'G', 'R', 'T') + +/// +/// "CDIT" Component Distance Information Table +/// +#define EFI_ACPI_6_4_COMPONENT_DISTANCE_INFORMATION_TABLE_SIGNATURE SIGNA= TURE_32('C', 'D', 'I', 'T') + +/// +/// "CPEP" Corrected Platform Error Polling Table +/// +#define EFI_ACPI_6_4_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIG= NATURE_32('C', 'P', 'E', 'P') + +/// +/// "CRAT" Component Resource Attribute Table +/// +#define EFI_ACPI_6_4_COMPONENT_RESOURCE_ATTRIBUTE_TABLE_SIGNATURE SIGNATU= RE_32('C', 'R', 'A', 'T') + +/// +/// "DSDT" Differentiated System Description Table +/// +#define EFI_ACPI_6_4_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SI= GNATURE_32('D', 'S', 'D', 'T') + +/// +/// "ECDT" Embedded Controller Boot Resources Table +/// +#define EFI_ACPI_6_4_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE S= IGNATURE_32('E', 'C', 'D', 'T') + +/// +/// "EINJ" Error Injection Table +/// +#define EFI_ACPI_6_4_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I= ', 'N', 'J') + +/// +/// "ERST" Error Record Serialization Table +/// +#define EFI_ACPI_6_4_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE= _32('E', 'R', 'S', 'T') + +/// +/// "FACP" Fixed ACPI Description Table +/// +#define EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32(= 'F', 'A', 'C', 'P') + +/// +/// "FACS" Firmware ACPI Control Structure +/// +#define EFI_ACPI_6_4_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_= 32('F', 'A', 'C', 'S') + +/// +/// "FPDT" Firmware Performance Data Table +/// +#define EFI_ACPI_6_4_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE SIGNATURE_= 32('F', 'P', 'D', 'T') + +/// +/// "GTDT" Generic Timer Description Table +/// +#define EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_= 32('G', 'T', 'D', 'T') + +/// +/// "HEST" Hardware Error Source Table +/// +#define EFI_ACPI_6_4_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('= H', 'E', 'S', 'T') + +/// +/// "HMAT" Heterogeneous Memory Attribute Table +/// +#define EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_SIGNATURE SIGNA= TURE_32('H', 'M', 'A', 'T') + +/// +/// "MPST" Memory Power State Table +/// +#define EFI_ACPI_6_4_MEMORY_POWER_STATE_TABLE_SIGNATURE SIGNATURE_32('M',= 'P', 'S', 'T') + +/// +/// "MSCT" Maximum System Characteristics Table +/// +#define EFI_ACPI_6_4_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNA= TURE_32('M', 'S', 'C', 'T') + +/// +/// "NFIT" NVDIMM Firmware Interface Table +/// +#define EFI_ACPI_6_4_NVDIMM_FIRMWARE_INTERFACE_TABLE_STRUCTURE_SIGNATURE = SIGNATURE_32('N', 'F', 'I', 'T') + +/// +/// "PDTT" Platform Debug Trigger Table +/// +#define EFI_ACPI_6_4_PLATFORM_DEBUG_TRIGGER_TABLE_STRUCTURE_SIGNATURE SIG= NATURE_32('P', 'D', 'T', 'T') + +/// +/// "PMTT" Platform Memory Topology Table +/// +#define EFI_ACPI_6_4_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE SIGNATURE_3= 2('P', 'M', 'T', 'T') + +/// +/// "PPTT" Processor Properties Topology Table +/// +#define EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATU= RE SIGNATURE_32('P', 'P', 'T', 'T') + +/// +/// "PSDT" Persistent System Description Table +/// +#define EFI_ACPI_6_4_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNAT= URE_32('P', 'S', 'D', 'T') + +/// +/// "RASF" ACPI RAS Feature Table +/// +#define EFI_ACPI_6_4_ACPI_RAS_FEATURE_TABLE_SIGNATURE SIGNATURE_32('R', '= A', 'S', 'F') + +/// +/// "RSDT" Root System Description Table +/// +#define EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32= ('R', 'S', 'D', 'T') + +/// +/// "SBST" Smart Battery Specification Table +/// +#define EFI_ACPI_6_4_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATUR= E_32('S', 'B', 'S', 'T') + +/// +/// "SDEV" Secure DEVices Table +/// +#define EFI_ACPI_6_4_SECURE_DEVICES_TABLE_SIGNATURE SIGNATURE_32('S', 'D'= , 'E', 'V') + +/// +/// "SLIT" System Locality Information Table +/// +#define EFI_ACPI_6_4_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATUR= E_32('S', 'L', 'I', 'T') + +/// +/// "SRAT" System Resource Affinity Table +/// +#define EFI_ACPI_6_4_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_3= 2('S', 'R', 'A', 'T') + +/// +/// "SSDT" Secondary System Description Table +/// +#define EFI_ACPI_6_4_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATU= RE_32('S', 'S', 'D', 'T') + +/// +/// "XSDT" Extended System Description Table +/// +#define EFI_ACPI_6_4_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATUR= E_32('X', 'S', 'D', 'T') + +/// +/// "BOOT" MS Simple Boot Spec +/// +#define EFI_ACPI_6_4_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', '= O', 'O', 'T') + +/// +/// "CSRT" MS Core System Resource Table +/// +#define EFI_ACPI_6_4_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('C= ', 'S', 'R', 'T') + +/// +/// "DBG2" MS Debug Port 2 Spec +/// +#define EFI_ACPI_6_4_DEBUG_PORT_2_TABLE_SIGNATURE SIGNATURE_32('D', 'B', = 'G', '2') + +/// +/// "DBGP" MS Debug Port Spec +/// +#define EFI_ACPI_6_4_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G= ', 'P') + +/// +/// "DMAR" DMA Remapping Table +/// +#define EFI_ACPI_6_4_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M',= 'A', 'R') + +/// +/// "DPPT" DMA Protection Policy Table +/// +#define EFI_ACPI_6_4_DMA_PROTECTION_POLICY_TABLE_SIGNATURE SIGNATURE_32('= D', 'P', 'P', 'T') + +/// +/// "DRTM" Dynamic Root of Trust for Measurement Table +/// +#define EFI_ACPI_6_4_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE= SIGNATURE_32('D', 'R', 'T', 'M') + +/// +/// "ETDT" Event Timer Description Table +/// +#define EFI_ACPI_6_4_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32= ('E', 'T', 'D', 'T') + +/// +/// "HPET" IA-PC High Precision Event Timer Table +/// +#define EFI_ACPI_6_4_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE= _32('H', 'P', 'E', 'T') + +/// +/// "iBFT" iSCSI Boot Firmware Table +/// +#define EFI_ACPI_6_4_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i'= , 'B', 'F', 'T') + +/// +/// "IORT" I/O Remapping Table +/// +#define EFI_ACPI_6_4_IO_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('I', 'O', = 'R', 'T') + +/// +/// "IVRS" I/O Virtualization Reporting Structure +/// +#define EFI_ACPI_6_4_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGN= ATURE_32('I', 'V', 'R', 'S') + +/// +/// "LPIT" Low Power Idle Table +/// +#define EFI_ACPI_6_4_LOW_POWER_IDLE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_3= 2('L', 'P', 'I', 'T') + +/// +/// "MCFG" PCI Express Memory Mapped Configuration Space Base Address Desc= ription Table +/// +#define EFI_ACPI_6_4_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_AD= DRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G') + +/// +/// "MCHI" Management Controller Host Interface Table +/// +#define EFI_ACPI_6_4_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE = SIGNATURE_32('M', 'C', 'H', 'I') + +/// +/// "MSDM" MS Data Management Table +/// +#define EFI_ACPI_6_4_DATA_MANAGEMENT_TABLE_SIGNATURE SIGNATURE_32('M', 'S= ', 'D', 'M') + +/// +/// "PCCT" Platform Communications Channel Table +/// +#define EFI_ACPI_6_4_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE SIGN= ATURE_32('P', 'C', 'C', 'T') + +/// +/// "SDEI" Software Delegated Exceptions Interface Table +/// +#define EFI_ACPI_6_4_SOFTWARE_DELEGATED_EXCEPTIONS_INTERFACE_TABLE_SIGNATU= RE SIGNATURE_32('S', 'D', 'E', 'I') + +/// +/// "SLIC" MS Software Licensing Table Specification +/// +#define EFI_ACPI_6_4_SOFTWARE_LICENSING_TABLE_SIGNATURE SIGNATURE_32('S',= 'L', 'I', 'C') + +/// +/// "SPCR" Serial Port Concole Redirection Table +/// +#define EFI_ACPI_6_4_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGN= ATURE_32('S', 'P', 'C', 'R') + +/// +/// "SPMI" Server Platform Management Interface Table +/// +#define EFI_ACPI_6_4_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE = SIGNATURE_32('S', 'P', 'M', 'I') + +/// +/// "STAO" _STA Override Table +/// +#define EFI_ACPI_6_4_STA_OVERRIDE_TABLE_SIGNATURE SIGNATURE_32('S', 'T', = 'A', 'O') + +/// +/// "TCPA" Trusted Computing Platform Alliance Capabilities Table +/// +#define EFI_ACPI_6_4_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABL= E_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A') + +/// +/// "TPM2" Trusted Computing Platform 1 Table +/// +#define EFI_ACPI_6_4_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE SIGNATU= RE_32('T', 'P', 'M', '2') + +/// +/// "UEFI" UEFI ACPI Data Table +/// +#define EFI_ACPI_6_4_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E'= , 'F', 'I') + +/// +/// "WAET" Windows ACPI Emulated Devices Table +/// +#define EFI_ACPI_6_4_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE SIGNAT= URE_32('W', 'A', 'E', 'T') + +/// +/// "WDAT" Watchdog Action Table +/// +#define EFI_ACPI_6_4_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D= ', 'A', 'T') + +/// +/// "WDRT" Watchdog Resource Table +/// +#define EFI_ACPI_6_4_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', = 'D', 'R', 'T') + +/// +/// "WPBT" MS Platform Binary Table +/// +#define EFI_ACPI_6_4_PLATFORM_BINARY_TABLE_SIGNATURE SIGNATURE_32('W', 'P= ', 'B', 'T') + +/// +/// "WSMT" Windows SMM Security Mitigation Table +/// +#define EFI_ACPI_6_4_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE SIGN= ATURE_32('W', 'S', 'M', 'T') + +/// +/// "XENV" Xen Project Table +/// +#define EFI_ACPI_6_4_XEN_PROJECT_TABLE_SIGNATURE SIGNATURE_32('X', 'E', '= N', 'V') + +#pragma pack() + +#endif --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78413): https://edk2.groups.io/g/devel/message/78413 Mute This Topic: https://groups.io/mt/84547376/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- From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78411+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640586562678.1918866968732; Fri, 30 Jul 2021 03:23:06 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id AqmgYY1788612xmoD03TXEfe; Fri, 30 Jul 2021 03:23:06 -0700 X-Received: from EUR01-HE1-obe.outbound.protection.outlook.com (EUR01-HE1-obe.outbound.protection.outlook.com [40.107.13.80]) by mx.groups.io with SMTP id smtpd.web08.22485.1627640585075371208 for ; Fri, 30 Jul 2021 03:23:05 -0700 X-Received: from DB6PR07CA0174.eurprd07.prod.outlook.com (2603:10a6:6:43::28) by HE1PR0801MB2124.eurprd08.prod.outlook.com (2603:10a6:3:89::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Fri, 30 Jul 2021 10:23:01 +0000 X-Received: from DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:43:cafe::94) by DB6PR07CA0174.outlook.office365.com (2603:10a6:6:43::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.12 via Frontend Transport; Fri, 30 Jul 2021 10:23:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78411+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT026.mail.protection.outlook.com (10.152.20.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:01 +0000 X-Received: ("Tessian outbound 69e1fde53269:v100"); Fri, 30 Jul 2021 10:23:01 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2a2d06dbbacb2e00 X-CR-MTA-TID: 64aa7808 X-Received: from 7887a92486ab.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 262DAB77-A449-4297-892F-3A457AA4665E.1; Fri, 30 Jul 2021 10:22:55 +0000 X-Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 7887a92486ab.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=by1Q9GPQ96oeshDf0aRYoaX7YKQKZ749uk4N3MfAgnaMk2DOFxhBmZfrQNVUsy1ZSBGRk1pbvuPr0jCPCPiTxsNBQ5Z5Vwi7Qy8Rnzb8w3LeoaLPdBCoGOUVHkiPoOA7snIifz6duQiauUq8Qm8L5eUoTkUzxjG3hwm62Kx+jPR08C3IHm2FRW1GM8qEpA5/svei7XCr8JPJnNKUEjIfvNh9KBJLbrf8BscorIY1xwKeql2VGYMY/GswBdjfKCod8rm/5Pu3DCNa+JewgdA8MklU1d+8utPNENtcT75Lr4FzZs4qMqsA0H83pyvNzO39poTZuzztX+MvJt4tMp+nbw== 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:X-MS-Exchange-SenderADCheck; bh=vkpThMgyShaqcU7xmmg3UuGKodNpZ2x2NufTn9Tewjs=; b=iUXEikoUT0i55EGdLeh3fbtST/UY+gGduO6EDp0AejDI7ptp6RfUSC+tNONxUE07QX4n0z5h47QLL1Va9ebHwBTYqimCt5777R7vO2Sn8l0wIDzgHT4H/kTUs/wkODOs0PahVrtaA8QLz73ieAiGqZttFVBOFEiT43EdtEouCFx/D73NyPavzU2zeYtSIxSJ9yRheqOwJWDfbBRetjuXQlEx0Cn+fKkJUF00ElRq1Noc5YHq7bIiziayNXxK3iP7bppm/nfweE44HfLVfZ/L/zFAJYLlKrH7gdPeqtZt3babJTynrv2hKy/iKaiufnu4I3ynkEbUfzEerXcqprkbXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB6PR1001CA0008.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:b7::18) by AM6PR08MB4658.eurprd08.prod.outlook.com (2603:10a6:20b:c4::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Fri, 30 Jul 2021 10:22:53 +0000 X-Received: from DB5EUR03FT042.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:b7:cafe::90) by DB6PR1001CA0008.outlook.office365.com (2603:10a6:4:b7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21 via Frontend Transport; Fri, 30 Jul 2021 10:22:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT042.mail.protection.outlook.com (10.152.21.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:53 +0000 X-Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:42 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:42 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:41 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 02/13] MdePkg: Increment FADT version Date: Fri, 30 Jul 2021 11:22:30 +0100 Message-ID: <20210730102241.508-3-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a6be8de2-467d-496e-1b9d-08d9534402ad X-MS-TrafficTypeDiagnostic: AM6PR08MB4658:|HE1PR0801MB2124: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:4125;OLM:4125; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: I1CMGUUt89wN3pNSrv67fAmNtbB5ucAFX2tzf1x2mNgLa9TAkZvBfSTXaGOCGyBlz8kh327iQYkydXagQu4FYXLjqzeVhwzJvTHq6E38Csf/ytalm96AANZ/7a25tTOwQDDyiX+8emPlaJ+zrOCUyyim2rLP311W+QRldT7VREKAyIr1D9IESI4+5CSGC92RiS34CoxStKYgV2BGnPR/b4D2uyZUNYM8X4muLbdBIlFLn6XHPRlwa+zlu3vGAMvixWX4RH1PR2zI3JusB0wVF5uR/+Pvq8GfMNXZWbvhRUdKtWkma2HhRyqw61SaZOERL/hSEXHFbwu0h4EjcV4VV+2x9lSZqEjSju5aiFY05fbPnzvoVpb8fEfeuSZwd79hdW+kBCNeM2VIusl+ae6h1c/X8AgyZIuI4aZ+LhI3+9gnYmEvkWVxELaXHzRFP0uSwW/Hd+0IWioboZPb2VHbWiCxibAFcJDScb64szf8bIvdew1XlkXBhKt/Qrb494rsn9skab8Q4gdnQCeNM2OsOE+CIGcmP11kbjsTgT4kWdUsMYWrLbiTZWpfRgwizrz9wNx96y9pzHoXUpWW5+/OH2HAQqCZAPdg0W9TbKJu2aBFGeKb6cQYQ7vc8fd7aKjNIZhFsNfh/wZWYpGhuhWdmXyb4CBDSaEKjm57B0bOO3uUMz5md0akVa1UMjplm8IT51yZkatjOM0skHB31gW3Pixjx+2rskGPOClzQVPpUOjOcf70n81fuwsHC03AOk04AYfRJyj94PyACXVHV1iztYcHJ+coqd/EgAQd6o915E3M2cxPz9QBp7GY51vsk7RM5l+FDE/jlrlVkhpz5TJMnlf0TDF/f5efdRqWd8mkkl8= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(136003)(396003)(39850400004)(346002)(376002)(46966006)(36840700001)(426003)(7696005)(36860700001)(83380400001)(8676002)(2906002)(4326008)(316002)(8936002)(6666004)(336012)(54906003)(82310400003)(81166007)(2616005)(82740400003)(356005)(86362001)(6916009)(19627235002)(1076003)(70206006)(70586007)(186003)(16799955002)(478600001)(47076005)(5660300002)(36756003)(26005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4658 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 31a3a155-4705-4abd-3d13-08d95343fdc7 X-Microsoft-Antispam-Message-Info: z6Y2PBrxAr8vYmSpByJQXR7DLKa8RDwvqJxyQX2GCngkmjAIm+HYbVyF5R3i385qdjy8ffWQ1uLScFYw36O9giPgAzkrqVKY/hDCQx9TrA3pSbOWM4NuWjvLSt95EP3BNQOkdMgf0Qj3YGSrrAI3kfGKCjM3o9eXioZ3UpAf7ol/sFS8ckFFY0TtD9H2h1R1vSzHDvQ2cRwaWjbwp7NFUCU2nNw+l3W122xRWfD6X9tvgRqlGP1CAS68GJ1hpAK7C4uvksTM/cpKxpiHrGUsBzMKsVDCSUwPvxCl/Yvl1QbYA1T/HiawhMPr54BvbwmMjA15ZKtEJujvTOAavan1nVaiqGEeXTZKOzt2qk+faZGAFiOtzgsM7m0pVQ4B5nficYVYjzbkQxFZ3v04eq8O56fJN9cwjLnpNkOKUm1kSshn1VG7IYOjz10SjEW5mRcC4c+18gTwDDEtj8v6SFasRbX9FfwB3wJ1ZyYikZvAHWbW1l97Qbc/8HnDEoQ+FdoRlG+ORoLKVCkgtQe/USOzdQz+oBDxmLRhs1r3q1mdm+INwNh9Vf4WR8sEtFWOqkXlu3EemqMV149K0s/72q5hWvQQgz4caecjEHeb7H1LrZ1OD3r0vs1flJYsoNPcWmrhhLM1XbXgaK5JauoEgws2gKABChUDnl7hi/vP40QufRYHjlVTCEaVlr3VbkCjvSFU38TeJPAPTZSKIxEnSJQvtJP8OVKIc2a4h1uFPlk/mjhntTsXxQ0pb+EPUPp+yVr0tY5+m4Ksjbc0oneoJiDjGvhr0jT8i4LDh7JuI78zOJNBK0ip/62Yi1a6xVwYGMlx X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:23:01.7346 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a6be8de2-467d-496e-1b9d-08d9534402ad X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB2124 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: HnqbsXf6W6rriljZSBKDaacIx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640586; bh=9EN2dRs4AcX3AP/q1aS5QV0UIg8tOXUMZRi1J4LQBxE=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=aG9I8XAtIVbl/2yiAiVV+VpALkofNSsZi3Nvenu5hv5TGHXUz3H5bqCAmbs6HTOsMmQ jIGEBpVrcYZn4RUkNVqlmQUm7S9/xXkkU9aMW6p17T1wlcAtMA/0q4KAT2cdlaB8Or6IV wdt39eXMX6ec9oyJfT7pa7CSM2PczDw9f/A= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640586958100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) Make changes to ACPI 6.4 header according to the latest specification: - ACPI 6.4 January 2021, Table 5-9 - Mantis ID 2105 (https://mantis.uefi.org/mantis/view.php?id=3D2105) Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index efbfd8b7a540a130b3de45e4cdd02f099a79dfc3..5a0e5b29c7e41cfa03ebc28e306= 719762b72b76d 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -174,7 +174,7 @@ typedef struct { /// FADT Version (as defined in ACPI 6.4 spec.) /// #define EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x06 -#define EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION 0x03 +#define EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION 0x04 =20 // // Fixed ACPI Description Table Preferred Power Management Profile --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78411): https://edk2.groups.io/g/devel/message/78411 Mute This Topic: https://groups.io/mt/84547374/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- From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78415+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640588448548.3144009263491; Fri, 30 Jul 2021 03:23:08 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id i0ZAYY1788612xSUEhCaG53s; Fri, 30 Jul 2021 03:23:08 -0700 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.89]) by mx.groups.io with SMTP id smtpd.web11.22211.1627640585868354813 for ; Fri, 30 Jul 2021 03:23:06 -0700 X-Received: from AS8P251CA0028.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:2f2::24) by AM0PR08MB4516.eurprd08.prod.outlook.com (2603:10a6:208:13b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.29; Fri, 30 Jul 2021 10:23:02 +0000 X-Received: from AM5EUR03FT063.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f2:cafe::30) by AS8P251CA0028.outlook.office365.com (2603:10a6:20b:2f2::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.17 via Frontend Transport; Fri, 30 Jul 2021 10:23:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78415+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT063.mail.protection.outlook.com (10.152.16.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:01 +0000 X-Received: ("Tessian outbound 1942ea606101:v100"); Fri, 30 Jul 2021 10:23:01 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 256413b9ee546211 X-CR-MTA-TID: 64aa7808 X-Received: from 7887a92486ab.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9D9D853A-91D2-48A4-B340-89F6BD7B63A4.1; Fri, 30 Jul 2021 10:22:55 +0000 X-Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 7887a92486ab.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NZvOdzCjls22kcC/0x+DNWeIFlTVHmtZfbtifN+QpUNPBjU2NFvN5+8Leo4fTRKGpI0bwd916o3uHxYlFVCu7X3DleCz/oINx6sjNe7cDBlnUeEthTvTae8ajoEYxD204Xks3OcZAkWwIdBPAub+Cx+UEBvM2NlvouvfOi6eWTmRFsl4smC8aRDAB2bj3jM9mXriQYZOjteS9vmtPZPzl/LTcabOEXBVEmoVq9zp9OamPdiiYqNxlww8HoEYzGc3eWi9E0KONEngScDCymYclch/aq2TAmwm5bPkwpKSadvvkQYgcc8EXGkOe+djbEXDRXmYx70snpLXGjMNTiwCiQ== 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:X-MS-Exchange-SenderADCheck; bh=icIMa0qn84/ap72PhkmGsb6rOgGn3SVAQD7RntmzIpQ=; b=dl1SYytx2t2D4wr2sQ7ojiqrR8UbfAB4S8oDma4Ln80syKwAqKTohxOV+w3Q8Y1Cxy6Kn3SWxROuot38tfxOWFdFLSiJYOo6v8yvouoTmBbqq2Q+35dBCf5Kd/jpO0i/zaI7Vry7BEE8lG2367Smeg7paKz7TuWfocWO2j/ulQSvojPM9WveLdPKYxtp5qtz7OVG25/aqleVBY60yL0nFtHoD+/tprW4HHWByhfgWkmpcOmGp4E1UqqL4Val5JZFUWANbzjO1sdAtwXBgarcA2KrfP79YY1Mn1Eu9utMe/UqWbIWGo5hX/QsC47RK8ldMiOb8LOvskA35j+HKKh62Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB6PR1001CA0006.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:b7::16) by AM6PR08MB4658.eurprd08.prod.outlook.com (2603:10a6:20b:c4::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Fri, 30 Jul 2021 10:22:53 +0000 X-Received: from DB5EUR03FT042.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:b7:cafe::51) by DB6PR1001CA0006.outlook.office365.com (2603:10a6:4:b7::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.20 via Frontend Transport; Fri, 30 Jul 2021 10:22:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT042.mail.protection.outlook.com (10.152.21.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:53 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:42 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:42 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 03/13] MdePkg: Rename SBSA Generic Watchdog to Arm Generic Watchdog Date: Fri, 30 Jul 2021 11:22:31 +0100 Message-ID: <20210730102241.508-4-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 51eb1dff-5adf-41d0-42b4-08d953440296 X-MS-TrafficTypeDiagnostic: AM6PR08MB4658:|AM0PR08MB4516: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:854;OLM:854; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: cARzwQdWqVXAekPlQ7RUNszl1T4gg8g3Yc9D4lGfZAZvdARGyK5zcqJDxxmBZJemP/7IeYGQfWxNu0GAqykMUM3CE6usUjoZt7CqEGG8KlElHnsNY2hrN68FNuKUshZXPXnH7E6nL1uuKzjR9l50BlFNLH8t7UGGCe0g4IbTvrh8pWOkbuVFKBi0bYy6+xZw3ryquq8vUmXAwHPeb647JpXxrBHpC+ZvVPqKqcMt9uMPzgZGCpbApr1PSOWVQ1UAlQByyF0Nq4K2PB7fCa4ya/l+Q+iBKnbkwdf5HZQ6+3mGEuNKOMcmBEENiZrt4fNsuCcwyu6A/NVGofbCTXhU4hzideXdY0bdFOJoPmXwVPp++yN8MLx0BVY0CN8ZifYuO1wdirXTzwktvjeLfpS3cJAs80w6Ux6HzqZYIIAiBIQXOakYysfvj0NU80xX1hhgFYzqjpV0aFI2JYTJI7fjx4munRmOGEWdY0Fj5VvGICvZ/mGwWfF8ejAHiu6TvwMiKNrTE5jD8uotYKA1tTHwkLtSCxxeK1DXJ5Ao0AgQ8aXOZX4tojnOBG9uaFhoGJapcKhSqXyaqR3Mh69XVxVrifxZW6wPOUv3bQ2Bn/neIAUQvUSmovES9Ft5+CEsMuAy6TbEIK+9uRoC4Fas8a5Zj4QXeVPez0vp1o7fybJlcY8/R7SFsUYX22xFWuIfXGX2gHn0JtVDlHQT2+7FfWG852Eb72fm6OvUfyhMrRh6hZKdTqOvsEO2iXGGjWjxg0cZ53QFNptZ73I4WGo9jHJ6/TFHTmBlnEUzCGozigZgT62HMlVgUdyXoPLtwFPzws6EzSmZAg8d3ggtQaMRYMKvK/vFzUB9jLd0H7nSJ9yZSQhLPlTf8elqS+T2AP6sgve7 X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(136003)(396003)(39850400004)(346002)(376002)(46966006)(36840700001)(426003)(7696005)(36860700001)(83380400001)(8676002)(2906002)(4326008)(316002)(8936002)(6666004)(336012)(54906003)(82310400003)(81166007)(2616005)(82740400003)(356005)(86362001)(6916009)(19627235002)(1076003)(70206006)(70586007)(186003)(16799955002)(478600001)(47076005)(5660300002)(36756003)(26005)(41533002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4658 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT063.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: af353ac1-eba6-4adf-a2db-08d95343fd99 X-Microsoft-Antispam-Message-Info: /l5vtgnN37WvMn7tn6sLN5bdmxMTxPaGthUCIVcYrkka04lVRzuu0ACG8lv4C9A0/Y7M+QWNzwxjgP19tQ2QRclMgmz1oTqm12FD7IVWWVN9SQLQkJildvez8j7B7DZwc7CG+E5TkUjBNeKCJI7mDSgalMkDthJT21g0EDOW6KLUaYJvmMT27t7+ZIfK4hVJHradAyups3WfYRXEsT13AxU4IXgSGRfpwM1QFgDWpRy6FDpn11u7JKVeuDuvVfgjYlI98PYbIhV9wDbG2zVZoqnmlDqaO33k1UNQnJz4FHrUiCrvQzazxeGpt5AR3uOzVbGQeCDDt65aJeOgfkOby0WUmZLTpzCz0545RqOZ/kIy6dgv0STSp90ZGoAKVuboO7fTYiqNofIbXjCryG28xDV1m3ixGM7OCHOGHT982b3NkLTmTUQdsDFKKj3vB+NRqNSdqcTcTUyYe8MUzqheVss7HCmVgXHsRwDzbYup6vM7ZGfxctROc+fSpUBSpKmt/LmXMeC+2z+IHZCmsfRsCZ2855rSp0fzBuSY1vCfB65zNYMYjDdrQoae0pxfjaptcj1+WKUxPXkCoxIMQBNC4ziueW+TQXmKbP9oL3WV4oxWafrvN6/CSYkdngcDrlMBq6qjiLXmzwY4ky2V9Tc+F4nTKi+cIc7nFy+lCtlbhRidqQphrQ6+hwccHwcZ6GGZpvfWKNtoga3nNFd2rbfzLxFlbs0fAw/bm0BxQA46MnVhh//CEMmmm1AmjDONF6ry7EkyQctoZLhlcdEKuEsvYIF4GFZTSjcF8bvNRsNyg0E4P7YDxqTqO6r0PSEEDYNUbMJ65MnjB4tSEAFiPgfhlwoKVxt+VygltCsU/mXFDO4= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:23:01.5409 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 51eb1dff-5adf-41d0-42b4-08d953440296 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT063.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4516 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: TKldzDHTOwBoq6uIsMIAZh1ax1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640588; bh=sgEgM+Z+qbTgnYILVWb42dsH4KBv1ZPlyeG8a6p061s=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=QhNk8cFKaH5TjSz1xo3pUpiSlaMTZaTcdxjatHGa6rWuc2uCfOUWlDFp+mqDok8oJOe +d+ZonX0mHJDYN6uI2wFZni9oKJQ8lucHo1qpgXWXd0RhiBLBE5DL/y6TlxNFjDuV3Pzh EwdKdLsUwlDDBsBdK0N20b4Mi1dFbnE/FlQ= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640589094100013 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) Make changes to ACPI 6.4 header according to the latest specification: - ACPI 6.4 January 2021, Section 5.2.24, Table 5.100 & Section 5.2.24.2 - Mantis ID 2126 (https://mantis.uefi.org/mantis/view.php?id=3D2126) Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi64.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index 5a0e5b29c7e41cfa03ebc28e306719762b72b76d..9a1339c78e915d451847190ec70= 00e4961b6cac5 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -1373,7 +1373,7 @@ typedef struct { /// Platform Timer Type /// #define EFI_ACPI_6_4_GTDT_GT_BLOCK 0 -#define EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG 1 +#define EFI_ACPI_6_4_GTDT_ARM_GENERIC_WATCHDOG 1 =20 /// /// GT Block Structure @@ -1415,7 +1415,7 @@ typedef struct { #define EFI_ACPI_6_4_GTDT_GT_BLOCK_COMMON_FLAG_ALWAYS_ON_CAPABILITY B= IT1 =20 /// -/// SBSA Generic Watchdog Structure +/// Arm Generic Watchdog Structure /// typedef struct { UINT8 Type; @@ -1425,14 +1425,14 @@ typedef struct { UINT64 WatchdogControlFramePhysicalAddress; UINT32 WatchdogTimerGSIV; UINT32 WatchdogTimerFlags; -} EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE; +} EFI_ACPI_6_4_GTDT_ARM_GENERIC_WATCHDOG_STRUCTURE; =20 /// -/// SBSA Generic Watchdog Timer Flags. All other bits are reserved and mu= st be 0. +/// Arm Generic Watchdog Timer Flags. All other bits are reserved and mus= t be 0. /// -#define EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_MODE = BIT0 -#define EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_POLAR= ITY BIT1 -#define EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_SECURE_TIMER = BIT2 +#define EFI_ACPI_6_4_GTDT_ARM_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_MODE = BIT0 +#define EFI_ACPI_6_4_GTDT_ARM_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_POLARI= TY BIT1 +#define EFI_ACPI_6_4_GTDT_ARM_GENERIC_WATCHDOG_FLAG_SECURE_TIMER = BIT2 =20 // // NVDIMM Firmware Interface Table definition. --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78415): https://edk2.groups.io/g/devel/message/78415 Mute This Topic: https://groups.io/mt/84547379/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- From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78410+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640580217395.10309062714146; Fri, 30 Jul 2021 03:23:00 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id k5AQYY1788612xQHmE4Q1U1w; Fri, 30 Jul 2021 03:22:59 -0700 X-Received: from EUR01-DB5-obe.outbound.protection.outlook.com (EUR01-DB5-obe.outbound.protection.outlook.com [40.107.15.59]) by mx.groups.io with SMTP id smtpd.web08.22483.1627640578871843111 for ; Fri, 30 Jul 2021 03:22:59 -0700 X-Received: from AS8PR05CA0027.eurprd05.prod.outlook.com (2603:10a6:20b:311::32) by PAXPR08MB6592.eurprd08.prod.outlook.com (2603:10a6:102:158::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.17; Fri, 30 Jul 2021 10:22:56 +0000 X-Received: from AM5EUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:311:cafe::b8) by AS8PR05CA0027.outlook.office365.com (2603:10a6:20b:311::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.20 via Frontend Transport; Fri, 30 Jul 2021 10:22:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78410+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT018.mail.protection.outlook.com (10.152.16.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:55 +0000 X-Received: ("Tessian outbound cee5995f7b16:v100"); Fri, 30 Jul 2021 10:22:54 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8d342ea10a96a5a3 X-CR-MTA-TID: 64aa7808 X-Received: from 36ef930de554.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 585D4F55-F316-445F-A204-5B3097AECFEF.1; Fri, 30 Jul 2021 10:22:47 +0000 X-Received: from EUR02-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 36ef930de554.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nS1/aNtH01WMsi5tvSOa+lrGZLzc+ixtFEFu5DRwNhLc99CjpMVrp6kIS3S2Sua/eQvPyozNDLGRMwq1Wm/5aHCrdet3mD2eF7qEqzGCIrsMBw/2HxMXW38WWhXEQNUmdRsDHjIJsPxBJE6nWlaxhRGLpEWYa0lzjAgvGWuFyjTmoTt3u50qshzPcpfzAKMepuuev+9C3jZpTFNCqOrsDkzJwtsyqPrNZ9f/w+p46Jplurw8xbRpbiVFjjj4CRGAlQKVnNmgWL+xuV2+bMWi6ALvnP2zJI/kbvwLVbqf+YeCFyvJ1AFtZjOACBaTEFHW873qGM0kopnU/UkZcal5Bw== 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:X-MS-Exchange-SenderADCheck; bh=fPZZ7VoWGM5OmgXOcAF+TUjVwQzd2CXIhospvRkdN40=; b=XFcnr0rUPXbd3i2+iHd34VPsAvLrHfbgo+cP9gkJxqA4/JhIRCJm+H0/HjvEN1CO8bRvn0lXL7TcGuD2Dn956J0Oi5487Fi7F1pUQGpZTLapyLZXDsMcfFEiMcwnT6L7LrGirp14cZ7OtYeRHzleRTq6102VbE9v8Ij5Iu6hsTR/A9gN4WCaEOwXdYpsfkVMvvC9fi54EGvRcfdm0dxCSKvyGhvi7hjGwkB37tgO7k0g3Ehgv9Zcf2it6F+UPJhT4L+N8rsLP7kjwLb8E9CmjJBRHKtMou43BaBLGzxTsdJFFAWRMTy6UZA+ZxqIvm5ktO3JrHHf8OwWLgbdSZ9LzA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB9PR05CA0012.eurprd05.prod.outlook.com (2603:10a6:10:1da::17) by AM6PR08MB3176.eurprd08.prod.outlook.com (2603:10a6:209:46::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Fri, 30 Jul 2021 10:22:45 +0000 X-Received: from DB5EUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1da:cafe::3a) by DB9PR05CA0012.outlook.office365.com (2603:10a6:10:1da::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT025.mail.protection.outlook.com (10.152.20.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:45 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:43 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:42 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 04/13] MdePkg: Update PMTT to ACPI 6.4 Date: Fri, 30 Jul 2021 11:22:32 +0100 Message-ID: <20210730102241.508-5-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b2611a6f-a361-4335-a477-08d95343ff1e X-MS-TrafficTypeDiagnostic: AM6PR08MB3176:|PAXPR08MB6592: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:4125;OLM:4125; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: pHJTLHOU41yOK1AJlWCSFzXUD0jvDcLc8ZpoBjqAjXHMHwgCtY9FSV24QHdrZseQcG0HxROuS4tHk1N00H2BTc3bMSkgj3ngXYxolWuxnCQJK2BMJvtton3xi5Tb7GAkce7tGbpMvtLf/GwjnmKsurPjHBx1pV52zG7vQ01QlAgH01X7wMSUFk8qca7YAI67MpfTfw8TAZ07DonfU+dBcH2XLQkfnmi9rVJ0VcYM+Fz3UeP+xBN7zeSrqBYZnSix20ck2D2gmhLKTbD3yxdoI09t2X470VqBZ569JdyMW5siT05rFGJGqMlZKxF63nzlKtQxnFbvXDIMxFwRzfZ4AHld3p/S960xAoKe3GefzSfR+L1u/d0nHccsYW992TOWRPs4jrY/gzds8phu1RLwo0bzOpBXj4epxpsl9dRUW5qDDlc2kg84OE7jEOubhkhCYNMwzAQY93c4JkfFkXbvv2uO982uuiCgvvU2cfgu4PpSnPrssMuonoEiunvAjzxKEpM+yeouiSyJ82Q6tZ7g/GIqpyNvnZ4feFugkl//ke7SztH4ghPsBgpP6IdPqmPEM5GX37bW492HF1/TLS78WXDF5DGOJmjou8C6hykvJgD0KWVeTjdMllq3o92SqgP2/aUMn+4yxk5tVncdS2dDq0glK+3zAIwCiUjRCXH1WX3A6tA4BAilx05Ylff0QFFxa77ujCI1ahMGdspaKhI18J5MghCWmSMFNBPyND0xHkHeYt+3BdQEMX0CaAUZgJ+yuPCqe4JXxBHWQWvZGvjHarM9c5oQQbZVt27QVHnfdqyJ7KqVprAwatLRRPx+C53dL06uNSejZWz2oXHmhnIvT2v7aHYt+vg5h3pb0U2dOr0= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(136003)(39850400004)(346002)(396003)(376002)(46966006)(36840700001)(5660300002)(186003)(54906003)(316002)(6666004)(2906002)(36756003)(36860700001)(83380400001)(47076005)(70206006)(336012)(356005)(70586007)(82740400003)(26005)(16799955002)(2616005)(8936002)(1076003)(86362001)(8676002)(4326008)(19627235002)(426003)(6916009)(82310400003)(7696005)(81166007)(478600001)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3176 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 1587f91d-e00c-44e5-6bec-08d95343f8e3 X-Microsoft-Antispam-Message-Info: 27cbi5iqQ+ddaGDK9tq1/FULhpENkuEYcbh2HOOt8utRKo11Eru98hpalv/1odKrnfOKr+ferpSyCOtYp071ntJYWnykXjUEecNdJK/vgcjkXh4+TLPUx++kRoT0xyIadrsucZ+jNmYL0XTLdlzyzWM1PRzPYFSbdNVqEjncy79f7sUm8V/EqCkS6+wChhBi1berpJL/RuQgZEeErbyNf6ogALEWrUKKmLrw0UR/gormMBJq5NMIwGYYyHU6rFNktMISDLYpUVOLtXP38e69UMAqiF+WxEVFh/8nhAHSGwduFVG4r/e96DW0h3LPCF/L5xU3UtSe15N6oCOvG0QZSArpRKh3PI6LlSEYz4OXdIs7qevLYYIC8wM5zXIp7owYUHnKjz7u+nXtQpd1ARAdjUWposUwVTo6AeNdeoCegyzIXzwhnYEBtqHQulzRuTtRHDo9TcIoteM5P1EUKDyMwK0RuYakBa+5v4QN7LmosTYQDpEfNr91USF+lDuzNFO7CQGTtDGNZlZRT6v5uVzbNF/8UginCapQUEjMdspK9ePy12nS9FLFd17dEEa0v6h8q8WWBNlTVKybTzL41VOYIcztS8Qq2VQuOmAbHggG1TD5vu/vdIYo5Y7/1YSAKsJJ/NJAQjbZGP4E6tKDhz+veVSLRG/UKQ3PiEI61QI0Z2gA+xZEKYUu7Kc0Q9K/FSHZkxeX//eHPVKfQMzNeNQGkrUh1jp4dIXp3jzV5ca/cZEPeAGQxUGNBJmRiRayJhzrM6DOi30dFJ0XqtRF+7ubZqxEvC5vM/XjvE6EAwq3O32Td6v+FlSiwtjeXBuVRuee X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:22:55.7138 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b2611a6f-a361-4335-a477-08d95343ff1e X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6592 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: 2PLVN4vuSHTrnCgppgKxLl67x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640579; bh=+3PKUR6NE35WApjqOx+AetxPEG3sEg746nEODBdwmOY=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=pbjoNgmRhCws+oNAUgemoUi7MBFKNwEANhq1JVG0I/tAbLZ+0EMfEEJmM22jdQ3wIF4 NuqAsBliqImNUCFXxFv0WFS3kb8N+M+dcFhKYAzSehIg1JaI6XLC2LP/amJYaV/R56weJ HnkMiWFs8/OTggHUAiIn7ooEJ35JS2tWVWw= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640580615100002 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) Make changes to ACPI 6.4 header according to the latest specification: - ACPI 6.4 January 2021, Section 5.2.21.12 - Mantis ID 1975 (https://mantis.uefi.org/mantis/view.php?id=3D1975) Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi64.h | 89 +++++++++++--------- 1 file changed, 47 insertions(+), 42 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index 9a1339c78e915d451847190ec7000e4961b6cac5..e66e1b5a7ab25daf690ef4b21d6= 65fb88d15e8ab 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -1014,73 +1014,78 @@ typedef struct { } EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_TABLE; =20 /// -/// Memory Topology Table definition. +/// Platform Memory Topology Table definition. /// typedef struct { - EFI_ACPI_DESCRIPTION_HEADER Header; - UINT32 Reserved; -} EFI_ACPI_6_4_MEMORY_TOPOLOGY_TABLE; + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 NumberOfMemoryDevices; +//EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE MemoryDeviceStructure[NumberOfMe= moryDevices]; +} EFI_ACPI_6_4_PLATFORM_MEMORY_TOPOLOGY_TABLE; =20 /// /// PMTT Version (as defined in ACPI 6.4 spec.) /// -#define EFI_ACPI_6_4_MEMORY_TOPOLOGY_TABLE_REVISION 0x01 +#define EFI_ACPI_6_4_MEMORY_TOPOLOGY_TABLE_REVISION 0x02 =20 /// -/// Common Memory Aggregator Device Structure. +/// Common Memory Device. /// typedef struct { - UINT8 Type; - UINT8 Reserved; - UINT16 Length; - UINT16 Flags; - UINT16 Reserved1; -} EFI_ACPI_6_4_PMTT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE; + UINT8 Type; + UINT8 Reserved; + UINT16 Length; + UINT16 Flags; + UINT16 Reserved1; + UINT32 NumberOfMemoryDevices; +//UINT8 TypeSpecificData[]; +//EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE MemoryDeviceStructure[NumberOfMe= moryDevices]; +} EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE; =20 /// -/// Memory Aggregator Device Type +/// Memory Device Type. /// -#define EFI_ACPI_6_4_PMTT_MEMORY_AGGREGATOR_DEVICE_TYPE_SOCKET = 0x1 -#define EFI_ACPI_6_4_PMTT_MEMORY_AGGREGATOR_DEVICE_TYPE_MEMORY_CONTROLLER = 0x2 -#define EFI_ACPI_6_4_PMTT_MEMORY_AGGREGATOR_DEVICE_TYPE_DIMM = 0x3 +#define EFI_ACPI_6_4_PMTT_MEMORY_DEVICE_TYPE_SOCKET 0x1 +#define EFI_ACPI_6_4_PMTT_MEMORY_DEVICE_TYPE_MEMORY_CONTROLLER 0x2 +#define EFI_ACPI_6_4_PMTT_MEMORY_DEVICE_TYPE_DIMM 0x3 +#define EFI_ACPI_6_4_PMTT_MEMORY_DEVICE_TYPE_VENDOR_SPECIFIC_TYPE 0xFF =20 /// -/// Socket Memory Aggregator Device Structure. +/// Socket Type Data. /// typedef struct { - EFI_ACPI_6_4_PMTT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header; - UINT16 SocketIdent= ifier; - UINT16 Reserved; -//EFI_ACPI_6_4_PMTT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE = MemoryController[]; -} EFI_ACPI_6_4_PMTT_SOCKET_MEMORY_AGGREGATOR_DEVICE_STRUCTURE; + EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE CommonMemoryDeviceHeader; + UINT16 SocketIdentifier; + UINT16 Reserved; +//EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE MemoryDeviceStructure[]; +} EFI_ACPI_6_4_PMTT_SOCKET_TYPE_DATA; =20 /// -/// MemoryController Memory Aggregator Device Structure. +/// Memory Controller Type Data. /// typedef struct { - EFI_ACPI_6_4_PMTT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header; - UINT32 ReadLatency; - UINT32 WriteLatenc= y; - UINT32 ReadBandwid= th; - UINT32 WriteBandwi= dth; - UINT16 OptimalAcce= ssUnit; - UINT16 OptimalAcce= ssAlignment; - UINT16 Reserved; - UINT16 NumberOfPro= ximityDomains; -//UINT32 ProximityDo= main[NumberOfProximityDomains]; -//EFI_ACPI_6_4_PMTT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE PhysicalCom= ponent[]; -} EFI_ACPI_6_4_PMTT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE; + EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE CommonMemoryDeviceHeader; + UINT16 MemoryControllerIdentifier; + UINT16 Reserved; +//EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE MemoryDeviceStructure[]; +} EFI_ACPI_6_4_PMTT_MEMORY_CONTROLLER_TYPE_DATA; =20 /// -/// DIMM Memory Aggregator Device Structure. +/// DIMM Type Specific Data. /// typedef struct { - EFI_ACPI_6_4_PMTT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header; - UINT16 PhysicalCom= ponentIdentifier; - UINT16 Reserved; - UINT32 SizeOfDimm; - UINT32 SmbiosHandl= e; -} EFI_ACPI_6_4_PMTT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE; + EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE CommonMemoryDeviceHeader; + UINT32 SmbiosHandle; +} EFI_ACPI_6_4_PMTT_DIMM_TYPE_SPECIFIC_DATA; + +/// +/// Vendor Specific Type Data. +/// +typedef struct { + EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE CommonMemoryDeviceHeader; + UINT8 TypeUuid[16]; +//EFI_ACPI_6_4_PMTT_VENDOR_SPECIFIC_TYPE_DATA VendorSpecificData[]; +//EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE MemoryDeviceStructure[]; +} EFI_ACPI_6_4_PMTT_VENDOR_SPECIFIC_TYPE_DATA; =20 /// /// Boot Graphics Resource Table definition. --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78410): https://edk2.groups.io/g/devel/message/78410 Mute This Topic: https://groups.io/mt/84547373/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- From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78414+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640588136670.916348253528; Fri, 30 Jul 2021 03:23:08 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id xSskYY1788612xXb5iIyDW8P; Fri, 30 Jul 2021 03:23:07 -0700 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com (EUR04-DB3-obe.outbound.protection.outlook.com [40.107.6.45]) by mx.groups.io with SMTP id smtpd.web08.22486.1627640586026754756 for ; Fri, 30 Jul 2021 03:23:06 -0700 X-Received: from DB6PR07CA0177.eurprd07.prod.outlook.com (2603:10a6:6:43::31) by AM6PR08MB4021.eurprd08.prod.outlook.com (2603:10a6:20b:aa::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Fri, 30 Jul 2021 10:23:03 +0000 X-Received: from DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:43:cafe::fe) by DB6PR07CA0177.outlook.office365.com (2603:10a6:6:43::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.6 via Frontend Transport; Fri, 30 Jul 2021 10:23:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78414+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT026.mail.protection.outlook.com (10.152.20.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:02 +0000 X-Received: ("Tessian outbound 69e1fde53269:v100"); Fri, 30 Jul 2021 10:23:02 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 24aa1ace2795562e X-CR-MTA-TID: 64aa7808 X-Received: from 729c8742cc25.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A5633EA5-B9ED-43FA-89E1-201497941B25.1; Fri, 30 Jul 2021 10:22:56 +0000 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 729c8742cc25.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UOW2D9/CHdV0CPATUjWzKfLV0jmzV8B0gGNg9VYiapmYf3JAkIGli6NWCOpY/Hk++fGl45UpTWTL+cfi230B8zIJRf/5zFg/Eg6P8/zJX3QNOkdhe1pPqq3HtkYK9AwKqjE4B+uowZ0syfs3GPlOetrR38nH9F72P3Uo9+Weg3Qx/46a8aZBP/5t2xIzV+LIzZyBdaXvuMQF72c6TloZTjN3ZbBKuqrwuipqtdDKchqklM9tBRuAf4WFXlyUMak22Z4o6XHzg99nbZs7bEousTm5nd5vi3TRhIOVLYfJQiOhilmxkM0oj3GN6iYucpAgabsXNFQqoU9iAQM9tOif9A== 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:X-MS-Exchange-SenderADCheck; bh=z3pKe+1b11ifAAYgrqsyvl6cpzR0eFI9k9sRrfg/F1k=; b=Qf1oPEgP6aboc4+37q1oNDiB2sbDctIk68397x9Wr66pLC7ghrEAaBK7H3Uw1+7jJ/bnDtPrmRxm8N6VUpQSG0toWOhdgl6OUEVl4zPzOmm/m51D10A727VL51o1yFy7PrVcAOqLLzpjBvglV4phG7nZUWDsEebzvxG3zC7naByzvBlQHdCS74DKRA4D7UWre3MrDTKW81udGT8qQVlRT4gAS7+GF+jhy43zUwWAuaJxLzqJx1BE7erwIyMLo/jfpD1sz5y9xfsBduBooPHzFdQknY3v8Z9xWq3Bcwx33WCQIdckct/Ik5gd6mcsy5ce4FPUigkWtmJK+TWJdscCWQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB8PR03CA0001.eurprd03.prod.outlook.com (2603:10a6:10:be::14) by AM6PR08MB3463.eurprd08.prod.outlook.com (2603:10a6:20b:42::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Fri, 30 Jul 2021 10:22:54 +0000 X-Received: from DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:be:cafe::1e) by DB8PR03CA0001.outlook.office365.com (2603:10a6:10:be::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT016.mail.protection.outlook.com (10.152.20.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:53 +0000 X-Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:43 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:43 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:43 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 05/13] MdePkg: Add SPA Location Cookie field to SPA Range structure Date: Fri, 30 Jul 2021 11:22:33 +0100 Message-ID: <20210730102241.508-6-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6eb518b0-6e55-4314-4439-08d953440354 X-MS-TrafficTypeDiagnostic: AM6PR08MB3463:|AM6PR08MB4021: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:309;OLM:309; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: xsuSqvcw5d6upXzdDOgUbdJs9xsINpNFoHfn0L1KHwZlwHfpNEyxDQbpHEjaIrJXBJiWOgn4MPIJKWjhqGBxuBVtFffJ6pSEjikgplSJCzFU/JCKrZAUmc2ZfhwHlraTrDuUubTUSz/ZnxN+pu9sZKZeEC33dqVqlkwWSDoLHvkHUS5aOi65YOgSwM5UbJBTMjcmviHp/WYWLqoWuKvi3fxiu8GR4HV/pwhjAzZSvxCn3VbX99PjpJYTkLXaBa/d0h0grM2/yrkVFMUSMRzIvY6g4ahbFIxnqtFjE0tFGWWyGb/ZMbj6RC/grKpKRPnMb8slBNYcmVdq8ZZL2XiAfV+VvGMYIVMnueaXnKoj6JC/+/SHp2vUA1S/lnc+aTfSQK8PpoYRtqRPFTuwH3rTF/cDS2feOy7FHThpRkY3JzJWKma7+6IDMe5FecaNG72wZDva12KQ8ClIEgoof5bzqb9w3izdkPSD+4Qf465idpVYvhIetuFHzVygSpcxWkI/8lsnYps2zweMb90SCIuFvigow7ulQKOBC1+spg9hnViz7+55AqN7E+Yhv8wVev0YNO+wcWMweu3OlRHIzBqnXq/yXK7eYLOwWFnUhAEmQG/O4NxmKkL+BaBDHMJg/oiXeN+3+qeQ1h9/EnXulPZnjofgemjiJo0a/XI6y+6HOmzN6Dbw2R44HiiXf0uc5dc7PX5Ha6vZG46XARCGfRqmXF4Yi2qEF/C3GuzNi0SGQQdaoZWsWzVFUv5wOTHZjHJXISrzKHFVDXZ6e/5NITTYnW6qVLL2f+0bSePRkB6rkfflnWJyF7GroQP3ZaMU+sm/KeMM3kt3Q+bg9AhUPjbAndrhTOOALM+8bSmNnCn/F2s= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(39850400004)(396003)(346002)(376002)(136003)(46966006)(36840700001)(36860700001)(426003)(316002)(6916009)(86362001)(8936002)(2616005)(478600001)(186003)(4326008)(16799955002)(7696005)(336012)(26005)(8676002)(19627235002)(5660300002)(70586007)(1076003)(82310400003)(6666004)(83380400001)(54906003)(47076005)(81166007)(36756003)(2906002)(356005)(70206006)(82740400003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3463 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: d35ca8e8-11c2-41e3-4cb8-08d95343fe0f X-Microsoft-Antispam-Message-Info: /t6Z7JqCNapYEZh9Acb2oN7/CfCHPiwGEt0PuWOlfwpkpGU/80axpfLvdbNCKFsO14JyxZ5RyrsQSdIRZazt+iczDsdRyuOzUIdW3EZ9qMVHFxDPmBxmwxc+1y1+yWM2w0O7jaUP6xGzU9a/o0VmPS3r1EykCFRQFisWeqCnQTFJyhHxFwnJYtjLBu8HzyYwrIvMSqTI37NHIkIM0eExmBbuVNj2e4ndqae5L0yBBxUHwaVpXkZqjHsG5Bjy9zN7tK2rFElG2sGg8nN5lSh+AOcjMr6tapkipSIQQaiySgHmuowOFxgy7YHrjmydokpbn053FrNu+FU+ji+AtU7ejFKM/TO5eqzZ9pFuBoweNorj9uPv+jbe/aPIQmdJgzcouWPGegUTG5lK3u1Sc6bKAXRuroLDuibHj1RqbXwGXy/KhtCRjLcVxHfJB7GvWOi7CEaSpfkSmDmZBJJ7lYIWzCZGhz+MZjc9DpjEJUIJUYCfaq5SjLv5K6d87prOIdE3cRm8PttRiMQIqD2HXQGh5RCY12gXKcWWbWgBJvatx3I6OHeHePj0JKT0oHuK9g82/9rhNQ5XgBAvaR8uX3ioVTVMddi3ePMUePhhHTdfqhWqOyDZsyfaXYb14xHmBuFpGq2uMpd7cPvksUx2svhA3iPv+bZ43quK7wdl+RUuF/PpSZ1HQUCQq7kD70XydG9wQlSuhD8s1BLV5cFVXeWwCyDeW33xNyKFmOZePN+0VBFvYlT9pLNhKRv3ZqEXxl2zq+HdhQDbRbp+0Ejf93YTjws3v5hwHizf/Q/ZlNvAdnLlYP44D7Cineq9Gvm5prXY X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:23:02.8301 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6eb518b0-6e55-4314-4439-08d953440354 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4021 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: 9MIlQbSJxMx7uGCLlCM8i1LCx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640587; bh=S12aphQQIWPqm3ZZlCK0QvBoAtucyUrosISMyHU5xxA=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=aqRwdlTQm8whSJ3IRvzpsNZznhE6KCu7QSONRLtz4a6sxKw3UrnazKi6hN/iWa6mctV 8y+NeppiSo17TmI40BEOmWuGFBE8Y9y8hVFXp3S+QUkhQ1x9jzEpM8ZNiwwKXP/H5fZ0r qqQYOTkgxZeZWRcGFFoNhj/dUb3SUKuojFA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640589090100010 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) Make changes to ACPI 6.4 header according to the latest specification: - ACPI 6.4 January 2021, Section 5.2.25.2 System Physical Address (SPA) Range Structure, Table 5.109 - Mantis ID 1988 (https://mantis.uefi.org/mantis/view.php?id=3D1988) Also added a blank line between #defines and structure definitions to improve readability. Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi64.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index e66e1b5a7ab25daf690ef4b21d665fb88d15e8ab..1e9634cb6d377bd57be6c03b0f1= cccbe4a5106f3 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -1476,6 +1476,8 @@ typedef struct { // #define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_CONTROL_REGI= ON_FOR_MANAGEMENT BIT0 #define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_PROXIMITY_DO= MAIN_VALID BIT1 +#define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_SPA_LOCATION= _COOKIE_VALID BIT2 + #define EFI_ACPI_6_4_NFIT_GUID_VOLATILE_MEMORY_REGION = { 0x7305944F, 0xFDDA, 0x44E3, { 0xB1, 0x6C, 0x3F, 0x22, 0xD2, 0x52,= 0xE5, 0xD0 }} #define EFI_ACPI_6_4_NFIT_GUID_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_REGION = { 0x66F0D379, 0xB4F3, 0x4074, { 0xAC, 0x43, 0x0D, 0x33, 0x18, 0xB7,= 0x8C, 0xDB }} #define EFI_ACPI_6_4_NFIT_GUID_NVDIMM_CONTROL_REGION = { 0x92F701F6, 0x13B4, 0x405D, { 0x91, 0x0B, 0x29, 0x93, 0x67, 0xE8,= 0x23, 0x4C }} @@ -1484,6 +1486,7 @@ typedef struct { #define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_VOLAT= ILE { 0x3D5ABD30, 0x4175, 0x87CE, { 0x6D, 0x64, 0xD2, 0xAD, 0xE5, 0x23,= 0xC4, 0xBB }} #define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_PER= SISTENT { 0x5CEA02C9, 0x4D07, 0x69D3, { 0x26, 0x9F ,0x44, 0x96, 0xFB, 0xE0,= 0x96, 0xF9 }} #define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_PERSI= STENT { 0x08018188, 0x42CD, 0xBB48, { 0x10, 0x0F, 0x53, 0x87, 0xD5, 0x3D,= 0xED, 0x3D }} + typedef struct { UINT16 Type; UINT16 Length; @@ -1495,6 +1498,7 @@ typedef struct { UINT64 SystemPhysicalAddressRangeBa= se; UINT64 SystemPhysicalAddressRangeLe= ngth; UINT64 AddressRangeMemoryMappingAtt= ribute; + UINT64 SPALocationCookie; } EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE; =20 // @@ -1516,6 +1520,7 @@ typedef struct { #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_SMART_HEALTH_EVENTS_PR= IOR_OSPM_HAND_OFF BIT4 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_ENABLED_TO_NO= TIFY_OSPM_ON_SMART_HEALTH_EVENTS BIT5 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_NOT_MAP_NVDIM= M_TO_SPA BIT6 + typedef struct { UINT16 Type; UINT16 Length; @@ -1562,6 +1567,7 @@ typedef struct { #define EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_VALID_FIELDS_MANUFACTURING= BIT0 =20 #define EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_FLAGS_BLOCK_DATA_WINDOWS_B= UFFERED BIT0 + typedef struct { UINT16 Type; UINT16 Length; --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78414): https://edk2.groups.io/g/devel/message/78414 Mute This Topic: https://groups.io/mt/84547378/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- From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78418+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640590256457.08503294760385; Fri, 30 Jul 2021 03:23:10 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id cVoyYY1788612xOXtZFtrs63; Fri, 30 Jul 2021 03:23:09 -0700 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com (EUR04-DB3-obe.outbound.protection.outlook.com [40.107.6.59]) by mx.groups.io with SMTP id smtpd.web11.22213.1627640586842716091 for ; Fri, 30 Jul 2021 03:23:07 -0700 X-Received: from DB8PR03CA0006.eurprd03.prod.outlook.com (2603:10a6:10:be::19) by VI1PR08MB4334.eurprd08.prod.outlook.com (2603:10a6:803:f1::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.17; Fri, 30 Jul 2021 10:23:01 +0000 X-Received: from DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:be:cafe::18) by DB8PR03CA0006.outlook.office365.com (2603:10a6:10:be::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.17 via Frontend Transport; Fri, 30 Jul 2021 10:23:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78418+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT016.mail.protection.outlook.com (10.152.20.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:01 +0000 X-Received: ("Tessian outbound 69e1fde53269:v100"); Fri, 30 Jul 2021 10:23:01 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4688c56535f5464a X-CR-MTA-TID: 64aa7808 X-Received: from a9f5937b0de0.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 4D8BFB7A-F9E2-44FC-9F71-F40E86BD29C5.1; Fri, 30 Jul 2021 10:22:55 +0000 X-Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a9f5937b0de0.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fhSI4DCUbyBbG2DmRJWYbGRhqTeqvu/qK4b8If3g/hWj8ksNPQkaIKSTtYvQQYQxXvjMKsGTDO3JIlRuGhPGoZLkMHw7sPibl2WJ/Tmo3elDNUTgum3MZRK8tiw5QQTKTJ6P2qTQF02RYeGoJ9ur9ndydko/L30HBqcmWvy27cAIFptO0jXZ0fXwktcKmmqyx7IcRyWJ+gb5Ne6FJo0ytr1+Ej+6fGvOQMqBjelpIXxS0v6nJsdMlhdUEuQtRoU2ENfoLDoc8KkJsBk8SCGtg0fKjaq0owSRhGQLb4DRVcETApMqKSRa3lc45tikkcPVd0ttAToNxJjQWBRgjJcJiw== 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:X-MS-Exchange-SenderADCheck; bh=YScM38jZLC1HuXuh1KUmR0n6Jca6tz1jxzmC1/4Gz0U=; b=Tp5y3i7ytHcn7EKdP6DsjJFRm7+caAbyCG8lgSzAEq+z6lGzLOAgBrZKYqDrreAlCDKHutMan01aBzrNk90NJKosmPXZtP4/gTab/gXdeNphVVIQCSm3uUTmx4UWtpTwoayFDy1Bbw+XJ5dui4+PgJV6TN0TdYvWzul8OfCjyD4ZmStbIlT7FhXTqsyixXZ77iLImywyD6kBx2ieFvLa09x9tdX5a7DBUYP9ddR/XuCSidGjdMJZKSnQ7FAiE+oa2b8KNt6zXIhx7gAJNvGaylFJ5N7ge+Cf1EmIrBup8jZitQ8CyAeEXfFi4LRwcXUDl2RBNJ++N5xBDw8jQMbmcQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB8PR06CA0018.eurprd06.prod.outlook.com (2603:10a6:10:100::31) by VE1PR08MB4655.eurprd08.prod.outlook.com (2603:10a6:802:b2::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.19; Fri, 30 Jul 2021 10:22:53 +0000 X-Received: from DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:100:cafe::f) by DB8PR06CA0018.outlook.office365.com (2603:10a6:10:100::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT008.mail.protection.outlook.com (10.152.20.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:53 +0000 X-Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:44 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:44 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:43 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 06/13] MdePkg: Remove DPPT table Date: Fri, 30 Jul 2021 11:22:34 +0100 Message-ID: <20210730102241.508-7-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 032354fe-9e63-412a-081c-08d9534402b2 X-MS-TrafficTypeDiagnostic: VE1PR08MB4655:|VI1PR08MB4334: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:3826;OLM:3826; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: w38B7M1/O8+Ro3EHUISUlRKfr70Xbr00yDhn28IqUSFMKYJgn81eOUOiRK/SYGY88wyFeCtEWKnVEv7/b6YVzmqOpfKsb5YGYSDWOs3FVxjR1MTK3r5ddwxnEabmZW4WxFT6yxQMPs/Kp5fT7HdfFsmfyvHJ3iyaLHIlL+ep6ZHeZW7dNdcoFOFLaGYVCh/E3J5dybXtdRaRRR1OCdedoNZmo//YaT6Hp4iwcqaf0/3nUiieXwrLnnT6hHibbv2EcQXWIuEROzO8EG23E1rsvIl2zAazszUbfmNoTNqDr+gJGQUocLjuRovOl06zI39BItjv4UamQbPSLEbdTVPr4fLJNAndTVXDU6c78g774Ce5MFFS66fG6wRuF0qjMYlfZUn0P52Wb6AYAc/+WLedzLlGi4iu3rDwsoAMD7g8ErxB/kdXjHkA/Zl5axbR6+FI1BN+a+YkoWoyfkvETY0cEKa0jxiKeC8rjk2XTAC0uztZEg3Xjcx1gtcunIjs5gTJwwW/Exgn5jqsTKREWQz/39XNQGdu5me1j5LNyWj53bHzk8xJD/QuvXojveGEcAi1B1T8/FJ/DxXucgwejDK6Hp4g0KaQNpY8fDshKI7aqR2Q89U0VjUtHndwAgeydehyTGCqwIPtP4Ga849P0zWCQ0AlZ/r9jrnG+/X/AGKdcgy44AEc5UnMT8ntKRHtGEkHkM1Z7X5G88D7lmCp7AH83k8CnrQ9FNszBb9n63MUVkPDlHQNS90xnAiU2rD+1kNrax8v0ySzlfyhkTFZsfbW0Nb0WHojcvBbEf2kWyR8kJ/yV+uQ4vYmHFIjwdtwwnfXcOApVKOtou4mMFQCGm2oxbWvvN/dK+fl9pmZLxRhiDs= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(376002)(396003)(39850400004)(346002)(136003)(36840700001)(46966006)(4326008)(1076003)(186003)(82740400003)(81166007)(83380400001)(6916009)(70206006)(7696005)(6666004)(70586007)(478600001)(8936002)(336012)(2616005)(356005)(82310400003)(26005)(36756003)(86362001)(19627235002)(54906003)(2906002)(8676002)(5660300002)(47076005)(36860700001)(16799955002)(316002)(426003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4655 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 39786e2c-bde3-410a-caa3-08d95343fdfa X-Microsoft-Antispam-Message-Info: ux3i3T3Ymq8YP279OiqOVBmvMbpVtgm/YJh5YwqQVcvTvHl50fPmQkQdX1gsxENS9mZKmwh2OCpjGZ50rJC2/c3xaTBoMw6ajMO/UswbD8OMufZ/eTg6YL0m/7mlR53jATmEgVbq0Q9mj0nVhJsqDJsICaa7h1bjbWnRZvud6P6h6otclN7tLQOQ/mYepMCsPG2KgF4UPgNYH+XEVz5wIN560NjiwNus7jKXfRffbiyr4dzgLiWCDCNUGoOL1OS2iLfmPvGTxjDLgMco7r1eK1JyGm1VzESASvRUyGUZhPEII27qVhaYUAyx6+atFCTnSx+5OZWqW047wDt4HeZcW92GG2ZsxNehqT9wPVbKeesxScs1CDmAtssDGt88E6KnFiUA4/90pLTO/AyA5BgDX66pFDgzo6MIH4r77PU26pdY3InhDjdCqPjVg8AtU1q66Pkij7YHF3TwLlAt5pviFRLqDZnGf0OoR9hpplm2VlZZLPnBOJWfEM1RU6HWhJ3dEcO05Q5mCrnV+m6o7zgil1hX6cqv9cHxSbqfCPUVGVRmwEl5lwmTReSkhBF54wWHx3nkRDjIKe8Gl1fJp5PtEpLHJ3w6RzAh9QQ5P6AknNtKdHThBPz/YtT5E4lgSWEJlw6K2ypXeT1OxAuB1KyloC/dHb0DJRCtUw5ykolm1IzgCEQNKZ7MSC9nMbhf89aInM3Dr+XL4rW6OHItjQMdNHfDY0KTc6yIRO5mTNLM3UqIPUfRI50iRLrO+kUEJ4TG3+uxtatdYZ3uf9BBFZnhwKyn05EjvoxfBNYvrjee7i3vhKbSO5TZ3d5IOWwwiDe1 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:23:01.7669 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 032354fe-9e63-412a-081c-08d9534402b2 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4334 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: rYoGGHJrT57ggGvDiFGYsGSfx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640589; bh=bWskDeKXRIzTuxUmDjHrG7iGvq931mMYIRFhyTymw/M=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=dJEjYYjBM98UtmscHAcKd+m1QMENbU7TImlviqIBNnCEQUYaM6ZEtaSKSaq+WspzoSS +PrDfxuiKcUvV/t6ajl3GOzLXU2oSAYDCAw/Delxx+1ezBA+d6WcEFW4huVOB3hq3fAIe xXnuql/LWMczl51f1AGikMzX7OWHhjLvSjY= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640591249100030 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) Make changes to ACPI 6.4 header according to the latest specification: - ACPI 6.4 January 2021, Table 5.5 - Mantis ID 2133 (https://mantis.uefi.org/mantis/view.php?id=3D2133) Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi64.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index 1e9634cb6d377bd57be6c03b0f1cccbe4a5106f3..b8be65c5e1c861b2a85b81f585f= fdb40a178e368 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -2843,11 +2843,6 @@ typedef struct { /// #define EFI_ACPI_6_4_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M',= 'A', 'R') =20 -/// -/// "DPPT" DMA Protection Policy Table -/// -#define EFI_ACPI_6_4_DMA_PROTECTION_POLICY_TABLE_SIGNATURE SIGNATURE_32('= D', 'P', 'P', 'T') - /// /// "DRTM" Dynamic Root of Trust for Measurement Table /// --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78418): https://edk2.groups.io/g/devel/message/78418 Mute This Topic: https://groups.io/mt/84547382/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- From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78412+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640587177816.0710379475672; Fri, 30 Jul 2021 03:23:07 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 3ml2YY1788612xWiqn8VzRY2; Fri, 30 Jul 2021 03:23:06 -0700 X-Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.63]) by mx.groups.io with SMTP id smtpd.web09.22074.1627640585075023185 for ; Fri, 30 Jul 2021 03:23:05 -0700 X-Received: from DB6PR07CA0066.eurprd07.prod.outlook.com (2603:10a6:6:2a::28) by AM0PR08MB4324.eurprd08.prod.outlook.com (2603:10a6:208:144::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Fri, 30 Jul 2021 10:23:02 +0000 X-Received: from DB5EUR03FT044.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:2a:cafe::25) by DB6PR07CA0066.outlook.office365.com (2603:10a6:6:2a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.9 via Frontend Transport; Fri, 30 Jul 2021 10:23:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78412+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT044.mail.protection.outlook.com (10.152.21.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:02 +0000 X-Received: ("Tessian outbound 31e6e3649d31:v100"); Fri, 30 Jul 2021 10:23:01 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: f5df332b2b009906 X-CR-MTA-TID: 64aa7808 X-Received: from 32cb395d7473.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E7B7A329-7897-4E61-8C49-D6E1836DA5B2.1; Fri, 30 Jul 2021 10:22:56 +0000 X-Received: from EUR02-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 32cb395d7473.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F7pJPyxnwNFTZVVlhhLZ3thxWtbpb1bM1iE4p/YFTIEOyZ8Wjs6Vwn1JcW4cIXU2pondVk0ZWU5vhrK+wTZDhiY+wN5ZWKCDGZkzHtFbT5mFfLsH+U2DnxlR+13cmDLbKPUhlph9t6KQiNtECQkBgYkKLkz+4dSlDeQdSBVORdhcR3SpMhWBq8CngQEAn6gQolVgf2w9+J0fttn4YLv75oh4S2FcR7kVdCG4P4BznRK2unI/rmryb2jFuZ/KQwK6VxKLUr9dlg7phSJNwcMMFgUhBSf5baJZ6HSl0iVJuvZ9CT3g3e6tzwtNnw7trLpyC3lJIkRlksQIUDAkHz52rA== 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:X-MS-Exchange-SenderADCheck; bh=Ie2IcH+JHK3iOHDLlj4XMBvYRXsHSwgy9ihhpiKxFms=; b=SOYEu3QCYF6HyrA1JsIYN/agvA8F39ADl+yGbmGYgsdbeNH5p6r7sNL7QHOwFaEw/fG1nx1zrPgmVqrjuVlOeiyZ8VkbyTncRqjiyW6o2RwfPoRpLSrkuqW8dd5Rdjg4yYrPC+NXbloUCqUhP1vbTvMy2bYnL7X6YfSNKnTLwASfnBJKFfRwsmK3/o/t2yVrN0ACmPTiXwVMhe9pfsJIg1ZcNGCWJeVS/OqCL+VwEujAI+spbxpkYPdidS/2kEZujCyvhyjoPctli/5UuV1GWY/CMHSzLlGFNrSjdf3Ldi7zJCDRzC5OyUZoUuPdOiDmeFgrYIkVIlDW3Zh7E9XsVQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB8PR03CA0030.eurprd03.prod.outlook.com (2603:10a6:10:be::43) by DBBPR08MB4233.eurprd08.prod.outlook.com (2603:10a6:10:d2::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.23; Fri, 30 Jul 2021 10:22:54 +0000 X-Received: from DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:be:cafe::fe) by DB8PR03CA0030.outlook.office365.com (2603:10a6:10:be::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT016.mail.protection.outlook.com (10.152.20.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:54 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:44 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:44 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 07/13] MdePkg: Add flags and MinTransferSize to Generic Initiator Date: Fri, 30 Jul 2021 11:22:35 +0100 Message-ID: <20210730102241.508-8-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bff5697f-49a1-4e86-80f1-08d9534402d8 X-MS-TrafficTypeDiagnostic: DBBPR08MB4233:|AM0PR08MB4324: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:3383;OLM:3383; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: CCOzo5ZghQjwQYnMktS+axr8wJFERD9Y7gjszQZimZ4ghr7uf51clMRcqwPpF5NrU/+84zrbL6wPPSU9lcShPZb8AsnJkErzkiYYnlvy4NMrj0TM0wFOINJrJ5eZHBDm28PIvuxyO5Mko/W/MFVYqzGQbJVg0lLkQm1ltymY0zfD0DzCssrrOkMPGvaDjGXAyNDvogqLw1yPhbMFW9AQMM70qE3Pvt7DrjBqj7RT2tT1P3KubljoVitVlSIwJ9brymoTfZs7o9GuBBgNXSjwdEU5PeJxm3OPSzp745WAF/t+TKGUBr0zeIVyYeLnMspxjHmD/nfH4hY/AobWea2upwMgn9bPFSNAiscPMUnvirNMNezZbXj4sT5sLOduox9WCCY3jOMUbGu1FGz07mchv5yyrydUrlYtP1cYHkZPtnytYBJueR8H6GLNhky1Y8ugH/UPLV9xR4S5myc/sA8fVJf3/idoVeZacUSzkq7CQMiaONtoG4Bowy/skiD9cBzfZNrXWiIaEDpLIvSnpP0VpjznLzJep41HwncEolCFZLOfqEeeNRQCaBazQG2wz5pD3u9zYfroKex9nM12Vp9efCkmK6aC/JgFF8dGu8CogvBUBtDGn5YuOYmyWmVne2J8D3kPljd1Z8GsONxPJvoZK5pIDd9mRflruArdMDDx6lKsQOnGa2uy8HyjGKlFGpdMGTljv0Dzhzwt77I8eaj+BrKTHLOUxdEOTZVsbXvWs16JwYV7dCQn7+99l7ueEHrWN171Ay7nQ2VnRPRkeTerwnqlDP7xPP33lrqeh0zOV8bYsWKem1SbSpATvvS48uPn6zo/L6iVQakh3AU9bApu1itizDUJ1atmotW2ot362dRUVgYL5H5wAc3FvBHnLXgE X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(36840700001)(46966006)(186003)(6916009)(336012)(7696005)(26005)(83380400001)(16799955002)(19627235002)(5660300002)(426003)(81166007)(508600001)(86362001)(356005)(36756003)(8936002)(54906003)(2616005)(8676002)(70586007)(70206006)(36860700001)(316002)(47076005)(1076003)(6666004)(4326008)(82310400003)(2906002)(41533002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4233 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT044.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: de2ab2d1-0409-4c86-cb3d-08d95343fe63 X-Microsoft-Antispam-Message-Info: 3pX0w/FccnrIUVeWflbmrZAT/Z7Qk1c6WZF9s/sPamTmrxYNwjuxAcRQOjNqTrNBuTWhYO6z0IzdvrnETmlSycJQqp5FSNxQNEa5sVEtai9pl+PFoRH/obvuctgV+zaS80FRZz8G5v0a0zFqDa7OtxWdhVONThrLOoubX/QW/3kvscPXI8QErGSq48d3Phvl8OneeaRAWXlfm48aZjNBIskFgw6xaeNnlhtMnE8xOnqKh9503IkyjvSKh7AMD/3JMcbcc7PY7hZR2K6XzXQYpSFMJyX8SjIdTxp6EQnekVK07a/p1puIEwIwUZgCmelfBcJBy8fzNPWdVDNSGYpWLT9PlX+DiH/2axwrARGjRZqvbi7RktJbXEfOMDuT7QGXSu6r6rehBClUSRCuEiceIGGpaVCI5SLKfZQpbpt6Dp28VjvgkADJhwBh65zjQhRw/PxG3Hlj7+Io3ojc5eIP22MMdgwVVuef/+ODIBqeBxQwEslgjQKN1F17VHvYUinZU7PxLie/Zm6+b2U6/10wKRDozesWkzmUu0gkCfvzPoA85IsCDTn7/7n2YAnONEKi957bZcsIaxvKzarmDImPvPPxmGUqvD3Ef/Z8YyLhHGu3Np6MwS94HYRyszoTB71nV8yKe9OAJev8+2ANFTCQN+9G74DIlelNE1Dr5KTi1JCCRi++vgvQ/BRGpU4KpaYqf8cgJL0fg23zwbjTXNafsuPWk2iXLTckHjXjcefwWYhkXvPtLHTsRfb74HMhEgQRfgX1RzEECd0BhmxuYap0UIhimdP0cmCFVje3ZTV/kexi191wpPFouZOsZslSXsscUe6lVHmn6iOPvh82mdzUC1nf+Pc5Jmg8kiGYKNFPWQY= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:23:02.0190 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bff5697f-49a1-4e86-80f1-08d9534402d8 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT044.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4324 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: sN1oPhAWUXnPLXyGXTlxPrGsx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640586; bh=wUUIzcaVq4DlbcyApUaUjOCmHjV+FT2OUjFHRXYhuZQ=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=vSF1R/bHYm81Pe96UmrkrPHa7jvGC67Z+0w7JlY2Z23hGoTLsZ7CFGHKsU6grFTk3HQ 3AGXlZFDZxN4DoLuDKlVbMl61yFqu3fDgxk2ehARajk/Wf76lXCt4+0J5jpw4TBpU0GB/ Z0wWcTnc32/x2NgSr/Qufps40CHPBoyVFdA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640588978100006 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) Make changes to ACPI 6.4 header according to the latest specification: - ACPI 6.4 January 2021, Table 5.59, Section 5.2.27.1 & Section 5.2.27.4 - Mantis ID 1991 (https://mantis.uefi.org/mantis/view.php?id=3D1991) Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi64.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index b8be65c5e1c861b2a85b81f585ffdb40a178e368..ffa819d83a95ba55784a639b309= b8bac8263be6a 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -783,7 +783,8 @@ typedef struct { /// Generic Initiator Affinity Structure Flags. All other bits are reserved /// and must be 0. /// -#define EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE_ENABLED (1 << 0) +#define EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE_ENABLED = BIT0 +#define EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE_ARCHITECTURAL_TR= ANSACTIONS BIT1 =20 /// /// System Locality Distance Information Table (SLIT). @@ -2079,7 +2080,8 @@ typedef struct { /// typedef struct { UINT8 MemoryHierarchy:4; - UINT8 Reserved:4; + UINT8 AccessAttributes:2; + UINT8 Reserved:2; } EFI_ACPI_6_4_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_F= LAGS; =20 /// @@ -2091,7 +2093,8 @@ typedef struct { UINT32 = Length; EFI_ACPI_6_4_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_F= LAGS Flags; UINT8 = DataType; - UINT8 = Reserved1[2]; + UINT8 = MinTransferSize; + UINT8 = Reserved1; UINT32 = NumberOfInitiatorProximityDomains; UINT32 = NumberOfTargetProximityDomains; UINT8 = Reserved2[4]; --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78412): https://edk2.groups.io/g/devel/message/78412 Mute This Topic: https://groups.io/mt/84547375/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- From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78416+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640589334450.2618465129575; Fri, 30 Jul 2021 03:23:09 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id ghuvYY1788612xgCn07pmjuW; Fri, 30 Jul 2021 03:23:08 -0700 X-Received: from EUR02-HE1-obe.outbound.protection.outlook.com (EUR02-HE1-obe.outbound.protection.outlook.com [40.107.1.81]) by mx.groups.io with SMTP id smtpd.web11.22212.1627640586529288457 for ; Fri, 30 Jul 2021 03:23:07 -0700 X-Received: from DB8PR03CA0002.eurprd03.prod.outlook.com (2603:10a6:10:be::15) by AM6PR08MB5239.eurprd08.prod.outlook.com (2603:10a6:20b:e6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Fri, 30 Jul 2021 10:23:03 +0000 X-Received: from DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:be:cafe::48) by DB8PR03CA0002.outlook.office365.com (2603:10a6:10:be::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78416+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT016.mail.protection.outlook.com (10.152.20.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:03 +0000 X-Received: ("Tessian outbound cee5995f7b16:v100"); Fri, 30 Jul 2021 10:23:02 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: f2fa276c788defb4 X-CR-MTA-TID: 64aa7808 X-Received: from 64d228ca8787.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 588A7822-9584-405F-B01E-998675E2809C.1; Fri, 30 Jul 2021 10:22:56 +0000 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 64d228ca8787.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iovKE3xGuy0KHmap9KNNwulz5cer8lPoKXriuYM8Z8VMYAAlBYfXs5yaE4YvDPjlruZ5piA6fBnwNek0ZdnEQDDfz7wP0fFs3y099GzclRch5HUaLv532H/HG9ckY8l5UwUr7apsB6lQaNljQv9z+Wh6NWXq3KD/vw4vMq2cudcGn5plW1h9d3peiPOmOkvQp1KqgYXESJeVxEW2lN1FGzmsfHtQEp1nHiy56fG3Uq6JlcQlr9mPh8QHndmx3SqtzrZNQggA1isRQ5zKo2AIW4aYhvw7hKc8WGs4Y7MWZ2Jp1v0xZEyNku5A6xNlLxChXdtS51HZLJ/tSxfHiJObIg== 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:X-MS-Exchange-SenderADCheck; bh=uAaJfBwJtp+DuCHq80VwUj24QIvlbMqHab+h5fw/LOo=; b=HsdFCsTmO/wVlO2+2cs9Xf0I5/U8Pe+tJaNiDQ58N1GB3UQ2m7ntpUtrlD6Ns6h5/XXIp1m/wMGfLzl00hKmJJNfollC6ZhbcNNPm53R/zyFARTHWaJaB+L+6jOr/XZvgegdLADp2fkOhMpte8X1f5WM3yQc4o6UQiitznzVMF63jsLhTAg0xgouH7P/+6yhmTcEwE09Ij6cgFagpl5T8sigkcn2kI3FEsFy9MyxSNQHOIs2ce96N0C733aRUhyiHtcK4hjifgtexAOnhErZy9gc05W++851mu82pzDoaBrQT/RYqDwEM+/0GQS8TghKV0TCQ6BE9Ywq5iaS5MavPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB7PR02CA0036.eurprd02.prod.outlook.com (2603:10a6:10:52::49) by VE1PR08MB4848.eurprd08.prod.outlook.com (2603:10a6:802:a7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Fri, 30 Jul 2021 10:22:54 +0000 X-Received: from DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:52:cafe::1f) by DB7PR02CA0036.outlook.office365.com (2603:10a6:10:52::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT028.mail.protection.outlook.com (10.152.20.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:54 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:44 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:44 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 08/13] MdePkg: Add 'Type 5' PCC structure Date: Fri, 30 Jul 2021 11:22:36 +0100 Message-ID: <20210730102241.508-9-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: af5a8cbb-a702-4ea4-37ed-08d953440379 X-MS-TrafficTypeDiagnostic: VE1PR08MB4848:|AM6PR08MB5239: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:989;OLM:989; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: x2EPltMIyP4kGlAbtMsIUvUosOP6Po6eKMSezauc1yqYJ4K9v79ox2k1RJWscdW/TQxn063qkjiluu4bqyihvXYIHAF7TaQo5Z+V+vRdRYqV6H6pWldMCYNW1NVUMIVH8dW/k+YH+XqG0tnHoNfL2MuFObVNYFvRgPBrVBeCyaxl+YbLL30CEf3Pz08/4fl4tqFmzcjoE5yFBwYJQnhCLmSaBLtY7TErZkFJEKYa5zzcVChbU5U8lGDXy4i2UFYk8RmrT+MH5sHkvlHS95DgYJmvW0ie2nBkBh+oMMoxDVfuPK4T08LJHdzJB/zoc+sfo7QRJsHhgKIcrL5w1j2cszC6F1xzd5RXAQEEiYQYKS41NrBi8H0/pP+g307sBdmroiV1RSZUG2kgAqY35/WNGhRo2b0n5tQqZb1FQ5rtjujSo8fwcFRB/+YnQGfcK/qCZX04uUxfmNh2Ux8h3tseE8SRoU+xrLEyTif/LwD/1eVE2Y4tfcDM4QBCmTisy2Rn/eBdWtdUFtzQy2y10+WCUYDlcmBD8ArjJ7tTTglTJYyyR1nWDrHIhAYeOapVXdqjohn2BJdlhIjeI9bssvwRJzx+qxUeg37V/s6PoHgyfNOtQt9XSbf+ehiyrAXv/eGu++AZttWQ7DfbN2JinlSgoT31WXot7U2Cp75EK7F9YiF76b1AaROMby1pdFRsqNtRtPwmH8KLESJokYdQcLhdEr3hUbWO269h5xz2x0lGInOW6/TC4uyhffKDpJbFiJe6ODrAnAnDTQtSHjxqUWzlSJU8TrK/iQJN00VjqQyFeTDvepfZHsiVvlhaD9yFBOsKMhfYTTXel2Suj15RFhAOuMKYtsXM0GXY7I5V2aDnwSw= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(346002)(39850400004)(136003)(396003)(376002)(36840700001)(46966006)(83380400001)(82310400003)(26005)(19627235002)(478600001)(54906003)(86362001)(1076003)(5660300002)(336012)(6666004)(7696005)(8676002)(36756003)(4326008)(81166007)(47076005)(426003)(2616005)(82740400003)(316002)(186003)(2906002)(16799955002)(356005)(36860700001)(6916009)(70586007)(8936002)(70206006)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4848 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 5440d2c4-76e7-4e7c-c1dd-08d95343fe21 X-Microsoft-Antispam-Message-Info: HgmB22I0PoXvbEbRcDO3Z/fiU/uDyADXazeQvEtSnVuGM7CtDb4VDK9GcUEN1SOgi1ehNEhJLWQ3kk52Gi/e9zeKHTrImmOr/1lZsCHJ13yiE8cTe6bO+eHhSE5D2btkkRhRcnu3D0RHZThd3Vx4alCwlkLGWGwe9uIjPE/F9BSCwLhbQVW0hIbgaJ3HcIXr+9BIjhW8aA0+uFGAr0GKJBhFKVsMeCg5+LMZmKF6WxibL+/mlH4TmEA8HKpql/rzsDY4wj/WUPcRlT1F1SPfAp5LkWWC3/CQsVQ0iHVjOT46sSOyUE9cp8Gbkct01qLtQuc75kHOUA2pzzLijJRA9Kbwn3AXccMR+eIKRpC2wvjoD99urBZgsZCIz5pCdFGI+0TNV3nxVDatz9Y/py8ZtySFU39KAjnDAmIWdAaIY09XFwcI5srI+nTaxd2d9SSOdhLIRcOC8+S45D+LpJpf6CipLI3wBjqGWTX8eFNOEMdE+CD2eR5uueKdn1cq5fj0xIT+JZCHaBNc2MNUeA3Mvz/PKnkcplGgFxVH7p/RkB5qqRKD7sM2yXEpo/Po+3UeXaAlCS1sb/SQG7toeBIFMX1+gK4VSs9INhWPEsxmVu+EXXCJKQYNzb/a7h0lQgLWBLOyBIuGjkmXEFCPb8jfz4SLpJ1Mfulu+5csiXrfI91FpvGsAAvesoYFfHIf8oZrckxd6NT0SRPiEqen+WxMy6q80kjmwnqtnHW9QdKlJEm/9bcnrLkiUlW10HniO33PezsWj4kkW/2q366q+gLyrU0O8ZJKFRWYx9YTO+xrU3C9okGIKPTpKIkFdSpL+fUj X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:23:03.0723 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: af5a8cbb-a702-4ea4-37ed-08d953440379 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB5239 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: XpQQEzfNIyGGmzANU5F8qfZJx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640588; bh=GocuNryFLKRZD/zJwz0SGib/j5CCzOxdgHhySFxrBE0=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=ISFeOrejnOitLmHuZQ+mS63Z+tHF+/edQBqAIVYgJnlWUbCeKbtQEuT4Qsjc9vfKeJ+ a3LI+4Dhwd/OaPUwPrT8fBgXRWxOlHES3ZqFi8hiOuGDuRvTbHz73giDWQZFCWWBj2lxe O7PuB6R/lBgJXe3Wc20iCS24HhQQ0Q8cP2o= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640591111100022 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) Make changes to ACPI 6.4 header according to the latest specification: - ACPI 6.4 January 2021, Section 14.1.7, Section 14.4 - Mantis ID 2010 (https://mantis.uefi.org/mantis/view.php?id=3D2010) Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi64.h | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index ffa819d83a95ba55784a639b309b8bac8263be6a..995426ae817561819e4de095535= 70c2735a5b268 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -2329,6 +2329,7 @@ typedef struct { #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_2_HW_REDUCED_COMMUNICATIONS 0x= 02 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_3_EXTENDED_PCC 0x= 03 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_4_EXTENDED_PCC 0x= 04 +#define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_5_HW_REGISTERS_COMMUNICATIONS 0x= 05 =20 /// /// PCC Subspace Structure Header @@ -2468,6 +2469,34 @@ typedef struct { UINT32 Command; } EFI_ACPI_6_4_PCCT_EXTENDED_PCC_SHARED_MEMORY_REGION_HEADER; =20 +/// +/// Type 5 HW Registers based Communications Subspace Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT16 Version; + UINT64 BaseAddress; + UINT64 SharedMemoryRangeLength; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister; + UINT64 DoorbellPreserve; + UINT64 DoorbellWrite; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE CommandCompleteCheckRegister; + UINT64 CommandCompleteCheckMask; + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ErrorStatusRegister; + UINT64 ErrorStatusMask; + UINT32 NominalLatency; + UINT32 MinimumRequestTurnaroundTime; +} EFI_ACPI_6_4_PCCT_SUBSPACE_5_HW_REGISTERS_COMMUNICATIONS; + +/// +/// Reduced PCC Subspace Shared Memory Region +/// +typedef struct { + UINT32 Signature; +//UINT8 CommunicationSubspace[]; +} EFI_6_4_PCCT_REDUCED_PCC_SUBSPACE_SHARED_MEMORY_REGION; + /// /// Platform Debug Trigger Table (PDTT) /// --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78416): https://edk2.groups.io/g/devel/message/78416 Mute This Topic: https://groups.io/mt/84547380/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- From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78417+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640589847106.69249690249114; Fri, 30 Jul 2021 03:23:09 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id OYewYY1788612x6QGRluEoCR; Fri, 30 Jul 2021 03:23:09 -0700 X-Received: from EUR03-AM5-obe.outbound.protection.outlook.com (EUR03-AM5-obe.outbound.protection.outlook.com [40.107.3.48]) by mx.groups.io with SMTP id smtpd.web09.22075.1627640586647154053 for ; Fri, 30 Jul 2021 03:23:07 -0700 X-Received: from AM5PR0601CA0081.eurprd06.prod.outlook.com (2603:10a6:206::46) by AM0PR08MB4483.eurprd08.prod.outlook.com (2603:10a6:208:145::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.23; Fri, 30 Jul 2021 10:23:03 +0000 X-Received: from AM5EUR03FT004.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:0:cafe::c6) by AM5PR0601CA0081.outlook.office365.com (2603:10a6:206::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.17 via Frontend Transport; Fri, 30 Jul 2021 10:23:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78417+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT004.mail.protection.outlook.com (10.152.16.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:03 +0000 X-Received: ("Tessian outbound 1e4fcc40c873:v100"); Fri, 30 Jul 2021 10:23:02 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 51a909d609b0f4ba X-CR-MTA-TID: 64aa7808 X-Received: from ce055a80543d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 336C1BE1-75AE-4A31-A24F-5833E04439D3.1; Fri, 30 Jul 2021 10:22:56 +0000 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id ce055a80543d.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DkJIAML8FVh6LhzJuFjRt3Mh9D7Yl0f5BQaBNOOGMm/jDqanBlcgKJHLU6S9RLXDhhcsCItlIvGZ2QvQqxZjPNykkJUWVst6faz1TUw1vKmWowji1lH/qd9Z8oCYepn6ikYT3eGFUijrFmsjnI3LNwUIqo0vS/x0jALCypU3irSG9PJM+aIhzFddHc7M69F8s76MvJd5IWtDAsrLAHH5JfxXXYWIq0kq2fxKct4/4mn7Nwdyepcw5Vw8NTAVHcQAjAWw+s4AQrzdWTpIpvT/20JF8u7apGgU7Np5jDBcuZYttAQEAroPMCZHu+W2WzUU1YaG3Ac8wx/k2OAee1BIGw== 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:X-MS-Exchange-SenderADCheck; bh=YMykhU7/mZOaMg89QOxQBMvlztH67ZuZmOLwguQssy8=; b=dKOF/PCNiBfz7DbQs9JSfS6T+2Z8IBHLbgpJ9Kw2XTCMHriceSyxSCPApdsYQkmbdIAhPaw5sQkQHNmC3uqSBn7k8a4YsUzpoc7igGVjrsi2z/HyfpkM75RDrwHFvdVsR2pj8cGEcAVLvTJhXVLzj1GKB3aVQjyIL6vzZS4FE4VByoQNjw7dWAbpR7CbpWT3lDLs7rRuAWKs2f4luaqDzZx727W7lLNFZqLjnEp21BVKgNWP6C3zqzL23/Mp/urfCIRvEYKqm/kIonFTAPKdqyDpPzONLxPHeSlzcfrzFVYBfSGwT1S3lLNg0K6Zviih83MR7ZtBypZaSBdU8Qd04Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB8PR06CA0021.eurprd06.prod.outlook.com (2603:10a6:10:100::34) by VI1PR0801MB1839.eurprd08.prod.outlook.com (2603:10a6:800:5c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Fri, 30 Jul 2021 10:22:54 +0000 X-Received: from DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:100:cafe::f5) by DB8PR06CA0021.outlook.office365.com (2603:10a6:10:100::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT008.mail.protection.outlook.com (10.152.20.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:54 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:45 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:44 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 09/13] MdePkg: Add Multiprocessor Wakeup structure Date: Fri, 30 Jul 2021 11:22:37 +0100 Message-ID: <20210730102241.508-10-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 25a72240-fb4c-4499-1a26-08d95344037c X-MS-TrafficTypeDiagnostic: VI1PR0801MB1839:|AM0PR08MB4483: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:3044;OLM:3044; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Po+DsGm6jVGI9SrLFaJshxjs7k1YIVl7J92p3At1JHfQcX7dXWB/PxWFYSoPimTq4mHNrWK8mVlbAPWSAxoNk5aVu1AgXwj9CSCGXoUTG8VyPRCO7QyNs7RsVPVV/NhTxceSkO6j9GSa9iEx/dJNUqWPqglWr74tt7658fQ379Iy9Qw8Bcocdtfb/4vJUYd99SUKuKGlaj4j3zc7ty0Z3+56YRmb6t8sHhpq2Ppbws7T096YTeu1QUnk0ZUtISlQOfqLv5sV8U2E/3SYkHbkNAIAwHj9XVSC3N2kSrkFORrErzzQk4N7e8TuUFXO8hkQmOOxtbLKvaKGU7vSqzNmb8A1k61YEuTCuCzRDBJLM2KDG+sHh1XWUSSR56A6S1zhEsJZP51HIEGA5LCBU+r1erWQ9QXpGzk+3TAcVG40rgBPkN4Q8KEB1mmNSpLacROiKvYS0OMaxqrjho/nij8P+3ngTYnIJtd0/s1YLQbriiQknujRMJaP3th/Gy3Ty1Z85zcnfDRgHZZHegh94bDJmo4UxxlQ2k1dJVJMS8jABMFzUS6JwMurWVUNPk6mT1uImRDbg1j3g37cVmgar8za3ZqOP20wr3GHkBln8dUauCbt4rX+3v42Wc/Lq6URBb4s1yrRWlIINT0TVgEcwwc1U2/v9dma7PxUeuhiUvVJqNZsHR4iu3g/5KSZ3beeuJQrzc5RJHn/PJpwjrBBsBTw7XDhFuwZPVhwVH18chBVPmjphzwOa8de2CczU5uijbRQEBEi48WfARyPoBoA4YwO1HkTmMjwYm5XdYG+m30uiItabaTTlQ8qr8+OC6is/ocZr+CPnKvLDoM3frWKTvLPRJgdPjZ1MeCG+joa7w13hEs= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(136003)(376002)(346002)(39850400004)(396003)(46966006)(36840700001)(54906003)(8936002)(47076005)(6916009)(82310400003)(336012)(70586007)(36860700001)(70206006)(16799955002)(2906002)(26005)(1076003)(316002)(5660300002)(6666004)(186003)(83380400001)(426003)(7696005)(86362001)(19627235002)(8676002)(81166007)(2616005)(82740400003)(356005)(478600001)(36756003)(4326008)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1839 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 73d6499d-a0a9-4897-8578-08d95343fe4b X-Microsoft-Antispam-Message-Info: HxrUhYKf9o9m3LvrPaUMgEeg19RB8WAOuGFZx1k13mNyuEqVlUMGok1lFgdtIJIEcu3n6os8blv5duzCqQtxd/UJd1PBkshb0SzIQcr8EPVqTMFORvlBEr76hP33o8yNodayUqXgOt91EUMMBHWpVpCvVxYqd0Pg56+85gfcdFk108ZHX7pV589PWVTsxq6dsB4FLiRZrNNJYhDl7MslMTf/ljLNxpk3xdunr7F7fF/l4bZvBBSmlyaTKraxe/te7D8ypby+7AdsQ9F4cUcfbDBN4N96wOV5IZTsh3dHVZf7S0IhypEzrcdoG5Ljsd2Nsr4hX0rb16+D9fFjXVdMsTxqTJy5e4GBqLZMeROgrUzAMTUFbNHGZqM+JeUGP6ss7RnwugYmJF5ygp3hAsO4ZYCuUlm98a5NscQy+cfahBYESGc5nCCrtMRZpBIeNTUdC4ZlxY5nC9QzcmLJ9wgRksYWsPTAVhdnm3kWPUil9+5TJLmFRseNqaBOhFzML99/a6Qu7tUGJ6WbWiQzoRoR8Izo7r1bn7M9pH+NnJCQxp1aZ5K33HZUSOgylwbfyBl2a/M/32my8R19V6a5T0tv9JL4Ec+8FyCBaqko5bKFKy8F9J8/x95q59HuU3MneBTT3iOXt0NRGSdjZa2X3lvtD1JaEzq9Bo/VdASAL4P3aK4RxlOpchBCZ66mvDhM6Rw1A/RzuNcrhKuo4kpjvGwBkLYeWPPElFOynFzM8chpvOM3x0YJT53Jx1BSOCnbwbHVuFp6d661DmbGw08BSbEIcJidE4lxz7sUTep3kVP6TBON7mS0841C7hru1BnxK3YE X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:23:03.0222 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 25a72240-fb4c-4499-1a26-08d95344037c X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4483 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: RNZMUGMsl8DxRHmbX2DwjAsex1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640589; bh=GJSpmtUEINHIaI3GDRAflbh/fFm6YagGByAXHBdDI18=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=KEJ1ZiwHXKmfEWb3OMzW3tZOGaWrIuLi45i8PWoBf+gd7Kp9NurZlkkYQoJLMfozSQ0 N6nwVW2Z0ajbihc7bhWzohI0VOVLxLOCJI4sJjYoidDW+Qpg5Y2ZfkF63JHSEtP2/0JYe Vsx70fLkMZiLTehw/lbnerVar8DhThzctQE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640591201100027 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) Make changes to ACPI 6.4 header according to the latest specification: - ACPI 6.4 January 2021, Table 5.21, Section 5.2.12.19 - Mantis ID 2087 (https://mantis.uefi.org/mantis/view.php?id=3D2087) Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi64.h | 29 +++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index 995426ae817561819e4de09553570c2735a5b268..5864870e2ba60eca0e8b04b7b2a= b1217895b4994 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -302,7 +302,7 @@ typedef struct { =20 // // Multiple APIC Description Table APIC structure types -// All other values between 0x0D and 0x7F are reserved and +// All other values between 0x10 and 0x7F are reserved and // will be ignored by OSPM. 0x80 ~ 0xFF are reserved for OEM. // #define EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC 0x00 @@ -321,6 +321,7 @@ typedef struct { #define EFI_ACPI_6_4_GIC_MSI_FRAME 0x0D #define EFI_ACPI_6_4_GICR 0x0E #define EFI_ACPI_6_4_GIC_ITS 0x0F +#define EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP 0x10 =20 // // APIC Structure Definitions @@ -589,6 +590,32 @@ typedef struct { UINT32 Reserved2; } EFI_ACPI_6_4_GIC_ITS_STRUCTURE; =20 +/// +/// Multiprocessor Wakeup Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT16 MailBoxVersion; + UINT32 Reserved; + UINT64 MailBoxAddress; +} EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_STRUCTURE; + +/// +/// Multiprocessor Wakeup Mailbox Structure +/// +typedef struct { + UINT16 Command; + UINT16 Reserved; + UINT32 AcpiId; + UINT64 WakeupVector; + UINT8 ReservedForOs[2032]; + UINT8 ReservedForFirmware[2048]; +} EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_MAILBOX_STRUCTURE; + +#define EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_MAILBOX_COMMAND_NOOP 0x0000 +#define EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_MAILBOX_COMMAND_WAKEUP 0x0001 + /// /// Smart Battery Description Table (SBST) /// --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78417): https://edk2.groups.io/g/devel/message/78417 Mute This Topic: https://groups.io/mt/84547381/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- From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78422+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640591609220.1239356151492; Fri, 30 Jul 2021 03:23:11 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id sbKJYY1788612x9w7Fwopwvc; Fri, 30 Jul 2021 03:23:11 -0700 X-Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.62]) by mx.groups.io with SMTP id smtpd.web12.22080.1627640589602485660 for ; Fri, 30 Jul 2021 03:23:09 -0700 X-Received: from DB6PR07CA0202.eurprd07.prod.outlook.com (2603:10a6:6:42::32) by AM6PR08MB4834.eurprd08.prod.outlook.com (2603:10a6:20b:c9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.29; Fri, 30 Jul 2021 10:23:05 +0000 X-Received: from DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:42:cafe::bd) by DB6PR07CA0202.outlook.office365.com (2603:10a6:6:42::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.9 via Frontend Transport; Fri, 30 Jul 2021 10:23:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78422+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT022.mail.protection.outlook.com (10.152.20.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:05 +0000 X-Received: ("Tessian outbound 1e4fcc40c873:v100"); Fri, 30 Jul 2021 10:23:05 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 94ef433ca8d92e08 X-CR-MTA-TID: 64aa7808 X-Received: from cf27e9884593.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5C057E50-E753-48F0-BA8A-E07A009E704E.1; Fri, 30 Jul 2021 10:22:59 +0000 X-Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id cf27e9884593.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kR0ZuZp+LC4BbGL6Qln2Tup2GRtIcLb4QNhR4P9tG/4c9fZL6qEYx2xCciV9Lld1nC0M+STawaMuEz6Nb/fuWJUOTuY+bf4p/sFIv5xqLm0JMxNEDCfd4NRlj8ahHMaraA3w26B3tGePbcGg9AFXe+hi77qLHsn2fQXEqtiRCeEQXh5bz6/zzgEnt3b363xGXaVlmHcR+aXXP+Wl4x0J0RvpnbAkTN3LdK9D4hawoJFq1CgzJfd/l47QLvXnyWL4LdHL2OSQclSFZ/1bk8h/R6nWuPmbWED+XOnGcCEDXDEQl/4Haom2SDlWHbn3GRUlpwPde83reD5N9j8YHfdAQg== 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:X-MS-Exchange-SenderADCheck; bh=qhuyAdoJ7pR041V2vLKVCrO5oWky57H5koJGDZi/634=; b=W9aeEKmzjwP4Ltu3nsYTekYH6xu9Wea44Xsn5u4PmdmdxFaoDxqI6+g/mxXfNWkhI8P9TCAYkbVhkLShDNGnP5pMF60g63FFKwDqbHPU5Ym2AcPLoGUOzSyXkyNqAY/36zbCdnuNlhpHTOWJkZ8UaekNKCj6x3BdT2Vt81UXCunduKoPLC994AxUsN7Rv38VruBMpXdT2llpidIIVYvHlRAgV7XrgZ4nbqTVEKt1zSwNHpQonDqCN5EKbzarXpwzttQEx8m9XbQ5rzFXC+ChEdTdFp/NCsypfKbaplwzSXwdqnYIWRLa8Rf+5lF/yfWoAAxMcMRZjN6tKlCuIoYqoA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB7PR02CA0031.eurprd02.prod.outlook.com (2603:10a6:10:52::44) by AM0PR08MB3203.eurprd08.prod.outlook.com (2603:10a6:208:63::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.29; Fri, 30 Jul 2021 10:22:55 +0000 X-Received: from DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:52:cafe::91) by DB7PR02CA0031.outlook.office365.com (2603:10a6:10:52::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT028.mail.protection.outlook.com (10.152.20.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:54 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:45 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:45 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 10/13] MdePkg: Add the Platform Health Assessment Table (PHAT) Date: Fri, 30 Jul 2021 11:22:38 +0100 Message-ID: <20210730102241.508-11-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5d7d4d6c-ebba-45f7-ab2b-08d9534404f4 X-MS-TrafficTypeDiagnostic: AM0PR08MB3203:|AM6PR08MB4834: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:989;OLM:989; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: FzHaufneNxAN+FOVNrQdHY1Ig+gwmhC+o0rMziE82i+cYb5gbMlkuDd4fCqGbN18qPhO81Y6ny+/kcmzu6OsZLfPCn+3dOiZDjnLm19304yoUKUAFBS/roibpioetj/OBQOMFsbgESYGshRyE/46KthZIAixOsZZdtWkRGsNvTxEAT/e4AhfPJOVoAYIhtS6/4isKuWRYfkSbI33N82UbTPqCp75Gk9iQ01DJTlhN89sfptm/o1son6XoBiz1QwgbV4RV8940cyVsTUmezJ1LCZBU5Ak+JfGyNuHV0jAm+PfiR3RVW5Om69ZEyBe72zBqLb049vS3lmaDUgZRxqtDm4OU9s8VH7vKRV95PZt/uCJumxlmQ6KKSrikIUhsGIED3MqlnMeqtJJnpr5OHM6Alp02zQqXvATkAIMxlfSP7ZOJfBtpaGY/qhYAHbF30tlSLD4fNBXdLXuWDNqXpajirfaj8CSF/tOb5UDrIwn3Il3t7EiHOhIBZH/i8BXZvAjlQi3uMd0NCACODATg48vwK8jR6O9RwWVi3lsHQHuZKj6zsfNdMKQdvsNsetzmrgkxztn24x0xeI0cdVbupmwKFmP1aXHnZcNJwtirGvDUw0IJ/ACWUlj4vSWWLPaU3afqjDEY0f2OiD9vzAjTtCx6mcQJcBvt5QoVsh/CSazdcYNwzAslmPGlfEgYzpXSHk1sNwc7e6RX72UUmEQy3nXO/yT74RJTM45/Z3+XmgEqCqe7bRtX4HJcJgcMQlfmcQe6LBJ2Gpq3ubGnKq2GuvpUhfND7r8LHIhP0Bi4Uo5Lz+M3Ub+DZopKSjtdbrPvpy+Fh9PA2Z+vVH7u0V334wcY1oJVcEu0R1GM+zyC8PUeTM= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(46966006)(36840700001)(70206006)(2616005)(5660300002)(54906003)(6916009)(336012)(19627235002)(8676002)(2906002)(81166007)(508600001)(36756003)(7696005)(356005)(8936002)(82310400003)(426003)(316002)(1076003)(26005)(36860700001)(6666004)(186003)(4326008)(86362001)(16799955002)(47076005)(70586007)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3203 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 3f7372f8-b8df-4a21-3998-08d95343fea5 X-Microsoft-Antispam-Message-Info: BMagpHFBATeJhOtNM5jthonyg3b++ncwr/WLkKaZV0FKPiOiOGNBy2+3alei9IDPAvGfN+O5wSGEwYjH9ypXCJMbcoT55wKWuQPjl8seazQCpXV+iDBtiLyQ0EbXhPkYzTZPVKJzQwms3SD/+Ebj7IGT6U3Y50dRx45KQULPJXEmhUyv2mN+YeVzSyuGk0LxiBDbJSmZzEYyCno683V7Sh3NjvmUbF5SAnw+agxf3zKtDmtGCZXIUgBdGA3gLzukWnPgPmcMbrIRca1sjl2VRjwpdidT934zUl12VE+JLsxjG7WcToS5pcjeLUNxevs49Vh9rQ6Q5MW2/Nfki64KkhOUZPYo18omVkxpIpJS5AHl2BmToik7FKMX31049RSa2yTSBAfvkB+VyN+7jdPwxZtEyeEoXxItWrORZx7LrsGnJ1qrLjxMenVLfvdanpmyeaLPFBzg9I11gNS4qcozBFgyPouGRAKSjfIOIAzmWpLBg14jWTKXtkB5uwyckSF6LErF+uZAS9XjG2IVLRYCd1P8auYpKAI9qPYJkkwP0ZoASomMGCGAbH2XMqFiYgnxK5aamt4x0xPIy6Loz4P/Q8/kGRSzLCTnTWfOudREatpdL/iGkM1yrVNfH/c5HW9Zlz3Lzgv/rSXSdbjT8p8s53qfbxE2GTpKJZdbkmwyRJorr2RSNpsBOiLe3GEPWn/aW+9OM85v2jgc4psQAnTmCGsgUGe2hPZEyMaLkoSRqOqKuGsMf8ZKEGz3wYN0nV/WTxjBFS162jLnKKLriGmhT6q2z3F8gcwzJuwV9h5leZfjy4WQEFHff9tK9Xal5HeF X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:23:05.5590 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5d7d4d6c-ebba-45f7-ab2b-08d9534404f4 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4834 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: 5yrAHgSZw6jsrFrbwp3r9qCex1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640591; bh=JuqzQbHix6aGZ0V59Xzj+b74D7ZcugGH4emPKT7BJ/A=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=i2+trAZmJXbYy/eJ1u0xcnMQXnhYknxfHmHNp99ibXYC1GZ54+AA7DQHOB3vnRChB0p 5MIBYLU8rRSA3TiRqXvyQZ7picz+YoGlMcTabaUmrj2ZUkOXWIR85J9l5Lju7CwAN8wws Qyx6cN+2yq+dEs/TAhVZjSrb+oiUt8blHV4= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640593377100042 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) Make changes to ACPI 6.4 header according to the latest specification: - ACPI 6.4 January 2021, Table 5.5, Section 5.2.30 - Mantis ID 2094 (https://mantis.uefi.org/mantis/view.php?id=3D2094) Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi64.h | 79 ++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index 5864870e2ba60eca0e8b04b7b2ab1217895b4994..cd093003805799541696516e809= d0c800137510e 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -2713,6 +2713,80 @@ typedef struct { UINT16 SpinRev; } EFI_ACPI_6_4_PPTT_STRUCTURE_ID; =20 +/// +/// Platform Health Assessment Table (PHAT) Format +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; +//UINT8 PlatformTelemetryRecords[]; +} EFI_ACPI_6_4_PLATFORM_HEALTH_ASSESSMENT_TABLE; + +#define EFI_ACPI_6_4_PLATFORM_HEALTH_ASSESSMENT_TABLE_REVISION 0x01 + +/// +/// PHAT Record Format +/// +typedef struct { + UINT16 PlatformHealthAssessmentRecordType; + UINT16 RecordLength; + UINT8 Revision; +//UINT8 Data[]; +} EFI_ACPI_6_4_PHAT_RECORD; + +/// +/// PHAT Record Type Format +/// +#define EFI_ACPI_6_4_PHAT_RECORD_TYPE_FIRMWARE_VERSION_DATA_RECORD 0x0000 +#define EFI_ACPI_6_4_PHAT_RECORD_TYPE_FIRMWARE_HEALTH_DATA_RECORD 0x0001 + +/// +/// PHAT Version Element +/// +typedef struct { + GUID ComponentId; + UINT64 VersionValue; + UINT32 ProducerId; +} EFI_ACPI_6_4_PHAT_VERSION_ELEMENT; + +/// +/// PHAT Firmware Version Data Record +/// +typedef struct { + UINT16 PlatformRecordType; + UINT16 RecordLength; + UINT8 Revision; + UINT8 Reserved[3]; + UINT32 RecordCount; +//UINT8 PhatVersionElement[]; +} EFI_ACPI_6_4_PHAT_FIRMWARE_VERISON_DATA_RECORD; + +#define EFI_ACPI_6_4_PHAT_FIRMWARE_VERSION_DATA_RECORD_REVISION 0x01 + +/// +/// Firmware Health Data Record Structure +/// +typedef struct { + UINT16 PlatformRecordType; + UINT16 RecordLength; + UINT8 Revision; + UINT16 Reserved; + UINT8 AmHealthy; + GUID DeviceSignature; + UINT32 DeviceSpecificDataOffset; +//UINT8 DevicePath[]; +//UINT8 DeviceSpecificData[]; +} EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_STRUCTURE; + +#define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_REVISION 0x01 + +/// +/// Firmware Health Data Record device health state +/// +#define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_ERRORS_FOUND 0x= 00 +#define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_NO_ERRORS_FOUND 0x= 01 +#define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_UNKNOWN 0x= 02 +#define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_ADVISORY 0x= 03 + // // Known table signatures // @@ -2957,6 +3031,11 @@ typedef struct { /// #define EFI_ACPI_6_4_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE SIGN= ATURE_32('P', 'C', 'C', 'T') =20 +/// +/// "PHAT" Platform Health Assessment Table +/// +#define EFI_ACPI_6_4_PLATFORM_HEALTH_ASSESSMENT_TABLE_SIGNATURE SIGNATURE_= 32('P', 'H', 'A', 'T') + /// /// "SDEI" Software Delegated Exceptions Interface Table /// --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78422): https://edk2.groups.io/g/devel/message/78422 Mute This Topic: https://groups.io/mt/84547386/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- From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78419+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640590719588.1920715549754; Fri, 30 Jul 2021 03:23:10 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id k3tNYY1788612xjfKDA32hVW; Fri, 30 Jul 2021 03:23:10 -0700 X-Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.84]) by mx.groups.io with SMTP id smtpd.web10.22188.1627640587369827492 for ; Fri, 30 Jul 2021 03:23:08 -0700 X-Received: from DB6PR0501CA0047.eurprd05.prod.outlook.com (2603:10a6:4:67::33) by AM0PR08MB3283.eurprd08.prod.outlook.com (2603:10a6:208:5e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Fri, 30 Jul 2021 10:23:04 +0000 X-Received: from DB5EUR03FT046.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:67:cafe::72) by DB6PR0501CA0047.outlook.office365.com (2603:10a6:4:67::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78419+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT046.mail.protection.outlook.com (10.152.21.230) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:03 +0000 X-Received: ("Tessian outbound 072c11bad1a2:v100"); Fri, 30 Jul 2021 10:23:03 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 0d534df2c06e0344 X-CR-MTA-TID: 64aa7808 X-Received: from 05c6af33a6cc.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9A37AE8E-2B8A-4CB1-9CC8-BF7EC0AE0566.1; Fri, 30 Jul 2021 10:22:57 +0000 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 05c6af33a6cc.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dUSwIBKWGT9m/7VT1CxhMkf9qzGxGEHVoKE0ht4DJ06rHsZjKkmwxCk7ouzM31KMzsHfpsjY3DBNo4KV13KYG9GCpiL/flLIyrl2hZB/8LkWistJpKxMkQfV/SASrf8xhSrIcJmVKutQfXo6D3WQsWm23oFOD1nBW1ohb9AIaywdDgL/o9Aen24UGvOCCCl7DjVWZaQ8SvhxigSOf0J/nUsT103BN4Pg+pSCPLGV9CkdGO5vlWFLPJ12U4J5j08mfkm9BXLfIAwv0yJ2unNEb40ZSoZVh/c8LHdbmKWDiY+F7hDX3mCsL9s1jQ05WAlT28LAkJzssTBs4E8lNwQPeQ== 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:X-MS-Exchange-SenderADCheck; bh=sMbOPxqHyuVe/sTqOYrm81J3OdBibPGBgQiQO1IApG8=; b=Kj8Q1INn9x6RoXJoyLXHkgS1u5PeBpgHHrOOOw9NbxegE7tqM/NtzfHdefjOCBtk0KwdpsYuHoikUuHg1cD232f5RVNvtWeLRpJ5tEXfRR/JEskc4/LR129xQf5t+os7rQg1JTJtwTBJRsQoZmuH6OJcrCPQ4+pif5ZAjOijbZ22cD30uxnoZMJS5sbNzESoAAHr3hCrj1kXtJXGgGhqXJql1wJ+ifgH2java2hteN5rjpzIeDiGjKbqiF/cpDpnjtxXZTVfDavTy8tC9iBrMU0wAbkpOzgZUH8a27zoBEQNNRXDEUcJ7KA2+AU7apI8fyh54N8I7H5yI8eC4nvoWQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB8PR03CA0011.eurprd03.prod.outlook.com (2603:10a6:10:be::24) by VI1PR08MB3581.eurprd08.prod.outlook.com (2603:10a6:803:79::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Fri, 30 Jul 2021 10:22:55 +0000 X-Received: from DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:be:cafe::8f) by DB8PR03CA0011.outlook.office365.com (2603:10a6:10:be::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT016.mail.protection.outlook.com (10.152.20.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:55 +0000 X-Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:46 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:46 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:45 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 11/13] MdePkg: Add Secure Access Components in the SDEV table Date: Fri, 30 Jul 2021 11:22:39 +0100 Message-ID: <20210730102241.508-12-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 67e16363-308f-4a19-0443-08d9534403fe X-MS-TrafficTypeDiagnostic: VI1PR08MB3581:|AM0PR08MB3283: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:989;OLM:989; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: UtE4OEDY6kazcTr2i7R8ASXNGsz53kVhA/FaDJSFOh0PkFWcpCzO7F6scWPJVK3KH07M3fOKkOm6ylX96eDgGPh+8WDXE93Lfbz/9qr3XqTb1OgudC/4fTOh0/ndcbccpGvLEeJ7+p/99YsDq9Q+Sp/JH8xwrzjjFBQ22J4c5/hSSuHTX+QxFQ/71xJavx5lTXRnGV/7W6xT6Bh/KfwATddnYolnodgWgrJGn4LpOsx3WkqP2s9R4gLSGNVREYSkRAzz5xTOWwtBB50seepDl5ecXOxI2wUmA0xa6kJsPfLhy8V/hYgDdAPhlweWMZ1GUCJ91viAfMBqqWZDUWha7NgyjoHbPPCJGJLMjA72yns8PZIK7X7165f6InSHqYl8na43QQP22P2g5KF8p3ENmXaIOssXtH+EMC44dWMnnP6VYC9EpFe1aMm31wHFYQNxx3S4iYpsXmSrLq/eBj3pj5xylT1fg0H0jM8PwPcNr+2DMNrsrZTVl/mxXtM5DA2q4gY3Gz04/0M00RPMBwjpE17ai1OsEEtHONeu58jGuQHeBXBHpqkoFZ1FX/vRb8xl80KucOmvJ5+eD9HdtMAw0jMUdAdNFwsbgXNUBoi8SbdWromOyUzwAzK/NH4rng4DabFjMYekxT1Dp9yDmckJFWusSniu/WVTsKln34CjWv1BpX6wlcyEHkKc/qJMzBFZ+k5+4Zq3e0/ePCu0T7oQz4wxYDcJCwrKkgXEPwIZZ9UyS9kVWRRxoZn9QIBUIz0UUjk1wzmcTYdmDMbKdN5ulHyOm1ni56F0vhTLwPzWe1ycHJgpqwh0YP+ZN8BsVUc1FVovCeX92KUAgN95byG5bo4IpqdDlEDzAMh/YXlC00w= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(376002)(39850400004)(346002)(136003)(396003)(36840700001)(46966006)(4326008)(82740400003)(47076005)(86362001)(16799955002)(186003)(316002)(8676002)(70206006)(54906003)(6666004)(70586007)(7696005)(36756003)(5660300002)(26005)(356005)(426003)(8936002)(2616005)(82310400003)(19627235002)(36860700001)(1076003)(2906002)(336012)(81166007)(83380400001)(478600001)(6916009)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3581 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 24917908-8ea3-4387-f8fb-08d95343fef6 X-Microsoft-Antispam-Message-Info: v75Kj6Fx5c78pP53kKcW3pAPVDVRHkPhTAL1bYMypvW1kl0E400ESTiz+0PEvKlHm4NOb7ZzSeryt80npdiVmzw6UlmgGxELe3nLmkdbu8JGuvN+ksnTUTwfd1Ro9/Drc5LwqF9s+gsDFaY/J3SHA5RHDuj/6elf63vabog1GWNVIR20NkEFJv3+/dKZjVX/+JADy1U0f6vKEzzC4xlKeEh6VyImjKiN3zTMkzJoKv/558Um5dFMfr3cGVossaj6gfNAi4V46XgT0dYgGPIX6Eu/DH9SAC0hSMqnDQJRfvmNFlPS4ste4TFcjXTgGREvr4Ofx+zaPhDp2pOcsw3QrQJNJnuB3RHDoh6woFz0gK6DeH83cnMKiWE+xpfF4UONEI0w8yhVq1qICqCuuQdjyETuIlezWp0Fm1gU1zEXY0oluh0dToLA6ick+Kgfm+8vp1Hh6XetXGdC8khl8hXCqtVhRPVP/tPjOMPsaRvK4Eb5zSUKmBOJjn2AYcYBx7Iujgfv8bgTZJOH5ajA9zzyXFhxFNf8CqIe0GLEuac7FWPnkKAn5K/miulUX6MEkyKHeVm3ABSweog8auJZSifJDAV360ny7j+aUQ98BxrVcW8y0j9sRODRfGcmUSxh/E9MEHDT6k6Dx9HVToqNlwvkRsxLSbAI35UsLOw5rfcXOxpujBATOhY3vtqHopP0DAMDBuNNHlcy+N8g8mBQGFcoG5BV1zqoavPhjFJh3nBLL2nb2YCBChMdyDPks84ZnKD8Tzkfc1U4EE2aTZl8gMQzL/3TWSN95UXCGv5IL2RrWKA81ueGLSrMfy0fZkP+0hBn X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:23:03.9426 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 67e16363-308f-4a19-0443-08d9534403fe X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3283 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: F5891EgGnQr2Lo6acU71KN2Tx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640590; bh=PN4Xd/gbM149KMD8nyjw9Q1fST7EZQXW3zYD7iUeywo=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=euiDSyDBw0GrycaREimByLbE4Vh2tkbQoI1Wgo+SaMnI1RwUrp7gzzOwyVMRlpNNFML s/vCZagmANeOhA3vHQcPRZSJvhnLS1fmYQwQgJ3M6oszPQd19sXUbgkisMnVds/wfsElo wKg1cDSdd4ggHz1N/g7ZMgjbW4FqwwdpVqc= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640591272100032 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) Make changes to ACPI 6.4 header according to the latest specification: - ACPI 6.4 January 2021, Section 5.2.26.1.1 - Mantis ID 2111 (https://mantis.uefi.org/mantis/view.php?id=3D2111) Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi64.h | 84 ++++++++++++++------ 1 file changed, 58 insertions(+), 26 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index cd093003805799541696516e809d0c800137510e..4faed17a9e99525f9e09f0eac88= 4264ba31ca47d 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -1661,15 +1661,16 @@ typedef struct { #define EFI_ACPI_6_4_SECURE_DEVICES_TABLE_REVISION 0x01 =20 /// -/// Secure Devcice types +/// Secure Device types /// -#define EFI_ACPI_6_4_SDEV_TYPE_PCIE_ENDPOINT_DEVICE 0x01 #define EFI_ACPI_6_4_SDEV_TYPE_ACPI_NAMESPACE_DEVICE 0x00 +#define EFI_ACPI_6_4_SDEV_TYPE_PCIE_ENDPOINT_DEVICE 0x01 =20 /// -/// Secure Devcice flags +/// Secure Device flags /// -#define EFI_ACPI_6_4_SDEV_FLAG_ALLOW_HANDOFF BIT0 +#define EFI_ACPI_6_4_SDEV_FLAG_ALLOW_HANDOFF BIT0 +#define EFI_ACPI_6_4_SDEV_FLAG_SECURE_ACCESS_COMPONENTS_PRESENT BIT1 =20 /// /// SDEV Structure Header @@ -1680,34 +1681,65 @@ typedef struct { UINT16 Length; } EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER; =20 -/// -/// PCIe Endpoint Device based Secure Device Structure -/// -typedef struct { - UINT8 Type; - UINT8 Flags; - UINT16 Length; - UINT16 PciSegmentNumber; - UINT16 StartBusNumber; - UINT16 PciPathOffset; - UINT16 PciPathLength; - UINT16 VendorSpecificDataOffset; - UINT16 VendorSpecificDataLength; -} EFI_ACPI_6_4_SDEV_STRUCTURE_PCIE_ENDPOINT_DEVICE; - /// /// ACPI_NAMESPACE_DEVICE based Secure Device Structure /// typedef struct { - UINT8 Type; - UINT8 Flags; - UINT16 Length; - UINT16 DeviceIdentifierOffset; - UINT16 DeviceIdentifierLength; - UINT16 VendorSpecificDataOffset; - UINT16 VendorSpecificDataLength; + EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER Header; + UINT16 DeviceIdentifierOffset; + UINT16 DeviceIdentifierLength; + UINT16 VendorSpecificDataOffset; + UINT16 VendorSpecificDataLength; + UINT16 SecureAccessComponentsOffset; + UINT16 SecureAccessComponentsLength; } EFI_ACPI_6_4_SDEV_STRUCTURE_ACPI_NAMESPACE_DEVICE; =20 +/// +/// Secure Access Component Types +/// +#define EFI_ACPI_6_4_SDEV_SECURE_ACCESS_COMPONENT_TYPE_IDENTIFICATION 0x= 00 +#define EFI_ACPI_6_4_SDEV_SECURE_ACCESS_COMPONENT_TYPE_MEMORY 0x= 01 + +/// +/// Identification Based Secure Access Component +/// +typedef struct { + EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER Header; + UINT16 HardwareIdentifierOffset; + UINT16 HardwareIdentifierLength; + UINT16 SubsystemIdentifierOffset; + UINT16 SubsystemIdentifierLength; + UINT16 HardwareRevision; + UINT8 HardwareRevisionPresent; + UINT8 ClassCodePresent; + UINT8 PciCompatibleBaseClass; + UINT8 PciCompatibleSubClass; + UINT8 PciCompatibleProgrammingInterface; +} EFI_ACPI_6_4_SDEV_SECURE_ACCESS_COMPONENT_IDENTIFICATION_STRUCTURE; + +/// +/// Memory-based Secure Access Component +/// +typedef struct { + EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER Header; + UINT32 Reserved; + UINT64 MemoryAddressBase; + UINT64 MemoryLength; +} EFI_ACPI_6_4_SDEV_SECURE_ACCESS_COMPONENT_MEMORY_STRUCTURE; + +/// +/// PCIe Endpoint Device based Secure Device Structure +/// +typedef struct { + EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER Header; + UINT16 PciSegmentNumber; + UINT16 StartBusNumber; + UINT16 PciPathOffset; + UINT16 PciPathLength; + UINT16 VendorSpecificDataOffset; + UINT16 VendorSpecificDataLength; +} EFI_ACPI_6_4_SDEV_STRUCTURE_PCIE_ENDPOINT_DEVICE; + /// /// Boot Error Record Table (BERT) /// --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78419): https://edk2.groups.io/g/devel/message/78419 Mute This Topic: https://groups.io/mt/84547383/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- From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78421+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640590753254.2799531775746; Fri, 30 Jul 2021 03:23:10 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id h3VnYY1788612xGEGGO3SsUP; Fri, 30 Jul 2021 03:23:10 -0700 X-Received: from EUR03-DB5-obe.outbound.protection.outlook.com (EUR03-DB5-obe.outbound.protection.outlook.com [40.107.4.63]) by mx.groups.io with SMTP id smtpd.web11.22215.1627640587784117412 for ; Fri, 30 Jul 2021 03:23:08 -0700 X-Received: from DB9PR01CA0004.eurprd01.prod.exchangelabs.com (2603:10a6:10:1d8::9) by AM6PR08MB4550.eurprd08.prod.outlook.com (2603:10a6:20b:71::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Fri, 30 Jul 2021 10:23:04 +0000 X-Received: from DB5EUR03FT056.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1d8:cafe::45) by DB9PR01CA0004.outlook.office365.com (2603:10a6:10:1d8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78421+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT056.mail.protection.outlook.com (10.152.21.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:04 +0000 X-Received: ("Tessian outbound 1942ea606101:v100"); Fri, 30 Jul 2021 10:23:04 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 9b3240e6c64e3ee5 X-CR-MTA-TID: 64aa7808 X-Received: from fb01b353e418.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6F1C036A-81FF-474E-9AFC-098DDCF0C6DE.1; Fri, 30 Jul 2021 10:22:58 +0000 X-Received: from EUR03-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id fb01b353e418.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iZ15pDnF+FCnGuTJQ94axZz4GIht/B3mFhkB2bXzoqvJMP/HfE8O9VbdMN2szfc7VHKkdghF24VPozpRQaGm2u7v4bUG7yMGViwfO9UxLwEv7QnVGpVQab0O5wV2m6hrN1HS0MvyhDUqyKpqwQPfsOOrX5kRap1TEFmEG4Jnw8xtwJHOdIDd8Nl3L+jOfyxvaA2DgvYrzM0Io3Q1ZbvUWZo1iGQ5Ke5kTiNkIVwiRR/P9nFnEy+slWOdeYza0L2NfeUwN1QzrwljXSugabh7CJ26cQYCk8lbpf6NaD6O2zrN3LL/7jYIJvg6eDXCd4WDBoMmPXs5IFPYka/+LGUmsw== 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:X-MS-Exchange-SenderADCheck; bh=j2Q8JlKd0Ei078gcMtzeK13gcOeZgUtH8EiZUP1BSQE=; b=U94zsxN5HVSLdpeOG7HzIkfY/gTQh/vgK7Kse6e3o3Cskpo0syJlAYhkjBoMYayTWoEdykZ+Cl+ttGM+LF7ftjU9oF/6hUdCQAxhrpDYqGDQC5UgWrN+Sx72snT/QTI5zum0/pupbtZjmX0A2STyipvbtclfy5yTNKYf7mR3DtUpBwDF50cUBmmJySxNfesRRD7aeq8euIhxPxJ8/TkvSOUenGbPgxNA9YqeW79aWs2gnYyyfwr1u8aX31ppxzzy4hUXe9kZijPeFlUEvGhrhIdmOx70TyP23KkJ4qPOvkNO/vR8H6Oogt2k5hHdMF0FhLOrsK5ASEwuWcDCph0TjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB8PR06CA0016.eurprd06.prod.outlook.com (2603:10a6:10:100::29) by VI1PR0801MB2029.eurprd08.prod.outlook.com (2603:10a6:800:84::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Fri, 30 Jul 2021 10:22:55 +0000 X-Received: from DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:100:cafe::94) by DB8PR06CA0016.outlook.office365.com (2603:10a6:10:100::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT008.mail.protection.outlook.com (10.152.20.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:55 +0000 X-Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:46 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:46 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:46 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 12/13] MdePkg: Add Cache ID to PPTT Date: Fri, 30 Jul 2021 11:22:40 +0100 Message-ID: <20210730102241.508-13-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d88c6235-2674-4b04-286d-08d953440467 X-MS-TrafficTypeDiagnostic: VI1PR0801MB2029:|AM6PR08MB4550: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:4125;OLM:4125; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Sb7HHfbNUsEIGRi1tKy9BdcJxtoeC1fQFtn+Fo8KusFbEGMfAFgIm2bXx+nMWxh5TPCyNRPvIA5Z2n/8mA/1cWJmfPOr6q+XZlgdUToX4fufC/+nUoRdPUsaVUaluyoP3jW0ySm+YtFNuQz/NgP6tVnGR2hWWt0cG8+qblQHJbH5LShohEFSgWnXO+yGK3Fkq5RdWVWjaemuFFVlkCacgG24+6mfs4d0K825yreuX13pr28OvksuuLb7xN5kO/YqnDehKocQfEc9OWVqi9MTqnMNXSi6CCZzHSZs3P6S4DOuBCALQuojVo1HJbJxO50hvHkUS08BDmk4zNfy+YrNwW4OO19+jvSGeChgLDAXZn4LHIe7Py+79ANaqUbrbwClGtT2ek5eZSgtVCPZOBUvuE8h+w+H9Kdo6BNU8wjJbRA6uS1dS9z7f1XFTmvpsGdwjBRk6/OAouwBM9mQFPGSFH7LcZgYQSmszm7sM3uWRvYwIHhKqTRZetObZe+2MCWTqs8IJmMWlPGEA83IllreZoRsdypqNHphnhmsb/6ZtIqBRDHCwGIQW+sQocQjUyMT0nipDH273QVXK6TB/mZxkfug4badquQlYkwK430fO7pUasqu4jaL4yIher5CccRmzvMfiz+BpX4U3I8+KPjN8lk/jJwv95PK0IjQOIeq6eD4VkBT1U/Y8mOTQ+OxfH2ggIf3UjZzZjBar8+pxya04qMLDlrByrIsFRicphmdeZXi28Qgppnq3u3zBbY+K5R1WYcCvk+gLTiwKtvrrIR5y6Y4CAbhFrDdzZKJSSQBoRPFsnmKO+NAiVIGvg8Nm9YUZhxrYH7iFtv94kcTMmPSyX9IyO6bO+vSbbgpzgQ1SUU= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(346002)(396003)(376002)(136003)(39850400004)(36840700001)(46966006)(36756003)(82310400003)(83380400001)(81166007)(7696005)(47076005)(82740400003)(54906003)(36860700001)(5660300002)(8936002)(70206006)(16799955002)(70586007)(186003)(4326008)(356005)(26005)(2906002)(6666004)(2616005)(316002)(478600001)(19627235002)(426003)(86362001)(6916009)(336012)(1076003)(8676002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB2029 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT056.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 8a74fdb0-e5a0-4806-a7ee-08d95343fec0 X-Microsoft-Antispam-Message-Info: 2F6RFdyqzWo8HcXgdmWo5ePVcAdyH5w0NBDMS84ogBitY200dm9vS9NAQqW197Dv9gUlRn2aasDPMuwiqqw1mm87d/oBlROWeOuV044V1ynzW8+/HJlJF6EQgfuYT2WZ/ub2z9m9RXHioGK9HxD6OhP3Q6qgdCGGgBohLICqXdsJGfry6FacNDEYR0PDzH7yEIqsmHCVa799+CeDi16rVFSU7lbg9QskX0s1Fpyx3M4sY3QHX5y1VRBPJYJN6SHU3ytbSxo5bpAmrAralHr60Dw+O1oLN6XBeCq4T+vCSoYR6JFy9yQObYLVtH9TYPswsBX0334S+rzuu26buG0OUjZK1EQV0uRoyqPe9LeBOoIgT5VCZFiJqQ5kzI2WprciLFDDihfM+z/mMqRNWX525O4BVRkPeoir6FGJEVCW3dNX17FiAY+vvKVNe7YqZozTDbzKtAnOprhY+T1W8PfFhrg3P9LHuyU75Zn95/iQAhlUk47RjAFhj8A6PX80Cm763GM28Svx8Son2NyI11kRe3jzML++KtWc2fhVqG2dH0uYyDGq1I4Jxu9iHwGst9x/OOF9ZtYNfelxyYVQY2rwW1NsaEttcIcLFVBHz38eCpwm2LC4xp9JtWfKtSq7MPNtv6BzlFt0RNtDXAuhScs8/nuUt8JPYAdRB+b/rN1QRoObnkLClsMWkuRggxHKhtgKyeYIHbY9fx00qaWrREXLTTkWtnb34wWk2LjMbRJt+1r0y+bRE8p3IYJsYoR0XAFIAeiyDWhx/UPAFh6IK2/XUyDrO8SSWnnlXqnaIMKGDfKwswdePqF24B/LaK3pTMk4 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:23:04.6236 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d88c6235-2674-4b04-286d-08d953440467 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT056.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4550 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: 67eZjDTm4TnpWk4q0gwIqfgCx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640590; bh=XrvpUfelBFlNwQKDX1maNgFB6D85PO9HRmg4J6AqWZA=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=pMalOrKo/bzRH7dZDDwE6UlbwX3QLdltSpwuxOvK475R/frGJFY0ewNDBKqssB4YlCf U5INquuhvoJx5xdAoAeC8uV99FRPNoyOUGVhYIveNpI8V2NbrChMQjKNTFwC1sigV55tR via82oJCMXOUSN/JzHdQyUGqQ33Y+ioqAKM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640591378100033 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) Make changes to ACPI 6.4 header according to the latest specification: - ACPI 6.4 January 2021, Table 5.137, Table 5.140, Table 5.141 - Mantis ID 2138 (https://mantis.uefi.org/mantis/view.php?id=3D2138) Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi64.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index 4faed17a9e99525f9e09f0eac884264ba31ca47d..c905db93fabb6faa553dd49a9fe= d886437dd4daf 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -2603,7 +2603,7 @@ typedef struct { /// /// PPTT Revision (as defined in ACPI 6.4 spec.) /// -#define EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_REVISION 0x02 +#define EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_REVISION 0x03 =20 /// /// PPTT types @@ -2689,7 +2689,8 @@ typedef struct { UINT32 CacheTypeValid:1; UINT32 WritePolicyValid:1; UINT32 LineSizeValid:1; - UINT32 Reserved:25; + UINT32 CacheIdValid:1; + UINT32 Reserved:24; } EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_FLAGS; =20 /// @@ -2728,6 +2729,7 @@ typedef struct { UINT8 Associativity; EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_ATTRIBUTES Attributes; UINT16 LineSize; + UINT32 CacheId; } EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE; =20 /// --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78421): https://edk2.groups.io/g/devel/message/78421 Mute This Topic: https://groups.io/mt/84547385/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- From nobody Mon Apr 29 04:34:42 2024 Delivered-To: importer@patchew.org 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+78420+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1627640591193203.63017857228078; Fri, 30 Jul 2021 03:23:11 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id szl4YY1788612xbRAglKI5JD; Fri, 30 Jul 2021 03:23:10 -0700 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.68]) by mx.groups.io with SMTP id smtpd.web11.22214.1627640587663300870 for ; Fri, 30 Jul 2021 03:23:08 -0700 X-Received: from DB6PR0501CA0022.eurprd05.prod.outlook.com (2603:10a6:4:8f::32) by AM5PR0802MB2593.eurprd08.prod.outlook.com (2603:10a6:203:94::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Fri, 30 Jul 2021 10:23:05 +0000 X-Received: from DB5EUR03FT051.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:8f:cafe::88) by DB6PR0501CA0022.outlook.office365.com (2603:10a6:4:8f::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; 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+78420+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT051.mail.protection.outlook.com (10.152.21.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:23:05 +0000 X-Received: ("Tessian outbound 31e6e3649d31:v100"); Fri, 30 Jul 2021 10:23:05 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b9ba6c84ae713967 X-CR-MTA-TID: 64aa7808 X-Received: from 58db51921aac.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 20FD3C4B-84CD-46C3-A64D-35603ABFF945.1; Fri, 30 Jul 2021 10:22:59 +0000 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 58db51921aac.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 30 Jul 2021 10:22:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FzFtEWOJz9WSy+h8pU719QvJJzKKHKIY2z2oBuIduxHAt9C7oDNnyShRyyIxox5QJJ3T6UjvV7KhDaY5d4ssmbObRGGKjXsomcn1aoDUAicDWoZZm9kWgm7izh0wmFBhZgKF9vzzomPCeZv6Yy5zErjamzLQ3QbYAZ0Asxx0CEkQR3pKTMM4ENS0nbrxxw5ZePkDFXvKdXe1yaXWdN++Q6hvmj1DCtkmOA80NPMbZ9ZWl9hjnohaA9h8kBg1pYF6y2xeoGzUE7DTlbfX40lZ0xYf1Z5Av8GZ4NG1TxZCrgeZDzykXMsTNCOEya7tmzWTF0XeREojnRgdfWZWwx2sug== 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:X-MS-Exchange-SenderADCheck; bh=ZKcLAX95yeF7KURbviOgoeEEzRSjPQ4xfC/UHhIYNjk=; b=Nu3FFZittUxvl1N1ypUP8vWY0z7djE58F/Wp76ROboFP2M/yXP/Wz7/CGgD46BwLhmkLxMas5w+pBSnit69HcJOIsG68UBO+RlhlNHMnWCHn22FR7U/ocaKqyP4BBNYksCVpoxb9HvRUh3H1BDYXXaHnLnKjwhhK0vXH6ExE5KdI1s5AyTDdg9dTLc9jI1pscpdyytosYNSZkv8uXkG9XX5nLCw56axbs68dob1oDEqFpemVl2XgOmxigB+krhVJxW9N26nFDS8mjtZ++R6PjmNwP7+Djxo6pE7nYN/8JEpEoR9Bqe5RfRhyMDHpvQiISDL3bVAyRP5D1ZyeWMpFHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB8PR03CA0017.eurprd03.prod.outlook.com (2603:10a6:10:be::30) by VE1PR08MB4992.eurprd08.prod.outlook.com (2603:10a6:803:10f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Fri, 30 Jul 2021 10:22:56 +0000 X-Received: from DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:be:cafe::1e) by DB8PR03CA0017.outlook.office365.com (2603:10a6:10:be::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT016.mail.protection.outlook.com (10.152.20.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Fri, 30 Jul 2021 10:22:56 +0000 X-Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:47 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Fri, 30 Jul 2021 10:22:47 +0000 X-Received: from e125153.arm.com (10.57.39.90) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 30 Jul 2021 10:22:46 +0000 From: "Chris Jones" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH RESEND v1 13/13] MdePkg: Fix broken coding style in Acpi64.h Date: Fri, 30 Jul 2021 11:22:41 +0100 Message-ID: <20210730102241.508-14-christopher.jones@arm.com> In-Reply-To: <20210730102241.508-1-christopher.jones@arm.com> References: <20210730102241.508-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c3dca0db-0e0e-4e64-6783-08d9534404b9 X-MS-TrafficTypeDiagnostic: VE1PR08MB4992:|AM5PR0802MB2593: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:4502;OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Y2QyRVB24crQqMNMj6YA4TUrQY1dWp1ml+nvlwvOs+GeqvbQhpZMKO3BPsUP5/5YXZz29iFz7tRe3bW98RRvpfLGnBsENYioWYV2SaylBZ3eP4nKby3/97a9hCUHGBtHktBZNfKay/LZsu1kVqGPbYDmb69SoLM2vMIMJ/pXP5yK8HQ6fhYbveshC6+nNQEnA0k3wIFGeODQW3NSbJetSyZK/jX3qBogRl9b3mzkEYE6mALtkhtlIU6Holy9la3OBVhqVnfVF3wTopmvJUxx7fLe9Ih38iSlkR3X5Fq6cbLVr8UbLUJ+Vfuh0zJH3oFAvPXHHbH+19zzzuQyBs15OTuLHlD78uTnUsA+6OwZ46WEfnt5jRtdtnlM4UYjOZi8jmIN7T0pFoE4RWzkthFuaez6KdZj9ZG6NW769gtBAtDzJvGDFOlq8dbiP7F2udrLoghi4IfUKMaGjhlSsv9ZIJQ74ZBxFOlpjiQoIGehogSJroec3oAs4bj0TYTebSUbBFfxlBuWHjCG675f4gRCi8dJqI8TfQ2iMZgpPFLBpJPWog+60Lm7Dx+hmlPrg9UISOwkC0TPw7O9niUg6WGc6ovohPs+xlC1IPQ0Vtq1wbo2uzpPvxfvQ+UBqdRdsRDqSOLvh0VQ71psrHi+yfb1vBVkpCRvjksE+/5ZAfulG17jt99p1sGvzEcmIcid1UOdQMkQYDw8oq/aSR0YR5I8IqK7RBptdstgqiofAW0/0H8ncFXGnxaCY3M9OI6i2vnI+HJMLHrG8DV3nfMNenoLuR2WHNcqna/LYPRFftpCFv/bcddIgur3WUpgYwGy0LLB X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(376002)(136003)(39850400004)(396003)(346002)(46966006)(36840700001)(82310400003)(356005)(5660300002)(47076005)(36756003)(2906002)(478600001)(1076003)(6916009)(336012)(4326008)(36860700001)(82740400003)(54906003)(86362001)(8936002)(83380400001)(70586007)(316002)(426003)(81166007)(6666004)(8676002)(186003)(26005)(19627235002)(70206006)(2616005)(7696005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4992 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT051.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 5a3a2e47-d498-437d-257f-08d95343ffa5 X-Microsoft-Antispam-Message-Info: NFcWzcaUdOewNUwooKsFShDgInArbDjOxO4GDaNp/lKlUf4qHOyDOBj2SLV0kodX+s9pOEYHi1DeYy0nJ9xnGqPXmvRyYrmH3zzYJZs59pFhOTzipej8dKOS7agCqSI7y6jOV2/43z+WC41ZyrxP6j0blSdDi9EdjbZUyCQ0T8I70fydbwuneaRDrY6SsB0NWbfcat7otbCPGf5N64udPFoqBlZNUdsAzYfzHGEGPlySrh8O38LqHh5kpuQGnCeW7jsAk2Y6KOWuAQstFIjgEGUWdNjVlDGAg5quIjIugJk769+uUFg+ixtosmv8Kjg5/rNPPVJf1vEj9DL/TUzJlYyyjmS6Tat4ZIlMFH7iTChRW/9kIQzZ/W0HaNM0Uo1aLof00uQkrrwNR48ICUhUs9vK7Qt6TgTzG1Zs2WPXSlhueDNDmIfAVwW1I7FIRv38HxyN9AFm6ymaIzmdaU3pqTWb9vaHbA0fMnmB3zXdC5l9IObX2EzllzrgqkArX+KxRwm+YtR72LpbBWb8/zZO2EWohEjKjP0TJJPkyNX1C9iW4qXOu6OSxTnc6ka4NI8ryH21PPh8dm2L3dUOivAm0S5ffIqTJR+7oMi8ULJJmvu92hkPYyXsvkFx5/ci4xcdHhXOOC77nci01K2bvNP+Tq70A679NCBdfwiQz2r6J/HXwAbPcYIDfF2cZJq/dpgSbO3nveQg6dmx/ziEIKcsoCVUSez36EjHhveetBAhdD1DDiDMUIO3A4BrVebbE/3Sx9wOKLkVXPa+/iEyds5KeD6veLO6mK9A/V24c71Q1xo= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2021 10:23:05.1706 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c3dca0db-0e0e-4e64-6783-08d9534404b9 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT051.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0802MB2593 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,christopher.jones@arm.com X-Gm-Message-State: OcpGhdnZLD8aYJ2vTQ1y6A0Yx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1627640590; bh=3hdtLsJRKdTOKLQi5DEy+spXo00J6qBu9Fxsl9i3T0M=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=oZs14GpOvuzv6Eph0DXYdEKtofz0RL+u7geauhIrA5U+ZDZRW0/KJYKAQnjPcn8WL83 CnE1UIKAJSfHTIF7p58p10uQV/6dUF+9PYE6q/pX2PxzcI0Yxacbu9pRrAyU0MOOQpR8c swTSgArCJGhurA4DQ3kCVAu8BlJsrUomoJg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1627640593337100040 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3516) Fix several coding style issues raised by EccCheck. These issues are also present in previous versions of Acpi.h however seem to have been introduced prior to the CI check. - Error code: 7008 - complex types should be typedef-ed, Nested union in [EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE]. - Error code: 8005 - Variable name must contain lower case characters, Member variable [EFI_ACPI_6_4_GIC_STRUCTURE_.GICV]. - Error code: 8005 - Variable name must contain lower case characters, Member variable [EFI_ACPI_6_4_GIC_STRUCTURE_.GICH]. - Error code: 8005 - Variable name must contain lower case characters, Member variable [EFI_ACPI_6_4_GIC_STRUCTURE_.MPIDR]. Signed-off-by: Chris Jones --- MdePkg/Include/IndustryStandard/Acpi64.h | 39 +++++++++++--------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index c905db93fabb6faa553dd49a9fed886437dd4daf..abff78ea5d92afa4693689732d6= cd147c16ad11c 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -502,18 +502,18 @@ typedef struct { UINT8 Type; UINT8 Length; UINT16 Reserved; - UINT32 CPUInterfaceNumber; + UINT32 CpuInterfaceNumber; UINT32 AcpiProcessorUid; UINT32 Flags; UINT32 ParkingProtocolVersion; UINT32 PerformanceInterruptGsiv; UINT64 ParkedAddress; UINT64 PhysicalBaseAddress; - UINT64 GICV; - UINT64 GICH; - UINT32 VGICMaintenanceInterrupt; - UINT64 GICRBaseAddress; - UINT64 MPIDR; + UINT64 GicV; + UINT64 GicH; + UINT32 VGicMaintenanceInterrupt; + UINT64 GicRBaseAddress; + UINT64 MpIdr; UINT8 ProcessorPowerEfficiencyClass; UINT8 Reserved2; UINT16 SpeOverflowInterrupt; @@ -788,22 +788,25 @@ typedef struct { } EFI_ACPI_6_4_DEVICE_HANDLE_PCI; =20 /// -/// Generic Initiator Affinity Structure +/// Device Handle /// -typedef struct { - UINT8 Type; - UINT8 Length; - UINT8 Reserved1; - UINT8 DeviceHandleType; - UINT32 ProximityDomain; - - union { +typedef union { EFI_ACPI_6_4_DEVICE_HANDLE_ACPI Acpi; EFI_ACPI_6_4_DEVICE_HANDLE_PCI Pci; - } DeviceHandle; +} EFI_ACPI_6_4_DEVICE_HANDLE; =20 - UINT32 Flags; - UINT8 Reserved2[4]; +/// +/// Generic Initiator Affinity Structure +/// +typedef struct { + UINT8 Type; + UINT8 Length; + UINT8 Reserved1; + UINT8 DeviceHandleType; + UINT32 ProximityDomain; + EFI_ACPI_6_4_DEVICE_HANDLE DeviceHandle; + UINT32 Flags; + UINT8 Reserved2[4]; } EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE; =20 /// --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=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 (#78420): https://edk2.groups.io/g/devel/message/78420 Mute This Topic: https://groups.io/mt/84547384/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-