From: Name <username@nvidia.com>
To: <devel@edk2.groups.io>, <Sami.Mujawar@arm.com>,
<Alexei.Fedorov@arm.com>, <michael.d.kinney@intel.com>,
<gaoliming@byosoft.com.cn>, <zhiguang.liu@intel.com>,
<rohit.mathew@arm.com>
Cc: Swatisri Kantamsetti <swatisrik@nvidia.com>
Subject: [PATCH 1/2] MdePkg: Support for MPAM ACPI Table
Date: Tue, 20 Sep 2022 14:43:45 -0600 [thread overview]
Message-ID: <20beae4fa7cdf1876adbb33f99da41ebd9eaa6be.1663706139.git.swatisrik@nvidia.com> (raw)
From: Swatisri Kantamsetti <swatisrik@nvidia.com>
Added MPAM table header, MSC and Resource Node
info structures
Signed-off-by: Swatisri Kantamsetti <swatisrik@nvidia.com>
---
MdePkg/Include/IndustryStandard/Acpi64.h | 5 ++
MdePkg/Include/IndustryStandard/Mpam.h | 95 ++++++++++++++++++++++++
2 files changed, 100 insertions(+)
create mode 100644 MdePkg/Include/IndustryStandard/Mpam.h
diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/IndustryStandard/Acpi64.h
index fe5ebfac2b..e54f631186 100644
--- a/MdePkg/Include/IndustryStandard/Acpi64.h
+++ b/MdePkg/Include/IndustryStandard/Acpi64.h
@@ -2952,6 +2952,11 @@ typedef struct {
///
#define EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('P', 'P', 'T', 'T')
+///
+/// "MPAM" Memory System Resource Partitioning And Monitoring Table
+///
+#define EFI_ACPI_6_4_MEMORY_SYSTEM_RESOURCE_PARTITIONING_MONITORING_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('M', 'P', 'A', 'M')
+
///
/// "PSDT" Persistent System Description Table
///
diff --git a/MdePkg/Include/IndustryStandard/Mpam.h b/MdePkg/Include/IndustryStandard/Mpam.h
new file mode 100644
index 0000000000..ca750a6e48
--- /dev/null
+++ b/MdePkg/Include/IndustryStandard/Mpam.h
@@ -0,0 +1,95 @@
+/** @file
+ ACPI Memory System Resource Partitioning And Monitoring (MPAM)
+ as specified in ARM spec DEN0065
+
+ Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
+ Copyright (c) 2022, ARM Limited. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+**/
+
+#ifndef _MPAM_H_
+#define _MPAM_H_
+
+///
+/// Location Types
+///
+#define EFI_ACPI_MPAM_LOCATION_TYPE_PROCESSOR_CACHE 0x00
+#define EFI_ACPI_MPAM_LOCATION_TYPE_MEMORY 0x01
+#define EFI_ACPI_MPAM_LOCATION_TYPE_SMMU 0x02
+#define EFI_ACPI_MPAM_LOCATION_TYPE_MEMORY_CACHE 0x03
+#define EFI_ACPI_MPAM_LOCATION_TYPE_ACPI_DEVICE 0x04
+
+///
+/// Interrupt Flags
+///
+#define EFI_ACPI_MPAM_LEVEL_TRIG_INTERRUPT_MODE 0x0
+#define EFI_ACPI_MPAM_EDGE_TRIG_INTERRUPT_MODE 0x1
+#define EFI_ACPI_MPAM_WIRED_INTERRUPT_TYPE 0x0
+#define EFI_ACPI_MPAM_PROC_INTR_AFF_TYPE 0x0
+#define EFI_ACPI_MPAM_PROC_CONTAINER_INTR_AFF_TYPE 0x8
+#define EFI_ACPI_MPAM_AFFINITY_VALID 0x10
+
+#pragma pack(1)
+
+///
+/// Memory System Resource Partitioning and Monitoring Table (MPAM)
+///
+typedef struct {
+ EFI_ACPI_DESCRIPTION_HEADER Header;
+} EFI_ACPI_6_4_MEMORY_SYSTEM_RESOURCE_PARTITIONING_MONITORING_TABLE_HEADER;
+
+///
+/// MPAM Revision (as defined in ACPI 6.4 spec.)
+///
+#define EFI_ACPI_6_4_MEMORY_SYSTEM_RESOURCE_PARTITIONING_MONITORING_TABLE_REVISION 0x01
+
+///
+/// Memory System Controller Node Structure
+///
+
+typedef struct {
+ UINT16 Length;
+ UINT16 Reserved;
+ UINT32 Identifier;
+ UINT64 BaseAddress;
+ UINT32 MmioSize;
+ UINT32 OverflowInterrupt;
+ UINT32 OverflowInterruptFlags;
+ UINT32 Reserved1;
+ UINT32 OverflowInterruptAff;
+ UINT32 ErrorInterrupt;
+ UINT32 ErrorInterruptFlags;
+ UINT32 Reserved2;
+ UINT32 ErrorInterruptAff;
+ UINT32 MaxNRdyUsec;
+ UINT64 LinkedDeviceHwId;
+ UINT32 LinkedDeviceInstanceHwId;
+ UINT32 NumResourceNodes;
+} EFI_ACPI_6_4_MPAM_MSC_NODE;
+
+///
+/// Resource Node Structure
+///
+
+typedef struct {
+ UINT32 Identifier;
+ UINT8 RisIndex;
+ UINT16 Reserved1;
+ UINT8 LocatorType;
+ UINT64 Locator1;
+ UINT32 Locator2;
+ UINT32 NumFuncDep;
+} EFI_ACPI_6_4_MPAM_RESOURCE_NODE;
+
+///
+/// Functional Dependency Structure
+///
+
+typedef struct {
+ UINT32 Producer;
+ UINT32 Reserved1;
+} EFI_ACPI_6_4_MPAM_FUNC_DEP_NODE;
+
+#pragma pack()
+
+#endif
--
2.17.1
next reply other threads:[~2022-09-20 20:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-20 20:43 Name [this message]
2022-09-20 20:43 ` [PATCH 2/2] DynamicTablesPkg: MPAM: MPAM Generator and supporting files Name
2022-10-03 13:00 ` [edk2-devel] [PATCH 1/2] MdePkg: Support for MPAM ACPI Table Sami Mujawar
2023-01-16 15:46 ` Rohit Mathew
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=20beae4fa7cdf1876adbb33f99da41ebd9eaa6be.1663706139.git.swatisrik@nvidia.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