From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5064 invoked from network); 11 Apr 1998 03:08:19 -0000 Received: from mail11.digital.com (192.208.46.10) by mail2.redhat.com with SMTP; 11 Apr 1998 03:08:19 -0000 Received: from tparch.tay1.dec.com (tparch.tay1.dec.com [16.119.0.10]) by mail11.digital.com (8.8.8/8.8.8/WV1.0d) with SMTP id XAA19007 for ; Fri, 10 Apr 1998 23:08:18 -0400 (EDT) Received: from ives.amt.tay1.dec.com by tparch.tay1.dec.com (5.65/MS-010395) id AA19514; Fri, 10 Apr 1998 23:22:02 -0400 Received: from jae.amt.tay1.dec.com by ives.amt.tay1.dec.com; (5.65v3.2/1.1.7.2/05Oct95-1258PM) id AA24918; Fri, 10 Apr 1998 23:08:13 -0400 Received: from alpha1 (jestabro@localhost [127.0.0.1]) by alpha1.estabrook.org (8.8.7/8.8.7) with ESMTP id XAA06422 for ; Fri, 10 Apr 1998 23:07:41 -0400 Message-Id: <199804110307.XAA06422@alpha1.estabrook.org> X-Mailer: exmh version 2.0zeta 7/24/97 X-Exmh-Isig-Comptype: repl X-Exmh-Isig-Folder: axp-list To: axp-list@redhat.com From: Jay.Estabrook@digital.com Subject: Re: SX164 Clock Problem (was: Problems with the time) In-Reply-To: Your message of Fri, 10 Apr 1998 19:10:10 -0600. <352EC2F2.DEC1586F@altatech.com> Mime-Version: 1.0 Content-Type: text/plain Date: Fri, 10 Apr 1998 23:07:41 -0300 Sender: jestabro@jae.amt.tay1.dec.com 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: . > 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 -------------------------------------------------------------------------------