Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jun 2003 14:40:13 -0000
From:      Josh Elsasser <jre@vineyard.net>
To:        freebsd-mobile@freebsd.org
Subject:   Panic on pccard insertion
Message-ID:  <20030629144003.GA15434@jade.nat.elsasser.org>

next in thread | raw e-mail | index | archive | help

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I just grabbed a cheap prism2 card off ebay, and when I insert it into
my laptop, I instantly panic.  It doesn't always seem to leave a
crashdump, sometimes it just seems to spew ACPI errors instead.  I did
finally get it tp dump, and I've attached a backtrace from that, as
well as a dmesg.

This is on a Sony Vaio FX-200 running -CURRENT from last night.  The
card is a Belkin Wireless Notebook Network Card F506020 ver. 2.

I have also set hw.pci.allow_unsupported_io_range=1 in loader.conf, if
that is relevant.

If there is any other information I can provide, I will be happy to do
so.

 -jre

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=unknown-8bit
Content-Disposition: attachment; filename=osiris-panic
Content-Transfer-Encoding: 8bit

GNU gdb 5.2.1 (FreeBSD)
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-undermydesk-freebsd"...
panic: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0xd2577000
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc0177855
stack pointer	        = 0x10:0xd1c3894c
frame pointer	        = 0x10:0xd1c38b64
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 8 (cbb0)
trap number		= 12
panic: page fault

syncing disks, buffers remaining... 606 606 606 606 606 606 606 606 606 606 606 606 606 606 606 606 606 606 606 606 
giving up on 489 buffers
Uptime: 2m48s
Dumping 254 MB
ata0: resetting devices ..
done
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
---
Reading symbols from /usr/obj/usr/src/sys/OSIRIS/modules/usr/src/sys/modules/acpi/acpi.ko.debug...done.
Loaded symbols for /usr/obj/usr/src/sys/OSIRIS/modules/usr/src/sys/modules/acpi/acpi.ko.debug
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
240		dumping++;
(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
#1  0xc0228f73 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:372
#2  0xc02292e3 in panic () at /usr/src/sys/kern/kern_shutdown.c:550
#3  0xc0385022 in trap_fatal (frame=0xd1c3890c, eva=0)
    at /usr/src/sys/i386/i386/trap.c:836
#4  0xc0384d02 in trap_pfault (frame=0xd1c3890c, usermode=0, eva=3528945664)
    at /usr/src/sys/i386/i386/trap.c:750
#5  0xc03848cd in trap (frame=
      {tf_fs = -1031340008, tf_es = 16, tf_ds = -1034682352, tf_edi = 8, tf_esi = -775713928, tf_ebp = -775713948, tf_isp = -775714504, tf_ebx = 0, tf_edx = -766025728, tf_ecx = 1, tf_eax = 4096, tf_trapno = 12, tf_err = 0, tf_eip = -1072203691, tf_cs = 8, tf_eflags = 66050, tf_esp = -1031333120, tf_ss = -1033991680})
    at /usr/src/sys/i386/i386/trap.c:435
#6  0xc03756c8 in calltrap () at {standard input}:96
#7  0xc01776b4 in pccard_read_cis (sc=0x0)
    at /usr/src/sys/dev/pccard/pccard_cis.c:98
#8  0xc017504f in pccard_attach_card (dev=0xc25e8a00)
    at /usr/src/sys/dev/pccard/pccard.c:185
#9  0xc0165728 in CARD_ATTACH_CARD (dev=0xc25e8a00) at card_if.h:67
#10 0xc0165443 in exca_insert (exca=0xc253e140)
    at /usr/src/sys/dev/exca/exca.c:772
#11 0xc017c46e in cbb_insert (sc=0xc25e8a00)
    at /usr/src/sys/dev/pccbb/pccbb.c:1006
#12 0xc017c292 in cbb_event_thread (arg=0xc25d7400)
    at /usr/src/sys/dev/pccbb/pccbb.c:953
#13 0xc0214b90 in fork_exit (callout=0xc017c210 <cbb_event_thread>, arg=0x0, 
    frame=0x0) at /usr/src/sys/kern/kern_fork.c:794
(kgdb) bt full
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
No locals.
#1  0xc0228f73 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:372
No locals.
#2  0xc02292e3 in panic () at /usr/src/sys/kern/kern_shutdown.c:550
	td = (struct thread *) 0xc25eb5f0
	bootopt = 256
	newpanic = 1
	ap = 0xd1c38848 "\021#>Àت^Â\001"
	buf = "page fault", '\0' <repeats 245 times>
#3  0xc0385022 in trap_fatal (frame=0xd1c3890c, eva=0)
    at /usr/src/sys/i386/i386/trap.c:836
	code = 16
	type = 12
	ss = 16
	esp = 0
	softseg = {ssd_base = 0, ssd_limit = 1048575, ssd_type = 27, 
  ssd_dpl = 0, ssd_p = 1, ssd_xx = 0, ssd_xx1 = 0, ssd_def32 = 1, ssd_gran = 1}
#4  0xc0384d02 in trap_pfault (frame=0xd1c3890c, usermode=0, eva=3528945664)
    at /usr/src/sys/i386/i386/trap.c:750
	va = 3528945664
	vm = (struct vmspace *) 0x0
	map = (struct vm_map *) 0xc082f000
	rv = 1
	ftype = 1 '\001'
	td = (struct thread *) 0xc25eb5f0
	p = (struct proc *) 0xc25ea974
#5  0xc03848cd in trap (frame=
      {tf_fs = -1031340008, tf_es = 16, tf_ds = -1034682352, tf_edi = 8, tf_esi = -775713928, tf_ebp = -775713948, tf_isp = -775714504, tf_ebx = 0, tf_edx = -766025728, tf_ecx = 1, tf_eax = 4096, tf_trapno = 12, tf_err = 0, tf_eip = -1072203691, tf_cs = 8, tf_eflags = 66050, tf_esp = -1031333120, tf_ss = -1033991680})
    at /usr/src/sys/i386/i386/trap.c:435
	td = (struct thread *) 0xc25eb5f0
	p = (struct proc *) 0xc25ea974
	sticks = 245
	i = 0
	ucode = 0
	type = 12
	code = 0
	eva = 3528945664
#6  0xc03756c8 in calltrap () at {standard input}:96
No locals.
#7  0xc01776b4 in pccard_read_cis (sc=0x0)
    at /usr/src/sys/dev/pccard/pccard_cis.c:98
	state = {count = 0, gotmfc = 0, temp_cfe = {number = 0, flags = 0, 
    iftype = 0, num_iospace = 0, iomask = 0, iospace = {{length = 0, 
        start = 0}, {length = 0, start = 0}, {length = 0, start = 0}, {
        length = 0, start = 0}}, irqmask = 0, num_memspace = 0, memspace = {{
        length = 0, cardaddr = 0, hostaddr = 0}, {length = 0, cardaddr = 0, 
        hostaddr = 0}}, maxtwins = 0, iores = {0x0, 0x0, 0x0, 0x0}, iorid = {
      0, 0, 0, 0}, irqres = 0x0, irqrid = 0, memres = {0x0, 0x0}, memrid = {0, 
      0}, cfe_list = {stqe_next = 0x0}}, default_cfe = 0x0, card = 0xc25d7604, 
  pf = 0x0}
#8  0xc017504f in pccard_attach_card (dev=0xc25e8a00)
    at /usr/src/sys/dev/pccard/pccard.c:185
	sc = (struct pccard_softc *) 0xc25d7600
	pf = (struct pccard_function *) 0x8
	child = (struct device *) 0xd1c38b78
	i = 0
#9  0xc0165728 in CARD_ATTACH_CARD (dev=0xc25e8a00) at card_if.h:67
	_m = (int (*)(void)) 0
#10 0xc0165443 in exca_insert (exca=0xc253e140)
    at /usr/src/sys/dev/exca/exca.c:772
No locals.
#11 0xc017c46e in cbb_insert (sc=0xc25e8a00)
    at /usr/src/sys/dev/pccbb/pccbb.c:1006
	sockevent = 0
	sockstate = 3260277056
#12 0xc017c292 in cbb_event_thread (arg=0xc25d7400)
    at /usr/src/sys/dev/pccbb/pccbb.c:953
	sc = (struct cbb_softc *) 0xc25e8a00
	err = 0
#13 0xc0214b90 in fork_exit (callout=0xc017c210 <cbb_event_thread>, arg=0x0, 
    frame=0x0) at /usr/src/sys/kern/kern_fork.c:794
	td = (struct thread *) 0x0
	p = (struct proc *) 0xc25ea974

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=osiris-dmesg

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.1-CURRENT #52: Sun Jun 29 02:09:51 EDT 2003
    root@osiris:/usr/obj/usr/src/sys/OSIRIS
Preloaded elf kernel "/boot/kernel/kernel" at 0xc057e000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc057e2bc.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 794926254 Hz
CPU: Intel Pentium III (794.93-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 266862592 (254 MB)
avail memory = 253091840 (241 MB)
netsmb_dev: loaded
Pentium Pro MTRR support enabled
VESA: v3.0, 1024k memory, flags:0x1, mode table:0xc049fc20 (1000040)
VESA: Intel815M(TM) Graphics Chip Accelerated VGA BIOS
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <SONY   U0      > on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 9 entries at 0xc00fdf30
Timecounter "ACPI-fast"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_cpu0: <CPU> port 0x530-0x537 on acpi0
acpi_tz0: <thermal zone> port 0x530-0x537 on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 2 INTA is routed to irq 9
pcib0: possible interrupts:  9
pcib0: slot 31 INTD routed to irq 9 via \\_SB_.LNKD
pcib0: slot 31 INTB is routed to irq 9
pcib0: slot 31 INTC is routed to irq 9
pcib0: slot 31 INTB is routed to irq 9
pcib0: slot 31 INTB is routed to irq 9
agp0: <Intel 82815 (i815 GMCH) SVGA controller> mem 0xf4000000-0xf407ffff,0xf8000000-0xfbffffff irq 9 at device 2.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib1: slot 0 INTA is routed to irq 9
pcib1: slot 8 INTA is routed to irq 9
pci1: <serial bus, FireWire> at device 0.0 (no driver attached)
cbb0: <RF5C476 PCI-CardBus Bridge> at device 2.0 on pci1
start (88000000) < sc->membase (f4100000)
end (ffffffff) > sc->memlimit (f41fffff)
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pcib1: possible interrupts:  9
pcib1: slot 2 INTA routed to irq 9 via \\_SB_.LNKC
cbb1: <RF5C476 PCI-CardBus Bridge> at device 2.1 on pci1
start (88000000) < sc->membase (f4100000)
end (ffffffff) > sc->memlimit (f41fffff)
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pcib1: slot 2 INTB is routed to irq 9
fxp0: <Intel 82801BA/CAM (ICH2/3) Pro/100 Ethernet> port 0x3000-0x303f mem 0xf4104000-0xf4104fff irq 9 at device 8.0 on pci1
fxp0: Ethernet address 08:00:46:2b:b3:be
miibus0: <MII bus> on fxp0
inphy0: <i82562ET 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH2 UDMA100 controller> port 0x1800-0x180f at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0x1820-0x183f irq 9 at device 31.2 on pci0
usb0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
uhci1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> port 0x1840-0x185f irq 9 at device 31.4 on pci0
usb1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pcm0: <Intel 82801BA (ICH2)> port 0x1880-0x18bf,0x1c00-0x1cff irq 9 at device 31.5 on pci0
pcm0: <Analog Devices AD1881A AC97 Codec>
pci0: <simple comms> at device 31.6 (no driver attached)
speaker0 port 0x61 on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
acpi_ec0: <embedded controller> port 0x66,0x62 on acpi0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/15 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
acpi_cmbat0: <Control method Battery> on acpi0
acpi_cmbat1: <Control method Battery> on acpi0
acpi_acad0: <AC adapter> on acpi0
orm0: <Option ROMs> at iomem 0xdc000-0xdffff,0xd8000-0xdbfff,0xc0000-0xcbfff on isa0
pmtimer0 on isa0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
IP Filter: v3.4.31 initialized.  Default = pass all, Logging = enabled
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
ad0: 14307MB <IBM-DJSA-220> [29070/16/63] at ata0-master UDMA66
acd0: DVD-ROM <QSI DVD-ROM SDR-081> at ata1-master UDMA33
Mounting root from ufs:/dev/ad0s1a

--k1lZvvs/B4yU6o8G--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030629144003.GA15434>