Skip to content

Commit 2229659

Browse files
committed
WIP debug AMD CPUID cpukinds
PPR says it's in core level, which means we get the info from each thread? Signed-off-by: Brice Goglin <[email protected]>
1 parent 68df568 commit 2229659

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hwloc/topology-x86.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,15 @@ static void read_extended_topo(struct hwloc_x86_backend_data_s *data, struct pro
585585
id);
586586
infos->apicid = apic_id;
587587
infos->otherids[level] = UINT_MAX;
588+
if (leaf == 0x80000026 && apic_id == 0) {
589+
printf("HybridCPU info at level %u\n", apic_type);
590+
printf(" AsymmetricCores = %u\n", (eax & 0x80000000)>>31);
591+
printf(" HeteroCoreTyopology = %u\n", (eax & 0x40000000)>>30);
592+
printf(" EffRankingAvailable = %u\n", (eax & 0x20000000)>>29);
593+
printf(" CoreType = %u\n", (ebx >> 28) & 0xf);
594+
printf(" Model = %u\n", (ebx >> 24) & 0xf);
595+
printf(" EffRanking = %u\n", (ebx >> 16) & 0xff);
596+
}
588597
switch (apic_type) {
589598
case 1:
590599
threadid = id;

0 commit comments

Comments
 (0)