From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 27477 invoked from network); 18 May 1999 21:20:30 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 May 1999 21:20:30 -0000 Received: from jurassic.park.msu.ru (jurassic.park.msu.ru [195.208.223.243]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA20743 for ; Tue, 18 May 1999 16:41:53 -0400 Received: (from ink@localhost) by jurassic.park.msu.ru (8.8.7/8.8.7) id XAA00949 for axp-list@redhat.com; Tue, 18 May 1999 23:59:57 +0400 Date: Tue, 18 May 1999 23:59:57 +0400 From: Ivan Kokshaysky To: axp-list@redhat.com Subject: Re: wrong cycle frequency Message-ID: <19990518235957.A936@jurassic.park.msu.ru> References: <19990517085947.A11691@twiddle.net> <19990517182922.B23869@snowball.ucd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990517182922.B23869@snowball.ucd.ie>; from Nikita Schmidt on Mon, May 17, 1999 at 06:29:22PM +0100 On Mon, May 17, 1999 at 06:29:22PM +0100, Nikita Schmidt wrote: > > The explanation I saw was incorrect cycle frequency in the PALcode > impure area on SX164, where MILO used to take it from. The newest MILOs > from genie.ucd.ie do not trust that value and always count cycles in a one > second interval. > It certainly makes things better, but unfortunately the problem still occurs from time to time :-\ Now I'm pretty sure that it's hardware problem with real-time clock within the Cypress chip - I happened to see CMOS clock in AlphaBIOS setup running at nearly double speed right after the power-up. That's how I see the problem: power-up or reset affects badly the RTC, and it goes crazy; at that time AlphaBIOS (or whatever it is) counts CPU frequency by the same way MILO/kernel does (within 1 second interval, which is actually much shorter due to RTC failure) and stores bogus value into the PALcode impure area. When MILO boots (20-30 seconds after that), chances are good that RTC ran into normal state, and we'll get correct 1 second interval. But sometimes RTC remains in a bad state (running too fast), and we're in trouble. It's possible that earliest revision of Cypress chipset (the one on my board is rev. 0) is buggy. It would be interesting if someone who _never_ experienced this problem with SX164 could confirm that his chipset revision is >0 ("grep Contaq /proc/pci"). It's also possible that 32.768 KHz generator used in some SX164 boards is defective. I hope resetting RTC divider before CPU frequency calculation would help (and I'll try it this week). If not, I'll end up with solderer and oscilloscope... Ivan