public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: john stultz <johnstul@us.ibm.com>
To: Miklos Vajna <vmiklos@frugalware.org>
Cc: linux-kernel@vger.kernel.org,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Ingo Molnar" <mingo@redhat.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	"Gabriel C" <nix.or.die@googlemail.com>,
	"CSÉCSY László" <boobaa@frugalware.org>
Subject: Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Date: Wed, 21 Jan 2009 13:34:06 -0800	[thread overview]
Message-ID: <1232573646.6997.21.camel@localhost.localdomain> (raw)
In-Reply-To: <20090121210726.GK21473@genesis.frugalware.org>

On Wed, 2009-01-21 at 22:07 +0100, Miklos Vajna wrote:
> On Wed, Jan 21, 2009 at 12:00:57PM -0800, john stultz <johnstul@us.ibm.com> wrote:
> > Could you send the output from:
> >    cat /sys/devices/system/clocksource/clocksource0/current_clocksource
> >    cat /sys/devices/system/clocksource/clocksource0/available_clocksource
> > 
> > For both kernels on the affected hardware ?
> 
> Output when no related kernel parameters are used:
> 
> 2.6.28.1:
> 
> $ cat /sys/devices/system/clocksource/clocksource0/current_clocksource
> tsc
> $ cat /sys/devices/system/clocksource/clocksource0/available_clocksource
> tsc pit jiffies
> 
> 2.6.27.10:
> 
> $ cat /sys/devices/system/clocksource/clocksource0/current_clocksource
> acpi_pm
> $ cat /sys/devices/system/clocksource/clocksource0/available_clocksource
> acpi_pm jiffies tsc
> 
> So it seems the problem is that acpi_pm is no longer available.

Yep. Its there, but I see in the 2.6.28 dmesg:
  PM-Timer running at invalid rate: 87% of normal - aborting.

Which means its being disqualified.

Looking at the dmesg diff I see:
-TSC: PIT calibration confirmed by PMTIMER.
-TSC: using PMTIMER calibration value
-Detected 1499.820 MHz processor.
+TSC: PIT calibration deviates from PMTIMER: 1309343 1499790.
+TSC: Using PIT calibration value
+Detected 1309.343 MHz processor.

So it seems the PIT is having some sort of issue, which causes the TSC
to be miscalibrated (apparently causing the fast timekeeping in 2.6.28
you're seeing) and in addition it also is disqualifying the acpi_pm
clocksource. 

Alas, the circular "what do we trust" issue bites us again.

The TSC calibrate code was reworked recently, but that should have been
in 2.6.27 (if I'm reading the git commit dates properly), so right off I
don't know what to blame.

Ingo/Thomas: Any ideas here?

Miklos: Can you try bisecting this down some?

thanks
-john



  reply	other threads:[~2009-01-21 21:34 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-21 17:14 System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade Miklos Vajna
2009-01-21 20:00 ` john stultz
2009-01-21 21:07   ` Miklos Vajna
2009-01-21 21:34     ` john stultz [this message]
2009-01-22 19:51       ` Miklos Vajna
2009-01-22 19:55         ` Ingo Molnar
2009-01-23  0:12           ` Miklos Vajna
2009-01-22 20:03         ` john stultz
2009-01-22 23:57           ` Miklos Vajna
2009-01-23  1:43             ` john stultz
2009-01-23 11:04               ` Ingo Molnar
2009-01-24  1:36                 ` john stultz
2009-01-24  9:14                   ` Ingo Molnar
2009-01-25 11:18                     ` Florian Fainelli
2009-01-25 15:03                       ` Ingo Molnar
2009-01-25 15:38                         ` Florian Fainelli
2009-01-25 16:00                           ` Ingo Molnar
2009-01-25 11:17                   ` Florian Fainelli
2009-01-25 15:02                     ` Ingo Molnar
2009-01-25 14:59                   ` Robert Schwebel

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=1232573646.6997.21.camel@localhost.localdomain \
    --to=johnstul@us.ibm.com \
    --cc=boobaa@frugalware.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=nix.or.die@googlemail.com \
    --cc=rjw@sisk.pl \
    --cc=tglx@linutronix.de \
    --cc=vmiklos@frugalware.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox