DynamicTablesPkg: Drop Cpu Info object ID from Arm Namespace

The Arm Namespace Object ID for CPU info was not used.
Therefore, drop the EArmObjCpuInfo object ID. Also remove
- the partial listing of the Arm Namespace object IDs from
  ConfigurationManagerObject.h and add a reference to the
  location where they are defined.
- the parsing code in Configuration Manager ObjectParser.
- update the Dynamic Plat Repo TokenFixer map.

Cc: Pierre Gondois <Pierre.Gondois@arm.com>
Cc: Yeo Reum Yun <YeoReum.Yun@arm.com>
Cc: AbdulLateef Attar <AbdulLateef.Attar@amd.com>
Cc: Jeshua Smith <jeshuas@nvidia.com>
Cc: Jeff Brasen <jbrasen@nvidia.com>
Cc: Girish Mahadevan <gmahadevan@nvidia.com>
Cc: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
This commit is contained in:
Sami Mujawar 2024-03-05 14:23:38 +00:00 committed by mergify[bot]
parent fc8a16871c
commit b0b0812a6e
4 changed files with 142 additions and 146 deletions

View File

@ -30,55 +30,54 @@
typedef enum ArmObjectID { typedef enum ArmObjectID {
EArmObjReserved, ///< 0 - Reserved EArmObjReserved, ///< 0 - Reserved
EArmObjBootArchInfo, ///< 1 - Boot Architecture Info EArmObjBootArchInfo, ///< 1 - Boot Architecture Info
EArmObjCpuInfo, ///< 2 - CPU Info EArmObjPowerManagementProfileInfo, ///< 2 - Power Management Profile Info
EArmObjPowerManagementProfileInfo, ///< 3 - Power Management Profile Info EArmObjGicCInfo, ///< 3 - GIC CPU Interface Info
EArmObjGicCInfo, ///< 4 - GIC CPU Interface Info EArmObjGicDInfo, ///< 4 - GIC Distributor Info
EArmObjGicDInfo, ///< 5 - GIC Distributor Info EArmObjGicMsiFrameInfo, ///< 5 - GIC MSI Frame Info
EArmObjGicMsiFrameInfo, ///< 6 - GIC MSI Frame Info EArmObjGicRedistributorInfo, ///< 6 - GIC Redistributor Info
EArmObjGicRedistributorInfo, ///< 7 - GIC Redistributor Info EArmObjGicItsInfo, ///< 7 - GIC ITS Info
EArmObjGicItsInfo, ///< 8 - GIC ITS Info EArmObjSerialConsolePortInfo, ///< 8 - Serial Console Port Info
EArmObjSerialConsolePortInfo, ///< 9 - Serial Console Port Info EArmObjSerialDebugPortInfo, ///< 9 - Serial Debug Port Info
EArmObjSerialDebugPortInfo, ///< 10 - Serial Debug Port Info EArmObjGenericTimerInfo, ///< 10 - Generic Timer Info
EArmObjGenericTimerInfo, ///< 11 - Generic Timer Info EArmObjPlatformGTBlockInfo, ///< 11 - Platform GT Block Info
EArmObjPlatformGTBlockInfo, ///< 12 - Platform GT Block Info EArmObjGTBlockTimerFrameInfo, ///< 12 - Generic Timer Block Frame Info
EArmObjGTBlockTimerFrameInfo, ///< 13 - Generic Timer Block Frame Info EArmObjPlatformGenericWatchdogInfo, ///< 13 - Platform Generic Watchdog
EArmObjPlatformGenericWatchdogInfo, ///< 14 - Platform Generic Watchdog EArmObjPciConfigSpaceInfo, ///< 14 - PCI Configuration Space Info
EArmObjPciConfigSpaceInfo, ///< 15 - PCI Configuration Space Info EArmObjHypervisorVendorIdentity, ///< 15 - Hypervisor Vendor Id
EArmObjHypervisorVendorIdentity, ///< 16 - Hypervisor Vendor Id EArmObjFixedFeatureFlags, ///< 16 - Fixed feature flags for FADT
EArmObjFixedFeatureFlags, ///< 17 - Fixed feature flags for FADT EArmObjItsGroup, ///< 17 - ITS Group
EArmObjItsGroup, ///< 18 - ITS Group EArmObjNamedComponent, ///< 18 - Named Component
EArmObjNamedComponent, ///< 19 - Named Component EArmObjRootComplex, ///< 19 - Root Complex
EArmObjRootComplex, ///< 20 - Root Complex EArmObjSmmuV1SmmuV2, ///< 20 - SMMUv1 or SMMUv2
EArmObjSmmuV1SmmuV2, ///< 21 - SMMUv1 or SMMUv2 EArmObjSmmuV3, ///< 21 - SMMUv3
EArmObjSmmuV3, ///< 22 - SMMUv3 EArmObjPmcg, ///< 22 - PMCG
EArmObjPmcg, ///< 23 - PMCG EArmObjGicItsIdentifierArray, ///< 23 - GIC ITS Identifier Array
EArmObjGicItsIdentifierArray, ///< 24 - GIC ITS Identifier Array EArmObjIdMappingArray, ///< 24 - ID Mapping Array
EArmObjIdMappingArray, ///< 25 - ID Mapping Array EArmObjSmmuInterruptArray, ///< 25 - SMMU Interrupt Array
EArmObjSmmuInterruptArray, ///< 26 - SMMU Interrupt Array EArmObjProcHierarchyInfo, ///< 26 - Processor Hierarchy Info
EArmObjProcHierarchyInfo, ///< 27 - Processor Hierarchy Info EArmObjCacheInfo, ///< 27 - Cache Info
EArmObjCacheInfo, ///< 28 - Cache Info EArmObjReserved29, ///< 28 - Reserved
EArmObjReserved29, ///< 29 - Reserved EArmObjCmRef, ///< 29 - CM Object Reference
EArmObjCmRef, ///< 30 - CM Object Reference EArmObjMemoryAffinityInfo, ///< 30 - Memory Affinity Info
EArmObjMemoryAffinityInfo, ///< 31 - Memory Affinity Info EArmObjDeviceHandleAcpi, ///< 31 - Device Handle Acpi
EArmObjDeviceHandleAcpi, ///< 32 - Device Handle Acpi EArmObjDeviceHandlePci, ///< 32 - Device Handle Pci
EArmObjDeviceHandlePci, ///< 33 - Device Handle Pci EArmObjGenericInitiatorAffinityInfo, ///< 33 - Generic Initiator Affinity
EArmObjGenericInitiatorAffinityInfo, ///< 34 - Generic Initiator Affinity EArmObjSerialPortInfo, ///< 34 - Generic Serial Port Info
EArmObjSerialPortInfo, ///< 35 - Generic Serial Port Info EArmObjCmn600Info, ///< 35 - CMN-600 Info
EArmObjCmn600Info, ///< 36 - CMN-600 Info EArmObjLpiInfo, ///< 36 - Lpi Info
EArmObjLpiInfo, ///< 37 - Lpi Info EArmObjPciAddressMapInfo, ///< 37 - Pci Address Map Info
EArmObjPciAddressMapInfo, ///< 38 - Pci Address Map Info EArmObjPciInterruptMapInfo, ///< 38 - Pci Interrupt Map Info
EArmObjPciInterruptMapInfo, ///< 39 - Pci Interrupt Map Info EArmObjRmr, ///< 39 - Reserved Memory Range Node
EArmObjRmr, ///< 40 - Reserved Memory Range Node EArmObjMemoryRangeDescriptor, ///< 40 - Memory Range Descriptor
EArmObjMemoryRangeDescriptor, ///< 41 - Memory Range Descriptor EArmObjCpcInfo, ///< 41 - Continuous Performance Control Info
EArmObjCpcInfo, ///< 42 - Continuous Performance Control Info EArmObjPccSubspaceType0Info, ///< 42 - Pcc Subspace Type 0 Info
EArmObjPccSubspaceType0Info, ///< 43 - Pcc Subspace Type 0 Info EArmObjPccSubspaceType1Info, ///< 43 - Pcc Subspace Type 2 Info
EArmObjPccSubspaceType1Info, ///< 44 - Pcc Subspace Type 2 Info EArmObjPccSubspaceType2Info, ///< 44 - Pcc Subspace Type 2 Info
EArmObjPccSubspaceType2Info, ///< 45 - Pcc Subspace Type 2 Info EArmObjPccSubspaceType3Info, ///< 45 - Pcc Subspace Type 3 Info
EArmObjPccSubspaceType3Info, ///< 46 - Pcc Subspace Type 3 Info EArmObjPccSubspaceType4Info, ///< 46 - Pcc Subspace Type 4 Info
EArmObjPccSubspaceType4Info, ///< 47 - Pcc Subspace Type 4 Info EArmObjPccSubspaceType5Info, ///< 47 - Pcc Subspace Type 5 Info
EArmObjPccSubspaceType5Info, ///< 48 - Pcc Subspace Type 5 Info EArmObjEtInfo, ///< 48 - Embedded Trace Extension/Module Info
EArmObjEtInfo, ///< 49 - Embedded Trace Extension/Module Info EArmObjPsdInfo, ///< 49 - P-State Dependency (PSD) Info
EArmObjPsdInfo, ///< 50 - P-State Dependency (PSD) Info
EArmObjMax EArmObjMax
} EARM_OBJECT_ID; } EARM_OBJECT_ID;

View File

@ -145,55 +145,54 @@ CONST
CM_OBJECT_TOKEN_FIXER TokenFixer[EArmObjMax] = { CM_OBJECT_TOKEN_FIXER TokenFixer[EArmObjMax] = {
NULL, ///< 0 - Reserved NULL, ///< 0 - Reserved
NULL, ///< 1 - Boot Architecture Info NULL, ///< 1 - Boot Architecture Info
NULL, ///< 2 - CPU Info NULL, ///< 2 - Power Management Profile Info
NULL, ///< 3 - Power Management Profile Info NULL, ///< 3 - GIC CPU Interface Info
NULL, ///< 4 - GIC CPU Interface Info NULL, ///< 4 - GIC Distributor Info
NULL, ///< 5 - GIC Distributor Info NULL, ///< 5 - GIC MSI Frame Info
NULL, ///< 6 - GIC MSI Frame Info NULL, ///< 6 - GIC Redistributor Info
NULL, ///< 7 - GIC Redistributor Info NULL, ///< 7 - GIC ITS Info
NULL, ///< 8 - GIC ITS Info NULL, ///< 8 - Serial Console Port Info
NULL, ///< 9 - Serial Console Port Info NULL, ///< 9 - Serial Debug Port Info
NULL, ///< 10 - Serial Debug Port Info NULL, ///< 10 - Generic Timer Info
NULL, ///< 11 - Generic Timer Info NULL, ///< 11 - Platform GT Block Info
NULL, ///< 12 - Platform GT Block Info NULL, ///< 12 - Generic Timer Block Frame Info
NULL, ///< 13 - Generic Timer Block Frame Info NULL, ///< 13 - Platform Generic Watchdog
NULL, ///< 14 - Platform Generic Watchdog NULL, ///< 14 - PCI Configuration Space Info
NULL, ///< 15 - PCI Configuration Space Info NULL, ///< 15 - Hypervisor Vendor Id
NULL, ///< 16 - Hypervisor Vendor Id NULL, ///< 16 - Fixed feature flags for FADT
NULL, ///< 17 - Fixed feature flags for FADT TokenFixerItsGroup, ///< 17 - ITS Group
TokenFixerItsGroup, ///< 18 - ITS Group TokenFixerNamedComponentNode, ///< 18 - Named Component
TokenFixerNamedComponentNode, ///< 19 - Named Component TokenFixerRootComplexNode, ///< 19 - Root Complex
TokenFixerRootComplexNode, ///< 20 - Root Complex TokenFixerNotImplemented, ///< 20 - SMMUv1 or SMMUv2
TokenFixerNotImplemented, ///< 21 - SMMUv1 or SMMUv2 TokenFixerSmmuV3Node, ///< 21 - SMMUv3
TokenFixerSmmuV3Node, ///< 22 - SMMUv3 TokenFixerNotImplemented, ///< 22 - PMCG
TokenFixerNotImplemented, ///< 23 - PMCG NULL, ///< 23 - GIC ITS Identifier Array
NULL, ///< 24 - GIC ITS Identifier Array NULL, ///< 24 - ID Mapping Array
NULL, ///< 25 - ID Mapping Array NULL, ///< 25 - SMMU Interrupt Array
NULL, ///< 26 - SMMU Interrupt Array TokenFixerNotImplemented, ///< 26 - Processor Hierarchy Info
TokenFixerNotImplemented, ///< 27 - Processor Hierarchy Info TokenFixerNotImplemented, ///< 27 - Cache Info
TokenFixerNotImplemented, ///< 28 - Cache Info
TokenFixerNotImplemented, ///< 29 - Reserved TokenFixerNotImplemented, ///< 29 - Reserved
NULL, ///< 30 - CM Object Reference NULL, ///< 29 - CM Object Reference
NULL, ///< 31 - Memory Affinity Info NULL, ///< 30 - Memory Affinity Info
NULL, ///< 32 - Device Handle Acpi NULL, ///< 31 - Device Handle Acpi
NULL, ///< 33 - Device Handle Pci NULL, ///< 32 - Device Handle Pci
NULL, ///< 34 - Generic Initiator Affinity NULL, ///< 33 - Generic Initiator Affinity
NULL, ///< 35 - Generic Serial Port Info NULL, ///< 34 - Generic Serial Port Info
NULL, ///< 36 - CMN-600 Info NULL, ///< 35 - CMN-600 Info
NULL, ///< 37 - Lpi Info NULL, ///< 36 - Lpi Info
NULL, ///< 38 - Pci Address Map Info NULL, ///< 37 - Pci Address Map Info
NULL, ///< 39 - Pci Interrupt Map Info NULL, ///< 38 - Pci Interrupt Map Info
NULL, ///< 40 - Reserved Memory Range Node NULL, ///< 39 - Reserved Memory Range Node
NULL, ///< 41 - Memory Range Descriptor NULL, ///< 40 - Memory Range Descriptor
NULL, ///< 42 - Continuous Performance Control Info NULL, ///< 41 - Continuous Performance Control Info
NULL, ///< 43 - Pcc Subspace Type 0 Info NULL, ///< 42 - Pcc Subspace Type 0 Info
NULL, ///< 43 - Pcc Subspace Type 2 Info
NULL, ///< 44 - Pcc Subspace Type 2 Info NULL, ///< 44 - Pcc Subspace Type 2 Info
NULL, ///< 45 - Pcc Subspace Type 2 Info NULL, ///< 45 - Pcc Subspace Type 3 Info
NULL, ///< 46 - Pcc Subspace Type 3 Info NULL, ///< 46 - Pcc Subspace Type 4 Info
NULL, ///< 47 - Pcc Subspace Type 4 Info NULL, ///< 47 - Pcc Subspace Type 5 Info
NULL, ///< 48 - Pcc Subspace Type 5 Info NULL, ///< 48 - Embedded Trace Extension/Module Info
NULL, ///< 49 - Embedded Trace Extension/Module Info NULL ///< 49 - P-State Dependency (PSD) Info
NULL ///< 50 - P-State Dependency (PSD) Info
}; };
/** CmObj token fixer. /** CmObj token fixer.

View File

@ -679,7 +679,6 @@ STATIC CONST CM_OBJ_PARSER_ARRAY ArchCommonNamespaceObjectParser[] = {
STATIC CONST CM_OBJ_PARSER_ARRAY ArmNamespaceObjectParser[] = { STATIC CONST CM_OBJ_PARSER_ARRAY ArmNamespaceObjectParser[] = {
CM_PARSER_ADD_OBJECT_RESERVED (EArmObjReserved), CM_PARSER_ADD_OBJECT_RESERVED (EArmObjReserved),
CM_PARSER_ADD_OBJECT (EArmObjBootArchInfo, CmArmBootArchInfoParser), CM_PARSER_ADD_OBJECT (EArmObjBootArchInfo, CmArmBootArchInfoParser),
CM_PARSER_ADD_OBJECT_RESERVED (EArmObjCpuInfo),
CM_PARSER_ADD_OBJECT (EArmObjPowerManagementProfileInfo, CmArmPowerManagementProfileInfoParser), CM_PARSER_ADD_OBJECT (EArmObjPowerManagementProfileInfo, CmArmPowerManagementProfileInfoParser),
CM_PARSER_ADD_OBJECT (EArmObjGicCInfo, CmArmGicCInfoParser), CM_PARSER_ADD_OBJECT (EArmObjGicCInfo, CmArmGicCInfoParser),
CM_PARSER_ADD_OBJECT (EArmObjGicDInfo, CmArmGicDInfoParser), CM_PARSER_ADD_OBJECT (EArmObjGicDInfo, CmArmGicDInfoParser),

View File

@ -442,55 +442,54 @@ The CM_OBJECT_ID type is used to identify the Configuration Manager
| ---: | :-------------------------- | :--- | | ---: | :-------------------------- | :--- |
| 0 | Reserved | | | 0 | Reserved | |
| 1 | Boot Architecture Info | | | 1 | Boot Architecture Info | |
| 2 | CPU Info | | | 2 | Power Management Profile Info | Move to Arch Common NS |
| 3 | Power Management Profile Info | | | 3 | GICC Info | |
| 4 | GICC Info | | | 4 | GICD Info | |
| 5 | GICD Info | | | 5 | GIC MSI Frame Info | |
| 6 | GIC MSI Frame Info | | | 6 | GIC Redistributor Info | |
| 7 | GIC Redistributor Info | | | 7 | GIC ITS Info | |
| 8 | GIC ITS Info | | | 8 | Serial Console Port Info | Move to Arch Common NS |
| 9 | Serial Console Port Info | | | 9 | Serial Debug Port Info | Move to Arch Common NS |
| 10 | Serial Debug Port Info | | | 10 | Generic Timer Info | |
| 11 | Generic Timer Info | | | 11 | Platform GT Block Info | |
| 12 | Platform GT Block Info | | | 12 | Generic Timer Block Frame Info | |
| 13 | Generic Timer Block Frame Info | | | 13 | Platform Generic Watchdog | |
| 14 | Platform Generic Watchdog | | | 14 | PCI Configuration Space Info | Move to Arch Common NS |
| 15 | PCI Configuration Space Info | | | 15 | Hypervisor Vendor Id | Move to Arch Common NS |
| 16 | Hypervisor Vendor Id | | | 16 | Fixed feature flags for FADT | Move to Arch Common NS |
| 17 | Fixed feature flags for FADT | | | 17 | ITS Group | |
| 18 | ITS Group | | | 18 | Named Component | |
| 19 | Named Component | | | 19 | Root Complex | |
| 20 | Root Complex | | | 20 | SMMUv1 or SMMUv2 | |
| 21 | SMMUv1 or SMMUv2 | | | 21 | SMMUv3 | |
| 22 | SMMUv3 | | | 22 | PMCG | |
| 23 | PMCG | | | 23 | GIC ITS Identifier Array | |
| 24 | GIC ITS Identifier Array | | | 24 | ID Mapping Array | |
| 25 | ID Mapping Array | | | 25 | SMMU Interrupt Array | |
| 26 | SMMU Interrupt Array | | | 26 | Processor Hierarchy Info | Move to Arch Common NS |
| 27 | Processor Hierarchy Info | | | 27 | Cache Info | Move to Arch Common NS |
| 28 | Cache Info | | | 28 | Reserved29 | Unused to be dropped.|
| 29 | Reserved29 | | | 29 | CM Object Reference | Move to Arch Common NS |
| 30 | CM Object Reference | | | 30 | Memory Affinity Info | Move to Arch Common NS |
| 31 | Memory Affinity Info | | | 31 | Device Handle Acpi | Move to Arch Common NS |
| 32 | Device Handle Acpi | | | 32 | Device Handle PCI | Move to Arch Common NS |
| 33 | Device Handle PCI | | | 33 | Generic Initiator Affinity Info | Move to Arch Common NS |
| 34 | Generic Initiator Affinity Info | | | 34 | Serial Port Info | Move to Arch Common NS |
| 35 | Serial Port Info | | | 35 | CMN 600 Info | |
| 36 | CMN 600 Info | | | 36 | Low Power Idle State Info | Move to Arch Common NS |
| 37 | Low Power Idle State Info | | | 37 | PCI Address Map Info | Move to Arch Common NS |
| 38 | PCI Address Map Info | | | 38 | PCI Interrupt Map Info | Move to Arch Common NS |
| 39 | PCI Interrupt Map Info | | | 39 | Reserved Memory Range Node | |
| 40 | Reserved Memory Range Node | | | 40 | Memory Range Descriptor | |
| 41 | Memory Range Descriptor | | | 41 | Continuous Performance Control Info | Move to Arch Common NS |
| 42 | Continuous Performance Control Info | | | 42 | Pcc Subspace Type 0 Info | Move to Arch Common NS |
| 43 | Pcc Subspace Type 0 Info | | | 43 | Pcc Subspace Type 1 Info | Move to Arch Common NS |
| 44 | Pcc Subspace Type 1 Info | | | 44 | Pcc Subspace Type 2 Info | Move to Arch Common NS |
| 45 | Pcc Subspace Type 2 Info | | | 45 | Pcc Subspace Type 3 Info | Move to Arch Common NS |
| 46 | Pcc Subspace Type 3 Info | | | 46 | Pcc Subspace Type 4 Info | Move to Arch Common NS |
| 47 | Pcc Subspace Type 4 Info | | | 47 | Pcc Subspace Type 5 Info | Move to Arch Common NS |
| 48 | Pcc Subspace Type 5 Info | | | 48 | Embedded Trace Extension/Module Info | |
| 49 | Embedded Trace Extension/Module Info | | | 49 | P-State Dependency (PSD) Info | Move to Arch Common NS |
| 50 | P-State Dependency (PSD) Info | |
| `*` | All other values are reserved. | | | `*` | All other values are reserved. | |
#### Object ID's in the Arch Common Namespace: #### Object ID's in the Arch Common Namespace: