From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=80.241.56.151 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796369177; b=0n8TFlcT9FuB1HSsz1K5uIcvYSHqZkBJifG02xKa75tvMB1PNHUuF/q8/ZNS7dgW/Gka T75amKadQgq04NUIx881/aRhssyAOYsI+liTZDDeA/zEB59Kcxdh2YMb6MVV6o2ApsaHm bqkYr7H5db4D0JBfwKZ4oRpGLxy/xi6OUI3vhFcpYjSXO6q1kzK8DJMe+61o/jiytjf0y BXDrXHYDMTDh5owv13eHu5Pj6IWWl2Z1ehqlbbAs0b1TB9NQHFuUuckB8rwJZVLDKhzsO MFJC2ki15XGy4XQ1PIHBJ5zwPm0jFXUvT72Xq5Rgs8blgBjpm6YLIyyUBk4EVgY5eqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796369177; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-MBO-RS-META:X-MBO-RS-ID: X-Rspamd-Queue-Id; bh=zk3zhCxWG25+TjK2aGPZwRYRwTAmYyyt6I4c6rXSTfg=; b=E4E0Fbm52jEbmWBt1QevUDRFNRO/EQsqyxXfY2jQU0aOdbokuwZjiIyzHspY+Jj/l+zd gkCUgZJ6I0OyNx1eydw2YTgdhxOSGyz4cf0oL48t3GgfcD8KgMqsl7T2PmndT0aW68MDH YglbP5WwToQsxW0LlXQ6Bwi6LAa84fp+TMFM1oMsrtBJx+5ikseUI/Fkfkcf3cksfVivk /nNe3ve3MwJYzm+rvDkIlPRnkS2N9ttpXlqXouNJvA5SaLXtfwZdd8SA90xymbfHvC3rS s4aZXIgV27gQutecEQhRePlnvxs0OKl3NE2mzp9XN08xjrqsQWBcJ2phbLNhEb8o96g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=yI7huqIG; arc=none smtp.remote-ip=80.241.56.151 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5C61606A32C for ; Fri, 4 Dec 2026 07:26:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D5C61606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=yI7huqIG Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4jgjhv1Lv9z8swK; Fri, 04 Dec 2026 08:26:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1796369173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zk3zhCxWG25+TjK2aGPZwRYRwTAmYyyt6I4c6rXSTfg=; b=yI7huqIGp+Sm9E11ZqqL0ZQfP3mHntnkPc392Kg5jGEbZ7pSHLhYClZX7mNFHUZR+Io3fa r251zzu1POPJdRGxZ9qwqi0d2dEeGVu4vK9tK9qh4+Rr0/lnYNY2MGNbtjEHds7cIlEH0H bxuGzOWMUnmMzzkM/DddFb2RfFa/gV3EKQK9agD5cb1hctuLDaYPYzr+wDRZ8dVRwStC6R qp8wyh4hmK5Z/7X4UJJa1W4A4znXN3qgT1CKQvvnx5PfuXOd8HqsMtdvYZ832Euwd9YbSb n8L2oFhAjZnXe+44KXJmp5ajkb6p2xc4C5xq1HTVr+7INXqBLi2N19vru6zBHQ== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of alexander.warth@mailbox.org designates 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=alexander.warth@mailbox.org From: Alexander Warth To: Ruka Yoshida Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Paul E. McKenney" , John Stultz , Stephen Boyd , 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 Message-ID: <20261204072241.3374616-1-alexander.warth@mailbox.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <6f02a36e-b399-47d7-a7eb-18e59d667a14@s.okayama-u.ac.jp> References: <20260922091740.344611-1-alexander.warth@mailbox.org> <6f02a36e-b399-47d7-a7eb-18e59d667a14@s.okayama-u.ac.jp> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-RS-META: hw6gt1zz5wngwmbx5ufind68u9jrcead X-MBO-RS-ID: 82d3214de83def0bdd3 X-Rspamd-Queue-Id: 4jgjhv1Lv9z8swK 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