Subject: kern/4375: disabling PCMCIA 'ep' generates stray intr
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cgd@NetBSD.ORG>
List: netbsd-bugs
Date: 10/29/1997 00:45:20
>Number:         4375
>Category:       kern
>Synopsis:       disabling PCMCIA 'ep' generates stray intr
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 28 16:50:18 1997
>Last-Modified:
>Originator:     Chris G. Demetriou
>Organization:
Kernel Hackers 'r' Us
>Release:        NetBSD-current (1.3_ALPHA) as of October 27, 1997
>Environment:
System: NetBSD brick.demetriou.com 1.3_ALPHA NetBSD 1.3_ALPHA (BRICK) #8: Mon Oct 27 22:40:17 PST 1997 cgd@brick.demetriou.com:/usr/src/sys/arch/i386/compile/BRICK i386


>Description:
	At least on my laptop, disabling the PCMCIA 'ep' ethernet interface
	(via "ifconfig ep0 down", after it's been enabled) causes a stray
	interrupt.

	Here's the dmesg output from my machine:

Copyright (c) 1996, 1997 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.3_ALPHA (BRICK) #8: Mon Oct 27 22:40:17 PST 1997
    cgd@brick.demetriou.com:/usr/src/sys/arch/i386/compile/BRICK
cpu0: family 5 model 2 step c
cpu0: Intel Pentium (P54C) (586-class)
real mem  = 49934336
avail mem = 45105152
using 635 buffers containing 2600960 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82437MX Mobile System Controller (MTSC) (rev. 0x02)
pcib0 at pci0 dev 1 function 0
pcib0: Intel 82371FB PCI-to-ISA Bridge (PIIX) (rev. 0x02)
Texas Instruments PCI1130 (CardBus bridge, revision 0x04) at pci0 dev 2 function 0 not configured
Texas Instruments PCI1130 (CardBus bridge, revision 0x04) at pci0 dev 2 function 1 not configured
Trident Microsystems TGUI 9660 (VGA display, revision 0xd3) at pci0 dev 3 function 0 not configured
isa at pcib0 not configured
isa0 at mainbus0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 drive 0: <IBM-DCRA-22110>
wd0: 2016MB, 4096 cyl, 16 head, 63 sec, 512 bytes/sec
wd0: using 16-sector 16-bit pio transfers, lba addressing
sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.01
audio0 at sb0
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
pms0 at pc0 irq 12
spkr0 at pc0 port 0x61
pc0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xd3fff: using irq 3
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
ep0 at pcmcia0 function 0 port 0x400-0x40f: 3Com 3C589 Ethernet
ep0: MAC address 00:60:97:8c:fd:37
ep0: 8KB byte-wide FIFO, 5:3 Rx:Tx split, utp/aui/bnc (default utp)
pcmcia1 at pcic0 controller 0 socket 1
com3 at pcmcia1 function 0 port 0x2f8-0x2ff: ns16550a, working fifo
pcmcia1: card irq 7
apm0 at mainbus0: Power Management spec V1.1
biomask 4040 netmask 4040 ttymask 504a
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
pcmcia0: card irq 9
stray interrupt 9
pcmcia0: card irq 9
stray interrupt 9

	Note that the ep device (on pcmcia0) has been configured up
	twice (allocating itself an IRQ each time), and has been
	configured down twice (generating a stray interrupt message
	each time).

>How-To-Repeat:
	Disable a PCMCIA ep (if this happens on all laptops).

>Fix:
	Unknown, but i'm willing to test or help debug patches if
	others are unable to replicate the problem.
>Audit-Trail:
>Unformatted: