Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Aveline Noir" <jm5905938@gmail.com>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH v2] hwmon: (coretemp) Fix missing sensors with uneven core counts
Date: Sat, 05 Dec 2026 06:19:34 +0000	[thread overview]
Message-ID: <sashiko-outbox-251136@kernel.org> (raw)
In-Reply-To: <20261205-coretemp-core-limit-v2-1-e10810df5a3a@gmail.com>

> topology_num_cores_per_package() returns the core count of the package
> with the lowest APIC ID. If another package has more cores, e.g. because
> the BIOS disabled cores on only one CPU, the extra cores get no
> temperature sensors and "Adding Core N failed" is logged.
> 
> Use num_possible_cpus() as the limit instead, and allocate the array
> with kvzalloc_objs() so large systems don't need a high-order
> allocation.
> 
> Fixes: b89e1255c92b ("hwmon: (coretemp) replace hardcoded core count with dynamic value")
> Reported-by: Sashiko <sashiko-bot@kernel.org>
> Closes: https://lore.kernel.org/linux-hwmon/20260516121622.1E9DAC19425@smtp.kernel.org/
> Tested-by: Asaf Nuri Bertizlioğlu <asafbertizlioglu@gmail.com>
> Reviewed-by: Asaf Nuri Bertizlioğlu <asafbertizlioglu@gmail.com>
> Signed-off-by: Aveline Noir <jm5905938@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261205-coretemp-core-limit-v2-1-e10810df5a3a@gmail.com?part=1

  reply	other threads:[~2026-12-05  6:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  6:12 [PATCH v2] hwmon: (coretemp) Fix missing sensors with uneven core counts Aveline Noir
2026-12-05  6:19 ` sashiko-bot [this message]
2026-12-05 11:16 ` Asaf Nuri Bertizlioğlu
2026-12-05 16:31 ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-251136@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=jm5905938@gmail.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox