Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964895AbVJ0Ap6 (ORCPT ); Wed, 26 Oct 2005 20:45:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751542AbVJ0Ap5 (ORCPT ); Wed, 26 Oct 2005 20:45:57 -0400 Received: from e32.co.us.ibm.com ([32.97.110.150]:41924 "EHLO e32.co.us.ibm.com") by vger.kernel.org with ESMTP id S1751538AbVJ0Ap5 (ORCPT ); Wed, 26 Oct 2005 20:45:57 -0400 Subject: Re: 2.6.14-rc4-rt7 From: john stultz To: Steven Rostedt Cc: William Weston , Rui Nuno Capela , george@mvista.com, Ingo Molnar , Fernando Lopez-Lezcano , Mark Knecht , david singleton , Thomas Gleixner , linux-kernel@vger.kernel.org, cc@ccrma.Stanford.EDU In-Reply-To: <1130371042.21118.76.camel@localhost.localdomain> References: <1129852531.5227.4.camel@cmn3.stanford.edu> <20051021080504.GA5088@elte.hu> <1129937138.5001.4.camel@cmn3.stanford.edu> <20051022035851.GC12751@elte.hu> <1130182121.4983.7.camel@cmn3.stanford.edu> <1130182717.4637.2.camel@cmn3.stanford.edu> <1130183199.27168.296.camel@cog.beaverton.ibm.com> <20051025154440.GA12149@elte.hu> <1130264218.27168.320.camel@cog.beaverton.ibm.com> <435E91AA.7080900@mvista.com> <20051026082800.GB28660@elte.hu> <435FA8BD.4050105@mvista.com> <435FBA34.5040000@mvista.com> <435FEAE7.8090104@rncbc.org> <1130371042.21118.76.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 26 Oct 2005 17:45:52 -0700 Message-Id: <1130373953.27168.370.camel@cog.beaverton.ibm.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2700 Lines: 64 On Wed, 2005-10-26 at 19:57 -0400, Steven Rostedt wrote: > On Wed, 2005-10-26 at 15:07 -0700, William Weston wrote: > > On Wed, 26 Oct 2005, Rui Nuno Capela wrote: > > > > > Just noticed a couple or more of this on dmesg. Maybe its old news and > > > being discussed already. Otherwise my P4@2.53Ghz/UP laptop boots and > > > runs without hicups on 2.6.14-rc5-rt7 (config.gz attached). > > > > > > ... time warped from 13551912584 to 13551905960. > > > ... system time: 13488892865 .. 13488892865. > > > udevstart/1579[CPU#0]: BUG in get_monotonic_clock_ts at > > > kernel/time/timeofday.c: > > > 262 > > > [] __WARN_ON+0x4f/0x6c (8) > > > [] get_monotonic_clock_ts+0x27a/0x2f0 (40) > > > [] kmem_cache_alloc+0x51/0xac (76) > > > [] copy_process+0x2ff/0xeed (44) > > > [] unlock_page+0x17/0x4a (12) > > > [] do_wp_page+0x245/0x372 (20) > > > [] do_fork+0x69/0x1b5 (56) > > > [] do_page_fault+0x432/0x543 (32) > > > [] sys_clone+0x32/0x36 (72) > > > [] sysenter_past_esp+0x54/0x75 (16) > > > > I'm getting these with two different machines running 2.6.14-rc5-rt7 with > > Steven's ktimer_interrupt() patch from yesterday. Did not see these with > > previous -rt kernels. Shutting down NTP makes no difference. > > Yeah, that ktimer_interrupt patch was for something completely > different. Is this happening on boot up, or is this consistently > happening? > > Also, Rui, do they show up at different times or clustered together? > (William, I see your output is clustered) The reason I asked, is that > the test may produce more than one warning message for the same time > warp. Since the time used to check for the time warp is not updated if > time goes backwards, so if you call the this routine more than once > before the time warp catches back up, it will warn again. Ok, I've reproduced the issue. However, running a clock_gettime(CLOCK_MONOTONIC) inconsistency check results in no failures, but triggers this code in the kernel. Looking at the code, these may be false positives. The bit that is complaining I believe Ingo added to get_monotonic_clock_ts() in kernel/time/timeofday.c. However I don't see any locking that serializes the writes the prev in the same order as the get_monotonic_clock_ts is called. I'm still digging and will send out some mail when I figure out whats wrong. thanks -john - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/