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 297157803CF for ; Tue, 21 Nov 2023 16:50:41 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=RqPdoK0zhOSe+EMeBiPzCU4oaUXpXliClOOIIxNEW8I=; 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=1700585439; v=1; b=fx37g8oxuXsJST2vDuff4ZRM3LXwf3gVvUiSrEsIamN2xRPe7EaOk4gZ29JXSW78V458Ev9C KKPmS4bqiVJCD676ESrTOeMAYb5TVIHbhlRerRcLDFHLv36TQgQS7vbr8ZZ7ug5m6Q9O6Nu33CW xxqDYvsoduv28eqMIb7/Xehc= X-Received: by 127.0.0.2 with SMTP id VzzPYY7687511xzBHuC0k8Qt; Tue, 21 Nov 2023 08:50:39 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.46868.1700585439275642517 for ; Tue, 21 Nov 2023 08:50:39 -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 B54B51042; Tue, 21 Nov 2023 08:51:25 -0800 (PST) X-Received: from e126645.nice.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5F7853F6C4; Tue, 21 Nov 2023 08:50:37 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Michael D Kinney , Liming Gao Subject: [edk2-devel] [PATCH v3 06/11] DynamicTablesPkg: Add CM_ARM_PSD_INFO object Date: Tue, 21 Nov 2023 17:50:02 +0100 Message-Id: <20231121165007.1546858-7-pierre.gondois@arm.com> In-Reply-To: <20231121165007.1546858-1-pierre.gondois@arm.com> References: <20231121165007.1546858-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: uzDQgTzVAW3rsrWeVptLp2zhx7686176AA= 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=fx37g8ox; 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 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 (#111573): https://edk2.groups.io/g/devel/message/111573 Mute This Topic: https://groups.io/mt/102732024/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-