From: Alexander Warth <alexander.warth@mailbox.org>
To: Ruka Yoshida <p5cn97m7@s.okayama-u.ac.jp>
Cc: Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
"Paul E. McKenney" <paulmck@kernel.org>,
John Stultz <jstultz@google.com>, Stephen Boyd <sboyd@kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86/tsc: Require a deviating refined calibration to be reproduced
Date: Fri, 4 Dec 2026 08:22:41 +0100 [thread overview]
Message-ID: <20261204072241.3374616-1-alexander.warth@mailbox.org> (raw)
In-Reply-To: <6f02a36e-b399-47d7-a7eb-18e59d667a14@s.okayama-u.ac.jp>
On Thu, 3 Dec 2026 17:12:18 +0900, Ruka Yoshida wrote:
> I have reproduced what appears to be the same TSC calibration issue on
> an AMD Zen 3 system while investigating the reproducibility of
> post-quantum cryptographic benchmarks.
Hi Ruka,
thank you, this is very helpful. Yours is the third affected machine
in this thread and the first on Zen 3: mine is a Ryzen 5 PRO 2200GE on
an ASUS A320M-K, and the report from NvD Ss earlier in this thread is
a Ryzen 5 2400G on an ASUS A320M-C, both Zen 1.
> [0.000000] tsc: Detected 3294.109 MHz processor
> [1.712331] tsc: Refined TSC clocksource calibration: 3299.119 MHz
[...]
> The normal refined frequency is approximately 3293.812 MHz.
This is the same signature: the early estimate is close to the true
frequency, and only the refined calibration lands off, here by about
0.16%. The watchdog then sees the accumulated skew and marks the TSC
unstable. Warm boot only, cold boot clean, and the dependence on deep
C-states also match what I see.
> Is the September 22 patch still the preferred version for testing?
Yes, the September 22 posting is the current and only version on the
list. It was written against v7.3-rc3, applies without offsets to
v7.3, and to v6.18.52 with an 18-line offset, so a 7.0-based Ubuntu
tree should be fine. If it does not apply, let me know and I will send
a rebased version.
For a comparable result it would help most to test exactly the failing
configuration:
- warm reboot (not from power off)
- default C-states, HPET enabled (your 5/5 case)
- several boots, ideally as many as in your baseline
and to send for each boot:
dmesg | grep -Ei 'tsc|clocksource'
cat /sys/devices/system/clocksource/clocksource0/current_clocksource
With the patch, a boot where the refined value deviates should log
"Refined TSC calibration not reproducible" and keep the early
calibration, with tsc staying the clocksource.
If the patch fixes it on your machine, would you be willing to give a
Tested-by: for v2? I plan to post v2 with the additional systems in
the changelog.
Best regards,
Alexander
next prev parent reply other threads:[~2026-12-04 7:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 9:17 Alexander Warth
2026-10-03 22:07 ` NvD Ss
2026-10-04 11:55 ` Alexander Warth
2026-12-03 8:12 ` Ruka Yoshida
2026-12-04 7:22 ` Alexander Warth [this message]
2026-12-04 8:51 ` Ruka Yoshida
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=20261204072241.3374616-1-alexander.warth@mailbox.org \
--to=alexander.warth@mailbox.org \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=jstultz@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=p5cn97m7@s.okayama-u.ac.jp \
--cc=paulmck@kernel.org \
--cc=sboyd@kernel.org \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
/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
all inboxes | Powered by JetHome®