linux-mips-fnet
[Top] [All Lists]

Re: zs driver problems ...

To: Harald Koerfgen <Harald.Koerfgen@home.ivm.de>
Subject: Re: zs driver problems ...
From: "Houten K.H.C. van (Karel)" <K.H.C.vanHouten@research.kpn.com>
Date: Mon, 14 Jun 1999 19:01:34 +0200
Cc: linux-mips@fnet.fr, K.H.C.vanHouten@research.kpn.com
In-reply-to: "Your message of Sun, 13 Jun 1999 19:43:00 +0200." <XFMail.990613194300.Harald.Koerfgen@home.ivm.de>
Reply-to: K.H.C.vanHouten@research.kpn.com
Harald Koerfgen writes:
>
>Good spotted! I just tried if your hack does any harm on the DECstations,
>and guess what, it does not only work, but switching runlevels doesn't
>take unnaturally long any more! It looks like the init problems on the
>DECstations are related to this.
>
>I've done some research and found that neither drivers/sbus/char/zs.c nor
>drivers/sgi/char/sgiserial.c are having rs_wait_until_sent().
>
>After removing that from drivers/tc/zs.c everything seems to work well.
>
>Fellow DECstation hackers, could you please check wether the attached
>patch does any harm anywhere?

Well, I've just tried the folowing:
Using a new kernel (fresh compile, CVS sources, r23k-patch, hz_patch,
zs-patch), I used Richards script (sequential kernel compiles, 10 jobs
parrallel), to get the system loaded from a telnet login, and then I
logged in at the console (serial), and did ls -lsR / (to give the serial
IO something to do). After a while, the system paniced.

Tomorrow I'll try to do the same test with an older kernel, but this
is a bug, maybe in the zs-patch, or in the previous kernel.

Here my listing.... (Harald, this system is named after you :-)

This DECstation is a DS5000/1xx
Loading R4000 MMU routines.
CPU revision is: 00000430
Primary instruction cache 8kb, linesize 16 bytes)
Primary data cache 8kb, linesize 16 bytes)
Secondary cache sized at 1024K linesize 32
Linux version 2.2.1 (root@harald.research.kpn.com) (gcc version egcs-2.90.27 
980315 (egcs-1.0.2 release)) #12 Mon Jun 14 09:05:42 MEST 1999
Calibrating delay loop... 49.81 BogoMIPS
Memory: 30788k/32764k available (1112k kernel code, 576k data)
VFS: Diskquotas version dquot_6.4.0 initialized
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
TURBOchannel rev. 1 at 12.5 MHz (no parity)
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
Starting kswapd v 1.5
DECstation Z8530 serial driver version 0.03
tty00 at 0xbc100001 (irq = 4) is a Z85C30 SCC
tty01 at 0xbc100009 (irq = 4) is a Z85C30 SCC
tty02 at 0xbc180001 (irq = 4) is a Z85C30 SCC
tty03 at 0xbc180009 (irq = 4) is a Z85C30 SCC
loop: registered device at major 7
SCSI ID 7  Clock 25 MHz CCF=0 Time-Out 167 NCR53C9x(esp236) detected
ESP: Total of 1 ESP hosts found, 1 actually in use.
... <rest of boot deleted> ...

Red Hat Linux release 5.1 (Manhattan)
Kernel 2.2.1 on a mips

login: root
Password:
Last login: Mon Jun 14 09:55:55 on console
[root@harald /root]# cd /
[root@harald /]# ls -lsR /
total 50
   1 -rw-r--r--   1 root     root          901 Jun  4 16:59 README
   1 drwxr-xr-x   2 root     root         1024 Jun 10 08:51 bin

.... <lots of lines deleted> ....

   0 crw--w----   1 root     tty        7, 129 May  5  1998 vcsa1
   0 crw--w----   1 root     tty        7, 138 May  5  1998 vcsa10
   0 crw--w----   1 root     tty        7, 139 May  5  1998 vcsa11
   0 crw--w----   1 root     tty        7, 140 May  5  1998 vcsa12
   0 crw--w----   1 root     tty        7, 141 May  5  1998 vcsa13
   0 crw--w----   1 root     tty        7, 142 May  5  1998 vcsa14
   0 crw--w----   1 root     tty        7, 143 May  5  1998 vcsa15
   0 crw--w----   1 root     tty        7, 144 May  5  1998 vcsa16
   0 crw--w----   1 root     tty        7, 145 May  5  1998 vcsa17
   0 crw--w----   1 root     tty        7, 146 May  5  1998 vcsa18
   0 crw--w----Unable to handle kernel paging request at virtual address 
00000020, epc == 00000020, ra == 80131a40
Oops: 0000
$0 : 00000000 10052000 00000e6f cbd00000
 $4 : 80092b80 80192098 80192448 017c0000
$8 : 00000020 8016d5c8 ffffffff 10000000
$12: 61736376 00000000 51eb851f 80b2be18
$16: 10052001 00000043 00000042 81ef8000
$20: 00000000 80161500 2abba000 80161500
$24: 00000000 2ab31600
$28: 80b2a000 80b2bd40 80108aa8 80131a40
epc   : 00000020
Status: 10052002
Cause : 00000008
Process ls (pid: 362, stackpage=80b2a000)
Stack: 81ef8000 00000043 00000039 81ef8000 80092bbc ffff00ff 00000000 10052000
       00000e6f 00000000 0000002d 80192098 80192448 017c0000 00002000 ffff00ff
       017c0000 20383939 61736376 00000000 51eb851f 80b2be18 10052001 00000043
       00000042 81ef8000 00000000 80161500 2abba000 80161500 00000000 2ab31600
       00000000 80161500 80b2a000 80b2bdf0 80108aa8 80131a40 cbd00000 00000031
       80131a68 ...
Call Trace: [<80092bbc>] [<80108aa8>] [<80131a40>] [<80131a68>] [<80106944>] 
[<80108c24>] [<80103ba8>] [<8005cf64>] [<80093000>] [<8012a818>] [<801039d0>] 
[<80077f6c>] [<8004c168>] [<8004b8a4>]
Code: (Bad address in epc)

  1 root     tty        7, 147 May  5  1998 vcsa19
   0 crw--w----   1 root     tty        7, 130 May  5  1998 vcsa2
   0 crw--w----   1 root     tty        7, 148 May  5  1998 vcsa20
   0 crw--w----   1 root     tty        7, 149 May  5  1998 vcsa21
   0 crw--w----   1 root     tty        7, 150 May  5  1998 vcsa22
   0 crw--w----   1 root     tty        7, 151 May  5  1998 vcsa23

.... <some more lines deleted> ....

   0 crw--w----   1 root     tty        7, 178 May  5  1998 vcsa50
   0 crw--w----   1 root     tty        7, 179 May  5  1998 vcsa51
   0 crw--w----   1 root     tty        7, 180 May  5  1998 vcsa52
   0 crw--w----  Unable to handle kernel paging request at virtual address 
00000000, epc == 8005bf7c, ra == 80130ba8
Oops: 0000
$0 : 00000000 10012000 00000000 00000001
$4 : 00000000 00000001 00000001 8019211c
$8 : 00002000 ffff00ff 017c0000 00000080
$12: 00000000 7ffff7d0 00000001 00000002
$16: 80b2be88 81ef8968 00000001 00000004
$20: 00000000 00000003 00000000 8140e2a8
$24: 00000000 2ac095c0
$28: 80046000 80047d88 80047d88 80130ba8
epc   : 8005bf7c
Status: 10012003
Cause : 00000008
Process swapper (pid: 0, stackpage=80046000)
Stack: 8012a818 00000031 00000001 00000001 81ef8000 80188470 8016af20 8140e660
       80130ba8 00000000 801eb220 08000000 00000004 80047e00 00000000 80130b20
       00000000 8140e2a8 80093000 80093000 00000000 80065fe0 00000000 80188460
       80160000 80046000 80160000 80046000 800485e8 8140e2a8 8140e660 80065fe0
       81ce2000 80170000 80160000 0001c0bb 00000000 10012001 00000000 00000000
       80170000 ...
Call Trace: [<8012a818>] [<80130ba8>] [<80047e00>] [<80130b20>] [<80093000>] 
[<80093000>] [<80065fe0>] [<80046000>] [<80046000>] [<800485e8>] [<80065fe0>] 
[<80046000>] [<80047fe0>] [<80046000>] [<80046000>] [<80047eb0>] [<8004e074>] 
[<8005bbfc>] [<80046000>] [<80047ed8>] [<8004e074>] [<8004e074>] [<80047ee8>] 
[<8004c168>] [<8004c168>] [<80047f98>] [<80046000>] [<80047f58>] [<8005fcfc>] 
[<8004816c>] [<80046000>] [<80046000>] [<80047fa8>] [<80049eec>] [<8004815c>] 
[<80135684>] [<800405cc>] [<80040640>] [<80040614>]
Code: 1211000b  00000000  8e040000 <8c820000> 8e100004  00521024  10400003  
00000000  0c016dae
Aiee, killing interrupt handler
Kernel panic: Attempted to kill the idle task!
In swapper task - not syncing
 1 root     tty        7, 181 May  5  1998 vcsa53
   0 crw--w----   1 root     tty        7, 182 May  5  1998 vcsa54
   0 crw--w----   1 root     tty        7, 183 May  5  1998 vcsa55
   0 crw--w----   1 root     tty        7, 184 May  5  1998 vcsa56

<System frozen, have to press reset>

<Prev in Thread] Current Thread [Next in Thread>