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 43989D81163 for ; Tue, 12 Dec 2023 09:29:44 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=CMM/L1XLKnzu1tDcg/5e+18N+eo78K5mHy7Mp13YtNE=; 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=1702373383; v=1; b=pNJHwPZNEaNt5Fhx+cjb8rm0Ixj4RwkvmjB4NdBy8Rc/KP1rNhofwJhFW7p9biYdCO8lM1ka ms760RneFZu+1rf8P6UUvq2hqFMBtNj5oeLlrjvEPWZQ9xZ4LHDUJMeRGo4qOm876xC+NQXsLtM 5EvLXUCVUO6thMb1FwuTl4iY= X-Received: by 127.0.0.2 with SMTP id Kn4oYY7687511xZt2WuhLNeI; Tue, 12 Dec 2023 01:29:43 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.13004.1702373382319870998 for ; Tue, 12 Dec 2023 01:29:42 -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 67F21143D; Tue, 12 Dec 2023 01:30:28 -0800 (PST) X-Received: from e126645.arm.com (unknown [10.57.44.69]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 84A933F5A1; Tue, 12 Dec 2023 01:29:40 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io Cc: Ray Ni , Sami Mujawar , Leif Lindholm , Ard Biesheuvel Subject: [edk2-devel] [PATCH v4 05/10] DynamicTablesPkg: Add CM_ARM_PSD_INFO object Date: Tue, 12 Dec 2023 10:28:42 +0100 Message-Id: <20231212092847.1253756-6-pierre.gondois@arm.com> In-Reply-To: <20231212092847.1253756-1-pierre.gondois@arm.com> References: <20231212092847.1253756-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: CTY9Fudf2yhlwklryEu7g6Pex7686176AA= 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=pNJHwPZN; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none) 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 ce494816ed88..cceff56756fc 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%llx", 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 (#112372): https://edk2.groups.io/g/devel/message/112372 Mute This Topic: https://groups.io/mt/103127051/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-