Re: [patch 00/53] x86/topology: The final installment

From: Qiuxu Zhuo
Date: Wed Aug 09 2023 - 12:52:09 EST


Hi Sohil,

> From: Sohil Mehta <sohil.mehta@xxxxxxxxx>
> ...
> Subject: Re: [patch 00/53] x86/topology: The final installment
> ...
> Debugfs
> -------
> # cat /sys/kernel/debug/x86/topo/cpus/39
> online: 1
> initial_apicid: 39
> apicid: 39
> ...

Did you convert the output formats of 'initial_apicid' and 'apicid'
from hexadecimal to decimal in your testing? It was really coincidental
that if the output values were '39' in hexadecimal for the CPU '39'
in decimal :-).

I noticed they were represented in hexadecimal format in
arch/x86/kernel/cpu/debugfs.c:

seq_printf(m, "initial_apicid: %x\n", c->topo.initial_apicid);
seq_printf(m, "apicid: %x\n", c->topo.apicid);

Thanks!
-Qiuxu