DynamicTablesPkg: Fix ETE _UID Creation

Bugzilla: 4600 (https://bugzilla.tianocore.org/show_bug.cgi?id=4600)

Just like CPU _UID, ETE UID also needs to be unique so
use AcpiProcessorUid instead of CpuName

Signed-off-by: Ashish Singhal <ashishsingha@nvidia.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
Ashish Singhal 2023-11-14 20:19:04 -07:00 committed by mergify[bot]
parent 3db76e6476
commit 23dbb8a07d

View File

@ -359,6 +359,7 @@ CreateAmlCpcNode (
@param [in] Generator The SSDT Cpu Topology generator. @param [in] Generator The SSDT Cpu Topology generator.
@param [in] ParentNode Parent node to attach the Cpu node to. @param [in] ParentNode Parent node to attach the Cpu node to.
@param [in] GicCInfo CM_ARM_GICC_INFO object used to create the node.
@param [in] CpuName Value used to generate the node name. @param [in] CpuName Value used to generate the node name.
@param [out] EtNodePtr If not NULL, return the created Cpu node. @param [out] EtNodePtr If not NULL, return the created Cpu node.
@ -372,6 +373,7 @@ EFIAPI
CreateAmlEtd ( CreateAmlEtd (
IN ACPI_CPU_TOPOLOGY_GENERATOR *Generator, IN ACPI_CPU_TOPOLOGY_GENERATOR *Generator,
IN AML_NODE_HANDLE ParentNode, IN AML_NODE_HANDLE ParentNode,
IN CM_ARM_GICC_INFO *GicCInfo,
IN UINT32 CpuName, IN UINT32 CpuName,
OUT AML_OBJECT_NODE_HANDLE *EtNodePtr OPTIONAL OUT AML_OBJECT_NODE_HANDLE *EtNodePtr OPTIONAL
) )
@ -397,7 +399,7 @@ CreateAmlEtd (
Status = AmlCodeGenNameInteger ( Status = AmlCodeGenNameInteger (
"_UID", "_UID",
CpuName, GicCInfo->AcpiProcessorUid,
EtNode, EtNode,
NULL NULL
); );
@ -474,6 +476,7 @@ CreateAmlEtNode (
Status = CreateAmlEtd ( Status = CreateAmlEtd (
Generator, Generator,
Node, Node,
GicCInfo,
CpuName, CpuName,
NULL NULL
); );