Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751184AbbKMVNb (ORCPT ); Fri, 13 Nov 2015 16:13:31 -0500 Received: from mga14.intel.com ([192.55.52.115]:24897 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbbKMVNa (ORCPT ); Fri, 13 Nov 2015 16:13:30 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,289,1444719600"; d="scan'208";a="819451147" Subject: Re: [RFC PATCH] tsc: synchronize TSCs on buggy Intel Xeon E5 CPUs with offset error To: Peter Zijlstra , gratian.crisan@ni.com References: <1447099142-10220-1-git-send-email-gratian.crisan@ni.com> <20151109220232.GO17308@twins.programming.kicks-ass.net> Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, Borislav Petkov , Josh Cartwright , gratian@gmail.com From: Dave Hansen Message-ID: <56465279.2010502@intel.com> Date: Fri, 13 Nov 2015 13:13:29 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151109220232.GO17308@twins.programming.kicks-ass.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1027 Lines: 25 On 11/09/2015 02:02 PM, Peter Zijlstra wrote: > On Mon, Nov 09, 2015 at 01:59:02PM -0600, gratian.crisan@ni.com wrote: >> The Intel Xeon E5 processor family suffers from errata[1] BT81: > >> +#ifdef CONFIG_X86_TSC >> + /* >> + * Xeon E5 BT81 errata: TSC is not affected by warm reset. >> + * The TSC registers for CPUs other than CPU0 are not cleared by a warm >> + * reset resulting in a constant offset error. >> + */ >> + if ((c->x86 == 6) && (c->x86_model == 0x3f)) >> + set_cpu_bug(c, X86_BUG_TSC_OFFSET); >> +#endif > > That's hardly a family, that's just one, Haswell server. How did you come up with that x86_model? The document you linked to claimes that "Extended Model" is 0010b and "Model Number" is 1101b, so the x86_model you are looking for should be 0x2d. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/