From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <1.5.4.32.19980122073254.0090b9bc@mailgate.telecom.ptt.nl> Date: Wed, 21 Jan 1998 23:57:16 -0500 (EST) From: Aleksandr Pilosov Subject: Re: SX/PYXIS timekeeping problem In-Reply-To: <199801220238.VAA01871@alpha1.estabrook.org> On Wed, 21 Jan 1998 Jay.Estabrook@digital.com wrote: > > >>> Aleksandr Pilosov said: > > > > I have a big problem with Alpha SX machine. > > After upgrading to 2.0.33 kernel (by applying axp-patch.2.0.32 against > > 2.0.33 vanilla kernel), time seemed to speed up 2x...I did a hack on > > kernel, skipping every second timer interrupt, it booted up with correct > > speed, but is now slowing down, time running 20% slower than should be > > normally... > > Interesting; I've had no problems AFAIK with those patches on top of 2.0.32, > but I've not run them on top of 2.0.33 for any period of time. Perhaps there > were some changes in that area that the patches don't know about, in 2.0.33? time.c is identical in 2.0.32 and 2.0.33, and alpha-patches-2.0.32-0.1 doesn't have any patches for that file. > > > Thing that looks wierd to me, and may be causing the problem: > > grep cycle /proc/cpuinfo > > cycle frequency [Hz] : 0 > > No, that's normal for MILO-booted kernels; MILO makes up some of the info > that is recorded there, but doesn't really know what frequency to put for > how fast the CPU is being clocked. And it doesn't matter, BogoMIPS is > calculated "manually", its only assumption being how many ticks/sec the RTC > is doing. > > > Since bunch of code in arch/alpha/kernel/time.c relies on > > hwrpb->cycle_freq, I think this may be causing it... > > Ah! I wonder if that's new code in 2.0.33, that is not working correctly > with the 2.0.32 patches? Would you be willing to take a closer look at what > might be going on? I'm kinda of short on time to spend on this problem, but > if you could take a first look and report back, it would help greatly! Unfortunately, I put the machine in production already, even with this problem, so can't toy with kernel anymore :) I am not sure if cycle_freq is root cause of the problem, because I commented out lines 75-82 in 2.0.33 (which are only lines using the cycle-freq determined variables, state.max_cycles_per_tick and state.scaled_ticks_per_cycle), but it didn't fix the problem... I don't understand what 'rpcc' instruction does, and couldn't find any Alpha assembler reference manuals on the net, pointers? > > >From what I understand, hwprb structure is set by MILO...So, probably > > problem is in MILO...ANy advice? > > I'm afraid MILO is going to have a hard time figuring out what the cycle freq > needs to be set to. AlphaBIOS probably knows but I don't know how MILO could > get that info from it, and SRM usually sets the field accurately (and no MILO > is needed using SRM console). If "cycle frequency" is speed of processor, can we always assume that SX164 board is running at 533Mhz? Or is SX board available at lower frequencies? About using 2.1.79 time.c code in 2.0.x kernels: I _think_ I'd need some initialization code from 2.1.x setup.c as well, and that's why it doesn't boot... Does anyone else running 2.0.3x (x>=2) on 164SX machine experiences same problem, or maybe its some stupidity of my own? -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com