Skip to content

Commit

Permalink
JadePkg: ACPI: Fix hwloc displays wrong info on 2P system
Browse files Browse the repository at this point in the history
Currently, Processor cores on 2 different Clusters are pointing to
the same Cluster node. This issue happens because of wrong access
to the Cluster offset array element.

Signed-off-by: Vu Nguyen <Vu@amperecomputing.com>
  • Loading branch information
vu-ampere authored and thangqn-ampere committed Jan 26, 2022
1 parent 5bc30ad commit 27fdc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiPptt.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ AcpiInstallPpttTable (
NextNodeOffset += AddProcessorCoreNode (
PpttTablePointer + NextNodeOffset,
CpuId,
ClusterNodeOffset[CLUSTER_ID (CpuId)],
ClusterNodeOffset[CpuId / PLATFORM_CPU_NUM_CORES_PER_CPM],
L1INodeOffset,
L1DNodeOffset
);
Expand Down

0 comments on commit 27fdc04

Please sign in to comment.