[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <aIqKYdvlKlBlSoQK@hpe.com>
Date: Wed, 30 Jul 2025 16:10:57 -0500
From: Dimitri Sivanich <sivanich@....com>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Cc: Thomas Gleixner <tglx@...utronix.de>, Jonathan Corbet <corbet@....net>,
Steve Wahl <steve.wahl@....com>, Justin Ernst <justin.ernst@....com>,
Kyle Meyer <kyle.meyer@....com>, Russ Anderson <russ.anderson@....com>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>
Subject: [PATCH] x86/tsc: Disable clocksource watchdog for TSC on recent UV
Disable clocksource watchdog checking on recent and future UV platforms
to avoid false positives.
Commits 'b50db7095fe0 ("x86/tsc: Disable clocksource watchdog for TSC on
qualified platforms")' and '233756a640be ("Extend watchdog check exemption
to 4-Sockets platform")' were introduced to avoid an issue where the TSC
is falsely declared unstable by exempting qualified platforms of up to
4-sockets from TSC clocksource watchdog checking. Extend that exemption
to include recent and future UV platforms.
Signed-off-by: Dimitri Sivanich <sivanich@....com>
---
arch/x86/kernel/tsc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index 87e749106dda..23727d7214e6 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -31,7 +31,7 @@
#include <asm/i8259.h>
#include <asm/msr.h>
#include <asm/topology.h>
-#include <asm/uv/uv.h>
+#include <asm/uv/uv_hub.h>
#include <asm/sev.h>
unsigned int __read_mostly cpu_khz; /* TSC clocks / usec, not used here */
@@ -1261,7 +1261,7 @@ static void __init check_system_tsc_reliable(void)
if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC) &&
boot_cpu_has(X86_FEATURE_NONSTOP_TSC) &&
boot_cpu_has(X86_FEATURE_TSC_ADJUST) &&
- topology_max_packages() <= 4)
+ (topology_max_packages() <= 4 || is_uvy_hub()))
tsc_disable_clocksource_watchdog();
}
--
2.43.0
Powered by blists - more mailing lists