Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424387AbWKJIvS (ORCPT ); Fri, 10 Nov 2006 03:51:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1424389AbWKJIvS (ORCPT ); Fri, 10 Nov 2006 03:51:18 -0500 Received: from smtp.osdl.org ([65.172.181.4]:27610 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1424388AbWKJIvQ (ORCPT ); Fri, 10 Nov 2006 03:51:16 -0500 Date: Fri, 10 Nov 2006 00:50:20 -0800 From: Andrew Morton To: tglx@linutronix.de Cc: Andi Kleen , john stultz , LKML , Ingo Molnar , Len Brown , Arjan van de Ven , Roman Zippel Subject: Re: [patch 13/19] GTOD: Mark TSC unusable for highres timers Message-Id: <20061110005020.4538e095.akpm@osdl.org> In-Reply-To: <1163146206.8335.183.camel@localhost.localdomain> References: <20061109233030.915859000@cruncher.tec.linutronix.de> <20061109233035.569684000@cruncher.tec.linutronix.de> <1163121045.836.69.camel@localhost> <200611100610.13957.ak@suse.de> <1163146206.8335.183.camel@localhost.localdomain> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1645 Lines: 42 On Fri, 10 Nov 2006 09:10:06 +0100 Thomas Gleixner wrote: > On Fri, 2006-11-10 at 06:10 +0100, Andi Kleen wrote: > > > > verify_tsc_freq_timer.function = verify_tsc_freq; > > > > verify_tsc_freq_timer.expires = > > > > > > > > > Hmmm. I wish this patch was unnecessary, but I don't see an easy > > > solution. > > > > Very sad. This will make a lot of people unhappy, even to the point > > where they might prefer disabling noidlehz over super slow gettimeofday. > > I assume you at least have a suitable command line option for that, right? > > Yes it is sad. And the sadest part is that AMD and Intel have been asked > to fix that more than 5 years ago. They did not get their brain straight > and now we are the dimwits. > > > Can we get a summary on which systems the TSC is considered unstable? > > Normally we assume if it's stable enough for gettimeofday it should > > be stable enough for longer delays too. > > TSC is simply a nightmare: > > - Frequency changes with CPU clock > - Unsynced across CPUs > - Stops in C3, which makes it completely unusable > > Once you take away periodic interrupts it is simply broken. AMD and > Intel can run in circels, it does not get better. > What is the actual problem? verify_tsc_freq()? If so, could that function use the PIT/pmtimer/etc for working out if the TSC is bust, rather than directly using jiffies? - 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/