Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755284AbYLHAZx (ORCPT ); Sun, 7 Dec 2008 19:25:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753287AbYLHAZo (ORCPT ); Sun, 7 Dec 2008 19:25:44 -0500 Received: from fk-out-0910.google.com ([209.85.128.188]:20641 "EHLO fk-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753200AbYLHAZn (ORCPT ); Sun, 7 Dec 2008 19:25:43 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-disposition:message-id:content-type :content-transfer-encoding; b=Gqa6n93JBog3/iJ8J+ACvTjGfQM3wedkgCP9BFQIApULsZ+Pzc+f4z35h9+FYtKqtH W5/p+tNSACeGSOhKSJnWXilRzeJxGDuAGNhQvYv8+QxQi7fxEPl7pUHbLv/LuCaiT9b5 tLBqLkvrDKb704jm3isygNpVEfwXX+eIFOvEk= From: Bartlomiej Zolnierkiewicz To: Sergei Shtylyov Subject: Re: [PATCH] nohz: add missing handling of clocksource watchdog Date: Mon, 8 Dec 2008 01:24:37 +0100 User-Agent: KMail/1.10.3 (Linux/2.6.28-rc6-next-20081128; KDE/4.1.3; i686; ; ) Cc: "R. J. Wysocki" , Thomas Gleixner , Lars Winterfeld , linux-kernel@vger.kernel.org References: <200812080015.22793.bzolnier@gmail.com> <200812080036.59506.Rafal.Wysocki@fuw.edu.pl> <493C60E3.7070303@ru.mvista.com> In-Reply-To: <493C60E3.7070303@ru.mvista.com> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200812080124.37944.bzolnier@gmail.com> Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by alpha id mB80Pwdq005021 Content-Length: 2381 Lines: 8 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 Subject: [PATCH v2] nohz: add missing handling of clocksource watchdog Fixes "Clocksource tsc unstable (delta = -974982308 ns)" problemunder QEMU. Cc: Sergei Shtylyov Cc: Lars Winterfeld Signed-off-by: Bartlomiej Zolnierkiewicz --- 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 #include #include +#include #include @@ -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)????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?