Re: panic on pccard insert (more debug info)

From: Pawel Worach <pawel.worach_at_telia.com>
Date: Fri, 18 Jul 2003 04:19:58 +0200
I tuned on some debug sysctls, here is the result.
cbb0: card inserted: event=0x00000000, state=30000810
pccard0: chip_socket_enable
cbb_pcic_socket_enable:
cbb0: cbb_power: 3V
pccard0: read_cis
cis mem map ce6e1000
pccard0: CIS tuple chain:
CISTPL_NONE
  00
CISTPL_NONE
  00
[....]
CISTPL_CHECKSUM too short 0
  10 00
CISTPL_NONE
  00
CISTPL_NONE
  00
[and it continues like this until the panic]

-Pawel

Pawel Worach wrote:
> Whatever pccard i insert, here an unsupported 3Com OfficeConnect
> WiFi card or even a Intel Pro/100+ Mobile16 card it panics like
> seen below. This happens if booted with the card inserted and
> if hotplugged. The laptop is booted "diskless" so I can't produce
> a crashdump (the info below is typed by hand).
> 
> full dmesg, kernel config and kernel.debug can be found at
> http://213.67.96.190/pccard/
> 
> Fatal trap 12: page fault while in kernel mode
> fault virtual address   = 0xce6cb000
> fault code              = supervisor read, page not present
> instruction pointer     = 0x8:0xc016a7b5
> stack pointer           = 0x10:0xcd2c4938
> frame pointer           = 0x10:0xcd2c4b54
> code segment            = base 0x0, limit 0xfffff, type 0x1b
>                         = DPL 0, pres1, def32 1, gran 1
> processor eflags        = interrupt enabled, resume, IOPL = 0
> current process         = 8 (cbb0)
> kernel: type 12 trap, code=0
> Stopped at      pccard_scan_cis+0x165:  movzbl  0(%eax,%edx,1),%eax
> db> tr
> pccard_scan_cis+0x165
> pccard_read_cis+0xb4
> pccard_attach_card+0x9b
> CARD_ATTACH_CARD+0x48
> exca_insert+0x23
> cbb_insert+0x93
> cbb_event_thread+0xa4
> fork_exit+0xb1
> fork_trampoline+0x1a
> --- trap 0x1, eip = 0, esp = 0xcd2c4d7c, ebp = 0 ---
> 
> pccard stuff from dmesg:
> cbb0: <O2Micro OZ6933 PCI-CardBus Bridge> irq 9 at device 19.0 on pci0
> cardbus0: <CardBus bus> on cbb0
> pccard0: <16-bit PCCard bus> on cbb0
> cbb0: PCI Configuration space:
>   0x00: 0x69331217 0x04100007 0x06070002 0x00822000
>   0x10: 0x88000000 0x020000a0 0x20010100 0xfffff000
>   0x20: 0x00000000 0xfffff000 0x00000000 0x0000fffd
>   0x30: 0x00000001 0x0000fffd 0x00000001 0x04000109
>   0x40: 0x10e610cf 0x00000001 0x00000000 0x00000000
>   0x50: 0x00000000 0x00000000 0x00000000 0x00000000
>   0x60: 0x00000000 0x00000000 0x00000000 0x00000000
>   0x70: 0x00000000 0x00000000 0x00000000 0x00000000
>   0x80: 0x00000000 0x00000000 0x00000000 0x00000000
>   0x90: 0x0c0023bf 0x824203ea 0x10500000 0x00000000
>   0xa0: 0xfe020001 0x00c04000 0x00000000 0x00000000
>   0xb0: 0x00000000 0x00000000 0x00000000 0x00000000
>   0xc0: 0x00000000 0x00000000 0x00000000 0x00000000
>   0xd0: 0x00000000 0x00000000 0x00000000 0x00000000
>   0xe0: 0x00000000 0x00000000 0x00000000 0x00000000
>   0xf0: 0x00000000 0x00000000 0x00000000 0x00000000
> cbb1: <O2Micro OZ6933 PCI-CardBus Bridge> irq 9 at device 19.1 on pci0
> cardbus1: <CardBus bus> on cbb1
> pccard1: <16-bit PCCard bus> on cbb1
> cbb1: PCI Configuration space:
>   0x00: 0x69331217 0x04100007 0x06070002 0x00822000
>   0x10: 0x88001000 0x020000a0 0x20020200 0xfffff000
>   0x20: 0x00000000 0xfffff000 0x00000000 0x0000fffd
>   0x30: 0x00000001 0x0000fffd 0x00000001 0x04000209
>   0x40: 0x10e610cf 0x00000001 0x00000000 0x00000000
>   0x50: 0x00000000 0x00000000 0x00000000 0x00000000
>   0x60: 0x00000000 0x00000000 0x00000000 0x00000000
>   0x70: 0x00000000 0x00000000 0x00000000 0x00000000
>   0x80: 0x00000000 0x00000000 0x00000000 0x00000000
>   0x90: 0x0c0023bf 0x824203ea 0x10500000 0x00000000
>   0xa0: 0xfe020001 0x00c04000 0x00000000 0x00000000
>   0xb0: 0x00000000 0x00000000 0x00000000 0x00000000
>   0xc0: 0x00000000 0x00000000 0x00000000 0x00000000
>   0xd0: 0x00000000 0x00000000 0x00000000 0x00000000
>   0xe0: 0x00000000 0x00000000 0x00000000 0x00000000
>   0xf0: 0x00000000 0x00000000 0x00000000 0x00000000
> 
> pciconf:
> cbb0_at_pci0:19:0: class=0x060700 card=0x10e610cf chip=0x69331217 rev=0x02 
> hdr=0x02
>     vendor   = 'O2 Micro Inc'
>     device   = 'OZ6933 CardBus Controller'
>     class    = bridge
>     subclass = PCI-CardBus
> cbb1_at_pci0:19:1: class=0x060700 card=0x10e610cf chip=0x69331217 rev=0x02 
> hdr=0x02
>     vendor   = 'O2 Micro Inc'
>     device   = 'OZ6933 CardBus Controller'
>     class    = bridge
>     subclass = PCI-CardBus
> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Thu Jul 17 2003 - 17:20:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:15 UTC