Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932166AbVK2QtB (ORCPT ); Tue, 29 Nov 2005 11:49:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932165AbVK2QtA (ORCPT ); Tue, 29 Nov 2005 11:49:00 -0500 Received: from mx2.suse.de ([195.135.220.15]:48798 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S932155AbVK2QtA (ORCPT ); Tue, 29 Nov 2005 11:49:00 -0500 Date: Tue, 29 Nov 2005 17:48:58 +0100 From: Andi Kleen To: thockin@hockin.org Cc: Andi Kleen , Steven Rostedt , Ingo Molnar , john stultz , LKML Subject: Re: [RT] read_tsc: ACK! TSC went backward! Unsynced TSCs? Message-ID: <20051129164858.GL19515@wotan.suse.de> References: <1133179554.11491.3.camel@localhost.localdomain> <20051128173040.GA32547@hockin.org> <1133199568.7416.31.camel@mindpipe> <20051128183517.GA4549@hockin.org> <20051129165219.GA12687@hockin.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051129165219.GA12687@hockin.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1101 Lines: 24 On Tue, Nov 29, 2005 at 08:52:19AM -0800, thockin@hockin.org wrote: > On Tue, Nov 29, 2005 at 07:06:24AM -0700, Andi Kleen wrote: > > But I'm surprised you're saying 2.6.11 broke. At least 2.6.11 64bit should > > have always used HPET in this case. I only broke it around 2.6.13 > > where I added an overeager optimization for single socket DC on my side based > > on a misunderstanding. Earlier and later kernels should have been ok. > > we didn't have HPET enabled in BIOS until recently. Turning that on made > all the TSC gettimeofday() crap disappear. Now to find and kill any > straggling users of rdtsc The newer kernels work around this too by using pmtimer when needed. Of course it's slow. Regarding straggling users of rdtsc - one way would be to optionally trap them and log them in the kernel. That would work in ring 3 at least. -Andi - 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/