Subject: kern/10318: cardbus stopped working
To: None <gnats-bugs@gnats.netbsd.org>
From: John Hawkinson <jhawk@mit.edu>
List: netbsd-bugs
Date: 06/07/2000 21:42:17
>Number: 10318
>Category: kern
>Synopsis: cardbus stopped working
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 07 21:43:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: John Hawkinson
>Release: 7 Jun 2000 12:14
>Organization:
MIT
>Environment:
System: NetBSD zorkmid.mit.edu 1.4ZA NetBSD 1.4ZA (ZORKMID-$Revision: 1.13 $) #181: Wed Jun 7 16:48:38 EDT 2000 jhawk@zorkmid.mit.edu:/usr/local/current-src/sys/arch/i386/compile/ZORKMID i386
>Description:
pcmcia at cardbus seems to've stopped working. It worked fine
under 1.4Z (i.e. ~3 days ago). I've only tested it with a WaveLAN Silver
card.
1) panic at boot time when the card has already been inserted.
2) Fail to detect the card at all when the card has already been
inserted. Removal/re-insertion does nothing.
3) Panic when the card is inserted after the system is booted.
4) Fail to detect the card at all when the card has already been
inserted. Removal/re-insertion does nothing.
This is on a Sony VAIO PCG-Z505HE
>How-To-Repeat:
See above. I have this crash dump:
zorkmid# gdb netbsd.29
GNU gdb 4.17
Copyright 1998 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--netbsd"...(no debugging symbols found)...
(gdb) target kcore netbsd.29.core
panic: trap
#0 0x100 in ?? ()
(gdb) where
#0 0x100 in ?? ()
#1 0xc03049cb in cpu_reboot ()
#2 0xc01bc97d in panic ()
#3 0xc030dd2d in trap ()
(gdb) source /sys/arch/i386/gdbscripts/stack
(gdb) stack $ebp $eip
0x100(0xc5633bf8,0xc5633bec,0xc01bc97d,0x100,0x0)
at 0xc03049cb <cpu_reboot+99> (frame at 0xc5633bc4)
0xc03049cb <cpu_reboot+99>(0x100,0x0,0xc04fd728,0x0,0x6)
at 0xc01bc97d <panic+197> (frame at 0xc5633bd0)
0xc01bc97d <panic+197>(0xc030dab7,0x0,0xcd,0xc5633f40,0x21)
at 0xc030dd2d <trap+485> (frame at 0xc5633bec)
0xc030dd2d <trap+485>(0xc0740010,0x10,0xc5633f40,0xcd,0xc5633eb8)
at 0xc0100f29 <calltrap+11> (frame at 0xc5633c2c)
0xc0100f29 <calltrap+11>(0xc0746200,0xc04594fc,0xc5633ed0,0xffffffff,0x0)
at 0xc0457924 <pcmcia_read_cis+156> (frame at 0xc5633eb8)
0xc0457924 <pcmcia_read_cis+156>(0xc0746200,0xc0746aac,0xc072f380,0xc072f380,0xffffffff)
at 0xc0456797 <pcmcia_card_attach+39> (frame at 0xc5633f40)
0xc0456797 <pcmcia_card_attach+39>(0xc0746200,0xc072f380,0xc0449cf0,0x0,0x0)
at 0xc0449ed9 <cardslot_event_thread+489> (frame at 0xc5633f6c)
0xc0449ed9 <cardslot_event_thread+489>(0xc072f380,0xc063,0x0,0x0,0xc0100345)
at 0xc010034b <proc_trampoline+3> (frame at 0xc5633f94)
(gdb) source /users/jhawk/netbsd/msgbuf.gdb
(gdb) help msgbuf
dump the message buffer
(gdb) msgbuf
[...]
NetBSD 1.4ZA (ZORKMID-$Revision: 1.13 $) #180: Wed Jun 7 16:31:23 EDT 2000
jhawk@zorkmid.mit.edu:/usr/local/current-src/sys/arch/i386/compile/ZORKMID
cpu0: family 6 model 8 step 1
cpu0: Intel Pentium III (E) (686-class)
total memory = 65088 KB
avail memory = 55236 KB
[...]
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
...
cbb0 at pci0 dev 12 function 0: Ricoh 5C475 PCI-CardBus bridge (rev. 0x80)
cbb0: interrupting at irq 9
cbb0: cacheline 0x0 lattimer 0x20
cbb0: bhlc 0x21000 lscp 0x20020200
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
...
apm0 at mainbus0: Power Management spec V1.2
apm: 1 batteries, global suspend, rtimer suspend, internal standby
biomask ef4d netmask ef4d ttymask ffcf
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
uvm_fault(0xc04fd728, 0xc57d9000, 0, 1) -> 1
fatal page fault in supervisor mode
trap type 6 code 0 eip c0457d9a cs 8 eflags 10202 cr2 c57d9000 cpl 0
panic: trap
Begin traceback...
_trap() at _trap+0x1e5
--- trap (number 6) ---
_pcmcia_scan_cis(c0746200,c04594fc,c5633ed0,ffffffff,0) at _pcmcia_scan_cis+0x1a6
_pcmcia_read_cis(c0746200,c0746aac,c072f380,c072f380,ffffffff) at _pcmcia_read_cis+0x9c
_pcmcia_card_attach(c0746200) at _pcmcia_card_attach+0x27
_cardslot_event_thread(c072f380) at _cardslot_event_thread+0x1e9
End traceback...
syncing disks... 1 1 done
dumping to dev 0,1 offset 396196
dump 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
If I set pcmciacis_debug=1, I can't seem to make the machine panic, but
it does provide the following upon card insertion:
wsmux1: connecting to wsdisplay0
cis mem map c57f3000
pcmcia0: CIS tuple chain:
unhandled CISTPL 53
53 00
unhandled CISTPL 53
53 00
unhandled CISTPL c3
c3 00
unhandled CISTPL 53
53 00
unhandled CISTPL 53
53 00
unhandled CISTPL 54
54 00
unhandled CISTPL bd
bd 00
unhandled CISTPL 53
53 00
unhandled CISTPL a5
a5 00
unhandled CISTPL 87
87 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 57
57 00
unhandled CISTPL 8f
8f 00
unhandled CISTPL 1e
1e 00
unhandled CISTPL 4d
4d 00
unhandled CISTPL 41
41 00
unhandled CISTPL d8
d8 45 39 00 59 00 2e 00 d2 00 59 00 f2 00 6e 00
53 00 53 00 a4 00 bd 00 a8 00 6e 00 6e 00 6e 00
6e 00 6e 00 6e 00 6e 00 6e 00 6e 00 6e 00 6e 00
6e 00 6e 00 6e 00 6e 00 6e 00 6e 00 6e 00 6e 00
6e 00 6e 00 6e 00 6e
CISTPL_NONE
00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 77
77 45 71 00 65 00 d7 00 6e 00 6e 00 6e 00 6e 00
6e 00 6e 00 6e 00 6e 00 6e 00 6e 00 6e 00 6e 00
6e 00 6e 00 6e 00 6e 00 6e 00 6e 00 6e 00 6e 00
6e 00 6e 00 6e 00 6e 00 6e 00 6e 00 6e 00 6e 00
00 00 00 00 00 00 00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 1f
1f 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 7f
7f 00
unhandled CISTPL 71
71 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 6e
6e 00
unhandled CISTPL 68
68 00
unhandled CISTPL aa
aa 00
unhandled CISTPL b8
b8 45 98 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
unhandled CISTPL 48
48 35 11 02 00 67 00 e8 40 00 48 8e 8e 6e ff f0
74 00 d4 45 13 30 8a 00 13 80 00 48 02 bc 90 71
f0 01 50 50 d7 46 04 11 02 00 bc fd b6 00 71 00
00 36 01 00 01 00 00
unhandled CISTPL b3
b3 1e 40 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 80 00 00 89 45 45 d0 02 fe fa 02 01 03
unhandled CISTPL 2
02 0f 45 46 f8 e8 00 00 78 00 00 80 27 00 02 00
00
unhandled CISTPL 32
32 32 00 62 62 6f 6f 74 20 2d 64 0d 00 00 00 00
00 00 00 00 ff 00 00 c8 50 00 00 00 00 00 00 00
00 00 00 0c 00 03 30 03 c0 7c 17 00 34 00 00 14
14 01 01 1e
unhandled CISTPL 3e
3e 18 00 f9 0b 50 00 00 00 00 10 a0 40 f0 ff 00
00 00 00 16 00 00 00 00 00 00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
CISTPL_NONE
00
unhandled CISTPL f0
f0 f6 e0 0e 05 1f 00 10 84 ca 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 66 c0 d0
00 00 8e 8e 31 89 bf 06 00 f3 ea 06 00 fa 7c 80
87 02 80 16 07 95 a8 0f 9a bf 07 31 04 3d 74 a2
07 7c e8 00 fe e6 be 07 e0 fe 83 09 e0 e4 1a c1
10 d7 09 b4 cd 75 30 cd 66 e1 66 ca 29 a1 07 c2
e5 94 eb 30 cd 88 3c 74 2c 3c 7f 3c 7e 2c 3a 75
7d be 07 80 c2 9a be 07
CISTPL_END
ff
cis mem map c57f3000
CISTPL_LINKTARGET expected, code 53 observed
>Fix:
I dunno. I'll try taking out cardbus and confirm
it still works with pcic. It must've been something recent
that broke, though.
>Release-Note:
>Audit-Trail:
>Unformatted: