Subject: port-vax/28719: kernel crash during qt0 interface configuration
To: None <port-vax-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <kirk@ba23.org>
List: netbsd-bugs
Date: 12/20/2004 04:15:00
>Number:         28719
>Category:       port-vax
>Synopsis:       kernel crash during qt0 interface configuration
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-vax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 20 04:15:00 +0000 2004
>Originator:     Kirk Russell
>Release:        NetBSD 2.0
>Organization:
Bridlewood Software Testers Guild
>Environment:
NetBSD bronzevax.kr.on 2.0 NetBSD 2.0 (GENERIC) #0: Thu Dec  2 19:18:27 CST 2004  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/vax/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/vax/compile/GENERIC vax

>Description:
I installed 2.0 to my hard disk.  I noticed that my DESQA-SA NIC is now
recognized as a "delqa-plus in Turbo mode" instead of a plain "delqa".
When I run "ifconfig qt0", the kernel crashed:

    # ifconfig qt0
    qtpanic: Segv in kernel mode: pc 80143b86 addr 2e

I am using a VAX 4000 Model 700A, with the following modules:
    slot one       MS690-D
    slot two    MS690-D clone
    slot three  MS690-D clone
    slot four      MS690-D
    slot five       KA692
    slot six      DESQA-SA
    slot seven     DHV11-A
    slot eight  CMD CQD 223M
    slot nine     TQK50-AA
    slot ten        empty
    slot eleven     empty
    slot twelve     empty

>>>show config
KA692-A V2.3, VMB 2.14

Scan of main memory
Memory board 0: 00000000 to 07FFFFFF, 128MB, 262144 good pages, 0 bad pages
Memory board 1: 08000000 to 0FFFFFFF, 128MB, 262144 good pages, 0 bad pages
Memory board 2: 10000000 to 17FFFFFF, 128MB, 262144 good pages, 0 bad pages
Memory board 3: 18000000 to 1FFFFFFF, 128MB, 262144 good pages, 0 bad pages

Total of 512MB, 1048576 good pages, 0 bad pages, 352 reserved pages
UQSSP Disk Controller 0 (772150)
-DUA0 (RA90)
-DUA1 (RA90)
-DUA2 (RA90)
-DUA3 (RA90)
-DUA4 (RA90)

UQSSP Tape Controller 0 (774500)
-MUA0 (TK50)

Ethernet Adapter
-EZA0 (08-00-2B-3B-1F-DF)

Ethernet Adapter 0 (774440)
-XQA0 (08-00-2B-3F-A8-B7)
Scan of Qbus I/O Space
-20000120 (760440) = 0690 DHQ11/DHV11/CXA16/CXB16/CXY08
-20000122 (760442) = F081
-20000124 (760444) = DD18
-20000126 (760446) = 0000
-20000128 (760450) = 0000
-2000012A (760452) = 0000
-2000012C (760454) = 8000
-2000012E (760456) = 0000
-20001468 (772150) = 0000 RQDX3/KDA50/RRD50/RQC25/KFQSA-DISK
-2000146A (772152) = 0B00
-20001920 (774440) = FF08 DELQA/DEQNA/DESQA
-20001922 (774442) = FF00
-20001924 (774444) = FF2B
-20001926 (774446) = FF3F
-20001928 (774450) = FFA8
-2000192A (774452) = FFB7
-2000192C (774454) = 8000
-2000192E (774456) = 1030
-20001940 (774500) = 0000 TQK50/TQK70/TU81E/RV20/KFQSA-TAPE
-20001942 (774502) = 0BC0
-20001F40 (777500) = 0020 IPCR

# ifconfig ze0
ze0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 08:00:2b:3b:1f:df
        inet 192.168.1.114 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::a00:2bff:fe3b:1fdf%ze0 prefixlen 64 scopeid 0x1
# ifconfig qt0
qtpanic: Segv in kernel mode: pc 80143b86 addr 2e
Stopped in pid 329.1 (ifconfig) at      netbsd:trap+0x297:      movl    $2, -72(
fp)
db> bt
panic: Segv in kernel mode: pc %x addr %x
Stack traceback :
0xa746aba0: trap+0x297(0xa746ac74)
0xa746ac74: trap type=0x4c code=0x2e pc=0x80143b86 psl=0xd60000
0xa746ac40: qtrint+0xda(0xa090b800)
0xa746acc0: qtstop+0xac(0xa090b834,0x1)
0xa746acec: qtioctl+0x48(0xa090b834,0xc02069e7,0xa746ae94)
0xa746ad14: in_control+0x4fa(0x81dc8320,0xc02069e7,0xa746ae94,0xa090b834,0x813e6
960)
0xa746ad5c: udp_usrreq+0x35(0x81dc8320,0xb,0xc02069e7,0xa746ae94,0xa090b834,0x81
3e6960)
0xa746ada8: ifioctl+0x5b6(0x81dc8320,0xc02069e7,0xa746ae94,0x813e6960)
0xa746ae14: soo_ioctl+0x119(0x81435380,0xc02069e7,0xa746ae94,0x813e6960)
0xa746ae54: sys_ioctl+0x1ec(0x813ed2e8,0xa746af60,0xa746af58)
0xa746af14: syscall+0xdc(0xa746afb4)
db> ps
 PID           PPID     PGRP        UID S   FLAGS LWPS          COMMAND    WAIT
>329            302      329          0 2  0x4002    1         ifconfig
 302              1      302          0 2  0x4003    1              ksh   pause
 305              1      305          0 2       0    1             cron nanosle
 287              1      287          0 2       0    1            inetd  kqread
 236              1      236          0 2   0x100    1         sendmail  select
 141              1      141          0 2       0    1          syslogd    poll
 5                0        0          0 2 0x20200    1         aiodoned aiodone
 4                0        0          0 2 0x20200    1          ioflush  syncer
 3                0        0          0 2 0x20200    1       pagedaemon pgdaemo
 2                0        0          0 2 0x20200    1       lfs_writer lfswrit
 1                0        1          0 2  0x4000    1             init    wait
 0               -1        0          0 2 0x20200    1          swapper schedul

NetBSD 2.0 (GENERIC) #0: Thu Dec  2 19:18:27 CST 2004
        builds@build:/big/builds/ab/netbsd-2-0-RELEASE/vax/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/
src/sys/arch/vax/compile/GENERIC

VAX 4000/705A
cpu0: KA694, ucode rev 2
total memory = 511 MB
avail memory = 493 MB
mainbus0 (root)
ibus0 at mainbus0
ze0 at ibus0
ze0: hardware address 08:00:2b:3b:1f:df
device shac at ibus0 not configured
uba0 at ibus0: Q22
dhu0 at uba0 csr 160440 vec 320 ipl 17
dhu0: rom(1) version 2 rom(0) version 2
dhu0: DHV-11
mtc0 at uba0 csr 174500 vec 774 ipl 17
mscpbus0 at mtc0: version 4 model 3
mscpbus0: DMA burst size set to 4
mt0 at mscpbus0 drive 0: TK50
uda0 at uba0 csr 172150 vec 770 ipl 17
mscpbus1 at uda0: version 6 model 13
mscpbus1: DMA burst size set to 4
ra0 at mscpbus1 drive 0: RA90
ra1 at mscpbus1 drive 1: RA90
ra2 at mscpbus1 drive 2: RA90
ra3 at mscpbus1 drive 3: RA90
ra4 at mscpbus1 drive 4: RA90
ra5 at mscpbus1 drive 5: RA90
qt0 at uba0 csr 174440 vec 764 ipl 17
qt0: delqa-plus in Turbo mode, hardware address 08:00:2b:3f:a8:b7
Kernelized RAIDframe activated
ra0: size 4110479 sectors
ra1: size 4110479 sectors
ra2: size 4110479 sectors
ra3: size 4110479 sectors
ra4: size 4110479 sectors
ra5: size 4110479 sectors
boot device: ra0
root on ra0a dumps on ra0b
Clock has gained 17 days - CHECK AND RESET THE DATE.
root file system type: ffs


>How-To-Repeat:
ifconfig qt0
>Fix: