Re: [PATCH] hwmon: (coretemp) Document sysfs numbering and label meaning
From: Guenter Roeck
Date: Mon Oct 19 2026 - 08:49:40 EST
On Thu, Oct 15, 2026 at 08:17:59PM +0300, Asaf Nuri Bertizlioğlu wrote:
> The documentation says that all sysfs entries are named with their
> core_id, and that the "Core X" label contains the processor number.
> Neither is accurate. create_core_attrs() numbers the per-core
> attributes core_id + 2 and always uses temp1 for the package sensor,
> and show_label() prints topology_core_id(), not the logical CPU
> number.
>
> The difference is easy to see on hybrid CPUs. On an i7-14700F, the
> "Core 4" label is on temp6 and belongs to CPUs 2 and 3, and the
> E-cores report core IDs 32 to 43.
>
> Describe the actual numbering.
>
> The mismatch was found by an LLM comparing the documentation with the
> code, and verified on the i7-14700F above.
>
> Assisted-by: LLM
> Signed-off-by: Asaf Nuri Bertizlioğlu <ycistak@xxxxxxxxx>
> Tested-by: Ximing Zhang <xzhangjr@xxxxxxxxx>
> Reviewed-by: Ximing Zhang <xzhangjr@xxxxxxxxx>
Applied.
Thanks,
Guenter