From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758001Ab3EGHHq (ORCPT ); Tue, 7 May 2013 03:07:46 -0400 Received: from mga11.intel.com ([192.55.52.93]:47149 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753924Ab3EGHHp (ORCPT ); Tue, 7 May 2013 03:07:45 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,627,1363158000"; d="scan'208";a="333702952" Date: Tue, 7 May 2013 15:05:00 +0800 From: Feng Tang To: Ingo Molnar Cc: Pavel Machek , John Stultz , Linus Torvalds , linux-kernel@vger.kernel.org, Thomas Gleixner , Peter Zijlstra , Andrew Morton Subject: Re: Fwd: [GIT PULL] timer changes for v3.10 Message-ID: <20130507070500.GA8114@feng-snb> References: <20130430074322.GA20110@gmail.com> <20130506230137.GA16801@amd.pavel.ucw.cz> <20130507023853.GA2945@feng-snb> <20130507065348.GF17705@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130507065348.GF17705@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ingo, On Tue, May 07, 2013 at 08:53:48AM +0200, Ingo Molnar wrote: > > * Feng Tang wrote: > > > > is even worse than that. Machine can stay is s2ram for weeks (for a > > > lot more if it is desktop and you do s2ram for powersaving). Also > > > temperature of CPU varies a lot between active and s2ram states. Is > > > TSC good enough? > > > > Yes, I think it is relatively precise. Per our test, system time backed > > by the S3 non stop TSC only has 1 second drift after 4 days running > > (with mixed running and S3 states). And before using this feature, we've > > seen many time drift problems due to the RTC HW or system FW with our > > platforms. > > Nice result ... > > Is that with NTP running? No, we haven't tested it with NTP yet. > > Without NTP, the TSC fast-calibration on bootup is not (expected to be) > nearly as precise as the 1:345600 precision you've measured. For the some Atom processor like the Moorestown, Medfield, we use a fast TSC calibration by check the FSB freq and ratio from MSRs. See mrst_calibrate_tsc() in arch/x86/platform/mrst/mrst.c, and the calculated value is precise based on our test. Thanks, Feng