From 1775c9d51c34de85f76874e34a04afa496dcafd6 Mon Sep 17 00:00:00 2001 From: Sami Mujawar Date: Tue, 16 Apr 2024 14:46:50 +0530 Subject: ArmVirtPkg: Kvmtool: Update Power Mgmt Profile info in Cfg Manager The PowerManagementProfileInfo Object has been moved from the Arm Namespace to the Arch Common namespace. Therefore, update the Kvmtool Guest firmware configuration manager to reflect this change. Cc: Pierre Gondois Cc: Yeo Reum Yun Cc: AbdulLateef Attar Cc: Jeshua Smith Cc: Jeff Brasen Cc: Girish Mahadevan Cc: Leif Lindholm Cc: Meenakshi Aggarwal Signed-off-by: Sami Mujawar Reviewed-by: Sunil V L --- ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.c | 20 ++++++++++---------- ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.h | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) (limited to 'ArmVirtPkg') diff --git a/ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.c b/ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.c index 4a76583f96..7240544406 100644 --- a/ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.c +++ b/ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.c @@ -761,6 +761,16 @@ GetArchCommonNameSpaceObject ( // First check among the static objects. // switch (GET_CM_OBJECT_ID (CmObjectId)) { + case EArchCommonObjPowerManagementProfileInfo: + Status = HandleCmObject ( + CmObjectId, + &PlatformRepo->PmProfileInfo, + sizeof (PlatformRepo->PmProfileInfo), + 1, + CmObject + ); + break; + default: // // No match found among the static objects. @@ -828,16 +838,6 @@ GetArmNameSpaceObject ( // First check among the static objects. // switch (GET_CM_OBJECT_ID (CmObjectId)) { - case EArmObjPowerManagementProfileInfo: - Status = HandleCmObject ( - CmObjectId, - &PlatformRepo->PmProfileInfo, - sizeof (PlatformRepo->PmProfileInfo), - 1, - CmObject - ); - break; - case EArmObjItsGroup: Status = HandleCmObject ( CmObjectId, diff --git a/ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.h b/ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.h index 3373948bc4..4fb12db73b 100644 --- a/ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.h +++ b/ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.h @@ -73,53 +73,53 @@ typedef struct PlatformRepositoryInfo { /// /// Configuration Manager Information. /// - CM_STD_OBJ_CONFIGURATION_MANAGER_INFO CmInfo; + CM_STD_OBJ_CONFIGURATION_MANAGER_INFO CmInfo; /// /// List of ACPI tables /// - CM_STD_OBJ_ACPI_TABLE_INFO CmAcpiTableList[PLAT_ACPI_TABLE_COUNT]; + CM_STD_OBJ_ACPI_TABLE_INFO CmAcpiTableList[PLAT_ACPI_TABLE_COUNT]; /// /// Power management profile information /// - CM_ARM_POWER_MANAGEMENT_PROFILE_INFO PmProfileInfo; + CM_ARCH_COMMON_POWER_MANAGEMENT_PROFILE_INFO PmProfileInfo; /// /// ITS Group node /// - CM_ARM_ITS_GROUP_NODE ItsGroupInfo; + CM_ARM_ITS_GROUP_NODE ItsGroupInfo; /// /// ITS Identifier array /// - CM_ARM_ITS_IDENTIFIER ItsIdentifierArray[1]; + CM_ARM_ITS_IDENTIFIER ItsIdentifierArray[1]; /// /// PCI Root complex node /// - CM_ARM_ROOT_COMPLEX_NODE RootComplexInfo; + CM_ARM_ROOT_COMPLEX_NODE RootComplexInfo; /// /// Array of DeviceID mapping /// - CM_ARM_ID_MAPPING DeviceIdMapping[1]; + CM_ARM_ID_MAPPING DeviceIdMapping[1]; /// /// Dynamic platform repository. /// CmObj created by parsing the Kvmtool device tree are stored here. /// - DYNAMIC_PLATFORM_REPOSITORY_INFO *DynamicPlatformRepo; + DYNAMIC_PLATFORM_REPOSITORY_INFO *DynamicPlatformRepo; /// /// Base address of the FDT. /// - VOID *FdtBase; + VOID *FdtBase; /// /// A handle to the FDT HwInfoParser. /// - HW_INFO_PARSER_HANDLE FdtParserHandle; + HW_INFO_PARSER_HANDLE FdtParserHandle; } EDKII_PLATFORM_REPOSITORY_INFO; #endif // CONFIGURATION_MANAGER_H_ -- cgit v1.2.3