* SX/PYXIS timekeeping problem
@ 1998-01-22 0:15 Aleksandr Pilosov
0 siblings, 0 replies; 12+ messages in thread
From: Aleksandr Pilosov @ 1998-01-22 0:15 UTC (permalink / raw)
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...
Thing that looks wierd to me, and may be causing the problem:
grep cycle /proc/cpuinfo
cycle frequency [Hz] : 0
Since bunch of code in arch/alpha/kernel/time.c relies on
hwrpb->cycle_freq, I think this may be causing it...
^ permalink raw reply [flat|nested] 12+ messages in thread
* SX/PYXIS timekeeping problem
@ 1998-01-22 0:15 Aleksandr Pilosov
0 siblings, 0 replies; 12+ messages in thread
From: Aleksandr Pilosov @ 1998-01-22 0:15 UTC (permalink / raw)
--
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: SX/PYXIS timekeeping problem
[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
1 sibling, 0 replies; 12+ messages in thread
From: Richard Henderson @ 1998-01-22 2:24 UTC (permalink / raw)
On Wed, Jan 21, 1998 at 07:15:39PM -0500, Aleksandr Pilosov wrote:
> 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...
This is fixed in 2.1.78 or there abouts. You should be
able to copy arch/alpha/kernel/time.c back to 2.0 without
problem...
r~
--
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: SX/PYXIS timekeeping problem
[not found] <Pine.GSO.3.96.980121212845.7205B-100000@utopia.poly.edu>
@ 1998-01-22 2:30 ` Chris Frost
0 siblings, 0 replies; 12+ messages in thread
From: Chris Frost @ 1998-01-22 2:30 UTC (permalink / raw)
On Wed, 21 Jan 1998, Aleksandr Pilosov wrote:
> I think its because 2.1.* doesn't support 164SX. Any comments? Had anyone
> tried that on SX machine with success?
>
> Any patches to make 2.1.* kernel boot on SX machine?
What is this?? this has to be wrong, isn't it?
-Chris
-- Visit Me At http://fly.hiwaay.net/~jfrost --
--
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: SX/PYXIS timekeeping problem
[not found] <19980121182444.08211@dot.cygnus.com>
@ 1998-01-22 2:32 ` Aleksandr Pilosov
0 siblings, 0 replies; 12+ messages in thread
From: Aleksandr Pilosov @ 1998-01-22 2:32 UTC (permalink / raw)
On Wed, 21 Jan 1998, Richard Henderson wrote:
> On Wed, Jan 21, 1998 at 07:15:39PM -0500, Aleksandr Pilosov wrote:
> > 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...
>
> This is fixed in 2.1.78 or there abouts. You should be
> able to copy arch/alpha/kernel/time.c back to 2.0 without
> problem...
Heheh. I actually tried this trick (with 2.1.79 time.c) before, and it
hung at 'jumping into linux kernel'...
I think its because 2.1.* doesn't support 164SX. Any comments? Had anyone
tried that on SX machine with success?
Any patches to make 2.1.* kernel boot on SX machine?
Thanks to everyone.
--
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: SX/PYXIS timekeeping problem
[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
1 sibling, 0 replies; 12+ messages in thread
From: Jay.Estabrook @ 1998-01-22 2:38 UTC (permalink / raw)
>>> 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?
> 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!
> >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).
Thanks for any help/time you can spend on this.
--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
-------------------------------------------------------------------------------
--
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: SX/PYXIS timekeeping problem
[not found] <199801220238.VAA01871@alpha1.estabrook.org>
@ 1998-01-22 4:57 ` Aleksandr Pilosov
0 siblings, 0 replies; 12+ messages in thread
From: Aleksandr Pilosov @ 1998-01-22 4:57 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: SX/PYXIS timekeeping problem
[not found] <Pine.GSO.3.96.980121231848.23843D-100000@utopia.poly.edu>
@ 1998-01-22 6:08 ` Alan Young
0 siblings, 0 replies; 12+ messages in thread
From: Alan Young @ 1998-01-22 6:08 UTC (permalink / raw)
At 11:57 PM 1/21/1998 -0500, you wrote:
<snip>
>I don't understand what 'rpcc' instruction does, and couldn't find any
>Alpha assembler reference manuals on the net, pointers?
Sure, here ya go:
http://www.partner.digital.com/www-swdev/pages/Home/TECH/documents/Digital_U
NIX/V4.0/AA-PS31D-TET1_html/TOC.html
It's the Digital Unix 4.0 Assembly Language Programmer's Guide. See
section 3.8 Special-Purpose Instructions. Admittedly, it's not too
detailed but it's good for a quick reference.
The Digital Semiconductor Library has the 3rd Edition of the Alpha
Architecture Manual online in PDF and Postscript formats. It's at
http://ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library
.html#alpha.
Good Luck,
Alan
--
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: SX/PYXIS timekeeping problem
1998-01-22 17:14 Przemek Klosowski
@ 1998-01-22 7:53 ` Jay.Estabrook
1998-01-22 18:10 ` Richard Henderson
0 siblings, 1 reply; 12+ messages in thread
From: Jay.Estabrook @ 1998-01-22 7:53 UTC (permalink / raw)
>>> Przemek Klosowski said:
>
> Sorry if this is naive, but doesn't alpha have a cycle counter? On Pentium, I
> have done things like
> cnt=RDMTR();
> sleep(1);
> cnt = RDMTR() - cnt;
> where RDMTR is an assembler inline reading the pentium cycle counter register.
> For a 166 MHz pentium this returns pretty close to 166,000,000.
Ah! Not naive at all, I'd never thought of that. It should work, I think,
though it will take a bit of care (read the RPCC description in the Alpha
AXP Architecture Reference Manual for details).
Someone want to have a go and send me the working code? :-) :-)
--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
-------------------------------------------------------------------------------
--
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: SX/PYXIS timekeeping problem
@ 1998-01-22 17:14 Przemek Klosowski
1998-01-22 7:53 ` Jay.Estabrook
0 siblings, 1 reply; 12+ messages in thread
From: Przemek Klosowski @ 1998-01-22 17:14 UTC (permalink / raw)
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).
Sorry if this is naive, but doesn't alpha have a cycle counter? On Pentium, I
have done things like
cnt=RDMTR();
sleep(1);
cnt = RDMTR() - cnt;
where RDMTR is an assembler inline reading the pentium cycle counter register.
For a 166 MHz pentium this returns pretty close to 166,000,000.
przemek klosowski <przemek@nist.gov> (301) 975-6249
NIST Center for Neutron Research (bldg. 235), E111
National Institute of Standards and Technology
Gaithersburg, MD 20899, USA
.. and for spam extractors, FCC Commisioners' email is:
wkennard@fcc.gov,sness@fcc.gov,pmisener@fcc.gov,mpowell@fcc.gov
--
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: SX/PYXIS timekeeping problem
1998-01-22 7:53 ` Jay.Estabrook
@ 1998-01-22 18:10 ` Richard Henderson
0 siblings, 0 replies; 12+ messages in thread
From: Richard Henderson @ 1998-01-22 18:10 UTC (permalink / raw)
On Thu, Jan 22, 1998 at 12:53:52PM +0500, Jay.Estabrook@digital.com wrote:
> Ah! Not naive at all, I'd never thought of that. It should work, I think,
> though it will take a bit of care (read the RPCC description in the Alpha
> AXP Architecture Reference Manual for details).
>
> Someone want to have a go and send me the working code? :-) :-)
Look at 2.1.7x -- that's what's in there.
r~
--
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: SX/PYXIS timekeeping problem
[not found] <Pine.GSO.3.96.980122150229.14430A-100000@utopia.poly.edu>
@ 1998-01-23 0:07 ` Ladislav Zejda
0 siblings, 0 replies; 12+ messages in thread
From: Ladislav Zejda @ 1998-01-23 0:07 UTC (permalink / raw)
>
> I downgraded to 2.0.32, and it does not have this problem.
>
> I've poured over patch-2.0.33, and there doesn't seem to be any relevant
> changes, the only thing that MAY be relevant is aic7xxx_timer() routine,
> but I'm not really sure what there causes problem...
>
Interesting, that means the problem must be in the patch-2.0.33. But
I don't think it's aic7xxx_timer() routine, since I don't have SCSI
compiled at all (unless something else is using it) and still have
the problem. So, anybody have an idea?
Cheers,
Ladislav Zejda
lada@fock.usc.edu
--
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
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~1998-01-23 0:07 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.GSO.3.96.980121231848.23843D-100000@utopia.poly.edu>
1998-01-22 6:08 ` SX/PYXIS timekeeping problem Alan Young
[not found] <Pine.GSO.3.96.980122150229.14430A-100000@utopia.poly.edu>
1998-01-23 0:07 ` 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] <199801220238.VAA01871@alpha1.estabrook.org>
1998-01-22 4:57 ` Aleksandr Pilosov
[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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox