NetBSD Problem Report #28979

From www@netbsd.org  Sun Jan 16 08:06:00 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 1B18E63B845; Sun, 16 Jan 2005 08:06:00 +0000 (UTC)
Message-Id: <20050116080600.1B18E63B845@narn.netbsd.org>
Date: Sun, 16 Jan 2005 08:06:00 +0000 (UTC)
From: rumi@rtfm.hu
Reply-To: rumi@rtfm.hu
To: gnats-bugs@netbsd.org
Subject: page-fault when inserting PCMCIA/CardBus WiFi card
X-Send-Pr-Version: www-1.0

>Number:         28979
>Category:       kern
>Synopsis:       page-fault when inserting PCMCIA/CardBus WiFi card
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 16 08:06:00 +0000 2005
>Last-Modified:  Thu Oct 20 10:53:57 +0000 2005
>Originator:     Rumi Szabolcs
>Release:        netbsd-current
>Organization:
>Environment:
NetBSD kaposzta.ipn.dynaweb.hu 2.99.14 NetBSD 2.99.14 (CUSTOM-050115) #0: Sat Jan 15 18:55:20 CET 2005  root@kaposzta.ipn.dynaweb.hu:/usr/src/sys/arch/i386/compile/CUSTOM-050115 i386
>Description:
FSC Amilo-A 76xx series notebook
D-Link DWL-650+ 802.11b card (acx100, unsupported)

When inserting (both cold insert and hot-plug) the above card, it drops
instantly to kdb:

uvm_fault (0xc0498160, 0xcab43000, 0, 1) -> 0xe
kernel: page fault trap, code=0
Stopped in pid 8.1 (cardslot0) at netbsd: cardbus_read_tuples+0x191:
repne movsb (%esi),%es:(%edi)
db>

The NetBSD 2.0 release does not exhibit this problem, it just detects
the card as unsupported (not configured).

More output follows, my workstation randomly crashes about twice each
hour and I'm 10-finger copying the kdb output ;)

>How-To-Repeat:
Just put the card in and you're there.
I suspect it's neither card nor host specific, but I might be wrong.

>Fix:

>Release-Note:

>Audit-Trail:
From: Rumi Szabolcs <rumi@rtfm.hu>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/28979
Date: Sun, 16 Jan 2005 09:25:17 +0100

 kdb output (hand copied when cold-inserting card then booting):

 cardbus0...
 pcmcia0
 cardbus1...
 pcmcia1...
 apm0 at mainbus0...
 uvm_fault (0xc0498160, 0xcab43000, 0, 1) -> 0xe
 kernel: page fault trap, code=0
 Stopped in pid 8.1 (cardslot0) at netbsd: cardbus_read_tuples+0x191:
 repne movsb (%esi), %es:(%edi)
 db > bt
 cardbus_read_tuples(cab39584,c02,cab39724,800,0) at netbsd:cardbus_read_tuples+0x191
 cardbus_rescan(c0a20c00,c04160e3,c047ae48,2,0) at netbsd:cardbus_rescan+0x4a6
 cardbus_attach_card(c0a20c00,0,0,246,0) at netbsd:cardbus_attach_card+0x39
 cardslot_event_thread(c0a1c980,522000,52a000,0,c0100321) at netbsd:cardslot_event_thread+0x1d0
 db> show registers
 ds	0x10
 es	0x10
 fs	0x30
 gs	0x10
 edi	0xcab39b24  usb_all_tasks+0xa68e5a8
 esi	0xcab43000  usb_all_tasks+0xa697a84
 ebp	0xcab3951c  usb_all_tasks+0xa68dfa0
 ebx	0xcab39724  usb_all_tasks+0xa68e1a8
 edx	0xcab39584  usb_all_tasks+0xa68e008
 ecx	0x400
 eax	0x1000
 eip	0xc036d835  cardbus_read_tuples+0x191
 cs	0x8
 eflags	0x10287
 esp	0xcab394d4  usb_all_tasks+0xa68df58
 ss	0x10
 netbsd:cardbus_read_tuples+0x191:	repne movsb	(%esi),%es:(%edi)
 db>

From: Rumi Szabolcs <rumi@rtfm.hu>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/28979
Date: Sun, 16 Jan 2005 09:29:04 +0100

 dmesg.boot without the card inserted:

 NetBSD 2.99.14 (CUSTOM-050115) #0: Sat Jan 15 18:55:20 CET 2005
 	root@kaposzta.ipn.dynaweb.hu:/usr/src/sys/arch/i386/compile/CUSTOM-050115
 total memory = 222 MB
 avail memory = 213 MB
 BIOS32 rev. 0 found at 0xfd740
 PCI BIOS rev. 2.1 found at 0xfd85e
 pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
 PCI IRQ Routing Table rev. 1.0 found at 0xfdef0, size 240 bytes (13 entries)
 PCI Interrupt Router at 000:07:0 (Acer Labs M1543 PCI-ISA Bridge compatible)
 ------------------------------------------
   device vendor product pin PIRQ IRQ stage
 ------------------------------------------
 000:03:0 0x10b9 0x5457   A  0x06  11  0    already assigned
 000:08:0 0x10b9 0x5451   A  0x07  11  0    already assigned
 000:09:0 0x10ec 0x8139   A  0x01  11  0    already assigned
 000:10:0 0x1106 0x3044   A  0x02   5  0    already assigned
 000:11:0 0x1524 0x1420   A  0x00  11  0    already assigned
 000:11:1 0x1524 0x1420   B  0x01  11  0    already assigned
 000:15:0 0x10b9 0x5237   A  0x04  10  0    already assigned
 001:05:0 0x1002 0x4336   A  0x02   5  0    already assigned
 ------------------------------------------
 PCI fixup examining 1002:cab0
 PCI fixup examining 1002:700f
 PCI fixup examining 1002:4336
 PCI bridge 0: primary 0, secondary 1, subordinate 1
 PCI fixup examining 10b9:5237
 PCI fixup examining 10b9:5457
 PCI fixup examining 10b9:5229
 PCI fixup examining 10b9:7101
 PCI fixup examining 10b9:1533
 PCI fixup examining 10b9:5451
 PCI fixup examining 10ec:8139
 PCI fixup examining 1106:3044
 PCI fixup examining 1524:1420
 PCI bridge 1: primary 0, secondary 2, subordinate 2
 PCI fixup examining 1524:1420
 PCI bridge 2: primary 0, secondary 3, subordinate 3
 PCI fixup examining 10b9:5237
 PCI bus #3 is the last bus
 [System BIOS Setting]-----------------------
   device vendor product
   register space address    size
 --------------------------------------------
 000:00:0 0x1002 0xcab0 
 	10h mem  0xf4000000 0x04000000
 	14h mem  0xf0800000 0x00001000
 	18h port 0x0000a010 0x00000004
 		[OK]
 000:01:0 0x1002 0x700f 
 		[OK]
 000:02:0 0x10b9 0x5237 
 	10h mem  0xf0400000 0x00001000
 		[OK]
 000:03:0 0x10b9 0x5457 
 	10h mem  0xf0401000 0x00001000
 	14h port 0x00008400 0x00000100
 		[OK]
 000:04:0 0x10b9 0x5229 
 	20h port 0x0000a000 0x00000010
 		[OK]
 000:06:0 0x10b9 0x7101 
 		[OK]
 000:07:0 0x10b9 0x1533 
 		[OK]
 000:08:0 0x10b9 0x5451 
 	10h port 0x00008800 0x00000100
 	14h mem  0xf0402000 0x00001000
 		[OK]
 000:09:0 0x10ec 0x8139 
 	10h port 0x00008c00 0x00000100
 	14h mem  0xf0406800 0x00000100
 		[OK]
 000:10:0 0x1106 0x3044 
 	10h mem  0xf0406000 0x00000800
 	14h port 0x00008080 0x00000080
 		[OK]
 000:11:0 0x1524 0x1420 
 	10h mem  0x00000000 0x00001000
 		[NG]
 000:11:1 0x1524 0x1420 
 	10h mem  0x00000000 0x00001000
 		[NG]
 000:15:0 0x10b9 0x5237 
 	10h mem  0xf0405000 0x00001000
 		[OK]
 001:05:0 0x1002 0x4336 
 	10h mem  0xf8000000 0x04000000
 	14h port 0x0000b000 0x00000100
 	18h mem  0xf0500000 0x00010000
 		[OK]
 --------------------------[  2 devices bogus]
  Physical memory end: 0x0deec000
  PCI memory mapped I/O space start: 0x0df00000
 [PCIBIOS fixup stage]-----------------------
   device vendor product
   register space address    size
 --------------------------------------------
 000:00:0 0x1002 0xcab0 
 	10h mem  0xf4000000 0x04000000
 	14h mem  0xf0800000 0x00001000
 	18h port 0x0000a010 0x00000004
 		[OK]
 000:01:0 0x1002 0x700f 
 		[OK]
 000:02:0 0x10b9 0x5237 
 	10h mem  0xf0400000 0x00001000
 		[OK]
 000:03:0 0x10b9 0x5457 
 	10h mem  0xf0401000 0x00001000
 	14h port 0x00008400 0x00000100
 		[OK]
 000:04:0 0x10b9 0x5229 
 	20h port 0x0000a000 0x00000010
 		[OK]
 000:06:0 0x10b9 0x7101 
 		[OK]
 000:07:0 0x10b9 0x1533 
 		[OK]
 000:08:0 0x10b9 0x5451 
 	10h port 0x00008800 0x00000100
 	14h mem  0xf0402000 0x00001000
 		[OK]
 000:09:0 0x10ec 0x8139 
 	10h port 0x00008c00 0x00000100
 	14h mem  0xf0406800 0x00000100
 		[OK]
 000:10:0 0x1106 0x3044 
 	10h mem  0xf0406000 0x00000800
 	14h port 0x00008080 0x00000080
 		[OK]
 000:11:0 0x1524 0x1420 
 	10h mem  0x0df00000 0x00001000
 		[OK]
 000:11:1 0x1524 0x1420 
 	10h mem  0x0df01000 0x00001000
 		[OK]
 000:15:0 0x10b9 0x5237 
 	10h mem  0xf0405000 0x00001000
 		[OK]
 001:05:0 0x1002 0x4336 
 	10h mem  0xf8000000 0x04000000
 	14h port 0x0000b000 0x00000100
 	18h mem  0xf0500000 0x00010000
 		[OK]
 --------------------------[  0 devices bogus]
 mainbus0 (root)
 cpu0 at mainbus0: (uniprocessor)
 cpu0: AMD Athlon (686-class), 1656.51 MHz, id 0x681
 cpu0: features c3cbf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
 cpu0: features c3cbf9ff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMXX,MMX>
 cpu0: features c3cbf9ff<FXSR,SSE,3DNOW2,3DNOW>
 cpu0: "mobile AMD Athlon (tm) 2000+    "
 cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
 cpu0: L2 cache 256 KB 64B/line 16-way
 cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
 cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
 cpu0: 8 page colors
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0
 pchb0: ATI Technologies product 0xcab0 (rev. 0x13)
 agp at pchb0 not configured
 ppb0 at pci0 dev 1 function 0: ATI Technologies product 0x700f (rev. 0x01)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 vga1 at pci1 dev 5 function 0: ATI Technologies Radeon Mobility U1 (rev. 0x00)
 wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
 wsmux1: connecting to wsdisplay0
 ohci0 at pci0 dev 2 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
 ohci0: interrupting at irq 11
 ohci0: OHCI version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 Acer Labs product 0x5457 (modem communications) at pci0 dev 3 function 0 not configured
 aceride0 at pci0 dev 4 function 0
 aceride0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc4)
 aceride0: bus-master DMA support present
 aceride0: primary channel configured to compatibility mode
 aceride0: primary channel interrupting at irq 14
 atabus0 at aceride0 channel 0
 aceride0: secondary channel configured to compatibility mode
 aceride0: secondary channel interrupting at irq 15
 atabus1 at aceride0 channel 1
 Acer Labs M7101 Power Management Controller (miscellaneous bridge) at pci0 dev 6 function 0 not configured
 pcib0 at pci0 dev 7 function 0
 pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0x00)
 autri0 at pci0 dev 8 function 0: Acer Labs M5451 AC-Link Controller Audio Device (rev. 0x02)
 autri0: interrupting at irq 11
 autri0: ac97: Avance Logic ALC202 codec; headphone, 20 bit DAC, 18 bit ADC, Realtek 3D
 audio0 at autri0: full duplex, mmap, independent
 midi0 at autri0: 4DWAVE MIDI UART
 rtk0 at pci0 dev 9 function 0: Realtek 8139 10/100BaseTX
 rtk0: interrupting at irq 11
 rtk0: Ethernet address 00:02:3f:ba:35:23
 ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
 ukphy0: OUI 0x000000, model 0x0000, rev. 0
 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 VIA Technologies VT6306 IEEE 1394 Host Controller (Firewire serial bus, interface 0x10, revision 0x46) at pci0 dev 10 function 0 not configured
 cbb0 at pci0 dev 11 function 0: ENE Technology CB1420 CardBus Controller (rev. 0x01)
 cbb1 at pci0 dev 11 function 1: ENE Technology CB1420 CardBus Controller (rev. 0x01)
 ohci1 at pci0 dev 15 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
 ohci1: interrupting at irq 10
 ohci1: OHCI version 1.0, legacy support
 usb1 at ohci1: USB revision 1.0
 uhub1 at usb1
 uhub1: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 isa0 at pcib0
 lpt0 at isa0 port 0x378-0x37b irq 7
 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0
 pms0 at pckbc0 (aux slot)
 pckbc0: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 pcppi0 at isa0 port 0x61
 midi1 at pcppi0: PC speaker
 spkr0 at pcppi0
 sysbeep0 at pcppi0
 isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
 npx0 at isa0 port 0xf0-0xff: using exception 16
 fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
 isapnp0: no ISA Plug 'n Play devices found
 cbb0: interrupting at irq 11
 cardslot0 at cbb0 slot 0 flags 0
 cardbus0 at cardslot0: bus 2 device 0
 pcmcia0 at cardslot0
 cbb1: interrupting at irq 11
 cardslot1 at cbb1 slot 1 flags 0
 cardbus1 at cardslot1: bus 3 device 0
 pcmcia1 at cardslot1
 apm0 at mainbus0: Power Management spec V1.2
 wd0 at atabus0 drive 0: <ST92011A>
 wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 wd0: 19077 MB, 38760 cyl, 16 head, 63 sec, 512 bytes/sect x 39070080 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
 wd0(aceride0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
 atapibus0 at atabus1: 2 targets
 cd0 at atapibus0 drive 0: <Slimtype COMBO LSC-24081M, , 3MC1> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(aceride0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 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)

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.