From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=Tip7Kp/G; spf=pass (domain: arm.com, ip: 40.107.20.62, mailfrom: christopher.jones@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qhuyAdoJ7pR041V2vLKVCrO5oWky57H5koJGDZi/634=; b=Tip7Kp/G1d+qKBlJGjz/Zm2M/tqO8UNSNd0j0n0y9OBG+pudzTVS9RjVlXRSuHQ5VHrnJJPDtCIVTnmn7I02tJKBeAqqkcNyici4gFVpUfAAh+4Ch1n45G1XrxFxVz6miQ8Ad13cdh/Ij/qW9z8LXD5KxDV9+LH4/IX44PP+YTY= 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 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 (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; 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 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 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 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qhuyAdoJ7pR041V2vLKVCrO5oWky57H5koJGDZi/634=; b=Tip7Kp/G1d+qKBlJGjz/Zm2M/tqO8UNSNd0j0n0y9OBG+pudzTVS9RjVlXRSuHQ5VHrnJJPDtCIVTnmn7I02tJKBeAqqkcNyici4gFVpUfAAh+4Ch1n45G1XrxFxVz6miQ8Ad13cdh/Ij/qW9z8LXD5KxDV9+LH4/IX44PP+YTY= 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 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; 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 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 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: [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> X-Mailer: git-send-email 2.17.1 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 Return-Path: Christopher.Jones@arm.com 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: BCL:0; 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-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(346002)(396003)(376002)(136003)(39850400004)(36840700001)(46966006)(36860700001)(81166007)(82740400003)(1076003)(6666004)(4326008)(19627235002)(86362001)(54906003)(16799955002)(336012)(186003)(316002)(8676002)(2616005)(47076005)(2906002)(70586007)(8936002)(7696005)(6916009)(426003)(82310400003)(5660300002)(26005)(36756003)(478600001)(70206006);DIR:OUT;SFP:1101; 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 Content-Type: text/plain Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3516) 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=2094) 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/IndustryStandard/Acpi64.h index 5864870e2ba60eca0e8b04b7b2ab1217895b4994..cd093003805799541696516e809d0c800137510e 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; +/// +/// 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 0x00 +#define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_NO_ERRORS_FOUND 0x01 +#define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_UNKNOWN 0x02 +#define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_ADVISORY 0x03 + // // Known table signatures // @@ -2957,6 +3031,11 @@ typedef struct { /// #define EFI_ACPI_6_4_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE SIGNATURE_32('P', 'C', 'C', 'T') +/// +/// "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 /// -- Guid("CE165669-3EF3-493F-B85D-6190EE5B9759")