Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit 27fdc04

Browse files
vu-amperethangqn-ampere
authored andcommitted
JadePkg: ACPI: Fix hwloc displays wrong info on 2P system
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>
1 parent 5bc30ad commit 27fdc04

File tree

1 file changed

+1
-1
lines changed
  • Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe

1 file changed

+1
-1
lines changed

Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiPptt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ AcpiInstallPpttTable (
310310
NextNodeOffset += AddProcessorCoreNode (
311311
PpttTablePointer + NextNodeOffset,
312312
CpuId,
313-
ClusterNodeOffset[CLUSTER_ID (CpuId)],
313+
ClusterNodeOffset[CpuId / PLATFORM_CPU_NUM_CORES_PER_CPM],
314314
L1INodeOffset,
315315
L1DNodeOffset
316316
);

0 commit comments

Comments
 (0)