* Self-build PC164SX-kernel: clock twice too fase
@ 1998-02-23 21:26 Wim van Dorst
0 siblings, 0 replies; 3+ messages in thread
From: Wim van Dorst @ 1998-02-23 21:26 UTC (permalink / raw)
Hello *,
The kernel at gatekeeper sx164-31oct-2030+.gz works fine for
my Alpha PC164SX, but now I want to compile such a kernel my self
(I need an ethernet driver, apparently not compiled in).
The kernel seems to compile cleanly, using RH4.2 with GCC 2.7.2.1.
on a 2.0.30 kernel plus alpha-patches-2.0.30-0.4.gz and similarly
on a 2.0.33 kernel with alpha-patches-2.0.32.??.gz. No errors or
useful warnings. The resulting kernel boots fine, apparently, but
the clock runs twice fast: it thinks 10 seconds have passed when only
five actually have passed.
Does this ring a bell? What is wrong? Anybody around who knows the
proper patches to generate the abovementioned kernel (if they are not
the above mentioned patches)? Is there another problem, that I have
not seen yet? Perhaps libraries?
Please, anybody?
Met vriendelijke groeten, Wim van Dorst
--
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] 3+ messages in thread
* Re: Self-build PC164SX-kernel: clock twice too fase
@ 1998-02-24 10:42 Stefan Traby
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Traby @ 1998-02-24 10:42 UTC (permalink / raw)
Hi Wim !
> The kernel seems to compile cleanly, using RH4.2 with GCC 2.7.2.1.
> on a 2.0.30 kernel plus alpha-patches-2.0.30-0.4.gz and similarly
> on a 2.0.33 kernel with alpha-patches-2.0.32.??.gz. No errors or
> useful warnings. The resulting kernel boots fine, apparently, but
> the clock runs twice fast: it thinks 10 seconds have passed when only
> five actually have passed.
>
> Does this ring a bell? What is wrong? Anybody around who knows the
No, to ring a bell try 'echo -e "\007"'. ;-}
This is a known and IMHO unsolved problem.
For systems without Adaptec there is no real
need for 2.0.33. So simply switch back to 2.0.32; maybe no difference
for you.
But it's now possible to run 2.1.88 on SX, because David Woodhouse made
a great job; and also Richard Henderson; there is maybe no need for a
patch in the future for SX.
--
ciao -
Stefan
Stefan Traby phone: +43-3133-6107-2
Mitterlasznitzstr. 13 fax: +43-3133-6107-9
8302 Nestelbach mailto://stefan@sime.com
Austria
--
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] 3+ messages in thread
* Re: Self-build PC164SX-kernel: clock twice too fase
[not found] <199802241042.LAA02008@stefan.sime.com>
@ 1998-02-25 18:44 ` Loic Prylli
0 siblings, 0 replies; 3+ messages in thread
From: Loic Prylli @ 1998-02-25 18:44 UTC (permalink / raw)
Hello,
I may have solve the problem of clock running twice too fast:
The time reported by our PWS500a (aka MIATA) was also running much too
fast (more than two hours per day). It seems that the interrupt
handler is called at least twice for some ticks (the hardware
interrupt state has probably not been reset properly after the first
interrupt).
Here is the experiment I have done to understand the problem:
At first I just try to adjust the microsecond per tick variable (with
tickadj from xntp package). I needed a microseond per tick value of
~835 instead of 977 as would imply (HZ= 1024).
Suprisingly, under high HD activity the clock was accelerating by
more than 10% (enough to prevent any possible synchronisationby
NTP). Ethernet activity would make it go slower by about 10% also.
I insert some code to measure the interval in processor cycles between
two calls to the timer_interrupt routine. An histogram told that about
one time out of six, the interval between calls to the timer_interrupt
routine was of the order of one microsecond, the rest of the time is
was a normal interval of about 1ms.
So I just inserted a test at the beginning of the timer_interrupt, if
there has not been a significant number of clock cycles since last
call, the routine returns immediatly. Here an extract of the patch:
--- linux/arch/alpha/kernel/time.c~ Wed Feb 18 11:50:56 1998
+++ linux/arch/alpha/kernel/time.c Wed Feb 18 11:53:05 1998
@@ -68,6 +68,8 @@
now = rpcc();
delta = now - state.last_time;
state.last_time = now;
+ if (delta < state.cycles_per_tick / 16)
+ return;
if (delta > state.max_cycles_per_tick) {
int i, missed_ticks;
Also on our PWS hwrpb->cycle_freq is set to 0 (this can be seen in
/proc/cpuinfo) , I wonder if the line below in time_init() instruction
dangerous? (well is seems to work as is x/0 = 0 until now)? Does
anybody now how to obtain the cycle_freq on this architecture?
state.scaled_ticks_per_cycle = ((unsigned long) HZ << FIX_SHIFT) / hwrpb->cycle_freq;
Lastly, I have made a patch to give gettimeofday microsecond
resolution, if anybody is interested to test it, I will send it.
Regards,
Loic
PS: this the third time since a week I try to send this message, maybe
messages originating from an e-mail adress not subscribed to the list
are silently dropped? Hope this time you will get it.
--
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] 3+ messages in thread
end of thread, other threads:[~1998-02-25 18:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <199802241042.LAA02008@stefan.sime.com>
1998-02-25 18:44 ` Self-build PC164SX-kernel: clock twice too fase Loic Prylli
1998-02-24 10:42 Stefan Traby
-- strict thread matches above, loose matches on Subject: below --
1998-02-23 21:26 Wim van Dorst
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox