Subject: kern/9442: wdc_pcmcia attach hangs when another card is present
To: None <gnats-bugs@gnats.netbsd.org>
From: None <root@ihack.net>
List: netbsd-bugs
Date: 02/17/2000 21:27:49
>Number:         9442
>Category:       kern
>Synopsis:       wdc_pcmcia attach hangs when another card is present
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 17 21:27:01 2000
>Last-Modified:
>Originator:     Charles M. Hannum
>Organization:
	Internetwork Hacker
>Release:        -current as of 20000217
>Environment:
	Toshiba Satellite 2550CDT or IBM WorkPad z50
System: NetBSD lop-nor.ihack.net 1.4T NetBSD 1.4T (LOP-NOR) #39: Thu Feb 17 22:05:07 EST 2000 mycroft@lop-nor.ihack.net:/usr/src/sys/arch/i386/compile/LOP-NOR i386


>Description:
	If a card (such as an Ethernet card) is inserted in another slot on
	the same PCMCIA controller, and is active (i.e. is getting interrupts),
	the wdc_pcmcia attach usually hangs.

>How-To-Repeat:
	Plug in an Ethernet card, attach to a network, and then plug in a
	PCMCIA or CompactFlash memory card.

>Fix:
	This looks like it may be due to wdc_intr() being called spuriously
	due to the IRQ being shared with the other card.  The drive probe is
	not very clean with respect to interrupt race conditions.

>Audit-Trail:
>Unformatted: