Skip to contentSkip to conversation

Current CVS (2.4.19-rc1) broken on DECstations

DISCUSSION Karsten Merker 2 participants 4 messages Jul 17, 2002 – Jul 22, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

Hallo everybody,

it looks like the current oss.sgi.com 2.4 cvs (currently 2.4.19-rc1) is broken on DECstations. The kernel boots on a DS 5000/150, but using the onboard LANCE does not work. Using ifconfig gives a "SIOCSIFLAGS:
Resource temporarily not available and the kernel tells "lance: Can't get DMA IRQ 24".

Besides the LANCE problems, everything else seems to work, although I have not yet done extensive testing (fb, keyboard and harddisk seem to work).

Can anyone confirm this? Any idea what is broken? I am currently rather short on time, so going back in CVS to find the date of breakage might need some time.

Regards,
Karsten

Signature · 4 lines
#include <standard_disclaimer>
Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung
oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder
Meinungsforschung.
#1 lore raw
Quoted 5 lines · Karsten Merker

it looks like the current oss.sgi.com 2.4 cvs (currently 2.4.19-rc1) is broken on DECstations. The kernel boots on a DS 5000/150, but using the onboard LANCE does not work. Using ifconfig gives a "SIOCSIFLAGS:
Resource temporarily not available and the kernel tells "lance: Can't get DMA IRQ 24".

Thanks for the report. It's a stupid bug in the KN02BA IRQ routing
table. I'm committing the following fix to the CVS.

Signature · 17 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +

patch-mips-2.4.19-rc1-20020717-lance-merr-0
diff -up --recursive --new-file linux-mips-2.4.19-rc1-20020717.macro/arch/mips/dec/setup.c linux-mips-2.4.19-rc1-20020717/arch/mips/dec/setup.c
--- linux-mips-2.4.19-rc1-20020717.macro/arch/mips/dec/setup.c	2002-06-27 02:57:18.000000000 +0000
+++ linux-mips-2.4.19-rc1-20020717/arch/mips/dec/setup.c	2002-07-18 09:21:42.000000000 +0000
@@ -426,7 +426,7 @@ static int kn02ba_interrupt[DEC_NR_INTS]
 	[DEC_IRQ_TC2]		= DEC_CPU_IRQ_NR(KN02BA_CPU_INR_TC2),
 	[DEC_IRQ_TIMER]		= -1,
 	[DEC_IRQ_VIDEO]		= -1,
-	[DEC_IRQ_ASC_MERR]	= IO_IRQ_NR(IO_INR_LANCE_MERR),
+	[DEC_IRQ_ASC_MERR]	= IO_IRQ_NR(IO_INR_ASC_MERR),
 	[DEC_IRQ_ASC_ERR]	= IO_IRQ_NR(IO_INR_ASC_ERR),
 	[DEC_IRQ_ASC_DMA]	= IO_IRQ_NR(IO_INR_ASC_DMA),
 	[DEC_IRQ_FLOPPY_ERR]	= -1,
#2 lore raw
Quoted 2 lines · Maciej W. Rozycki

Thanks for the report. It's a stupid bug in the KN02BA IRQ routing
table. I'm committing the following fix to the CVS.

Thanks, the LANCE works again with your patch, but I have discovered another
problem: hwclock does not work (it did wth earlier kernels).

"hwclock --show" results in

hwclock: ioctl() to /dev/rtc to turn on update interrupts failed unexpectedly, errno=25: Inappropriate ioctl for device.

The kernel at least finds the RTC:
"rtc: Digital DECstation epoch (2000) detected".

Regards,
Karsten

Signature · 4 lines
#include <standard_disclaimer>
Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung
oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder
Meinungsforschung.
#3 lore raw
Quoted 7 lines · Karsten Merker

Thanks, the LANCE works again with your patch, but I have discovered another
problem: hwclock does not work (it did wth earlier kernels).

"hwclock --show" results in

hwclock: ioctl() to /dev/rtc to turn on update interrupts failed unexpectedly, errno=25: Inappropriate ioctl for device.

You need updated util-linux. I've sent a fix to Andries and it's already
present in the current release. So please just get util-linux 2.11t from the usual place or grab a patched version of 2.11q from my site (I had no time to build a newer version, yet).

The problem is not specific to the DECstation, though.

Maciej

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +