From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.83]) by mx.groups.io with SMTP id smtpd.web12.7228.1666881667902276053 for ; Thu, 27 Oct 2022 07:41:08 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nvidia.com header.s=selector2 header.b=dei/R7qJ; 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.92.83, mailfrom: jbrasen@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hnbbJKaKMpo73dF8ZQw3xyjoeyGk+f/ygQf5DVl3Ui6IDgwu5EaJclGzuenMc92nUF3ALitoC8WmvTL1jT01dLVStnEX3l7jT9lqwygxh7Ct73MoA0zui58jJHj8Rf9hf83Nvl+3D1KBGHishLFeb0R09Bxv5YiGP0nzrtFekGqTOqRNt82OusrxW1qIX9zv5XI5xMZKHxeHx4i4yt3QDXXkzYAexzctg8jODAUV7P+GdRn1rlVPJuACXXGSdg8ROxdEyv4kSmlwDcG5K5dShp/ILXggJyvwstAD9AXtizZWtxTAMBzvboki7viGpjWRrjpSBzKkvr8FiIHwvcwDRA== 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=UTz0UGkA8KCo2K8ka2tgkbBpQnBEW2cF6L5h3n0Eih0=; b=YYzJikig0RKaXI/RllJO2trQ1YZmt8mDjKE3xGIdG5Nh0vjHmY6nwNSL+mtQrUx2mRlTlssuQLkAKC+FaWAuRJzqGFEz2vNu9He+rSYGiRQ+Mdz+E08F9v0A11zqeisVjyuaYUAwc9ImmeVwr9KJUapMulQQsqodlczMGimajkvwQ4D9hcxqrVDNd+wCzMlKeWjhFDOVWPSbjsvGeXk13PWoz6WmvKf6EVajYJKV9JTWE3u+kuoVZmmvQ9an8i90F0FLvTkFA+CpHr6ntqves3PBAI1iLvWDBoriHqDcHVifHnFesZc4FNJtrP1WXMEX74wNbzRu1N6P1NFD2l8/EA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=edk2.groups.io 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=UTz0UGkA8KCo2K8ka2tgkbBpQnBEW2cF6L5h3n0Eih0=; b=dei/R7qJu+qdRThzgTW00CN2D5UnxrqXmEu/5eqrSPhqW2Bd9xyptHLOAEDPKTIcvux5WBbuEad3Fgw30WYlhJP5mmM6uJZC5gRPlsQe/rP8pzxHUm9EWTDn3bFjorcn9LfPnY0tgZ9fPspXX9ahFwOWA+kyVf6r+PdI4fqwtIPUUYUPjrwPtSuoVZjwrdMtRkEy3HZLc04MkF2s6q37cM+55ULbxGQnT/qbzr8lTMQtWPdH9yDKsgwEjcLO9yLgr16ekUDocVqxWZrNywrLzbmD9B4aS5YvLFV6+ggXxQgTYSrcjPkcAUpAsPK+CByDRUiMgFwKdjK9vS4uygPfrg== Received: from MW2PR2101CA0019.namprd21.prod.outlook.com (2603:10b6:302:1::32) by PH0PR12MB8032.namprd12.prod.outlook.com (2603:10b6:510:26f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15; Thu, 27 Oct 2022 14:41:05 +0000 Received: from CO1NAM11FT092.eop-nam11.prod.protection.outlook.com (2603:10b6:302:1:cafe::eb) by MW2PR2101CA0019.outlook.office365.com (2603:10b6:302:1::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.9 via Frontend Transport; Thu, 27 Oct 2022 14:41:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT092.mail.protection.outlook.com (10.13.175.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.16 via Frontend Transport; Thu, 27 Oct 2022 14:41:05 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Thu, 27 Oct 2022 07:40:54 -0700 Received: from rnnvmail201.nvidia.com (10.129.68.8) 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; Thu, 27 Oct 2022 07:40:54 -0700 Received: from localhost.localdomain (10.127.8.9) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server id 15.2.986.29 via Frontend Transport; Thu, 27 Oct 2022 07:40:53 -0700 From: "Jeff Brasen" To: CC: , , , , , "Jeff Brasen" Subject: [PATCH 1/2] MdePkg/IndustryStandard: add definitions for ACPI APMT Date: Thu, 27 Oct 2022 08:40:57 -0600 Message-ID: <1dd062eed3bce95a7928fa41f8e3821897867b4c.1666881494.git.jbrasen@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-NVConfidentiality: public Return-Path: jbrasen@nvidia.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT092:EE_|PH0PR12MB8032:EE_ X-MS-Office365-Filtering-Correlation-Id: 45469750-9298-40f1-2466-08dab8294715 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XOOfvXTRffq4H8/1D8w/F7y6P3tvo6ovQKZGRY9UOnVV/onVp6fB55nRct11XuSFnvi/uL6VDwGlrQKWA9CNJ16Fb5xxfiEHJC66Xb9kFKupE226TmvxWRpZO4U4DkLPg1oMVytS+0ukM1EK+6CwKMnPkOz67S759N4lu0B/uWDwa29lgGzyjlWKx7QOYOGjgiJybbe3FRE55h4EXkVwCWl2W4V8mWMHk/UUbp4ncZPuVEQYsSZmowxUvhBjGPOcI6nkswJLW5FPbRoqVgaSGB+qIP8IvNE23pID/CQjoQ1Ive+xlIc3fcE3O4fgafToAsHvWKCiKWmN/1C/ItN7bmWAujBws3ueU0nLsx0Oz+ciwEdp92oBk98pRAQONsy/HugVKU3MFuONbu24xkxR1Gr5tD1I5rUI6+LqX9nRF0IQXCcmSp5oz8A7Jmb6jl9CF26WPKfJvVwozlpa++JxNl6zjTWbtYmqICfXSl++4KkucN1ktFke28g9aYv0lC5MTV5IQpJHU3L9gs8dDv2UL+Cvc+rs4u9Q1OaVCAYHL4wdNe0XB53Ho6VK7rnwzXPiFw4CTC9daFNz43n2KladLfZrKbUPg19+1fOXKkH/lb8DMJYxztHaB2ohWJAUIFfO/74XtsiXUxNFbST71HV7EsyfDTR6bRJGqvrEQONDwJB6UqT9RMYVRDMnJWAMFiMjOKjGALMdzePkP/2itUyG0kdONYs5NQACU2JjZ54wGhC2V9uuOo0aeavoO1xDqJJuv4TgMDYo2vY1vkj8tCsUhQ== X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(376002)(39860400002)(346002)(396003)(136003)(451199015)(46966006)(36840700001)(40470700004)(356005)(7636003)(70586007)(70206006)(4326008)(8676002)(47076005)(426003)(5660300002)(2616005)(2906002)(336012)(186003)(36756003)(82310400005)(83380400001)(41300700001)(40480700001)(8936002)(26005)(86362001)(36860700001)(40460700003)(478600001)(54906003)(6916009)(82740400003)(316002)(19627235002)(107886003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 14:41:05.0521 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 45469750-9298-40f1-2466-08dab8294715 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT092.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8032 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain This adds #defines and struct typedefs for the various node types in=0D the ACPI Arm Performance Monitoring Unit (APMT) table.=0D =0D Signed-off-by: Jeff Brasen =0D ---=0D MdePkg/Include/IndustryStandard/Acpi64.h | 5 ++=0D .../ArmPerformanceMonitoringUnitTable.h | 69 +++++++++++++++++++=0D 2 files changed, 74 insertions(+)=0D create mode 100644 MdePkg/Include/IndustryStandard/ArmPerformanceMonitorin= gUnitTable.h=0D =0D diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h=0D index fe5ebfac2b..575ca0430c 100644=0D --- a/MdePkg/Include/IndustryStandard/Acpi64.h=0D +++ b/MdePkg/Include/IndustryStandard/Acpi64.h=0D @@ -2847,6 +2847,11 @@ typedef struct {=0D ///=0D #define EFI_ACPI_6_4_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_= 32('A', 'P', 'I', 'C')=0D =0D +///=0D +/// "APMT" Arm Performance Monitoring Unit Table=0D +///=0D +#define EFI_ACPI_6_4_ARM_PERFORMANCE_MONITORING_UNIT_TABLE_SIGNATURE SIGN= ATURE_32('A', 'P', 'M', 'T')=0D +=0D ///=0D /// "BERT" Boot Error Record Table=0D ///=0D diff --git a/MdePkg/Include/IndustryStandard/ArmPerformanceMonitoringUnitTa= ble.h b/MdePkg/Include/IndustryStandard/ArmPerformanceMonitoringUnitTable.h= =0D new file mode 100644=0D index 0000000000..fe7084cffd=0D --- /dev/null=0D +++ b/MdePkg/Include/IndustryStandard/ArmPerformanceMonitoringUnitTable.h=0D @@ -0,0 +1,69 @@=0D +/** @file=0D + ACPI Arm Performance Monitoring Unit (APMT) table=0D + as specified in ARM spec DEN0117=0D +=0D + Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.=0D + Copyright (c) 2022, ARM Limited. All rights reserved.=0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +**/=0D +=0D +#ifndef ARM_PERFORMANCE_MONITORING_UNIT_TABLE_H_=0D +#define ARM_PERFORMANCE_MONITORING_UNIT_TABLE_H_=0D +=0D +#include =0D +=0D +#pragma pack(1)=0D +=0D +///=0D +/// Arm Performance Monitoring Unit (APMT) tabl=0D +///=0D +typedef struct {=0D + EFI_ACPI_DESCRIPTION_HEADER Header;=0D +} EFI_ACPI_ARM_PERFORMANCE_MONITORING_UNIT_TABLE_HEADER;=0D +=0D +///=0D +/// APMT Revision (as defined in DEN0117.)=0D +///=0D +#define EFI_ACPI_ARM_PERFORMANCE_MONITORING_UNIT_TABLE_REVISION 0x00=0D +=0D +///=0D +/// Arm PMU Node Structure=0D +///=0D +=0D +// Node Flags=0D +#define EFI_ACPI_APMT_DUAL_PAGE_EXTENSION_SUPPORTED BIT0=0D +#define EFI_ACPI_APMT_PROCESSOR_AFFINITY_TYPE_CONTAINER BIT1=0D +#define EFI_ACPI_APMT_PROCESSOR_AFFINITY_TYPE_PROCESSOR 0 // BIT 1=0D +#define EFI_ACPI_APMT_64BIT_SINGLE_COPY_ATOMICITY_SUPPORTED BIT2=0D +=0D +// Interrupt Flags=0D +#define EFI_ACPI_APMT_INTERRUPT_MODE_EDGE_TRIGGERED BIT0=0D +#define EFI_ACPI_APMT_INTERRUPT_MODE_LEVEL_TRIGGERED 0 // BIT 0=0D +#define EFI_ACPI_APMT_INTERRUPT_TYPE_WIRED 0 // BIT 1=0D +=0D +// Node Type=0D +#define EFI_ACPI_APMT_NODE_TYPE_MEMORY_CONTROLLER 0x00=0D +#define EFI_ACPI_APMT_NODE_TYPE_SMMU 0x01=0D +#define EFI_ACPI_APMT_NODE_TYPE_PCIE_ROOT_COMPLEX 0x02=0D +#define EFI_ACPI_APMT_NODE_TYPE_ACPI_DEVICE 0x03=0D +#define EFI_ACPI_APMT_NODE_TYPE_CPU_CACHE 0x04=0D +=0D +typedef struct {=0D + UINT16 Length;=0D + UINT8 NodeFlags;=0D + UINT8 NodeType;=0D + UINT32 Identifier;=0D + UINT64 NodeInstancePrimary;=0D + UINT32 NodeInstanceSecondary;=0D + UINT64 BaseAddress0;=0D + UINT64 BaseAddress1;=0D + UINT32 OverflowInterrupt;=0D + UINT32 Reserved1;=0D + UINT32 OverflowInterruptFlags;=0D + UINT32 ProcessorAffinity;=0D + UINT32 ImplementationId;=0D +} EFI_ACPI_ARM_PERFORMANCE_MONITORING_UNIT_NODE;=0D +=0D +#pragma pack()=0D +=0D +#endif=0D -- =0D 2.25.1=0D =0D