From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 29 20:20:08 2011 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B78871065676 for ; Fri, 29 Apr 2011 20:20:08 +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 94CBB8FC19 for ; Fri, 29 Apr 2011 20:20:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p3TKK8wA039606 for ; Fri, 29 Apr 2011 20:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p3TKK8n1039605; Fri, 29 Apr 2011 20:20:08 GMT (envelope-from gnats) Resent-Date: Fri, 29 Apr 2011 20:20:08 GMT Resent-Message-Id: <201104292020.p3TKK8n1039605@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Arnaud Lacombe Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE9FF106566C for ; Fri, 29 Apr 2011 20:12:25 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id BDE568FC18 for ; Fri, 29 Apr 2011 20:12:25 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p3TKCPSN091981 for ; Fri, 29 Apr 2011 20:12:25 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p3TKCPuH091980; Fri, 29 Apr 2011 20:12:25 GMT (envelope-from nobody) Message-Id: <201104292012.p3TKCPuH091980@red.freebsd.org> Date: Fri, 29 Apr 2011 20:12:25 GMT From: Arnaud Lacombe To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 X-Mailman-Approved-At: Sat, 30 Apr 2011 02:01:19 +0000 Cc: Subject: amd64/156725: USB stack stall cause complete system input loss X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2011 20:20:08 -0000 >Number: 156725 >Category: amd64 >Synopsis: USB stack stall cause complete system input loss >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 29 20:20:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Arnaud Lacombe >Release: 8.2-STABLE >Organization: n/a >Environment: FreeBSD shai 8.2-STABLE FreeBSD 8.2-STABLE #1: Wed Mar 9 15:22:10 EST 2011 >Description: The problem happened twice in the following condition: - high frequency attach/detach of a USB adapter - failure to detach snd_uaudio(4) Symptoms is a complete loss of the USB stack. Already plugged devices continue to work, but trying to attach new devices fails Dmesg: real memory = 4294967296 (4096 MB) avail memory = 4088045568 (3898 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 2 cpu2 (AP): APIC ID: 4 cpu3 (AP): APIC ID: 6 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) unknown: I/O range not supported Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 3.0 on pci0 pci1: on pcib1 vgapci0: port 0xfc00-0xfcff mem 0xc0000000-0xcfffffff,0xdf9e0000-0xdf9effff irq 16 at device 0.0 on pci1 vgapci1: mem 0xdf9f0000-0xdf9fffff at device 0.1 on pci1 pcib2: at device 5.0 on pci0 pci2: on pcib2 pci0: at device 8.0 (no driver attached) pci0: at device 8.1 (no driver attached) pci0: at device 8.2 (no driver attached) pci0: at device 8.3 (no driver attached) pci0: at device 16.0 (no driver attached) pci0: at device 16.1 (no driver attached) ehci0: mem 0xdf8fa000-0xdf8fa3ff irq 22 at device 26.0 on pci0 ehci0: [ITHREAD] usbus0: EHCI version 1.0 usbus0: on ehci0 pcib3: at device 28.0 on pci0 pci3: on pcib3 pcib4: at device 28.4 on pci0 pci4: on pcib4 bge0: mem 0xdfaf0000-0xdfafffff irq 16 at device 0.0 on pci4 bge0: CHIP ID 0x0000a200; ASIC REV 0x0a; CHIP REV 0xa2; PCI-E miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge0: Ethernet address: 00:26:b9:7b:36:90 bge0: [FILTER] pcib5: at device 28.5 on pci0 pci5: on pcib5 ehci1: mem 0xdf8fc000-0xdf8fc3ff irq 22 at device 29.0 on pci0 ehci1: [ITHREAD] usbus1: EHCI version 1.0 usbus1: on ehci1 pcib6: at device 30.0 on pci0 pci6: on pcib6 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xecd0-0xecd7,0xecc8-0xeccb,0xecd8-0xecdf,0xeccc-0xeccf,0xece0-0xecff mem 0xdf8fe000-0xdf8fe7ff irq 20 at device 31.2 on pci0 atapci0: [ITHREAD] atapci0: AHCI called from vendor specific driver atapci0: AHCI v1.30 controller with 6 3Gbps ports, PM supported ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] ata5: on atapci0 ata5: [ITHREAD] ata6: on atapci0 ata6: [ITHREAD] ata7: on atapci0 ata7: [ITHREAD] acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 atrtc0: port 0x70-0x7f irq 8 on acpi0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 uart1: [FILTER] orm0: at iomem 0xc0000-0xcefff,0xcf000-0xcffff,0xec000-0xeffff on isa0 atkbd: unable to set the command byte. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: unable to set the command byte. est0: on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 13 device_attach: est0 attach returned 6 p4tcc0: on cpu0 est1: on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 13 device_attach: est1 attach returned 6 p4tcc1: on cpu1 est2: on cpu2 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 13 device_attach: est2 attach returned 6 p4tcc2: on cpu2 est3: on cpu3 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 13 device_attach: est3 attach returned 6 p4tcc3: on cpu3 Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 ad4: 238418MB at ata2-master UDMA100 SATA 3Gb/s ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ad6: 152627MB at ata3-master UDMA100 SATA 3Gb/s acd0: DVDROM at ata6-master UDMA100 SATA 1.5Gb/s SMP: AP CPU #2 Launched! SMP: AP CPU #1 Launched! SMP: AP CPU #3 Launched! Root mount waiting for: usbus1 usbus0 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered ugen0.2: at usbus0ugen1.2: at usbus1 uhub2: on usbus0 uhub3: on usbus1 Root mount waiting for: usbus1 usbus0 uhub2: 6 ports with 6 removable, self powered uhub3: 8 ports with 8 removable, self powered ugen1.3: at usbus1 uhub4: on usbus1 Root mount waiting for: usbus1 uhub4: 7 ports with 7 removable, self powered Root mount waiting for: usbus1 ugen1.4: at usbus1 uplcom0: on usbus1 Root mount waiting for: usbus1 ugen1.5: at usbus1 uplcom1: on usbus1 ugen1.6: at usbus1 ums0: on usbus1 ums0: 3 buttons and [XYZ] coordinates ID=0 Root mount waiting for: usbus1 ugen1.7: at usbus1 ukbd0: on usbus1 kbd2 at ukbd0 ums1: on usbus1 ugen1.8: at usbus1 Root mount waiting for: usbus1 uhid0: on usbus1 Trying to mount root from ufs:/dev/ad4s1a bge0: link state changed to UP drm0: on vgapci0 >How-To-Repeat: happens randomly from a user point of view. >Fix: ACPI-shutdown the machine. ie. the USB stack recovers during the shutdown process; plugged devices are attached, but at this point, it becomes too late to stop the shutdown process. >Release-Note: >Audit-Trail: >Unformatted: