From owner-freebsd-usb@FreeBSD.ORG Mon Nov 6 09:00:54 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 598A016A403 for ; Mon, 6 Nov 2006 09:00:54 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B63843D5D for ; Mon, 6 Nov 2006 09:00:54 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kA690r7C001295 for ; Mon, 6 Nov 2006 09:00:53 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kA690rsu001291; Mon, 6 Nov 2006 09:00:53 GMT (envelope-from gnats) Date: Mon, 6 Nov 2006 09:00:53 GMT Message-Id: <200611060900.kA690rsu001291@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/105186: USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2006 09:00:54 -0000 The following reply was made to PR usb/105186; it has been noted by GNATS. From: Hans Petter Selasky To: Undisclosed.Recipients: ; Cc: "O. Hartmann" , freebsd-gnats-submit@freebsd.org Subject: Re: usb/105186: USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box Date: Mon, 6 Nov 2006 09:56:07 +0100 On Sunday 05 November 2006 22:31, O. Hartmann wrote: > >Number: 105186 > >Category: usb > >Synopsis: USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box > >Confidential: no > >Severity: critical > >Priority: high > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sun Nov 05 21:40:26 GMT 2006 > >Closed-Date: > >Last-Modified: > >Originator: O. Hartmann > >Release: FreeBSD 6.2-PRE/AMD64 > >Organization: > > Freie Universit=E4t Berlin > > >Environment: > > FreeBSD foo.org 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #8: Sat Nov 4 > 11:23:20 UTC 2006 root@foo.org:/usr/obj/usr/src/sys/FOO amd64 > > >Description: > > FreeBSD 6.2-PRE/AMD64 crashes after first access of USB 2.0 devices, like > external disk attached via USB or USB stick. > > The crash occurs very rapidly after a fresh start of the box and accessing > a backup drive (see appropriate dmesg output) writing data. Also accessing > a USB stick very often results in a crash of the box! > > One can alos trigger a crash by accessing the USB 2.0 device while box is > under heavy load. > > Doesn't matter whether SCHED_ULE or SCHED_4BSD is used. > > Kernel uses ehci for performance reasons. > > Crashes occur in most cases on our AMD64 based boxes, the i386 based 32 B= it > boxes with same OS version seem to be more robust. > > As USB is widely used and many colleagues use USB sticks and USB > backup/exchange external drives, usability and stability of USB becomes > important. > > dmesg part of USB device controller: > > usb0: OHCI version 1.0, legacy support > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 10 ports with 10 removable, self powered > ehci0: mem 0xdcdfbc00-0xdcdfbcff irq = 22 > at device 11.1 on pci0 ehci0: [GIANT-LOCKED] > usb1: EHCI version 1.0 > usb1: companion controller, 4 ports each: usb0 > usb1: on ehci0 > usb1: USB revision 2.0 > uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 > uhub1: 10 ports with 10 removable, self powered > umass0: Macpower &Tytech Tech USB2.0 Enclosure, rev 2.00/1.00, addr 2 > > dmesg part of USB 2.0 external HD: > > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: 190782MB (390721968 512 byte sectors: 255H 63S/T 24321C) > > > dmesg USB stick: > > umass1: vendor 0x0457 USB Mass Storage Device, rev 2.00/1.00, addr 3 > da1 at umass-sim1 bus 1 target 0 lun 0 > da1: Removable Direct Access SCSI-2 device > da1: 40.000MB/s transfers > da1: 1000MB (2048000 512 byte sectors: 64H 32S/T 1000C) > GEOM_LABEL: Label for provider da1 is msdosfs/STICK01. > > >How-To-Repeat: > > Attach USB 2.0 device to AMD64 box and do a lot of I/O ... > > >Fix: > > Nothing known. Switching back to USB 1.0/1.1 via ohci isn't a solution due > to the worse performance. > > >Release-Note: > >Audit-Trail: > >Unformatted: Hi, Could you have tried my new USB driver and see if it has the same problem: # # First install /usr/ports/devel/subversion # Then: # svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b # # The following commands will # install the driver on FreeBSD: # cd i4b/trunk/i4b/FreeBSD.usb make S=3D../src package make install The source is also available from perforce: http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=3D//depot/projects/us= b&HIDEDEL=3DNO =2D-HPS