All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Asaf Nuri Bertizlioğlu" <asafbertizlioglu@gmail.com>
To: jm5905938@gmail.com
Cc: linux@roeck-us.net, linux-hwmon@vger.kernel.org,
	bakshansky.lists@gmail.com, sashiko-reviews@lists.linux.dev,
	sashiko-bot@kernel.org
Subject: Re: [PATCH] hwmon: (coretemp) Fix missing sensors with uneven core counts
Date: Fri,  4 Dec 2026 19:30:12 +0300	[thread overview]
Message-ID: <20261204163014.194618-1-asafbertizlioglu@gmail.com> (raw)
In-Reply-To: <179640028245.321593.15348754128136494597.b4-reply@b4>

On Sat, Dec 05, 2026 at 03:04:42AM +1100, Aveline Noir wrote:
> Yeah, KVM hides it. The kernel also counts the not-present CPUs when it
> detects a hypervisor, see acpi_is_processor_usable(). It doesn't detect
> TCG as one, so they're skipped like on bare metal.

You are right, I missed that. My KVM guest counted the disabled MADT
entries only because it detected a hypervisor.

With your command line and a 7.3.7 guest kernel, the unpatched driver
logs "platform coretemp.1: Adding Core 2 failed" and package 1 only has
Core 0. With this patch applied, package 1 has Core 0 and Core 1, and
nothing is logged. (TCG has no real sensor, so the reads return
-ENODATA; I only checked which sensors get created.)

On an Intel Core i7-14700F (one package, 8 P-cores and 12 E-cores) the
patched driver shows all 21 temperature inputs. 30 rounds of taking an
SMT pair (cpu2/cpu3) and an E-core (cpu16) offline and back, and 20
rmmod/insmod rounds, with a loop reading all coretemp sysfs files in
the background, gave no warnings in dmesg.

I used an LLM to help set up the QEMU test and draft this reply; I ran
the tests, checked the results and reviewed the change myself.

If v2 only changes the commit message, feel free to keep these:

Tested-by: Asaf Nuri Bertizlioğlu <asafbertizlioglu@gmail.com>
Reviewed-by: Asaf Nuri Bertizlioğlu <asafbertizlioglu@gmail.com>

Thanks,
Asaf

  reply	other threads:[~2026-12-04 16:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 14:46 [PATCH] hwmon: (coretemp) Fix missing sensors with uneven core counts Aveline Noir
2026-12-04 15:04 ` sashiko-bot
2026-12-04 15:13   ` Aveline Noir
2026-12-04 20:34     ` Guenter Roeck
2026-12-05  6:11       ` Aveline Noir
2026-12-04 15:53 ` Asaf Nuri Bertizlioğlu
2026-12-04 16:04   ` Aveline Noir
2026-12-04 16:30     ` Asaf Nuri Bertizlioğlu [this message]
2026-12-04 16:43       ` Aveline Noir

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=20261204163014.194618-1-asafbertizlioglu@gmail.com \
    --to=asafbertizlioglu@gmail.com \
    --cc=bakshansky.lists@gmail.com \
    --cc=jm5905938@gmail.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=sashiko-bot@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.