From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id E1DCA740041 for ; Thu, 25 Jan 2024 15:19:20 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=eheK0bbxSMiQwKhyRClubovfEofqsh3QF1lonWEwcHE=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1706195959; v=1; b=p9tSdF4i2DhixrMFCeUpmgBXnF6eKHT/Rh2SQwjNjOkjrgdD8yRI6HW1Xx94im4nr7/ghqW6 fHfDGLrwQ6ymeEebXipypfcl9e4LsJTqy5Vw0A9FEMi0WMkXcyIAJ6tGr0iVfzogwntnYV9/WS/ B9lz+6RqzTZ5CbLNyjAtstXM= X-Received: by 127.0.0.2 with SMTP id RWQCYY7687511xZhOg0qQfFG; Thu, 25 Jan 2024 07:19:19 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.20299.1706195959008295862 for ; Thu, 25 Jan 2024 07:19:19 -0800 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 24B68FEC; Thu, 25 Jan 2024 07:20:03 -0800 (PST) X-Received: from e126645.arm.com (unknown [10.57.47.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5BEDC3F5A1; Thu, 25 Jan 2024 07:19:17 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io Cc: Sami Mujawar , Leif Lindholm , Ard Biesheuvel , Pierre Gondois Subject: [edk2-devel] [PATCH v5 05/11] DynamicTablesPkg: Add CM_ARM_PSD_INFO object Date: Thu, 25 Jan 2024 16:18:44 +0100 Message-Id: <20240125151850.620749-6-pierre.gondois@arm.com> In-Reply-To: <20240125151850.620749-1-pierre.gondois@arm.com> References: <20240125151850.620749-1-pierre.gondois@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: bNOX5n9EJjZcLphypnpdx2X4x7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=p9tSdF4i; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Add an object describing _PSD information, cf. ACPI 6.5, s8.4.5.5 _PSD (P-State Dependency). Also add the corresponding CmObjParser. Signed-off-by: Pierre Gondois --- DynamicTablesPkg/Include/AcpiObjects.h | 20 +++++++++++++++++++ .../Include/ArmNameSpaceObjects.h | 10 ++++++++++ .../ConfigurationManagerObjectParser.c | 11 ++++++++++ 3 files changed, 41 insertions(+) diff --git a/DynamicTablesPkg/Include/AcpiObjects.h b/DynamicTablesPkg/Incl= ude/AcpiObjects.h index 8981c229544a..2bdabb2724bd 100644 --- a/DynamicTablesPkg/Include/AcpiObjects.h +++ b/DynamicTablesPkg/Include/AcpiObjects.h @@ -1,6 +1,7 @@ /** @file=0D =0D Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved= .
=0D + Copyright (c) 2022 - 2023, Arm Limited. All rights reserved.
=0D =0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D **/=0D @@ -119,6 +120,25 @@ typedef struct AmlCpcInfo { UINT32 NominalFrequencyInteger;=0D } AML_CPC_INFO;=0D =0D +/** A structure that describes a=0D + P-State Dependency (PSD) Info.=0D +=0D + Cf. ACPI 6.5, s8.4.5.5 _PSD (P-State Dependency).=0D +*/=0D +typedef struct AmlPsdInfo {=0D + /// Revision.=0D + UINT8 Revision;=0D +=0D + /// Domain Id.=0D + UINT32 Domain;=0D +=0D + /// Coordination type.=0D + UINT32 CoordType;=0D +=0D + /// Number of processors belonging to the Domain.=0D + UINT32 NumProc;=0D +} AML_PSD_INFO;=0D +=0D #pragma pack()=0D =0D #endif //AML_CPC_INFO_H_=0D diff --git a/DynamicTablesPkg/Include/ArmNameSpaceObjects.h b/DynamicTables= Pkg/Include/ArmNameSpaceObjects.h index 453cc3fe83fa..3748cb7c8085 100644 --- a/DynamicTablesPkg/Include/ArmNameSpaceObjects.h +++ b/DynamicTablesPkg/Include/ArmNameSpaceObjects.h @@ -72,6 +72,7 @@ typedef enum ArmObjectID { EArmObjPccSubspaceType4Info, ///< 47 - P= cc Subspace Type 4 Info=0D EArmObjPccSubspaceType5Info, ///< 48 - P= cc Subspace Type 5 Info=0D EArmObjEtInfo, ///< 49 - E= mbedded Trace Extension/Module Info=0D + EArmObjPsdInfo, ///< 50 - P= -State Dependency (PSD) Info=0D EArmObjMax=0D } EARM_OBJECT_ID;=0D =0D @@ -1327,6 +1328,15 @@ typedef struct CmArmEtInfo { ARM_ET_TYPE EtType;=0D } CM_ARM_ET_INFO;=0D =0D +/** A structure that describes a=0D + P-State Dependency (PSD) Info.=0D +=0D + Cf. ACPI 6.5, s8.4.5.5 _PSD (P-State Dependency).=0D +=0D + ID: EArmObjPsdInfo=0D +*/=0D +typedef AML_PSD_INFO CM_ARM_PSD_INFO;=0D +=0D #pragma pack()=0D =0D #endif // ARM_NAMESPACE_OBJECTS_H_=0D diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationMa= nagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/Config= urationManagerObjectParser.c index c1a752841943..dc60a75eabb1 100644 --- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerOb= jectParser.c +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerOb= jectParser.c @@ -669,6 +669,15 @@ STATIC CONST CM_OBJ_PARSER CmArmEtInfo[] =3D { { "EtType", sizeof (ARM_ET_TYPE), "0x%x", NULL }=0D };=0D =0D +/** A parser for EArmObjPsdInfo.=0D +*/=0D +STATIC CONST CM_OBJ_PARSER CmArmPsdInfoParser[] =3D {=0D + { "Revision", 1, "0x%x", NULL },=0D + { "DomainId", 4, "0x%x", NULL },=0D + { "CoordType", 4, "0x%x", NULL },=0D + { "NumProc", 4, "0x%x", NULL },=0D +};=0D +=0D /** A parser for Arm namespace objects.=0D */=0D STATIC CONST CM_OBJ_PARSER_ARRAY ArmNamespaceObjectParser[] =3D {=0D @@ -767,6 +776,8 @@ STATIC CONST CM_OBJ_PARSER_ARRAY ArmNamespaceObjectPar= ser[] =3D { ARRAY_SIZE (CmArmPccSubspaceType5InfoParser) },=0D { "EArmObjEtInfo", CmArmEtInfo,=0D ARRAY_SIZE (CmArmEtInfo) },=0D + { "EArmObjPsdInfo", CmArmPsdInfoParser,=0D + ARRAY_SIZE (CmArmPsdInfoParser) },=0D { "EArmObjMax", NULL, = 0 },=0D };=0D =0D --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114415): https://edk2.groups.io/g/devel/message/114415 Mute This Topic: https://groups.io/mt/103955499/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-