mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "A Kundu" <avikalpa@yahoo.com>
To: <linux-kernel@vger.kernel.org>, <x86@kernel.org>
Subject: TSC marked unstable on AMD Zen4 (Ryzen 7 250, ThinkBook 16 G9 AHP): 15.6G-cycle warp CPU0->CPU2 at boot, 7.1.12
Date: Fri, 11 Sep 2026 23:32:52 +0530	[thread overview]
Message-ID: <1789149772593550955.2470305@yahoo.com> (raw)
In-Reply-To: <1789149772593550955.2470305.ref@yahoo.com>

Hi,

On an AMD Zen4 laptop, kernel 7.1.12 (x86_64) marks the TSC unstable at
boot with a massive cross-CPU warp:

[    0.191568] TSC synchronization [CPU#0 -> CPU#2]:
[    0.191571] Measured 15645116622 cycles TSC warp between CPUs, turning off TSC clock.
[    0.191580] tsc: Marking TSC unstable due to check_tsc_sync_source failed

That is 15,645,116,622 cycles (~4.7 s at the detected 3294 MHz) of skew
between CPU0 and CPU2 during early-boot synchronization. The kernel then
runs on HPET; the TSC is dropped from the available clocksource list
entirely.

Hardware: AMD Ryzen 7 250 w/ Radeon 780M (Zen4), single socket, constant_tsc
+ nonstop_tsc + rdtscp present. Lenovo ThinkBook 16 G9 AHP (type 21UT),
BIOS SQCN20WW dated 2025-11-10 (latest published for this model).

Notes:

- A previous boot configuration used the `tsc=reliable` parameter, which
  forced the skewed TSC into service. Applications then observed
  multi-second backwards jumps of CLOCK_MONOTONIC depending on the CPU
  they ran on (Chromium renderer CHECK failures; journald boot accounting
  disorder). The parameter had been masking this boot-time failure.
- The warp magnitude — seconds, not a small calibration drift — suggests
  the secondary CPU's TSC was never synchronized by firmware rather than
  a measurement issue in check_tsc_sync_source.
- Suggest Lenovo/AMD be looked at for the firmware-side sync, but the
  kernel-side behaviour (boot-time detection working as designed) is
  reported here for the record since 15.6G cycles is far outside anything
  a retry would paper over.

Full dmesg, CPUID dumps and further data available on request. Happy to
test patches.

Thanks,
Avikalpa Kundu

       reply	other threads:[~2026-09-11 18:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1789149772593550955.2470305.ref@yahoo.com>
2026-09-11 18:02 ` A Kundu [this message]
2026-09-12  4:23   ` Borislav Petkov

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=1789149772593550955.2470305@yahoo.com \
    --to=avikalpa@yahoo.com \
    --cc=linux-kernel@vger.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®