From: John Stultz <john.stultz@linaro.org>
To: Pavel Machek <pavel@ucw.cz>
Cc: Ingo Molnar <mingo@kernel.org>, Feng Tang <feng.tang@intel.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: Fwd: [GIT PULL] timer changes for v3.10
Date: Tue, 07 May 2013 14:39:35 -0700 [thread overview]
Message-ID: <51897497.7040806@linaro.org> (raw)
In-Reply-To: <20130507213142.GA10061@amd.pavel.ucw.cz>
On 05/07/2013 02:31 PM, Pavel Machek wrote:
> On Tue 2013-05-07 09:01:36, John Stultz wrote:
>> On 05/06/2013 11:53 PM, Ingo Molnar wrote:
>>> * Feng Tang <feng.tang@intel.com> 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?
>>>
>>> Without NTP, the TSC fast-calibration on bootup is not (expected to be)
>>> nearly as precise as the 1:345600 precision you've measured.
>> We also do refined calibration now on the TSC asynchronously over a
>> period of seconds at boot up that gives us much better accuracy then
>> the fast calibration. This helps provide much more consistent
>> boot-to-boot TSC frequencies.
> On android (and this is targetted at android, right?) system is going
> to suspend basically as soon as it boots. Will refined calibration
> have enough time to do its job?
I don't *think* this is a concern. The refined calibration only takes a
few seconds while the system is booting and has always completed before
userspace starts on the systems I have. Even so, I don't believe on boot
Android will trigger the autosleep code until its userland is up and
running, which takes more then a few seconds on the devices I've seen.
> And... reason for all this is that RTC has one second granularity when
> accessed naively. But surely we could poll RTC X times a second,
> getting error down by factor of X?
Well, we can poll the RTC trying to get closer to the second edge, but
that's somewhat expensive, and for suspend/resume would delay things
more then whats acceptable.
Sorry. You seem to not like the merged change, but I guess I'm not quite
sure what exactly your objection is here.
thanks
-john
next prev parent reply other threads:[~2013-05-07 21:39 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-30 7:43 [GIT PULL] timer changes for v3.10 Ingo Molnar
2013-04-30 15:21 ` Linus Torvalds
2013-05-01 10:53 ` Ingo Molnar
2013-05-02 10:22 ` Thomas Gleixner
2013-05-06 23:01 ` Pavel Machek
2013-05-07 0:10 ` John Stultz
[not found] ` <CA++bM2scosWgBpC3_LzcKYOjG4EQQzN5Vf4rZFds-5qRVRwvDQ@mail.gmail.com>
2013-05-07 2:38 ` Fwd: " Feng Tang
2013-05-07 6:53 ` Ingo Molnar
2013-05-07 7:05 ` Feng Tang
2013-05-07 16:01 ` John Stultz
2013-05-07 17:18 ` Ingo Molnar
2013-05-07 21:31 ` Pavel Machek
2013-05-07 21:39 ` John Stultz [this message]
2013-05-07 21:51 ` Pavel Machek
2013-05-08 6:44 ` Ingo Molnar
2013-05-08 10:55 ` Pavel Machek
2013-05-08 14:11 ` Feng Tang
2013-05-08 14:34 ` Thomas Gleixner
2013-05-08 19:49 ` Pavel Machek
2013-05-09 8:59 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51897497.7040806@linaro.org \
--to=john.stultz@linaro.org \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=feng.tang@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=pavel@ucw.cz \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.