Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Aleksandr Pilosov <apilos01@utopia.poly.edu>
Subject: Re: SX/PYXIS timekeeping problem
Date: Wed, 21 Jan 1998 23:57:16 -0500 (EST)	[thread overview]
Message-ID: <c487e0cda32fb1c399d21c2c3a828936.axp-list@archive.invalid> (raw)
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

       reply	other threads:[~1998-01-22  4:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199801220238.VAA01871@alpha1.estabrook.org>
1998-01-22  4:57 ` Aleksandr Pilosov [this message]
     [not found] <Pine.GSO.3.96.980122150229.14430A-100000@utopia.poly.edu>
1998-01-23  0:07 ` SX/PYXIS timekeeping problem Ladislav Zejda
1998-01-22 17:14 Przemek Klosowski
1998-01-22  7:53 ` Jay.Estabrook
1998-01-22 18:10   ` Richard Henderson
     [not found] <Pine.GSO.3.96.980121231848.23843D-100000@utopia.poly.edu>
1998-01-22  6:08 ` Alan Young
     [not found] <19980121182444.08211@dot.cygnus.com>
1998-01-22  2:32 ` Aleksandr Pilosov
     [not found] <Pine.GSO.3.96.980121212845.7205B-100000@utopia.poly.edu>
1998-01-22  2:30 ` Chris Frost
     [not found] <Pine.GSO.3.96.980121190111.22441H-100000@utopia.poly.edu>
1998-01-22  2:24 ` Richard Henderson
1998-01-22  2:38 ` Jay.Estabrook
  -- strict thread matches above, loose matches on Subject: below --
1998-01-22  0:15 Aleksandr Pilosov
1998-01-22  0:15 Aleksandr Pilosov
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