Subject: kern/9987: pcmcia smartmedia adaptor causes 40 second wdc hang
To: None <gnats-bugs@gnats.netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: netbsd-bugs
Date: 04/26/2000 15:36:12
>Number:         9987
>Category:       kern
>Synopsis:       pcmcia smartmedia adaptor causes 40 second wdc hang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 26 15:37:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Rupprecht
>Release:        -current 4/24/2000
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Environment:
	
System: NetBSD capsicum.wsrcc.com 1.4X NetBSD 1.4X (WSRCC) #0: Mon Apr 24 09:39:55 PDT 2000 wolfgang@capsicum.wsrcc.com:/v/src/netbsd/NetBSD-current/usr/src/sys/arch/i386/compile/WSRCC i386


>Description:
	Inserting a Microtech "digital flashfilm" adaptor with a 4-meg
	smartmedia card will cause the kernel to hang for 40 seconds.

>How-To-Repeat:
	insert pcmcia card 
	bang on keysboard
	wait 40 seconds
	see your output magically appear.

	during the hang db says (copied by hand):

	gettick()
	delay()		
	__wdcwait_reset()
	wdcprobe()	
	wdcattach()	
	wdc_pcmcia_attach()
	config_attach()
	config_found_sm()		
	pcmcia_card_attach()
	cardslot_event_thread()
	Bad Fram pointer: (hmmm...)

>Fix:
	don't spin-wait in the wdc code waiting for this slow card to get
	its act together.
>Release-Note:
>Audit-Trail:
>Unformatted: