Subject: kern/16344: apm sleeps wi0 doesn't wake
To: None <gnats-bugs@gnats.netbsd.org>
From: None <billc@NetBSD.org>
List: netbsd-bugs
Date: 04/13/2002 22:25:57
>Number:         16344
>Category:       kern
>Synopsis:       apm sleeps wi0 doesn't wake
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 13 19:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5ZC
>Organization:
The NetBSD Project
	
>Environment:
	
	
System: NetBSD aerowaves 1.5ZC NetBSD 1.5ZC (AEROWAVES) #7: Thu Apr 11 15:53:08 EDT 2002 billc@aerowaves:/usr/src/sys/arch/i386/compile/AEROWAVES i386
Architecture: i386
Machine: i386
>Description:
when sleeping wi0 (either wavelan (silver)) or prism2 (dlink dwl-650) will never revive when the machine comes back up.  In some cases, the wavelan will cause a kernel panic when the machine wakes up.  Here is the output when the machine wakes back up:  (note the garbage read... in this case the prism card is in and the kernel didn't panic).

?V card, 0x30000110
wi0: wi_cmd: BUSY did not clear, cmd=0x2
wi0: wi_cmd: BUSY did not clear, cmd=0x0
wi0: init failed
wi0: timeout in wi_seek to fce0/0; last status ffff
wi0: timeout in wi_seek to fc07/0; last status ffff
wi0: timeout in wi_seek to fc00/0; last status ffff
wi0: timeout in wi_seek to fc83/0; last status ffff
wi0: timeout in wi_seek to fc84/0; last status ffff
wi0: timeout in wi_seek to fc06/0; last status ffff
wi0: timeout in wi_seek to fc09/0; last status ffff
wi0: timeout in wi_seek to fc0c/0; last status ffff
wi0: timeout in wi_seek to fc2d/0; last status ffff
wi0: timeout in wi_seek to fc04/0; last status ffff
wi0: timeout in wi_seek to fc02/0; last status ffff
wi0: timeout in wi_seek to fc03/0; last status ffff
wi0: timeout in wi_seek to fc0e/0; last status ffff
wi0: timeout in wi_seek to fc01/0; last status ffff
wi0: timeout in wi_seek to fc85/0; last status ffff
wi0: timeout in wi_seek to fc28/0; last status ffff
wi0: timeout in wi_seek to fc23/0; last status ffff
wi0: timeout in wi_seek to fc24/0; last status ffff
wi0: timeout in wi_seek to fc80/0; last status ffff
wi0: wi_cmd: BUSY did not clear, cmd=0x1
wi0: wi_cmd: BUSY did not clear, cmd=0xa
wi0: failed to allocate 1594 bytes on NIC
wi0: tx buffer allocation failed
wi0: interface not running

ifconfig wi0 down and up doesn't revive it.

Now, to get the card to power back up, an eject works:
wi0 detached
wi0 at pcmcia1 function 0: D, Link DWL-650 11Mbps WLAN Card, Version 01.02
wi0: 802.11 address 00:05:5d:da:9e:88
wi0: using RF:PRISM2.5 MAC:ISL3873
Intersil Firmware: Primary (1.0.7), Station (1.3.5)

and from here, I have to reconfigure the network...


	
>How-To-Repeat:
close the lid on a Dell Inspiron laptop with a wi0 then open it after a few mins.
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: