From: Martin Knoblauch <spamtrap@knobisoft.de>
To: Mike Galbraith <efault@gmx.de>, Thomas Gleixner <tglx@linutronix.de>
Cc: Gabriel C <nix.or.die@googlemail.com>,
Bart Van Assche <bart.vanassche@gmail.com>,
linux-kernel@vger.kernel.org, hmh@hmh.eng.br
Subject: Re: 2.6.25.2 - Jiffies/Time jumping back and forth (Regereesion from 2.6.24)
Date: Fri, 9 May 2008 04:06:50 -0700 (PDT) [thread overview]
Message-ID: <698792.93829.qm@web32602.mail.mud.yahoo.com> (raw)
----- Original Message ----
> From: Mike Galbraith <efault@gmx.de>
> To: Thomas Gleixner <tglx@linutronix.de>
> Cc: Martin Knoblauch <spamtrap@knobisoft.de>; Gabriel C <nix.or.die@googlemail.com>; Bart Van Assche <bart.vanassche@gmail.com>; linux-kernel@vger.kernel.org; hmh@hmh.eng.br
> Sent: Thursday, May 8, 2008 7:31:28 PM
> Subject: Re: 2.6.25.2 - Jiffies/Time jumping back and forth (Regereesion from 2.6.24)
>
>
> On Thu, 2008-05-08 at 16:13 +0200, Thomas Gleixner wrote:
> > On Thu, 8 May 2008, Martin Knoblauch wrote:
> > > on two different systems running 2.6.25.2:
> > >
> > > ibm x3650(2xDualCore)
> > > -------------------------------------
> > > [root@lpsdm60 ~]# cat
> /sys/devices/system/clocksource/clocksource0/available_clocksource
> > > tsc hpet acpi_pm jiffies
> > > [root@lpsdm60 ~]# cat
> /sys/devices/system/clocksource/clocksource0/current_clocksource
> > > tsc
> > >
> > > HP Proliant DL-380G4 (2xSingleCore)
> > > ------------------------------------------------------------
> > > [root@lpsdm52 ~]# cat
> /sys/devices/system/clocksource/clocksource0/available_clocksource
> > > tsc hpet acpi_pm jiffies
> > > [root@lpsdm52 ~]# cat
> /sys/devices/system/clocksource/clocksource0/current_clocksource
> > > tsc
> > >
> > > and on the DL380G4 running 2.6.24:
> > > ---------------------------------------------------------
> > > [root@lpsdm52 ~]# cat
> /sys/devices/system/clocksource/clocksource0/available_clocksource
> > > hpet acpi_pm jiffies tsc
> > > [root@lpsdm52 ~]# cat
> /sys/devices/system/clocksource/clocksource0/current_clocksource
> > > hpet
> >
> > So on 2.6.24 the TSC is declared unstable at some point and 2.6.25
> > thinks it works fine. Is this the same kernel config (aside of the 24/25 fuzz)
> ?
>
> I had a problem with my P4's tsc being declared unstable after S2R. I
> carry this patchlet (it's in mainline) in my 2.6.24 kernels to keep the
> TSC operational. (browsing, dunno if it's the same problem, but it
> might be..)
>
> diff --git a/arch/x86/kernel/tsc_sync.c b/arch/x86/kernel/tsc_sync.c
> index 9125efe..05d8f25 100644
> --- a/arch/x86/kernel/tsc_sync.c
> +++ b/arch/x86/kernel/tsc_sync.c
> @@ -129,24 +129,24 @@ void __cpuinit check_tsc_sync_source(int cpu)
> while (atomic_read(&stop_count) != cpus-1)
> cpu_relax();
>
> - /*
> - * Reset it - just in case we boot another CPU later:
> - */
> - atomic_set(&start_count, 0);
> -
> if (nr_warps) {
> printk("\n");
> printk(KERN_WARNING "Measured %Ld cycles TSC warp between CPUs,"
> " turning off TSC clock.\n", max_warp);
> mark_tsc_unstable("check_tsc_sync_source failed");
> - nr_warps = 0;
> - max_warp = 0;
> - last_tsc = 0;
> } else {
> printk(" passed.\n");
> }
>
> /*
> + * Reset it - just in case we boot another CPU later:
> + */
> + atomic_set(&start_count, 0);
> + nr_warps = 0;
> + max_warp = 0;
> + last_tsc = 0;
> +
> + /*
> * Let the target continue with the bootup:
> */
> atomic_inc(&stop_count);
Not sure, as I never had this problem in 2.6.24 - started with 2.6.25.2. But trying does not cost ...
...
Nope. That patch is indeed already in 2.6.25.2.
Cheers
Martin
next reply other threads:[~2008-05-09 11:07 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-09 11:06 Martin Knoblauch [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-05-09 15:18 2.6.25.2 - Jiffies/Time jumping back and forth (Regereesion from 2.6.24) Martin Knoblauch
2008-05-09 13:01 Martin Knoblauch
2008-05-09 11:32 Martin Knoblauch
2008-05-08 16:41 Martin Knoblauch
2008-05-08 14:05 Martin Knoblauch
2008-05-08 14:13 ` Thomas Gleixner
2008-05-08 17:31 ` Mike Galbraith
2008-05-07 18:14 Martin Knoblauch
2008-05-07 18:59 ` John Stultz
2008-05-07 15:50 Martin Knoblauch
2008-05-08 10:29 ` Thomas Gleixner
2008-05-08 12:21 ` Gabriel C
2008-05-07 15:02 Martin Knoblauch
2008-05-07 12:42 Martin Knoblauch
2008-05-07 12:56 ` Henrique de Moraes Holschuh
2008-05-07 13:06 ` Bart Van Assche
2008-05-07 17:07 ` john stultz
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=698792.93829.qm@web32602.mail.mud.yahoo.com \
--to=spamtrap@knobisoft.de \
--cc=bart.vanassche@gmail.com \
--cc=efault@gmx.de \
--cc=hmh@hmh.eng.br \
--cc=linux-kernel@vger.kernel.org \
--cc=nix.or.die@googlemail.com \
--cc=tglx@linutronix.de \
/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