public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: "R. J. Wysocki" <Rafal.Wysocki@fuw.edu.pl>,
	Thomas Gleixner <tglx@linutronix.de>,
	Lars Winterfeld <lars.winterfeld@tu-ilmenau.de>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] nohz: add missing handling of clocksource watchdog
Date: Mon, 8 Dec 2008 01:24:37 +0100	[thread overview]
Message-ID: <200812080124.37944.bzolnier@gmail.com> (raw)
In-Reply-To: <493C60E3.7070303@ru.mvista.com>

On Monday 08 December 2008, Sergei Shtylyov wrote:> Hello.> > R. J. Wysocki wrote:> > On Monday, 8 of December 2008, Bartlomiej Zolnierkiewicz wrote:> >   > >> Fixes "Clocksource tsc unstable (delta = -974982308 ns)" problem.> >>     > >> > Where can I find the description of the problem?> >   > >    Kernel.org bug #10216 (it's not about this issue though).
Looking back at bug #10216 the patch is unlikely to help Lars' systemsince it doesn't use nohz and there are also warnings about unsyncedTSCs (I just don't know why not for 2.6.27-rc kernels)... > > Rafael> >> >   > >> [ IDE was unlucky to be initialized at the same time that> >>   clocksource watchdog triggers and was blamed for the issue. ]> >>     > >    I think it might well have been blamed correctly -- the clocksource > watchdog timer gets run every half second.
AFAICS this is a special one for measuring stability of the clocksourceonly -- by comparing the value returned by a given clocksource with thereference clocksource.  Normal drivers have no bussiness there...
Anyway I forgot to add that it fixes the issue for me under QEMU (on mylaptop TSC is unstable due to halts in idle) and it could be as well QEMU'soddity (although it looks like a legit kernel problem).  v2 of the patchbelow (updated patch description).
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>Subject: [PATCH v2] nohz: add missing handling of clocksource watchdog
Fixes "Clocksource tsc unstable (delta = -974982308 ns)" problemunder QEMU.
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>Cc: Lars Winterfeld <lars.winterfeld@tu-ilmenau.de>Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>--- kernel/time/tick-sched.c |    2 ++ 1 file changed, 2 insertions(+)
Index: b/kernel/time/tick-sched.c===================================================================--- a/kernel/time/tick-sched.c+++ b/kernel/time/tick-sched.c@@ -21,6 +21,7 @@ #include <linux/sched.h> #include <linux/tick.h> #include <linux/module.h>+#include <linux/clocksource.h>  #include <asm/irq_regs.h> @@ -153,6 +154,7 @@ void tick_nohz_update_jiffies(void) 	local_irq_restore(flags);  	touch_softlockup_watchdog();+	clocksource_touch_watchdog(); }  static void tick_nohz_stop_idle(int cpu)\0ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

  reply	other threads:[~2008-12-08  0:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-07 23:15 [PATCH] nohz: add missing handling of clocksource watchdog Bartlomiej Zolnierkiewicz
2008-12-07 23:36 ` R. J. Wysocki
2008-12-07 23:48   ` Sergei Shtylyov
2008-12-08  0:24     ` Bartlomiej Zolnierkiewicz [this message]
2008-12-08  2:13       ` Thomas Gleixner
2008-12-13 14:41         ` Bartlomiej Zolnierkiewicz

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=200812080124.37944.bzolnier@gmail.com \
    --to=bzolnier@gmail.com \
    --cc=Rafal.Wysocki@fuw.edu.pl \
    --cc=lars.winterfeld@tu-ilmenau.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sshtylyov@ru.mvista.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