From: "Chris Jones" <christopher.jones@arm.com>
To: <devel@edk2.groups.io>
Cc: Sami Mujawar <Sami.Mujawar@arm.com>,
Akanksha Jain <Akanksha.Jain2@arm.com>,
Ben Adderson <Ben.Adderson@arm.com>,
Michael Kinney <michael.d.kinney@intel.com>,
<gaoliming@byosoft.com.cn>, <zhiguang.liu@intel.com>,
Leif Lindholm <leif.lindholm@linaro.org>,
"Matteo Carlini" <Matteo.Carlini@arm.com>, <nd@arm.com>
Subject: [PATCH v2 10/13] MdePkg: Add the Platform Health Assessment Table (PHAT)
Date: Thu, 5 Aug 2021 17:25:19 +0100 [thread overview]
Message-ID: <20210805162522.13201-11-christopher.jones@arm.com> (raw)
In-Reply-To: <20210805162522.13201-1-christopher.jones@arm.com>
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 <christopher.jones@arm.com>
---
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")
next prev parent reply other threads:[~2021-08-05 16:26 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-05 16:25 [PATCH v2 00/13] Add ACPI 6.4 header file Chris Jones
2021-08-05 16:25 ` [PATCH v2 01/13] MdePkg: " Chris Jones
2021-08-05 16:25 ` [PATCH v2 02/13] MdePkg: Increment FADT version Chris Jones
2021-08-05 16:25 ` [PATCH v2 03/13] MdePkg: Rename SBSA Generic Watchdog to Arm Generic Watchdog Chris Jones
2021-08-05 16:25 ` [PATCH v2 04/13] MdePkg: Update PMTT to ACPI 6.4 Chris Jones
2021-08-05 16:25 ` [PATCH v2 05/13] MdePkg: Add SPA Location Cookie field to SPA Range structure Chris Jones
2021-08-05 16:25 ` [PATCH v2 06/13] MdePkg: Remove DPPT table Chris Jones
2021-08-05 16:25 ` [PATCH v2 07/13] MdePkg: Add flags and MinTransferSize to Generic Initiator Chris Jones
2021-08-05 16:25 ` [PATCH v2 08/13] MdePkg: Add 'Type 5' PCC structure Chris Jones
2021-08-05 16:25 ` [PATCH v2 09/13] MdePkg: Add Multiprocessor Wakeup structure Chris Jones
2021-08-05 16:25 ` Chris Jones [this message]
2021-08-05 16:25 ` [PATCH v2 11/13] MdePkg: Add Secure Access Components in the SDEV table Chris Jones
2021-08-05 16:25 ` [PATCH v2 12/13] MdePkg: Add Cache ID to PPTT Chris Jones
2021-08-05 16:25 ` [PATCH v2 13/13] MdePkg: Fix broken coding style in Acpi64.h Chris Jones
2021-08-06 1:28 ` 回复: [edk2-devel] [PATCH v2 00/13] Add ACPI 6.4 header file gaoliming
2021-08-06 8:19 ` Sami Mujawar
2021-08-11 1:27 ` 回复: [edk2-devel] " gaoliming
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210805162522.13201-11-christopher.jones@arm.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox