From owner-freebsd-current@FreeBSD.ORG Sun Jan 1 19:50:08 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C64116A420 for ; Sun, 1 Jan 2006 19:50:08 +0000 (GMT) (envelope-from pbowen@fastmail.fm) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3884D43D7D for ; Sun, 1 Jan 2006 19:49:58 +0000 (GMT) (envelope-from pbowen@fastmail.fm) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id D23E5D2E2AA for ; Sun, 1 Jan 2006 14:49:56 -0500 (EST) Received: from frontend2.messagingengine.com ([10.202.2.151]) by frontend1.internal (MEProxy); Sun, 01 Jan 2006 14:49:56 -0500 X-Sasl-enc: E4pE6sPr/enkj+WPBnsH4RB4IcZmPckdl+19eDFyHScf 1136144995 Received: from [192.168.205.79] (unknown [12.109.105.194]) by frontend2.messagingengine.com (Postfix) with ESMTP id C408C571482 for ; Sun, 1 Jan 2006 14:49:55 -0500 (EST) Message-ID: <43B83262.1090907@fastmail.fm> Date: Sun, 01 Jan 2006 13:49:54 -0600 From: Patrick Bowen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: multipart/mixed; boundary="------------090708090503060709080407" Subject: Kernel panics when Atheros card plugged in. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jan 2006 19:50:08 -0000 This is a multi-part message in MIME format. --------------090708090503060709080407 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello and Happy New Year; I just bought a D-Link DWL-G630 Wireless G Adapter for my laptop (Dell Latitude C-600), and it worked fine until I cvsup'ed last nights sources (12/31/05) and did canonical rebuild. Now the machine panics whenever I plug the card in. sg1# uname -a FreeBSD sg1.sgc.org 7.0-CURRENT FreeBSD 7.0-CURRENT #3: Sun Jan 1 10:51:32 CST 2006 pbowen@sg1.sgc.org:/usr/obj/usr/src/sys/GENERIC i386 I've included dmesg as attachment. sg1# kgdb kernel.debug /var/crash/vmcore.0 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 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-marcel-freebsd". Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0xd6975000 fault code = supervisor read, page not present instruction pointer = 0x20:0xc04fc2a8 stack pointer = 0x28:0xd4497748 frame pointer = 0x28:0xd4497754 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 = 22 (cbb1) panic: from debugger cpuid = 0 Uptime: 40s Dumping 511 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 511MB (130779 pages) 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 #0 doadump () at pcpu.h:166 166 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) list *0xc04fc2a8 0xc04fc2a8 is in cardbus_read_tuple_mem (bus.h:225). 220 bus_size_t offset) 221 { 222 223 if (tag == I386_BUS_SPACE_IO) 224 return (inb(handle + offset)); 225 return (*(volatile u_int8_t *)(handle + offset)); 226 } 227 228 static __inline u_int16_t 229 bus_space_read_2(bus_space_tag_t tag, bus_space_handle_t handle, (kgdb) bt #0 doadump () at pcpu.h:166 #1 0xc06539f8 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:399 #2 0xc0653d0d in panic (fmt=0xc08493c3 "from debugger") at /usr/src/sys/kern/kern_shutdown.c:555 #3 0xc046a7c1 in db_panic (addr=-1068514648, have_addr=0, count=-1, modif=0xd4497518 "") at /usr/src/sys/ddb/db_command.c:435 #4 0xc046a758 in db_command (last_cmdp=0xc0933d84, cmd_table=0x0, aux_cmd_tablep=0xc08ad950, aux_cmd_tablep_end=0xc08ad96c) at /usr/src/sys/ddb/db_command.c:404 #5 0xc046a820 in db_command_loop () at /usr/src/sys/ddb/db_command.c:455 #6 0xc046c439 in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:221 #7 0xc066e134 in kdb_trap (type=12, code=0, tf=0xd4497708) at /usr/src/sys/kern/subr_kdb.c:485 #8 0xc0813aac in trap_fatal (frame=0xd4497708, eva=3600240640) at /usr/src/sys/i386/i386/trap.c:853 #9 0xc08137ef in trap_pfault (frame=0xd4497708, usermode=0, eva=3600240640) at /usr/src/sys/i386/i386/trap.c:770 #10 0xc0813409 in trap (frame= {tf_fs = -1019150328, tf_es = -2013265880, tf_ds = -733413336, tf_edi = 20480, tf_esi = 1, tf_ebp = -733382828, tf_isp = -733382860, tf_ebx = -733382736, tf_edx = -694747136, tf_ecx = -694747136, tf_eax = 20480, tf_trapno = 12, tf_err = 0, tf_eip = -1068514648, tf_cs = 32, tf_eflags = 590338, tf_esp = -73338273 2, tf_ss = -733382736}) at /usr/src/sys/i386/i386/trap.c:455 #11 0xc07ffb1a in calltrap () at /usr/src/sys/i386/i386/exception.s:137 #12 0xc04fc2a8 in cardbus_read_tuple_mem (cbdev=0xc341c180, res=0xd44977b0, start=20480, off=0xd44977b0, tupleid=0x5000, len=0xd44977b8, tupledata=0xd44977c4 "") at bus.h:224 #13 0xc04fc35e in cardbus_read_tuple (cbdev=0xc341c180, child=0xc37f6800, res=0xd6970000, start=20480, off=0xd44977b0, tupleid=0xd44977b4, len=0xd6970000, tupledata=0x5000
) at /usr/src/sys/dev/cardbus/cardbus_cis.c:460 #14 0xc04fc9ec in cardbus_parse_cis (cbdev=0xc341c180, child=0xc37f6800, callbacks=0xd4497bf4, argp=0x0) at /usr/src/sys/dev/cardbus/cardbus_cis.c:647 #15 0xc04fcaa2 in cardbus_do_cis (cbdev=0xc341c180, child=0xc37f6800) at /usr/src/sys/dev/cardbus/cardbus_cis.c:693 #16 0xc04fb5e8 in cardbus_attach_card (cbdev=0xc341c180) at /usr/src/sys/dev/cardbus/cardbus.c:195 #17 0xc058a3ee in cbb_insert (sc=0xc33e0000) at card_if.h:82 #18 0xc058a21d in cbb_event_thread (arg=0xc33e0000) at /usr/src/sys/dev/pccbb/pccbb.c:507 #19 0xc063fd74 in fork_exit (callout=0xc058a0f4 , arg=0xc33e0000, frame=0xd4497d38) at /usr/src/sys/kern/kern_fork.c:790 #20 0xc07ffb7c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:198 (kgdb) q sg1# I'm not at the point where I can tell exactly what the problen is, but the "out of bounds" at #13 looks suspect to me. Can anyone tell me whats going wrong here? Thanks, Patrick --------------090708090503060709080407 Content-Type: text/plain; name="dmesg.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dmesg.txt" Copyright (c) 1992-2006 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 7.0-CURRENT #3: Sun Jan 1 10:51:32 CST 2006 pbowen@sg1.sgc.org:/usr/obj/usr/src/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel Pentium III (751.71-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x68a Stepping = 10 Features=0x383f9ff real memory = 536719360 (511 MB) avail memory = 515596288 (491 MB) ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 acpi_acad0: on acpi0 battery0: on acpi0 battery1: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: on hostb0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xec00-0xecff mem 0xf8000000-0xfbffffff,0xfdffc000-0xfdffffff irq 11 at device 0.0 on pci1 cbb0: at device 3.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb1: at device 3.1 on pci0 cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x860-0x86f at device 7.1 on pci0 ata0: on atapci0 ata1: on atapci0 uhci0: port 0xdce0-0xdcff irq 11 at device 7.2 on pci0 uhci0: [GIANT-LOCKED] 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 7.3 (no driver attached) pcm0: port 0xd800-0xd8ff mem 0xf3ffe000-0xf3ffffff irq 5 at device 8.0 on pci0 pcm0: xl0: <3Com 3c556 Fast Etherlink XL> port 0xd400-0xd4ff mem 0xf3ffdc00-0xf3ffdc7f,0xf3ffd800-0xf3ffd87f irq 11 at device 16.0 on pci0 miibus0: on xl0 tdkphy0: on miibus0 tdkphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:04:76:48:c7:b2 pci0: at device 16.1 (no driver attached) acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 fdc0: port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A ppc0: port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 ppi0: on ppbus0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0 sc0: 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: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 751707939 Hz quality 800 Timecounters tick every 1.000 msec ad0: 19077MB at ata0-master UDMA33 acd0: CDRW at ata1-master PIO4 Trying to mount root from ufs:/dev/ad0s2a WARNING: / was not properly dismounted WARNING: /tmp was not properly dismounted WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted wi0: at port 0x100-0x13f irq 11 function 0 config 1 on pccard0 wi0: using RF:PRISM2.5 MAC:ISL3873 wi0: Intersil Firmware: Primary (1.1.0), Station (1.4.9) wi0: Ethernet address: 00:04:e2:80:34:be --------------090708090503060709080407--