Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758717AbXJaKX4 (ORCPT ); Wed, 31 Oct 2007 06:23:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753281AbXJaKXt (ORCPT ); Wed, 31 Oct 2007 06:23:49 -0400 Received: from 8bytes.org ([88.198.83.132]:54601 "EHLO 8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752113AbXJaKXs (ORCPT ); Wed, 31 Oct 2007 06:23:48 -0400 Date: Wed, 31 Oct 2007 11:23:46 +0100 From: Joerg Roedel To: Vojtech Pavlik Cc: Andi Kleen , Joerg Roedel , tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org, benjamin.serebrin@amd.com Subject: Re: Whats the purpose of get_cycles_sync() Message-ID: <20071031102346.GE29700@8bytes.org> References: <20071030174452.GA18619@amd.com> <20071030220209.GA21142@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071030220209.GA21142@suse.cz> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1049 Lines: 25 Hi Vojtech, On Tue, Oct 30, 2007 at 11:02:09PM +0100, Vojtech Pavlik wrote: > The K8's still guarantee that subsequent RDTSCs return increasing > values, even if the processor reorders them. > > What could have been happening then was that the RDTSC instruction might > have been reordered by the CPU out of the seqlock, causing trouble in > the calculation. > > Anyway, adding the CPUID didn't solve all the problems we've seen back > then, and so far none of the approaches for using TSC without acquiring > a spinlock on multi-socket AMD boxes worked 100% correctly. Can you tell me more about the problems you have seen or give me a pointer to a mail discussion regarding that problems? Can you also provide your test program to me please? I want to understand these problems a bit better. Joerg - 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/