Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* axp-diff-1.3.70
@ 1996-03-03  5:25 David Mosberger-Tang
  0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger-Tang @ 1996-03-03  5:25 UTC (permalink / raw)


A new kernel patch relative to Linus's 1.3.70 is now available:

 ftp://ftp.azstarnet.com/pub/linux/axp/sys/axp-diff-1.3.70.gz

This patch:

	- fixes arch/alpha/kernel/irq.c so that it actually works
	  on an Alpha (no NULL-pointer dereferences anymore); I also
	  cleaned up the code a little (less duplicate code, use more
	  efficient code on Cabrio etc.)

	- fixes a bug in arch/alpha/math-emu/fp-emul.c; with this fix,
	  you should be able to get through gcc/enquire.c when compiled
	  with -mieee

	- floppy.c fix when compiled as a module

	- adds recvmsg/sendmsg, and nanosleep syscall

Oh, I decided not to upload precompiled kernels anymore.  Should
anybody miss this feature, let me know and I may change things back to
the old behavior (be sure to tell me which drivers you need, if you do
so).

Enjoy,
	--david

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: axp-diff-1.3.70
@ 1996-03-04 21:13 David Mosberger-Tang
  0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger-Tang @ 1996-03-04 21:13 UTC (permalink / raw)


>>>>> On Sun, 3 Mar 1996 20:59:39 +1100 (AES), Matthew Geier <matthew@sleeper.apana.org.au> said:

  Matthew>  Could this be related to my Noname system clock running
  Matthew> slow ?. It would appear the system is missing
  Matthew> interupts. Lots of them.  I sync the clock twice a day with
  Matthew> netdate. Its not uncommon for 3000 second
  Matthew> corrections. Other times its just a few seconds..

OK, I can reproduce this when using an IDE drive.  It looks like the
IDE driver keeps interrupts disabled for long periods of time.  If I
compile a kernel, it looses about 0.06 seconds/second (or about 61
interrupts per second).  If the system is idle (save for occasional
background activity), it looses only about 0.001 seconds/second.

The quick & dirty fix: do

	hdparm -u 1 /dev/hd?

for each of the IDE drives in your system.  This will configure the
IDE driver to reenable interrupts as quickly as possible.  This option
is labeled "dangerous", but I was able to do a kernel compile without
any ill effects and from reading the sources, it looks like it should
be save except for old/broken IDE interfaces (and those probably
became extinct even before the Alpha era...).

The real fix is to either disallow drivers to disable clock interrupts
(a solution Linus doesn't like, AFAIK) or to use the Alpha's cycle
counter to detect lost interrupts.  The important thing in the latter
solution is that it's not OK to use the cycle counter *instead* of the
timer interrupt since the timer interrupt is derived from the
real-time clock, which presumably has much better long-term stability
than the crystal generating the CPU clock.

Feedback welcome.

	--david

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-03-04 21:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-03  5:25 axp-diff-1.3.70 David Mosberger-Tang
  -- strict thread matches above, loose matches on Subject: below --
1996-03-04 21:13 axp-diff-1.3.70 David Mosberger-Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox