* Re: Problems with the time
[not found] <"PaQJI.0.tu7.TfgBr"@mail2.redhat.com>
@ 1998-04-10 23:35 ` Pablo A. Godel
1998-04-10 23:46 ` Brian Wood
0 siblings, 1 reply; 5+ messages in thread
From: Pablo A. Godel @ 1998-04-10 23:35 UTC (permalink / raw)
To: axp-list
> We've had a problem with a couple of 164SX systems and replacing the
> motherboard has resolved the problems every time. I have escalated the
> issue with some engineering people and will be sending them a bad
> motherboard shortly for evaluation to see if there is a manufacturing
> defect. I suspect that there is something broken on some of the 164SX
> Motherboard clocks. This particular motherboard I'm sending (am waiting for
> the client to return it) runs approx 2x fast in both Linux & NT. :(
Mmmmm, I think that this is the case. I booted Linux 14:24 , now 19:30 is
telling me that is up for 9 hours.
But how do you explain that when I reboot the system Linux take the original
time. i.e. Now I booted and Linux was saying that were 10:58pm, and when the
server booted take a time a lot earlier.
Thanks for your advice.
Pablo Godel
--
-----------------------------------------------
The Internation Website Construction Co. (IWCC)
http://www.iwcc.com.ar
Miami - Sao Paulo - Buenos Aires - Lima
-----------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems with the time
1998-04-10 23:35 ` Problems with the time Pablo A. Godel
@ 1998-04-10 23:46 ` Brian Wood
1998-04-11 0:05 ` Pablo A. Godel
0 siblings, 1 reply; 5+ messages in thread
From: Brian Wood @ 1998-04-10 23:46 UTC (permalink / raw)
To: axp-list
Pablo A. Godel wrote:
> Mmmmm, I think that this is the case. I booted Linux 14:24 , now 19:30 is
> telling me that is up for 9 hours.
> But how do you explain that when I reboot the system Linux take the original
> time. i.e. Now I booted and Linux was saying that were 10:58pm, and when the
> server booted take a time a lot earlier.
Probably the difference between the CMOS real-time-clock and the Linux
internal clock. Linux only checks the RTC on boot up and then keeps its
own time from there?
Just guessing :-)
--
Brian E.W. Wood - beww@intac.com
"Very Funny Scotty, Now BEAM DOWN MY CLOTHES"
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems with the time
1998-04-10 23:46 ` Brian Wood
@ 1998-04-11 0:05 ` Pablo A. Godel
1998-04-11 1:10 ` Christian Worley
0 siblings, 1 reply; 5+ messages in thread
From: Pablo A. Godel @ 1998-04-11 0:05 UTC (permalink / raw)
To: axp-list
Brian Wood wrote:
> Pablo A. Godel wrote:
>
> > Mmmmm, I think that this is the case. I booted Linux 14:24 , now 19:30 is
> > telling me that is up for 9 hours.
> > But how do you explain that when I reboot the system Linux take the original
> > time. i.e. Now I booted and Linux was saying that were 10:58pm, and when the
> > server booted take a time a lot earlier.
>
> Probably the difference between the CMOS real-time-clock and the Linux
> internal clock. Linux only checks the RTC on boot up and then keeps its
> own time from there?
That's what I think, and why I supose that it's a software problem, but I'm not
sure.
Regards,
Pablo Godel
--
-----------------------------------------------
The Internation Website Construction Co. (IWCC)
http://www.iwcc.com.ar
Miami - Sao Paulo - Buenos Aires - Lima
-----------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems with the time
1998-04-11 0:05 ` Pablo A. Godel
@ 1998-04-11 1:10 ` Christian Worley
1998-04-11 2:07 ` SX164 Clock Problem (was: Problems with the time) Jay.Estabrook
0 siblings, 1 reply; 5+ messages in thread
From: Christian Worley @ 1998-04-11 1:10 UTC (permalink / raw)
To: axp-list, Pablo A. Godel, Brian Wood, Jon E. Mitchiner
>runs approx 2x fast in both Linux & NT. :(
I had an approx. 2x speedup problem (in fact, I've had it more than
once!). they were always due to bad milo compiles. It's burned me so
many times that I always check the clock before doing any benchmarks.
As I recall, on RH4.2, don't recompile the PALCODE (use what's in the
distribution), and on RH5.0 DO recompile the PALCODE when rebuilding
milo.
Also, run "timeconfig" and make sure the "using ARC console" is set
appropriately... that will cause (other time) problems too.
I still see clocks that gain or loose 10 seconds an hour, with the
above fixes, that I cannot explain.
Chris
--
When I die, please cast my ashes upon Bill Gates
--for once, let him clean up after me!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SX164 Clock Problem (was: Problems with the time)
1998-04-11 1:10 ` Christian Worley
@ 1998-04-11 2:07 ` Jay.Estabrook
0 siblings, 0 replies; 5+ messages in thread
From: Jay.Estabrook @ 1998-04-11 2:07 UTC (permalink / raw)
To: axp-list
Uh, where were you guys when I posted the attached (at the very end) nearly
a month ago?
I had a grand total of 3 people respond, 2 with SX's that my suggestions
worked for, and one with a MIATA (which also was fixed :-).
I assumed, from that response, that either no others were having problems,
or that their problems had been fixed, so I didn't follow up any further.
Anyway, let's go on...
>>> Christian Worley said:
> >runs approx 2x fast in both Linux & NT. :(
>
> I had an approx. 2x speedup problem (in fact, I've had it more than
> once!). they were always due to bad milo compiles. It's burned me so
> many times that I always check the clock before doing any benchmarks.
Well, the 2x under NT certainly isn't because of a bad MILO... ;-}
The double- or half-speed clock problems first came to my notice (and to
axp-list's) with the LX164; seems that the AlphaBIOS coders had written the
early releases (at least) with a clock tick of 512/sec, contrary to the
1024/sec that all our previous boxes had provided. Thus you'd see twice the
expected BogoMIPs and the clock would appear to be running at half speed,
mainly because it *was*; MILO didn't muck about with RTC settings, then.
Early on, I modified older PALcode for the LX164 to do correct initialization
of the RTC, and this fixed that problem for that platform.
Later, in preparing the MILOs I built for inclusion in RH 5.0, I built LX
and SX versions from all new PALcode sources which, for whatever reason, had
had the expected RTC initialization code removed, from their PALcode. Early
releases of those MILOs, and I think SX164 was one of them, actually were
made available without the clock init code. However, this oversight was
rectified, I believe, in all the MILOs that were included in RH 5.0. Hence
my posting's initial statement of the things to try to determine if it was
indeed a bad MILO that was the cause.
That's not to say that all the problems you've been describing can be
explained by a bad MILO. Certainly, if something really was fixed by a new
motherboard with all the others things staying the same, I'd be hard pressed
to offer a sane explanation... ;-}
Bottom line: chances are good if you see a BogoMIPS of approximately twice
the MHz of the processor, you're seeing the half-speed problem that my fixes
may help.
BogoMIPS of half the MHZ would indeed mean a double-speed clock, which is
quite possibly a symptom of a completely different problem, epecially if
still seen using those fixed components mentioned below. Please, contact me
directly if you see this happening: <Jay.Estabrook@digital.com>.
> As I recall, on RH4.2, don't recompile the PALCODE (use what's in the
> distribution), and on RH5.0 DO recompile the PALCODE when rebuilding
> milo.
Actually, it's the DEC BIOS emulator that you use in 4.2 and not in 5.0.
And you SHOULD REOMPILE the SX and LX PALcode IN EITHER CASE (4.2 or 5.0) as
the "canned" versions are stale and/or do not contain the clock init code
described above.
> I still see clocks that gain or loose 10 seconds an hour, with the
> above fixes, that I cannot explain.
I think I can; I call this the "drift" problem, to differentiate it from the
"half-speed" problem we've been talking about. It affects LX, SX, and MIATA,
and fixing it involves using updated PALcode. Suffice it to say that the
PYXIS core logic on those motherboards has some signal propagation delays
that sometimes result in the clock interrupt being taken twice, because the
clearing signal hadn't reset the state before the interrupt code returned to
lower or zero IPL.
I'm unsure as to which of the MILOs I built for RH 5.0 actually had the
"drift correction" code active. I believe that the latest MILOs in the
/pub/DEC/Linux-Alpha/Kernels/ directory on gatekeeper.dec.com, ie those
that have appeared recently or since the November release, should have that
code present and active. However, if you'd like to build it for yourselves,
the following code ought to appear in the Real Time Clock interrupt handler,
usually labelled Int22Handler in the palcode/*/platform.S file in the MILO
sources. The "drift" fix looks like (only the code inside the #if 1 block):
OutPortByte(RTCADD,0x0C,p6,p7) // Set up RTCADD to index register C.
InPortByte(RTCDAT,p6,p7) // Read to clear interrupt.
#if 1
// this shouldn't hurt anything, but... :-\
srl p6, 6, p6 // Check for real interrupt.
blbc p6, DismissInterrupt // Nope, just exit.
#endif
mtpr p4, excAddr // Load kernel entry address.
bis zero, INT_K_CLK, a0 // Signal Real Time Clock interrupt.
PLEASE, this is only applicable to LX164, SX164, and MIATA.
Good luck, and please let me know what you find out.
--Jay++
PS: Chris Worley, has my mail re: VGA behind bridge gotten lost?
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
X-Mailer: exmh version 1.6.9 05/05/96
To: axp-list@redhat.com
From: Jay.Estabrook@digital.com
Subject: SX164 Clock Problem
Mime-Version: 1.0
Content-Type: text/plain
Date: Sun, 15 Mar 1998 17:35:14 +0500
Sender: jestabro@linux03
RE: Problem with AlphaPC164-SX (aka SX164 or SX) clock running 2X or 1/2X
I'm trying to get to the bottom of this problem, but having trouble
duplicating the symptoms others have seen.
My configuration, which shows no problem, is:
kernel: sx164.gz as found on RH 5.0 CD
MILO: sx164 as found on RH 5.0 CD
AlphaBIOS: 5.62-1 (Sep 26 1997, 11:41:34)
The above AlphaBIOS is available at:
ftp://ftp.digital.com/pub/Digital/info/semiconductor/alpha/AB5621-F.zip
You can check the exact revision your machine has installed by:
1. use F2 to enter "Setup" when the console is booting
2. select the "About AlphaBIOS..." menu item
3. the top line should indicate version and build date, as above.
Please, could the people that have seen the problem, whether they've found a
workaround or not, upgrade their AlphaBIOS if necessary, and run the above
MILO and kernel, and report to me whether they still see the problem with
all those things in place?
PLEASE! Report to me (Jay.Estabrook@digital.com) and *NOT* to axp-list!!!!!
Thanks; I'll also inquire whether this has been a problem reported to our
field service...
--Jay++
-------------------------------------------------------------------------------
American Non Sequitur Society: we don't make sense, but we do like pizza...
Jay A Estabrook Alpha Migration Tools - LINUX Project
Digital Equipment Corp. (978) 506-4202 or (DTN) 226-4202
151 Taylor Street - TAY1-2 enet: Jay.Estabrook@digital.com
Littleton, MA 01460-1407
-------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-04-11 3:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <"PaQJI.0.tu7.TfgBr"@mail2.redhat.com>
1998-04-10 23:35 ` Problems with the time Pablo A. Godel
1998-04-10 23:46 ` Brian Wood
1998-04-11 0:05 ` Pablo A. Godel
1998-04-11 1:10 ` Christian Worley
1998-04-11 2:07 ` SX164 Clock Problem (was: Problems with the time) Jay.Estabrook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox