Subject: IBM workpad interrupts
To: None <port-hpcmips@netbsd.org>
From: David Becker <becker@cs.duke.edu>
List: port-hpcmips
Date: 12/16/1999 12:52:55
I have hpcmips netbsd booting on an IBM Workpad.  The Workpad label says
it is a type 2608.   When I put a 3c589C in the pcmcia slot, netbsd
finds the card and transmits, but does not receive incoming packets.

The machine appears to not get interrupts from the PCIC.  The ep0 NIC sends out
dhcp packets ok, but the replies do not trigger my breakpoints in epintr
or trap.  I see similar no-interrupt behavior when an adeptec scsi card is
in the pcmicia slot.

This kernel was built with sources I checked out from anoncvs
today.  Any suggestions?


Here are the boot messages.
--------
root device (default ep0): Copyright (c) 1996, 1997, 1998, 1999
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.4P (WORKPAD) #0: Thu Dec 16 10:20:08 EST 1999
    becker@milk:/usr/project/ari_scratch2/becker/netbsd/cvs/sys/arch/hpcmips/compile/WORKPAD
NEC VR4121 rev0.0 131.072MHz
total memory = 16384 KB
avail memory = 13164 KB
using 230 buffers containing 920 KB of memory
../../../../arch/hpcmips/vr/vr.c(235): vr_bus_reset() not implemented.
mainbus0 (root)
cpu0 at mainbus0: cpu0: NEC VR4100 CPU Rev. 6.0 with software emulated floating point Rev. 0.0
cpu0: L1 cache: 16KB/16B Instruction, 8KB/16B Data, direct mapped
cpu0: No L2 cache
fb0 at mainbus0: rasops 640x480 pixels, 256 colors, 80x48 chars
wsdisplay0 at fb0
../../../../arch/hpcmips/dev/fb.c(502): fb_alloc_screen()
../../../../arch/hpcmips/dev/fb.c(542): fb_show_screen()
../../../../arch/hpcmips/dev/fb.c(502): fb_alloc_screen()
wsdisplay0: screen 0 added (std, vt100 emulation)
vrip0 at mainbus0
vrcmu0 at vrip0 addr 0xb000060-0xb00007f
vrgiu0 at vrip0 addr 0xb000100-0xb00011f intr 8
WIN setting:                                iiiiiiiiiiiiiiiiIiiiIoIiioiiiIII
vrip_intr_setmask2:
level1[8] level2 mask:................|...|.|......|||
I/O setting:                                iiiiiiiiiiiiiiiiiiiiioiiioiiiiii
       data:,,,,,,;;,,,,,,,,,;;;;;;;;;;;;;;;......|..........||.|.......|||.
gpbus2 at vrgiu0 comctrl=15 button=[-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1]
vrbcu0 at vrip0 addr 0xb000000-0xb00001f
com0 at vrip0 addr 0xc000000-0xc000007 intr 9: ns16550a, working fifo
com0: console
vrip_intr_setmask2:
vrrtc0 at vrip0 addr 0xb0000c0-0xb0000df intr 2vrip_intr_setmask2:

vrkiu0 at vrip0 addr 0xb000180-0xb00019f intr 7vrip_intr_setmask2:
level1[7] level2 mask:.............||.
vrip_intr_setmask2:
level1[7] level2 mask:................

wskbd0 at vrkiu0 mux 1
vrpmu0 at vrip0 addr 0xb0000a0-0xb0000bf intr 1vrip_intr_setmask2:

vrpmu: cnt 0x2: ..............|.
vrpmu: cnt2 0x0: ................
vrpmu: wait 0x2c00 div 0x0
vrdsu0 at vrip0 addr 0xb0000e0-0xb0000e7
vrisab2 at vrgiu0:ISA port 0x15000000-0x18000000 mem 0x10000000-0x20000000
isa2 at vrisab2
pcic0 at isa2 port 0x3e0-0x3e1 iomem 0x70000-0x73fff irq 393219
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcic0: controller 1 (Intel 82365SL Revision 1) has sockets A and B
ISA IRQ 3 -> GPIO port 6
vrip_intr_setmask2:
level1[8] level2 mask:................................
pcmcia0 at pcic0 controller 0 socket 0
pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: 3Com Corporation, 3C589, TP/BNC LAN Card Ver. 2a, 000002
pcmcia0: Manufacturer code 0x101, product 0x589
pcmcia0: function 0: network adapter, ccr addr 10000 mask 3
pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, iospace 0-f; rdybsy_active wp_active bvd_active io8 io16 irqlevel
pcmcia0: function 0, config table entry 3: I/O card; irq mask ffff; iomask 4, iospace 0-f; rdybsy_active wp_active bvd_active io8 io16 irqlevel
ep0 at pcmcia0 function 0 port 0x15000330-0x1500033f: 3Com 3c589 10Mbps Ethernet
ep0: address 00:a0:24:b0:27:91, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5, 10base2 (default 10baseT)
pcmcia1 at pcic0 controller 0 socket 1
pcmcia1: CIS version PCMCIA 2.0 or 2.1
pcmcia1: CIS info: 64MB CF Card, , LD016-3B, FW3B   
pcmcia1: Manufacturer code 0xbf, product 0x1
pcmcia1: function 0: fixed disk, ccr addr 200 mask f
pcmcia1: function 0, config table entry 0: memory card; irq mask 0; memspace 0-7ff; powerdown
pcmcia1: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, iospace 0-f; memspace 0-7ff; powerdown
pcmcia1: function 0, config table entry 2: I/O card; irq mask 4000; iomask a, iospace 1f0-1f7 3f6-3f7; memspace 0-7ff; powerdown
pcmcia1: function 0, config table entry 3: I/O card; irq mask 4000; iomask a, iospace 170-177 376-377; memspace 0-7ff; powerdown
wdc0 at pcmcia1 function 0 port 0x15000340-0x1500034f
isa_intr_alloc:............................|...
vrip_intr_setmask2:
level1[8] level2 mask:.........................|......
pcmcia1: card irq 3
wd0 at wdc0 channel 0 drive 0: <00000000000000010037334144>
wd0: drive supports 67-sector pio transfers, chs addressing
wd0: 51084MB, 33924 cyl, 771 head, 4 sec, 512 bytes/sect x 104621616 sectors
pcmcia2 at pcic0 controller 1 socket 0
pcmcia3 at pcic0 controller 1 socket 1
../../../../arch/hpcmips/vr/vr.c(235): vr_bus_reset() not implemented.
boot device: wd0
nfs_boot: trying DHCP/BOOTP
isa_intr_alloc:............................|...
vrip_intr_setmask2:
level1[8] level2 mask:.........................|......
pcmcia0: card irq 3
Stopped in swapper at   cpu_Debugger+0x4:       jr      ra
db> b epintr 
db> c
nfs_boot: timeout...
nfs_boot: timeout...
nfs_boot: timeout...
cannot mount root, error = 60