Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 5 Feb 2003 15:30:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 5 Feb 2003 15:30:06 -0500 Received: from gateway-1237.mvista.com ([12.44.186.158]:49140 "EHLO av.mvista.com") by vger.kernel.org with ESMTP id ; Wed, 5 Feb 2003 15:30:03 -0500 Message-ID: <3E417668.7020108@mvista.com> Date: Wed, 05 Feb 2003 12:39:04 -0800 From: george anzinger User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Isabelle, Francois" CC: high-res-timers-discourse@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: High-Res-Timers: Unexpected "lock" during "Calibrating delay loop " References: <5009AD9521A8D41198EE00805F85F18F219C29@sembo111.teknor.com> In-Reply-To: <5009AD9521A8D41198EE00805F85F18F219C29@sembo111.teknor.com> Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3376 Lines: 92 Isabelle, Francois wrote: > Just wanted to add this: this seems to be reproducible on all 486 > I hope to get a chance to look at this today. Thus far, I know that the PIT version does not keep good time in the face of timers of resolution > 1/HZ, i.e. the "_HR" clocks. This has to do with the fact that we have only one interrupt source and must change it to get the sub jiffies interrupts. In the process we loose track of where the jiffies interrupt should be. There is an attempt to use the second PIT timer to cover for this, but assumptions are made here that may not be right. (This timer is used for memory refresh and is set up by the BIOS. We can not change it and we assume that it has a given period. I suppose we could attempt to measure the period, but thus far we have assumed that these sorts of machines would not require high res timers and have not tried to run down these issues. A side issue is that the timers seem to not follow the spec (at least on my test machine) in the regard that a status bit is supposed to indicate when the latch has been loaded after a program has been output. I can easily find cases where a wait for the bit to change is followed by a read of the latch which returns a stale value. I suppose some of this has to do with a large difference between the cpu clock and the timer clock. > >>-----Original Message----- >>From: Isabelle, Francois [mailto:Francois.Isabelle@ca.kontron.com] >>Sent: 4 f?vrier, 2003 09:04 >>To: high-res-timers-discourse@lists.sourceforge.net; >>'george@mvista.com' >>Cc: linux-kernel@vger.kernel.org >>Subject: High-Res-Timers: Unexpected "lock" during "Calibrating delay >>loop " >> >> >>Hi, >> we are having an unexpected problem with the HR patch( >>regardless of >>the patch you sent which compiled just fine ). The board uses >>a 486DX cpu, >>so there is no support for TSC nor ACPI, the only thing we >>have is the PIT. >> >>Without highres, the kernel boots properly, with highres >>enabled, the kernel >>passes "time_init()" put it hangs in "calibrate_loop() , ( I >>though it hung >>for real, but it get passed the loop after a while) " >> >>Seems like the tick is VERY SLOW.. >> >>The PIT has been tested on this board, and without HR, the >>kernel boots fine >>... if you have any hints, they would be welcome. >> >>The keyboard detection routine timeouts so the system is >>quiet unuseable and >>I can't get the calibration results yet. >> >> >>Frank >> >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>to unsubscribe: >>http://lists.sourceforge.net/lists/listinfo/high-res-timers-discourse >>High-res-timers-discourse mailing list >>High-res-timers-discourse@lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/high-res-timers-discourse >> > > > -- George Anzinger george@mvista.com High-res-timers: http://sourceforge.net/projects/high-res-timers/ Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml - 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/