From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 18 20:20:02 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14BC11065670 for ; Thu, 18 Sep 2008 20:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E3F9A8FC16 for ; Thu, 18 Sep 2008 20:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m8IKK1rb065743 for ; Thu, 18 Sep 2008 20:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m8IKK1If065742; Thu, 18 Sep 2008 20:20:01 GMT (envelope-from gnats) Resent-Date: Thu, 18 Sep 2008 20:20:01 GMT Resent-Message-Id: <200809182020.m8IKK1If065742@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alex Keda Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CD0A1065674 for ; Thu, 18 Sep 2008 20:15:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 600A88FC0C for ; Thu, 18 Sep 2008 20:15:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m8IKFsXp046915 for ; Thu, 18 Sep 2008 20:15:54 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m8IKFsYw046914; Thu, 18 Sep 2008 20:15:54 GMT (envelope-from nobody) Message-Id: <200809182015.m8IKFsYw046914@www.freebsd.org> Date: Thu, 18 Sep 2008 20:15:54 GMT From: Alex Keda To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/127480: ad4 detached when network starting X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2008 20:20:02 -0000 >Number: 127480 >Category: kern >Synopsis: ad4 detached when network starting >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 18 20:20:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Alex Keda >Release: CURRENT >Organization: USSR >Environment: FreeBSD acer.lissyara.int.otradno.ru 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Tue Sep 9 19:17:18 MSD 2008 lissyara@acer.lissyara.int.otradno.ru:/tmp/obj/usr/src/sys/main-color-console amd64 >Description: before Sep 9 all OK after update, I have errors: ======= first boot ========= Starting network: lo0. atapicam3: detached ad4: FAILURE - READ DMA status=51 error=0 Fatal trap 12: page fault while in kernel mode cpu id=1; apic id=01 fault virtual address = 0x0 fault code = supervisor read data, page not present instruction pointer = 0x8:0xffffffff80262d0c stack pointer = 0x10:0xfffffffe40039bb0 frame pointer = 0x10:0xfffffffe40039bf0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL0, pres 1, long 1, def 32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 3(g_up) [thread pid 3 tid 100010] stoped at ata_completed+0x68c: movzbl (%r9), %esi >db and laptop hangs... ====================================== second boot, single user mode - all OK, I run fsck, and type # exit (I`m not remember - mount or not root file system in 'rw' before go to multiuser mode) After >Starting network: lo0. box stay 2-3 minutes. I press power button, "Space" and "Enter" keys, and have: ACPI Error (evgpe-0848): no handler or method for GPE[1D], disabling event [20070320] ACPI Error (evgpe-0848): no handler or method for GPE[1D], disabling event [20070320] ath0: ath_chan_set:unable to reset channel 6 (2437 Mhz, flags 0x480 hal flags 0xc0), hal status 4294967295 atapicam3: detached subdisk4: detached ad4: detached atapicam2: detached Fatal trap9: general protection fault while in kernel mode cpuid = 0; apic id = 00 instruction pointer = 0x8:0xffffffff8024ae59 stack pointer = 0x10:0xfffffffe40065a50 frame pointer = 0x10:0xfffffffe40065a80 code segment = base 0x0, limit 0чаааааб type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 12 (swi6: task queue) [thread pid 12 tid 100018 ] Stoped ad ata_sata_setmode+0x29: mozvl 0xa4(%rax), %eax db> Back trace: db> bt Tracing pid 12 tid 100018 id 0xffffff0002217a20 ata_sata_setmode() at ata_sata_setmode+0x29 ad_init() at ad_init+0x5a ad_reinit() at ad_reinit+0x3c ata_reinit() at ata_reinit+0x288 ata_completed() at ata_completed+0x75 taskqueue_run() at taskqueue_run+0x96 intr_event_execute_handlers() at intr_event_execute_handlers+0x68 ithread_loop() at ithread_loop+0xb2 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xfffffffe40065d40, rbp = 0 --- db> ================== attempt 3... I boot in single user mode, run fsck, mount root file systems and # mv kernel kernel.bad # mv kernel.old kernel # sync # sync # exit when laptop boot, I see: wlan0: Ethernet address: 00:19:7d:7b:72:82 starting wpa_supplicant. Starting Network: lo0 atapicam3: detached subdisk4: detached ad4: detached atapicam2: detached g_vfs_done():ad4s1a[READ(offset=26222493696, length=12288)]error = 6 vnode_pager_getpages: I/O read error eval: /usr/bin/id: Input/output error g_vfs_done():ad4s1a[READ(offset=25825181696, length=65536)]error = 6 vnode_pager_getpages: I/O read error eval: /sbin/devd: Input/output error g_vfs_done():ad4s1a[READ(offset=26200400064, length=16384)]error = 6 /etc/rc: WARNING: faled to start devd g_vfs_done():ad4s1a[READ(offset=25820741632, length=5632)]error = 6 vnode_pager_getpages: I/O read error /etc/rc.d/ipfw: kldload: Input/output error g_vfs_done():ad4s1a[READ(offset=26200408064, length=16384)]error = 6 /etc/rc: WARNING: Unable to load kernel module ipfw panic: vinvalbuf: dirty bufs cpuid = 0 KDB: enter: panic [thread pid 474 tid 100085] Stoped at kdb_enter+0x3d: movq $0,0x63ede8(%rip) db> I input "bt", and have: Tracing pid 474 tid 100085 td 0xffffff00027556c0 kdb_enter() at kdb_enter+0x3d panic() at panic+0x176 bufobj_invalbuf() at bufobj_invalbuf+0xcd vgonel() at vgonel+0xca vgone() at vgone+0x39 devfs_delete() at devfs_delete+0x196 devfs_populate_loop() at devfs_populate_loop+0x1a2 devfs_populate() at devfs_populate+0x3b devfs_lookup() at devfs_lookup+0x296 VOP_LOOKUP_APV() at VOP_LOOKUP_APV+0x95 lookup() at lookup+0x4b2 namei() at namei+0x43f vn_open_cred() at vn_open_cred+0xb2 kern_openat() kern_openat+0x15e syscall() at syscall+0x1bf Xfast_syscall() at Xfast_syscall+0xab --- syscall (5, FreeBSD ELF64, open), rip = 0x8009999dc, rsp = 0x7fffffffdb28, rbp = 0x2 --- db> =========== Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #0: Wed Sep 17 23:49:56 MSD 2008 lissyara@acer.lissyara.int.otradno.ru:/usr/obj/usr/src/sys/color-console WARNING: WITNESS option enabled, expect reduced performance. link_elf_obj: Weak symbols not supported link_elf_obj: symbol uart_quicc_class undefined KLD file uart.ko - could not finalize loading Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-50 (1596.01-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x40f82 Stepping = 2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1f Cores per package: 2 usable memory = 1559175168 (1486 MB) avail memory = 1505361920 (1435 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.10.5.10 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, RF2417) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, 1000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0x9000-0x90ff mem 0xd4000000-0xd7ffffff,0xd0100000-0xd010ffff irq 17 at device 5.0 on pci1 acpi_video0: on vgapci0 pcib2: at device 4.0 on pci0 pci2: on pcib2 pcib3: at device 5.0 on pci0 pci4: on pcib3 atapci0: port 0x8440-0x8447,0x8434-0x8437,0x8438-0x843f,0x8430-0x8433,0x8400-0x840f mem 0xd0004000-0xd00041ff irq 22 at device 18.0 on pci0 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ohci0: mem 0xd0005000-0xd0005fff irq 19 at device 19.0 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 4 ports with 4 removable, self powered ohci1: mem 0xd0006000-0xd0006fff irq 19 at device 19.1 on pci0 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 4 ports with 4 removable, self powered ehci0: mem 0xd0007000-0xd0007fff irq 19 at device 19.2 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb2: EHCI version 1.0 usb2: companion controllers, 4 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: on usb2 uhub2: 8 ports with 8 removable, self powered pci0: at device 20.0 (no driver attached) atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8420-0x842f at device 20.1 on pci0 ata0: on atapci1 ata0: [ITHREAD] ata1: on atapci1 ata1: [ITHREAD] hdac0: mem 0xd0000000-0xd0003fff irq 16 at device 20.2 on pci0 hdac0: hdac0: [ITHREAD] isab0: at device 20.3 on pci0 isa0: on isab0 pcib4: at device 20.4 on pci0 pci6: on pcib4 rl0: port 0xa000-0xa0ff mem 0xd0210000-0xd02100ff irq 21 at device 1.0 on pci6 miibus0: on rl0 rlphy0: PHY 0 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:16:d4:b1:a2:a8 rl0: [ITHREAD] ath0: mem 0xd0200000-0xd020ffff irq 22 at device 2.0 on pci6 ath0: [ITHREAD] ath0: WARNING: using obsoleted if_watchdog interface ath0: mac 7.8 phy 4.5 radio 5.6 cbb0: mem 0xd0211000-0xd0211fff irq 20 at device 4.0 on pci6 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb0: [ITHREAD] pci6: at device 4.1 (no driver attached) pci6: at device 4.2 (no driver attached) pci6: at device 4.3 (no driver attached) pci6: at device 4.4 (no driver attached) acpi_tz0: on acpi0 atrtc0: port 0x70-0x71 irq 8 on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model Generic PS/2 mouse, device ID 0 battery0: on acpi0 acpi_acad0: on acpi0 cpu0: on acpi0 powernow0: on cpu0 cpu1: on acpi0 powernow1: on cpu1 orm0: at iomem 0xc0000-0xcefff,0xcf000-0xcffff on isa0 ppc0: cannot reserve I/O port range sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ums0: on uhub0 ums0: 3 buttons and Z dir. Timecounters tick every 1.000 msec acd0: DVDR at ata0-master UDMA33 ad4: 76319MB at ata2-master SATA150 hdac0: hdac0: hdac0: hdac_command_send_internal: TIMEOUT numcmd=1, sent=1, received=0 hdac0: hdac_command_send_internal: TIMEOUT numcmd=1, sent=1, received=0 hdac0: Codec #3 is not responding! Probing aborted. pcm0: on hdac0 pcm1: on hdac0 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 cd0 at ata0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present SMP: AP CPU #1 Launched! WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/ad4s1a lock order reversal: 1st 0xffffff00025a1000 vfslock (vfslock) @ /usr/src/sys/kern/vfs_subr.c:372 2nd 0xffffff00024c5d80 devfs (devfs) @ /usr/src/sys/kern/vfs_lookup.c:432 3rd 0xffffff00025a0c80 vfslock (vfslock) @ /usr/src/sys/kern/vfs_subr.c:372 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x7d8 __lockmgr_args() at __lockmgr_args+0xca8 vfs_busy() at vfs_busy+0xe7 vfs_mount_alloc() at vfs_mount_alloc+0x88 vfs_donmount() at vfs_donmount+0xdad kernel_mount() at kernel_mount+0xa1 kernel_vmount() at kernel_vmount+0xce vfs_mountroot_try() at vfs_mountroot_try+0x102 vfs_mountroot() at vfs_mountroot+0x3f0 start_init() at start_init+0x62 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xfffffffe40011d40, rbp = 0 --- WARNING: / was not properly dismounted lock order reversal: 1st 0xffffff00025ab270 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2051 2nd 0xffffff00025a1000 vfslock (vfslock) @ /usr/src/sys/kern/vfs_subr.c:372 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x7d8 __lockmgr_args() at __lockmgr_args+0xca8 vfs_busy() at vfs_busy+0xe7 lookup() at lookup+0x8c2 namei() at namei+0x43f kern_unlinkat() at kern_unlinkat+0x9d vfs_mountroot_try() at vfs_mountroot_try+0x418 vfs_mountroot() at vfs_mountroot+0x3f0 start_init() at start_init+0x62 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xfffffffe40011d40, rbp = 0 --- lock order reversal: 1st 0xffffff000220e070 user map (user map) @ /usr/src/sys/vm/vm_map.c:3115 2nd 0xffffff00025ab098 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2051 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x7d8 __lockmgr_args() at __lockmgr_args+0xca8 ffs_lock() at ffs_lock+0x8c VOP_LOCK1_APV() at VOP_LOCK1_APV+0x9b _vn_lock() at _vn_lock+0x47 vget() at vget+0x92 vnode_pager_lock() at vnode_pager_lock+0x1d3 vm_fault() at vm_fault+0x1e2 trap_pfault() at trap_pfault+0x128 trap() at trap+0x51c calltrap() at calltrap+0x8 --- trap 0xc, rip = 0x40014f, rsp = 0x7fffffffee70, rbp = 0x7fffffffee90 --- >How-To-Repeat: >Fix: update source before 9 september and build kernel >Release-Note: >Audit-Trail: >Unformatted: