From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 7F1CC941478 for ; Mon, 10 Jun 2024 09:34:37 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=hGbvIqhFYgM3Rhn2J+EVLdFsUtMWlWvqTH6fkMUkXBY=; 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:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1718012077; v=1; b=cY516rTUevgQOt0m0K1O1Cp3RmUOYxxmR/y1HnEb/7OnvDU9HYNeF8/YmfHp9RFjLMZPqhHu 5uemSiOLuJXhoAx+IcgNIFQdW5KVqyq8D2ZvUKNz6QLeWz0DccUDPogaipTpNU06wUnvDzOFr06 Tn4bllj8YsVxA3h0QeieuhCoTDXNT1VBKr0rQWvE2hqEb97f69URpocTGU75AMahlwMZZmwJA0W LlEUl3RETVDaUm8V+JkEeiG64oEpGBsDcA+/VOVIcFv5G+DOeYL67GPZr7LpU5W8cfUWoGjVvN8 pkbp28dwrMQ2K0qrU2Yf22dB+mvz0wq5q6/trtHvbOCYg== X-Received: by 127.0.0.2 with SMTP id uAICYY7687511x4aMkUbtZQh; Mon, 10 Jun 2024 02:34:36 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.15587.1718012075500144028 for ; Mon, 10 Jun 2024 02:34:35 -0700 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 B48661688; Mon, 10 Jun 2024 02:34:59 -0700 (PDT) X-Received: from e126645.arm.com (unknown [10.57.69.240]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 50BEC3F73B; Mon, 10 Jun 2024 02:34:34 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io Cc: Pierre Gondois Subject: [edk2-devel] [platforms/devel-dynamictables-reorg PATCH 02/14] Platform/ARM: Morello,N1Sdp: Move Power Mgmt Profile info to Arch Common Date: Mon, 10 Jun 2024 11:33:53 +0200 Message-Id: <20240610093405.1980592-3-Pierre.Gondois@arm.com> In-Reply-To: <20240610093405.1980592-1-Pierre.Gondois@arm.com> References: <20240610093405.1980592-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 Resent-Date: Mon, 10 Jun 2024 02:34:35 -0700 Resent-From: pierre.gondois@arm.com Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 0pelPxJ9j0wTXK9XhyHmKngOx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=cY516rTU; 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 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io From: Pierre Gondois Some DynamicTables objects have been moved from the Arm namespace to a new Arch Common namespace. Reflect this change by renaming/moving the relevant object. This patch modifies the ConfigurationManager of the following platforms: - Morello - N1Sdp for the following Arch Common object Id: - EArchCommonObjPowerManagementProfileInfo Signed-off-by: Pierre Gondois --- .../ConfigurationManager.c | 21 +++++++++--------- .../ConfigurationManager.h | 4 ++-- .../ConfigurationManager.c | 22 +++++++++---------- .../ConfigurationManager.h | 4 ++-- 4 files changed, 26 insertions(+), 25 deletions(-) diff --git a/Platform/ARM/Morello/ConfigurationManager/ConfigurationManag= erDxe/ConfigurationManager.c b/Platform/ARM/Morello/ConfigurationManager/= ConfigurationManagerDxe/ConfigurationManager.c index 95fbb997483b..098199bbaa58 100644 --- a/Platform/ARM/Morello/ConfigurationManager/ConfigurationManagerDxe/C= onfigurationManager.c +++ b/Platform/ARM/Morello/ConfigurationManager/ConfigurationManagerDxe/C= onfigurationManager.c @@ -801,7 +801,17 @@ GetArchCommonNameSpaceObject ( CommonPlatRepo =3D This->PlatRepoInfo->CommonPlatRepoInfo; =20 switch (GET_CM_OBJECT_ID (CmObjectId)) { - default: { + case EArchCommonObjPowerManagementProfileInfo: + Status =3D HandleCmObject ( + CmObjectId, + &CommonPlatRepo->PmProfileInfo, + sizeof (CommonPlatRepo->PmProfileInfo), + 1, + CmObject + ); + break; + + default: { Status =3D EFI_NOT_FOUND; DEBUG (( DEBUG_INFO, @@ -875,15 +885,6 @@ GetArmNameSpaceObject ( ); break; #endif - case EArmObjPowerManagementProfileInfo: - Status =3D HandleCmObject ( - CmObjectId, - &CommonPlatRepo->PmProfileInfo, - sizeof (CommonPlatRepo->PmProfileInfo), - 1, - CmObject - ); - break; =20 case EArmObjGenericTimerInfo: Status =3D HandleCmObject ( diff --git a/Platform/ARM/Morello/ConfigurationManager/ConfigurationManag= erDxe/ConfigurationManager.h b/Platform/ARM/Morello/ConfigurationManager/= ConfigurationManagerDxe/ConfigurationManager.h index 09ebc9a84274..2881ed871bd6 100644 --- a/Platform/ARM/Morello/ConfigurationManager/ConfigurationManagerDxe/C= onfigurationManager.h +++ b/Platform/ARM/Morello/ConfigurationManager/ConfigurationManagerDxe/C= onfigurationManager.h @@ -1,6 +1,6 @@ /** @file =20 - Copyright (c) 2021, ARM Limited. All rights reserved.
+ Copyright (c) 2021 - 2024, ARM Limited. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -229,7 +229,7 @@ typedef struct CommonPlatformRepositoryInfo { #endif =20 /// Power management profile information - CM_ARM_POWER_MANAGEMENT_PROFILE_INFO PmProfileInfo; + CM_ARCH_COMMON_POWER_MANAGEMENT_PROFILE_INFO PmProfileInfo; =20 /// GIC CPU interface information CM_ARM_GICC_INFO GicCInfo[PLAT_CPU_COUNT]; diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= Dxe/ConfigurationManager.c b/Platform/ARM/N1Sdp/ConfigurationManager/Conf= igurationManagerDxe/ConfigurationManager.c index 99c01297944c..3b72d7705703 100644 --- a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManager.c +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManager.c @@ -1713,7 +1713,17 @@ GetArchCommonNameSpaceObject ( PlatformRepo =3D This->PlatRepoInfo; =20 switch (GET_CM_OBJECT_ID (CmObjectId)) { - default: { + case EArchCommonObjPowerManagementProfileInfo: + Status =3D HandleCmObject ( + CmObjectId, + &PlatformRepo->PmProfileInfo, + sizeof (PlatformRepo->PmProfileInfo), + 1, + CmObject + ); + break; + + default: { Status =3D EFI_NOT_FOUND; DEBUG (( DEBUG_INFO, @@ -1818,16 +1828,6 @@ GetArmNameSpaceObject ( ); break; =20 - case EArmObjPowerManagementProfileInfo: - Status =3D HandleCmObject ( - CmObjectId, - &PlatformRepo->PmProfileInfo, - sizeof (PlatformRepo->PmProfileInfo), - 1, - CmObject - ); - break; - case EArmObjGenericTimerInfo: Status =3D HandleCmObject ( CmObjectId, diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= Dxe/ConfigurationManager.h b/Platform/ARM/N1Sdp/ConfigurationManager/Conf= igurationManagerDxe/ConfigurationManager.h index ea9cb20ba752..dc15f17eb626 100644 --- a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManager.h +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManager.h @@ -1,6 +1,6 @@ /** @file =20 - Copyright (c) 2021-2024, ARM Limited. All rights reserved.
+ Copyright (c) 2021, ARM Limited. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -232,7 +232,7 @@ typedef struct PlatformRepositoryInfo { CM_ARM_FIXED_FEATURE_FLAGS FixedFeatureFlags; =20 /// Power management profile information - CM_ARM_POWER_MANAGEMENT_PROFILE_INFO PmProfileInfo; + CM_ARCH_COMMON_POWER_MANAGEMENT_PROFILE_INFO PmProfileInfo; =20 /// GIC CPU interface information CM_ARM_GICC_INFO GicCInfo[PLAT_CPU_COUNT * 2]; --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119522): https://edk2.groups.io/g/devel/message/119522 Mute This Topic: https://groups.io/mt/106589340/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-