From owner-freebsd-mobile@FreeBSD.ORG Sun Jun 29 07:40:12 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D56C137B401 for ; Sun, 29 Jun 2003 07:40:12 -0700 (PDT) Received: from vineyard.net (k1.vineyard.net [204.17.195.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 468F943FEA for ; Sun, 29 Jun 2003 07:40:11 -0700 (PDT) (envelope-from joshe@jade.elsasser.org) Received: from localhost (loopback [127.0.0.1]) by vineyard.net (Postfix) with ESMTP id 214289215D for ; Sun, 29 Jun 2003 10:40:10 -0400 (EDT) Received: from vineyard.net ([127.0.0.1]) by localhost (king1.vineyard.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 77016-02 for ; Sun, 29 Jun 2003 10:40:09 -0400 (EDT) Received: from jade.elsasser.org (loopback [127.0.0.1]) by vineyard.net (Postfix) with ESMTP id 89784920B6 for ; Sun, 29 Jun 2003 10:40:08 -0400 (EDT) Received: by jade.elsasser.org (Postfix, from userid 1000) id 7BF2F14778A; Sun, 29 Jun 2003 10:40:04 -0400 (EDT) From: Josh Elsasser To: freebsd-mobile@freebsd.org Message-ID: <20030629144003.GA15434@jade.nat.elsasser.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.1i X-PGP-Key-URL: http://www.elsasser.org/pubkey.asc X-PGP-Key-Fingerprint: 8F39 9F2B 3738 54D9 3E40 4604 CFD5 EA3F B833 FD50 X-Virus-Scanned: by AMaViS at Vineyard.NET Subject: Panic on pccard insertion X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2003 14:40:13 -0000 X-List-Received-Date: Sun, 29 Jun 2003 14:40:13 -0000 X-List-Received-Date: Sun, 29 Jun 2003 14:40:13 -0000 X-List-Received-Date: Sun, 29 Jun 2003 14:40:13 -0000 Date: Sun, 29 Jun 2003 14:40:13 -0000 X-Original-Date: Sun, 29 Jun 2003 10:40:03 -0400 X-List-Received-Date: Sun, 29 Jun 2003 14:40:13 -0000 --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 , 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' #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 , 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 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: on motherboard npx0: INT 16 interface acpi0: 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: port 0x530-0x537 on acpi0 acpi_tz0: port 0x530-0x537 on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: 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: mem 0xf4000000-0xf407ffff,0xf8000000-0xfbffffff irq 9 at device 2.0 on pci0 pcib1: at device 30.0 on pci0 pci1: on pcib1 pcib1: slot 0 INTA is routed to irq 9 pcib1: slot 8 INTA is routed to irq 9 pci1: at device 0.0 (no driver attached) cbb0: at device 2.0 on pci1 start (88000000) < sc->membase (f4100000) end (ffffffff) > sc->memlimit (f41fffff) cardbus0: 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: at device 2.1 on pci1 start (88000000) < sc->membase (f4100000) end (ffffffff) > sc->memlimit (f41fffff) cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 pcib1: slot 2 INTB is routed to irq 9 fxp0: port 0x3000-0x303f mem 0xf4104000-0xf4104fff irq 9 at device 8.0 on pci1 fxp0: Ethernet address 08:00:46:2b:b3:be miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1800-0x180f at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0x1820-0x183f irq 9 at device 31.2 on pci0 usb0: 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: at device 31.3 (no driver attached) uhci1: port 0x1840-0x185f irq 9 at device 31.4 on pci0 usb1: 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: port 0x1880-0x18bf,0x1c00-0x1cff irq 9 at device 31.5 on pci0 pcm0: pci0: at device 31.6 (no driver attached) speaker0 port 0x61 on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0 acpi_ec0: 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: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port acpi_cmbat0: on acpi0 acpi_cmbat1: on acpi0 acpi_acad0: on acpi0 orm0: