* wrong cycle frequency
@ 1999-05-15 18:03 Iso-H
1999-05-15 20:46 ` Konrad Podloucky
1999-05-17 15:59 ` Richard Henderson
0 siblings, 2 replies; 7+ messages in thread
From: Iso-H @ 1999-05-15 18:03 UTC (permalink / raw)
To: axp-list
I have to reboot my SX164 several times before I get
right cycle frequency; usually frequency is something
between 350000000...533155104.
I think the system time is generated based on this value, isn't it?
"Visible" consequence about wrong value is that the system time runs
too fast; one minute is about 45 seconds "long".
This behaviour didn't occure until I upgraded to RHL-5.2 and
kernel 2.2.x; I am using 2.2.8 now.
Could anybody suggest me how to fix this problem?
Iso-H
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: wrong cycle frequency
1999-05-15 18:03 wrong cycle frequency Iso-H
@ 1999-05-15 20:46 ` Konrad Podloucky
1999-05-17 15:59 ` Richard Henderson
1 sibling, 0 replies; 7+ messages in thread
From: Konrad Podloucky @ 1999-05-15 20:46 UTC (permalink / raw)
To: Iso-H; +Cc: axp-list
On 15-May-99 Iso-H wrote:
>
> I have to reboot my SX164 several times before I get
> right cycle frequency; usually frequency is something
> between 350000000...533155104.
> I think the system time is generated based on this value, isn't it?
> "Visible" consequence about wrong value is that the system time runs
> too fast; one minute is about 45 seconds "long".
>
Had (and sometimes still have) exactly the same problem with my SX.
One of the more annoying consequences was that I had to click like hell to make
a double-click!
> This behaviour didn't occure until I upgraded to RHL-5.2 and
> kernel 2.2.x; I am using 2.2.8 now.
> Could anybody suggest me how to fix this problem?
>
I upgraded my milo to the 2.0.35 version and now this behaviour almost never
showed up again.
Konrad
______________________________________________________________________
Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
Vienna, Austria PGP-key available by request
Running LINUX 2.2.7 on an Alpha
"Windows 9x: n. 32 bit extensions and a graphical shell for a 16 bit
patch to an 8 bit operating system originally coded for a 4 bit
microprocessor, written by a 2 bit company that can't stand 1 bit
of competition."
--Cygnus CygWin (aka GNU/Win32) FAQ
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: wrong cycle frequency
[not found] <B8FAB28E6A3469ABC2256773007DBA36.007B28DEC2256773@ray.fi>
@ 1999-05-17 10:47 ` Iso-H
0 siblings, 0 replies; 7+ messages in thread
From: Iso-H @ 1999-05-17 10:47 UTC (permalink / raw)
To: axp-list
On Mon, 17 May 1999, Konrad Podloucky wrote:
>
>
> On 15-May-99 Iso-H wrote:
> >
> > I have to reboot my SX164 several times before I get
> > right cycle frequency; usually frequency is something
> > between 350000000...533155104.
> > I think the system time is generated based on this value, isn't it?
> > "Visible" consequence about wrong value is that the system time runs
> > too fast; one minute is about 45 seconds "long".
> >
> Had (and sometimes still have) exactly the same problem with my SX.
> One of the more annoying consequences was that I had to click like hell to
> make
> a double-click!
>
I desided to use fixed value for "est_cycle_freq" in function
"time_init" to make sure "right" value. I just hope it won't
mess anything else.
btw. I think that this code won't work as it is meant to be
if unsigned long variables are used!?
unsigned long cycle_freq, diff, one_percent;
cycle_freq = hwrpb->cycle_freq;
one_percent = cycle_freq / 100;
diff = cycle_freq - est_cycle_freq;
if (diff < 0)
diff = -diff;
if (diff > one_percent) {
cycle_freq = est_cycle_freq;
printk("HWRPB cycle frequency bogus. Estimated %lu Hz\n",
cycle_freq);
}
else {
est_cycle_freq = 0;
}
> > This behaviour didn't occure until I upgraded to RHL-5.2 and
> > kernel 2.2.x; I am using 2.2.8 now.
> > Could anybody suggest me how to fix this problem?
> >
> I upgraded my milo to the 2.0.35 version and now this behaviour almost
> never
> showed up again.
>
> Konrad
>
>
Iso-H
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: wrong cycle frequency
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
1 sibling, 1 reply; 7+ messages in thread
From: Richard Henderson @ 1999-05-17 15:59 UTC (permalink / raw)
To: axp-list
On Sat, May 15, 1999 at 09:03:27PM +0300, Iso-H wrote:
> I have to reboot my SX164 several times before I get
> right cycle frequency; usually frequency is something
> between 350000000...533155104.
I've heard various claims about milo versions affecting this.
I don't know what the real problem is; it comes and goes.
However, as of 2.2.7 or so, the kernel accepts a "cycles=500000000"
option that lets you override detection. This seems to work ok.
*shrug*
r~
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: wrong cycle frequency
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
0 siblings, 2 replies; 7+ messages in thread
From: Nikita Schmidt @ 1999-05-17 17:29 UTC (permalink / raw)
To: axp-list
On Monday, 17 May, Richard Henderson wrote:
>
> I've heard various claims about milo versions affecting this.
> I don't know what the real problem is; it comes and goes.
>
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.
Nikita
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: wrong cycle frequency
1999-05-17 17:29 ` Nikita Schmidt
@ 1999-05-18 15:28 ` Richard Henderson
1999-05-18 19:59 ` Ivan Kokshaysky
1 sibling, 0 replies; 7+ messages in thread
From: Richard Henderson @ 1999-05-18 15:28 UTC (permalink / raw)
To: axp-list
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.
The kernel doesn't trust the value either. The weird part is where
sometimes on some systems the kernel calculates something 40% low.
r~
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: wrong cycle frequency
1999-05-17 17:29 ` Nikita Schmidt
1999-05-18 15:28 ` Richard Henderson
@ 1999-05-18 19:59 ` Ivan Kokshaysky
1 sibling, 0 replies; 7+ messages in thread
From: Ivan Kokshaysky @ 1999-05-18 19:59 UTC (permalink / raw)
To: axp-list
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1999-05-18 21:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
[not found] <B8FAB28E6A3469ABC2256773007DBA36.007B28DEC2256773@ray.fi>
1999-05-17 10:47 ` Iso-H
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox