From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: axp-list@redhat.com
Subject: Re: wrong cycle frequency
Date: Tue, 18 May 1999 23:59:57 +0400 [thread overview]
Message-ID: <19990518235957.A936@jurassic.park.msu.ru> (raw)
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
next prev parent reply other threads:[~1999-05-18 21:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-15 18:03 wrong cycle frequency Iso-H
1999-05-15 20:46 ` Konrad Podloucky
1999-05-17 15:59 ` Richard Henderson
1999-05-17 17:29 ` Nikita Schmidt
1999-05-18 15:28 ` Richard Henderson
1999-05-18 19:59 ` Ivan Kokshaysky [this message]
[not found] <B8FAB28E6A3469ABC2256773007DBA36.007B28DEC2256773@ray.fi>
1999-05-17 10:47 ` Iso-H
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox