Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754672AbcJUIIr (ORCPT ); Fri, 21 Oct 2016 04:08:47 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:50836 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751465AbcJUIIm (ORCPT ); Fri, 21 Oct 2016 04:08:42 -0400 Date: Fri, 21 Oct 2016 10:05:42 +0200 (CEST) From: Thomas Gleixner To: Peter Zijlstra cc: Bin Gao , Ingo Molnar , "H. Peter Anvin" , John Stultz , x86@kernel.org, linux-kernel@vger.kernel.org, bin.gao@intel.com Subject: Re: [PATCH v3] x86/tsc: add X86_FEATURE_TSC_KNOWN_FREQ flag In-Reply-To: <20161021054717.GZ3102@twins.programming.kicks-ass.net> Message-ID: References: <20160825164350.GA245186@worksta> <20161011211121.GA15041@worksta> <20161013231619.GA225074@worksta> <20161020101747.GT3102@twins.programming.kicks-ass.net> <20161021054717.GZ3102@twins.programming.kicks-ass.net> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 884 Lines: 25 On Fri, 21 Oct 2016, Peter Zijlstra wrote: > On Thu, Oct 20, 2016 at 09:37:50PM +0200, Thomas Gleixner wrote: > > > Well, we have the same issue on other platforms/models which set the > > reliable flag. > > I was not aware we had other platforms doing this, git grep tells me > intel-mid does this as well.. > > > So one sanity check we can do is to read the IA32_TSC_ADJUST MSR on all > > cores. They should all have the same value (usually 0) or at least have a > > very minimal delta. If that's off by more than 1us then something is fishy > > especially on single socket systems. We could at least WARN about it. > > > > We could do this in idle occasionally as well, so we can detect the dreaded > > "SMI wants to hide the cycles" crapola. > > Indeed, that sounds like the best we can; and probably should; do. I'll have a look at that in the next days. Thanks, tglx