Subject: kern/26897: leaving pcmcia/cardbus card in while suspending causes panic
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <lha@netbsd.org>
List: netbsd-bugs
Date: 09/09/2004 21:06:03
>Number:         26897
>Category:       kern
>Synopsis:       leaving pcmcia/cardbus card in while suspending causes panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 09 19:07:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Love
>Release:        NetBSD 2.0G
>Organization:
	
>Environment:
	
	
System: NetBSD nutcracker.stacken.kth.se 2.0G NetBSD 2.0G (NUTCRACKER) #119: Thu Aug 19 23:57:47 CEST 2004 lha@nutcracker.stacken.kth.se:/usr/src/sys/arch/i386/compile/NUTCRACKER i386
Architecture: i386
Machine: i386
>Description:
	leaving pcmcia/cardbus card in while suspending causes panic

	register is 0xff, the cardbus controller/card not propperly
	powered on and reseted yet ?

>How-To-Repeat:
	see above
>Fix:

: root@nutcracker ; gdb
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386--netbsdelf".
(gdb) shell ls
.gdbinit        bounds          minfree         netbsd.92       netbsd.92.core
(gdb) kcore 92
(no debugging symbols found)...panic: cardbus_get_capability
#0  0x1fe60000 in ?? ()
(gdb) bt
#0  0x1fe60000 in ?? ()
#1  0xc02ff8cf in cpu_reboot (howto=260, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:751
#2  0xc028b0cd in panic (fmt=0xc0479c0f "cardbus_get_capability")
    at ../../../../kern/subr_prf.c:243
#3  0xc037a315 in cardbus_get_capability (cc=0xc0f6dc00, cf=0xc04d5620, tag=
        {mode1 = 2147745792, mode2 = {port = 0, enable = 4 '\004', forward = 128 '\200'}}, capid=1, offset=0xcb1fdd38, value=0xcb1fdd3c)
    at ../../../../dev/cardbus/cardbus.c:803
#4  0xc037a3c4 in cardbus_powerstate (ct=0xc124e300, tag=
        {mode1 = 2147745792, mode2 = {port = 0, enable = 4 '\004', forward = 128 '\200'}}, newstate=0xcb1fdd80, oldstate=0xcb1fdd64)
    at ../../../../dev/cardbus/cardbus.c:877
#5  0xc037a52f in cardbus_setpowerstate (dvname=0xc183a01c "ath0", 
    ct=0xc124e300, tag=
        {mode1 = 2147745792, mode2 = {port = 0, enable = 4 '\004', forward = 128 '\200'}}, newpwr=0) at ../../../../dev/cardbus/cardbus.c:949
#6  0xc037d1f0 in ath_cardbus_setup (csc=0xc183a000)
    at ../../../../dev/cardbus/if_ath_cardbus.c:315
#7  0xc037d0ba in ath_cardbus_enable (sc=0xc183a000)
    at ../../../../dev/cardbus/if_ath_cardbus.c:246
#8  0xc019470e in ath_enable (sc=0xc183a000) at ../../../../dev/ic/ath.c:283
#9  0xc0195556 in ath_init1 (sc=0xc183a000) at ../../../../dev/ic/ath.c:929
---Type <return> to continue, or q <return> to quit---
#10 0xc019518d in ath_resume (sc=0xc183a000, why=0)
    at ../../../../dev/ic/ath.c:718
#11 0xc01950de in ath_power (why=0, arg=0xc183a000)
    at ../../../../dev/ic/ath.c:687
#12 0xc027c856 in dopowerhooks (why=0) at ../../../../kern/kern_subr.c:713
#13 0xc036679e in apm_resume (sc=0xc0f86400, regs=0xcb1fdf34)
    at ../../../../arch/i386/i386/apm.c:592
#14 0xc03669aa in apm_event_handle (sc=0xc0f86400, regs=0xcb1fdf34)
    at ../../../../arch/i386/i386/apm.c:709
#15 0xc0366a90 in apm_periodic_check (sc=0xc0f86400)
    at ../../../../arch/i386/i386/apm.c:802
#16 0xc0367543 in apm_thread (arg=0xc0f86400)
    at ../../../../arch/i386/i386/apm.c:1590
(gdb) p/x ofs
$1 = 0xff
	
>Release-Note:
>Audit-Trail:
>Unformatted: