From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796374319; b=qte7FkvJB/qZMnGHKxx0eK8jiQz0KReVbtRGbvvEzadXX1OO+kU4morOBZuFYEktgLEg AiDcLkXcfjFFtddavJ/EdGXK4hzn8yx/W5r6baUt+VHr7l0iH2kPUWL6Yc0DVWCJfF1T1 i3lt2eXOs+ro3j/Yk5Bkczg9hhFEMCnWnse/vww3fVR4EbbqpQoDcE6MHkC7o5eJJuj4O Scvyvcc46EOUpEv3kqxm99IByuocxOOSLRWjaoGnMRkMtAkljVuBvt0oRbJtmKFDCOAcx nY27n1WL2IJtDYHnXEI4OvdzCJuMIh+f1yo1lR/Hzys/PDlJcrfi6GNUXojMMlOvyow== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796374319; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:Autocrypt:Organization:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=38OUWjGrtUdM9MPivMSu09S5vP8Ena3hM/Dbg4etzLg=; b=Lls2x7bU7sk/fT1GZdbmbzY20C6Ty4I1SV7XjqQlkoIGKm6BucdoojgU4FS7X9xlukZs 3zFNxlVnLPcbyBWL2K1XzDSWRh4jJ8tVfKTHNbtakGyzTMmxKU8FlHvbNKgoNkSj7+HNj ELCKKXpGxWncDZQnfz89+CoohS4nGiyIaUiYj+5sU7+vjtVzEYWA5u5WsqC/qBeV/hJlD OHE7+X+YEbqb1lgxOHTmzuAte+7Ch01xVWDx6wMdpqa5XhjZImGylkTsObaNojMBewGL0 nSnUwK7tPz84REwI4Aaets5nLAb8bQFVARDXXdALlJ0ofafDSVt03pNyQbTnC6V2DnQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=s.okayama-u.ac.jp; spf=pass smtp.mailfrom=s.okayama-u.ac.jp; dkim=pass header.d=s.okayama-u.ac.jp header.i=@s.okayama-u.ac.jp header.a=rsa-sha256 header.s=google header.b=IIIRXvu8; arc=none smtp.remote-ip=209.85.214.172 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 347E8606A332 for ; Fri, 4 Dec 2026 08:51:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 347E8606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=s.okayama-u.ac.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=s.okayama-u.ac.jp Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=s.okayama-u.ac.jp header.i=@s.okayama-u.ac.jp header.a=rsa-sha256 header.s=google header.b=IIIRXvu8 Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2e9ae391a05so5261015ad.1 for ; Fri, 04 Dec 2026 00:51:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=s.okayama-u.ac.jp; s=google; t=1796374317; x=1796979117; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to:content-type; bh=38OUWjGrtUdM9MPivMSu09S5vP8Ena3hM/Dbg4etzLg=; b=IIIRXvu8f7tVxJtcqC0K4ToidXlhNEl8CU7auYYabK8+HaxegcXdl212nMf9L5wcPX C74kS4XROmRcup+ZS334ajbITRNo1u1OaLq7gUXmomV9CKTqQGMyP5wuLxtCcB+lzJm9 KfsPw9YDk9+3YUmfwUwHjcjKEJTekUn+gekLg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796374317; x=1796979117; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=38OUWjGrtUdM9MPivMSu09S5vP8Ena3hM/Dbg4etzLg=; b=scJadQCpmV0XhOtCtM9wKYDs41mgeSADBd9JUJhohFUk9rjCopSXawcuYzXmoC+ABn uB5gqacDJA2TNcwX/PhoUAl1bBluKjkByc4WXuoCPa4+BHyOTvzAp4K620v2fLwmYQDu FLB+OVLFG7GuwtlkJXnN6wbAj/F+FF0mAJ8j/RnWZejkPM4Z7QoRlRapGh497SzK+0X2 k51rQCjRDUgISk5tY3VzkG/a5F0haNnkA470OmR+M76PIU6s3TsF+bGkYNTQFlmbhhY6 FslZyT7v2CYDt7ywlgG1Wf65GJo9GOuvmi+EoiAEi3yijK9H83OFbPlsnCh20RmQkmUx 8cOw== X-Forwarded-Encrypted: i=1; AL+hErEj7M/AHOv/kBXk93VqC3FajphMx0dJqGWqdZZg9myxu+2wQalsKhn8tMAClemMKj1BqlbojnS1rsoPVzA=@vger.kernel.org X-Gm-Message-State: APuU4Z+3isBHuD5aUj6mjqVKwpo1Jc3ydMEAwhgqymlyd+GkJrNrm6NC uxm0Z04bQhsyNDLaS0Ax47YC84pWS7QnmP8oVJa1TdUbLhazr15Uaq9enimJCn0X1rs= X-Gm-Gg: AZFdTZfcYZnbeIKMj3dgVaVFgIrz3jf82rLOWdHWc12nTxOl0pjXzThx2ZBeZeHQrAy WqFxEFxISQxy4hTaPWZRrKYAmJteuvCpA4PDYgbo/uRnDH+21kJ2VUi3f0NjjnVPyxn/hx8m64G Z+MgYWEOXwnfATUfYqBhOMnRmHo/xPp9LGW1i0SuLNit58noHgjb8dgU+xTdCW5jsfnEnSnGCIN xmD9Z9gVo1W2xTkutuJ0+7bPoQL1qXLYPJeDLWwrsczgVZmY0QL+kCppSpP9vd7Qinhw8cFD5aE Wy3UZeISuHHWkHzeya2IoU3bblt8PZkAJYo5rW5sgvLmlk9xokagUnTXFtRjvTC60QgFwmX3k7U ASZgCpsz+RwYSx9eZbGFzh/lfZ/5+Rd1f6K+ugHVJ5pRFZc6nI8TBIm8EDiuuCpypkcLGV4i/IG DM5OStRlgx44UL4KSN8j2fc9FQNbHvxWSLNKhmhdhLqczWF2orpD0WvdowzUR/AW2s4NEtJtp7C +Npoa7tpdftU1ZyQfd9t/8+i1r591MungI9IyPDgtYuyMdkPEZz5aRCod6tNLidgSW6YMWUQ3Zv MS0N3lFmK9HYr540/YGp3Bjf4e4118OE/W/m8aMwsTfB5rGA4Kh/wIyf99uyQMBbDulHMqlBoTM = X-Received: by 2002:a17:903:2f86:b0:2f0:1c03:be13 with SMTP id d9443c01a7336-2f197180f0bmr41244815ad.29.1796374317339; Fri, 04 Dec 2026 00:51:57 -0800 (PST) Received: from [192.168.1.85] ([150.46.201.39]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f1b78f9e7dsm7860585ad.26.2026.12.04.00.51.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 00:51:56 -0800 (PST) Message-ID: <94734155-dc7f-4db6-a665-2f9ceff91c76@s.okayama-u.ac.jp> Date: Fri, 4 Dec 2026 17:51:54 +0900 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] x86/tsc: Require a deviating refined calibration to be reproduced To: Alexander Warth 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 References: <20260922091740.344611-1-alexander.warth@mailbox.org> <6f02a36e-b399-47d7-a7eb-18e59d667a14@s.okayama-u.ac.jp> <20261204072241.3374616-1-alexander.warth@mailbox.org> Content-Language: en-US From: Ruka Yoshida Autocrypt: addr=p5cn97m7@s.okayama-u.ac.jp; keydata= xjMEawD+NRYJKwYBBAHaRw8BAQdAmBxQKfVnxLsVNlFl/awgcaJZhGewIruvUBYHSeUYyOTN KVJ1a2EgWW9zaGlkYSA8cDVjbjk3bTdAcy5va2F5YW1hLXUuYWMuanA+wrUEExYKAF0WIQR6 47DyYGg68Isa9ODJg+5N1SUP0gUCawD+NRsUgAAAAAAEAA5tYW51MiwyLjUrMS4xMiwwLDMC GwMFCQWjmoAFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQyYPuTdUlD9KctgEAyww4 qfeJARdWLH+8hYKjwxHsfYAtejUt1BPN0Aqvq4YBAIzsGLyhNHxQI37F6uUYUgW21QcSVzms Z2SWOM0FtiEPzjgEawD+NRIKKwYBBAGXVQEFAQEHQK7j6fDGeLtow+6TLQ/WoqCTzerblBEZ /DOiSoOXbPdOAwEIB8KUBBgWCgA8FiEEeuOw8mBoOvCLGvTgyYPuTdUlD9IFAmsA/jUbFIAA AAAABAAObWFudTIsMi41KzEuMTIsMCwzAhsMAAoJEMmD7k3VJQ/S7+IA/3iUq9vghOAB+KoD CizxBcZCES6/BXUCbe0sd5gLxjjtAPsEMzJAjajBdSFjmF/gQoD01lj7wZ6HemIfp8sXOo6J Cg== Organization: Okayama University, Japan In-Reply-To: <20261204072241.3374616-1-alexander.warth@mailbox.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2026-12-04 16:22, Alexander Warth wrote: > 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 Hi Alexander, Thank you for your reply. I have completed the requested tests. The September 22 patch applied to the Ubuntu 7.0.14-based kernel with offsets but without any modifications to the patch itself. I built both kernels from the same Ubuntu kernel source (7.0.0-44.44~24.04.1) and performed five warm reboots with each, alternating between the unpatched and patched kernels. Test conditions: CPU: AMD Ryzen 9 5900HS (Zen 3, Cezanne) System: ASUS ROG Zephyrus G15 (GA503QR) BIOS: 418 Microcode: 0xa500012 CPUIdle driver: acpi_idle processor.max_cstate: 8 (default) ACPI C3: enabled HPET: enabled Clocksource watchdog: enabled Secure Boot: enabled Boot target: multi-user.target The current clocksource was recorded after at least 60 seconds of uptime for each boot. Test Initial MHz Refined MHz Time (s) Clocksource base-01 3293.985 3299.142 1.711535 hpet base-02 3293.779 3299.212 1.712557 hpet base-03 3293.898 3299.186 1.519328 hpet base-04 3294.105 3299.432 1.455297 hpet base-05 3293.985 3299.264 1.583556 hpet retry-01 3293.890 3293.796 2.618415 tsc retry-02 3294.040 3293.796 2.552665 tsc retry-03 3294.039 3293.806 2.750664 tsc retry-04 3293.751 3293.811 2.615436 tsc retry-05 3293.905 3293.797 2.550826 tsc Without the patch, the watchdog marked the TSC unstable in all five boots. With the patch, the TSC remained the active clocksource in all five boots, with no TSC instability messages. The mean timestamp of the refined calibration message changed from 1.596455 to 2.617601 seconds, a difference of approximately 1.021 seconds. The TSC frequency estimated from the watchdog intervals in the five unpatched boots was between 3293.809 and 3293.811 MHz, which supports your explanation of the failure. > With the patch, a boot where the refined value deviates should > log "Refined TSC calibration not reproducible" I did not observe this message in any of the five patched boots. Instead, all five completed the refined calibration with frequencies between 3293.796 and 3293.811 MHz. The approximately one-second delay is consistent with an additional refinement measurement, although I have not directly recorded the individual refinement samples. The patch addresses the observed calibration failure under these test conditions. The requested timestamped dmesg logs and current clocksource values for all ten boots are available at: https://gist.github.com/mimoex/ebd2c8e788e4d9a1a71ad2958e388cf0 > If the patch fixes it on your machine, would you be willing > to give a Tested-by: for v2? Yes, I would be happy to test v2 and provide a Tested-by tag after verifying that version on my system. For transparency, I used ChatGPT to help write a script that collects the requested diagnostic information and saves it to text files. I reviewed the generated code and performed all tests on my own hardware. Best regards, Ruka Yoshida