From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.68]) by mx.groups.io with SMTP id smtpd.web09.20817.1660681118884264025 for ; Tue, 16 Aug 2022 13:18:39 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nvidia.com header.s=selector2 header.b=gcCccXox; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: nvidia.com, ip: 40.107.243.68, mailfrom: username@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X1/FbpN+7U43XKyB9jGkPncVdZoYKDsjWAtLME01fQKuiHM/81fsU/tlPbWd1OYYkg5m1aYslMB6QA0K37llF0xnSz4n/IUCsomI41jjeI/yn+sqKRq/AR8LxCiL29OoYrxqATmJNpcBf1u9VZ4V1raVVGmnaoC1xiQcXu7RCHXXYOkplYGwYraTJ9n5F+RyBxJw2YLZjR8J5fCcpE6cbp6xD9YLrCuBpGMPxGQa/Lw8brjx0FzjMf1p/0bpYnqT7oOrj76YxvQA3EQ6ialCcVq33C65A21yx0TNzA3+kPZ8+FPnfQesNKYoqlJPnGskpmrSdOAfcOdxZ2bNfOG1qg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fuB9dFh2qgJLvvZucMPRC/NLIXCvawSDvB++hAY5/7s=; b=MjwcHmb2XE4XRAnjV6K7WRscO67ZoNgY48ZTI9ocRXHyHR2yaWjtlUZpRdcEyus0pBUgPCMVlaDuYM3otyk2lS7Ywf99z0jZbL83GDtKshwV5uAcgbK3Sd1P3Jf0eQnVDyVV+21GN71WAl7QI8/nClCRNeJojLUYUhYyfS2ZnScnxfywHXcvhchbob53EDtBmnv5q2abmCLJU6vl+5v27FB6xF9bFz3OptE7iMCNCYslrUGGFM2UgDFJ1EVaiBHdcdMjzlbcJarDxnZaS35pycPeOe81JZffUXG3C0HbFiZRXzpt6WmMuJ5r/PPhIjX5g4nhKGHSOADPFRNK3LYcqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fuB9dFh2qgJLvvZucMPRC/NLIXCvawSDvB++hAY5/7s=; b=gcCccXoxXRikoKu+3mFVv5R6Vgg4wFXY6ZmxoKdzIMHLw+1YqzzfYESb89SInGNojIMRdeJGGwQW994YqtywgzekRfvPVVlSbgbwodbDPutNrIQ89+HoqAEYduslxph3jBRZz7wo3zZ4RmbJMYxRQsOAgVxzZWq6kOIM8H6huYs5tXzC/xsTGiC8UqeLs+FoHuRY/knnilTa3yLbeHFVoP4Y/0vtcDLQczm9tESZwzkMGYt6LUbl9QxTMEsCJ71fD4g/0xlphPRErmVvzqaviLdynNwpmN/heT5rkZujMqiUB3SKW0yaE5vJcpPiPIP4aoDQwJfYHdHdER8lD8MvVg== Received: from MW4P222CA0015.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:114::20) by CY4PR12MB1237.namprd12.prod.outlook.com (2603:10b6:903:3e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.16; Tue, 16 Aug 2022 20:18:36 +0000 Received: from CO1NAM11FT056.eop-nam11.prod.protection.outlook.com (2603:10b6:303:114:cafe::be) by MW4P222CA0015.outlook.office365.com (2603:10b6:303:114::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.16 via Frontend Transport; Tue, 16 Aug 2022 20:18:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.236) by CO1NAM11FT056.mail.protection.outlook.com (10.13.175.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5525.11 via Frontend Transport; Tue, 16 Aug 2022 20:18:36 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Tue, 16 Aug 2022 20:18:29 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) by rnnvmail204.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Tue, 16 Aug 2022 13:18:28 -0700 Received: from swatisrik-X299-A.nvidia.com (10.127.8.9) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.986.29 via Frontend Transport; Tue, 16 Aug 2022 13:18:28 -0700 From: Name To: , , , , , CC: Swatisri Kantamsetti Subject: [PATCH 1/2] Mde Pkg: Support for MPAM ACPI Table Date: Tue, 16 Aug 2022 14:18:21 -0600 Message-ID: <7f8a5c9bbdf1a1f01c6fc822fa298067d280079a.1660667637.git.swatisrik@nvidia.com> X-Mailer: git-send-email 2.17.1 Return-Path: username@nvidia.com MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c7971b25-560c-43d6-c45a-08da7fc47fd6 X-MS-TrafficTypeDiagnostic: CY4PR12MB1237:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j66kX0vcVXb2Sx2pzWmCIRowjBy2SzLSQ69OHDVOEqgjfnBCUEjyAqfn41aJ7EvI+amRHiEByOJ/l35QWk39pAfwWCSUmE4kkv61WQ6PvwhIAWFaYcgzjsboJwehwrG3yf78X4H8jz9QYbfrjR8vCSA12Rombgfh1ES1OCXeKnd0mi2gnw51c1RzXLv/2G4gkorZWlu48ZBJIx6Fwym5kJOXRDL58laqA7bnhU5Qqxnb3xI39/nCPtpMcgoF8T5VoogIHGZNiJxbo3fIhS8Og+hSmd/3wFsGpKIoeDHnOWQ0kejFvoIe7bl9CEZH0ZuWtmbGf9D38atm33wrlgmD8HNHtzNGkfCg+GqPPN+tRqoBxpuPlxyDEc1b8P6OOtrhBY2R3MbGdS3AADB3hIZQyNjQq7PSEqCWGMbUI6ep5GAotfNCWwhh2dUQKOVK4+LeJLexpXz4Hfb4Xwh5XxkUACBZpeJw9Blkd4+/JkkYG3gVtfyM800MzrkL50ZrYjAxa0zL+2sPAzeydjNanryBqaf/v4geceZ4Er2EF16BEh8MVqmtqEmnzWuZgjU45VWtbQYpXHD0KYBFvOTIzVXuUe5fHWzcw65dVPLCrrAR+E3Sa71E+8OXKCU1bJS8hN3B7w4bwIvz4pXVnHXWYP/akuVqG6bMLWPnyT1wN7IB3PXsSxaEupU4fgzdyGwx8j6lLq11RP6JmOvM6bC+2TzgDVpaUYgKMIb9s0K2uTdmpgrdyCbqVQVpKwBzWumHS5yBUmX5bhmW407UNF8OG/z8+PzHEI7oFdlzW10nzL87tsEw5xSHRJJTNQt1KoMv3GE0GiiXwa2EZUtBdFnXgvNFAQ== X-Forefront-Antispam-Report: CIP:12.22.5.236;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:InfoNoRecords;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(346002)(376002)(396003)(136003)(46966006)(36840700001)(40470700004)(5660300002)(478600001)(82310400005)(86362001)(8936002)(186003)(26005)(2616005)(6666004)(82740400003)(41300700001)(2906002)(7696005)(356005)(81166007)(107886003)(36860700001)(336012)(426003)(40460700003)(47076005)(83380400001)(316002)(110136005)(40480700001)(36756003)(19627235002)(4326008)(8676002)(70206006)(70586007)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2022 20:18:36.0508 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c7971b25-560c-43d6-c45a-08da7fc47fd6 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[12.22.5.236];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT056.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1237 Content-Type: text/plain From: Swatisri Kantamsetti Added MPAM table header, MSC and Resource Node info structures Signed-off-by: Swatisri Kantamsetti --- MdePkg/Include/IndustryStandard/Acpi64.h | 5 ++ MdePkg/Include/IndustryStandard/Mpam.h | 69 ++++++++++++++++++++++++ 2 files changed, 74 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..e0f75f0114 --- /dev/null +++ b/MdePkg/Include/IndustryStandard/Mpam.h @@ -0,0 +1,69 @@ +/** @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_ + +#pragma pack(1) + +/// +/// Memory System Resource Partitioning and Monitoring Table (MPAM) +/// +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 NumNodes; + UINT32 NodeOffset; + UINT32 Reserved; +} 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 Locator; + UINT32 NumFuncDep; +} EFI_ACPI_6_4_MPAM_RESOURCE_NODE; + +#pragma pack() + +#endif -- 2.17.1