From owner-freebsd-usb@FreeBSD.ORG Sun Feb 6 17:05:06 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FC3916A4CE for ; Sun, 6 Feb 2005 17:05:06 +0000 (GMT) Received: from web61006.mail.yahoo.com (web61006.mail.yahoo.com [216.155.196.95]) by mx1.FreeBSD.org (Postfix) with SMTP id 8B49243D3F for ; Sun, 6 Feb 2005 17:05:05 +0000 (GMT) (envelope-from federicogalvezdurand@yahoo.com) Received: (qmail 21407 invoked by uid 60001); 6 Feb 2005 17:05:05 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=vqQX3msqXJb2w3fIaKwFC75/EINMMtrupbRgLiW5q3IJtMk/tanT55RqJU4c1Jrfv5kUMt/p2ohqBlEUintPkYtpE8V7alQ32s0SQ0CvidkEv2+aeau1DOE0DgpLnfcxgw7FLQ4nRhLBb9aq32NzWuIxKlShWGJm/HCyXmCvagQ= ; Message-ID: <20050206170505.21405.qmail@web61006.mail.yahoo.com> Received: from [83.76.153.17] by web61006.mail.yahoo.com via HTTP; Sun, 06 Feb 2005 09:05:04 PST Date: Sun, 6 Feb 2005 09:05:04 -0800 (PST) From: Federico Galvez-Durand To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: USB CDRW ScanLogic: Quirk does not work? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 17:05:06 -0000 http://lists.freebsd.org/pipermail/freebsd-usb/2004-December/000318.html Hello, I am replying to my own message, in case it is interesting for someone else. I managed to mount my CDRW (using ScanLogic SL11R) by patching umass.c (patch enclosed at the end of this email) Unfortunately it is not recognised as a CD device but as a DA device. I can do "mount -t cd9660 /dev/da0 /mnt" and read a video file with fairly good quality. Now I am trying to figure out why it is not recognised as a CD device. Obviously, cdrecord does not find any CDRW device. I did not achieve my primary goal yet: write a data CD. Fico patch applied to umass.c ($FreeBSD: src/sys/dev/usb/umass.c,v 1.117 2004/11/28 21:49:30 iedowse Exp $) --- umass.c.orig Sun Feb 6 17:02:16 2005 +++ umass.c Sun Feb 6 17:35:22 2005 @@ -313,4 +313,6 @@ /* Device cannot handle INQUIRY EVPD, return CHECK CONDITION */ # define NO_INQUIRY_EVPD 0x0800 + /* Device has firmware problems*/ +# define WRONG_CSWTag 0x1000 }; @@ -420,5 +422,5 @@ { USB_VENDOR_SCANLOGIC, USB_PRODUCT_SCANLOGIC_SL11R, RID_WILDCARD, UMASS_PROTO_ATAPI | UMASS_PROTO_BBB, - NO_INQUIRY + NO_INQUIRY | WRONG_CSWTag }, { USB_VENDOR_SHUTTLE, USB_PRODUCT_SHUTTLE_EUSB, RID_WILDCARD, @@ -1614,14 +1616,16 @@ umass_bbb_reset(sc, STATUS_WIRE_FAILED); return; - } else if (UGETDW(sc->csw.dCSWTag) - != UGETDW(sc->cbw.dCBWTag)) { - printf("%s: Invalid CSW: tag %d should be %d\n", - USBDEVNAME(sc->sc_dev), - UGETDW(sc->csw.dCSWTag), - UGETDW(sc->cbw.dCBWTag)); - - umass_bbb_reset(sc, STATUS_WIRE_FAILED); - return; - + } else if (UGETDW(sc->csw.dCSWTag) != UGETDW(sc->cbw.dCBWTag)) { + if (sc->quirks & WRONG_CSWTag) { + USETDW(sc->csw.dCSWTag,UGETDW(sc->cbw.dCBWTag)); + } else { + printf("%s: Invalid CSW: tag %d should be %d\n", + USBDEVNAME(sc->sc_dev), + UGETDW(sc->csw.dCSWTag), + UGETDW(sc->cbw.dCBWTag)); + + umass_bbb_reset(sc, STATUS_WIRE_FAILED); + return; + } /* CSW is valid here */ } else if (sc->csw.bCSWStatus > CSWSTATUS_PHASE) { __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-usb@FreeBSD.ORG Sun Feb 6 17:17:22 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01BB016A4CE for ; Sun, 6 Feb 2005 17:17:22 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0483643D1F for ; Sun, 6 Feb 2005 17:17:21 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j16HHCwA005796 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sun, 6 Feb 2005 18:17:15 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j16HGL55057336 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 6 Feb 2005 18:16:22 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j16HGLFp081486; Sun, 6 Feb 2005 18:16:21 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j16HGIgS081485; Sun, 6 Feb 2005 18:16:18 +0100 (CET) (envelope-from ticso) Date: Sun, 6 Feb 2005 18:16:18 +0100 From: Bernd Walter To: Hans Petter Selasky Message-ID: <20050206171618.GP64689@cicely12.cicely.de> References: <002701c50b96$d43525e0$8b33bb81@beast1000> <200502051823.47280.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200502051823.47280.hselasky@c2i.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: Eugene Rogoza cc: freebsd-usb@freebsd.org Subject: Re: USB does not recognize any dynamically plugged devices - problem fixed X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 17:17:22 -0000 On Sat, Feb 05, 2005 at 06:23:46PM +0100, Hans Petter Selasky wrote: > On Saturday 05 February 2005 16:24, Eugene Rogoza wrote: > > > uhci0: port 0x1820-0x183f irq > > > 11 at device 29.0 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 > > > uhci1: port 0x1840-0x185f irq > > > 10 at device 29.1 on pci0 > > > uhci1: [GIANT-LOCKED] > > > 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 > > > uhci2: port 0x1860-0x187f irq > > > 10 at device 29.2 on pci0 > > > uhci2: [GIANT-LOCKED] > > > usb2: on uhci2 > > > usb2: USB revision 1.0 > > > uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > > > uhub2: 2 ports with 2 removable, self powered > > > > Dear all, > > > > To be able to detect USB devices after system startup one has to compile > > "device ehci" into kernel along with "device ohci" or "device uhci". > > Actually it may work without EHCI for a while (as it was with me), but > > further there is no guarantee. > > > > There is no string "device ehci" even in GENERIC kernel, so I guess one > > should be kept aware of turning this feature on either by some notice or by > > including that string into GENERIC configuration file in future releases. > > The reason for not having "device ehci" in GENERIC was something about missing > support for USB2.0 HUBs. When one has got a USB2.0 HUB and "device ehci" in > the kernel config file, then the HUB will probe as USB2.0, which is not > supported for HUBs, else USB1.x. So maybe your problem is a reason to push > support for USB2.0 HUBs? ehci shouldn't be required to get low/full speed support. The compatibilty with systems ignoring the ehci part is part of the ehci specs. If you are seeing problems without then it's more likely that your BIOS has activated the ehci controller without us to know so that the uhci controllers wait for the ehci to hand over newly attached devices. Your BIOS shouldn't break USB 1.1 fallback support. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Sun Feb 6 23:50:20 2005 Return-Path: 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 26E3216A4DB for ; Sun, 6 Feb 2005 23:50:20 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF6C143D45 for ; Sun, 6 Feb 2005 23:50:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j16NoJYf052084 for ; Sun, 6 Feb 2005 23:50:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j16NoJib052082; Sun, 6 Feb 2005 23:50:19 GMT (envelope-from gnats) Resent-Date: Sun, 6 Feb 2005 23:50:19 GMT Resent-Message-Id: <200502062350.j16NoJib052082@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yuri Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5ABF16A4CE for ; Sun, 6 Feb 2005 23:47:11 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEB1A43D31 for ; Sun, 6 Feb 2005 23:47:11 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j16NlBfX019748 for ; Sun, 6 Feb 2005 23:47:11 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j16NlBt0019744; Sun, 6 Feb 2005 23:47:11 GMT (envelope-from nobody) Message-Id: <200502062347.j16NlBt0019744@www.freebsd.org> Date: Sun, 6 Feb 2005 23:47:11 GMT From: Yuri To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/77184: kernel panic on USB device disconnect X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 23:50:20 -0000 >Number: 77184 >Category: usb >Synopsis: kernel panic on USB device disconnect >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 06 23:50:19 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Yuri >Release: 5.3-STABLE >Organization: NA >Environment: FreeBSD xxx.xxx.org 5.3-STABLE FreeBSD 5.3-STABLE #1: Sun Feb 6 03:08:18 PST 2005 root@xxx.xxx.org:/usr/obj/usr/src/sys/GENERIC i386 >Description: I connected Sony F828 camera (unsupported currently), and disconnected after a stall. Got kernel panic. Even if device is unknown should be no panic whenever you connect/disconnect it. -- screen messages -- -- first message was umass0: Sony F828 connected ...(lost here) -- after a while: umass0: CBI reset failed, STALLED umass0: CBI bulk-in stall clear failed, STALLED umass0: CBI bulk-out stall clear failed, STALLED -- here I disconnected the camera Fatal trap 18: integer divide fault while in kernel mode instruction pointer = 0x8:0xc07c42d3 stack pointer = 0x10:0xe51a17d8 frame pointer = 0x10:0xe51a1860 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 = 44 (swi3:cambio) trap number = 18 panic: integer divide fault >How-To-Repeat: Buy Sony-F828, connect to FreeBSD :) >Fix: NA >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon Feb 7 00:13:19 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F51316A4CE for ; Mon, 7 Feb 2005 00:13:19 +0000 (GMT) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34A4F43D1D for ; Mon, 7 Feb 2005 00:13:13 +0000 (GMT) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: from ednmsw503.dsto.defence.gov.au (ednmsw503.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id j170BuGX006244 for ; Mon, 7 Feb 2005 10:41:57 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by ednmsw503.dsto.defence.gov.au (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Mon, 7 Feb 2005 10:42:57 +1030 Received: from ednex501.dsto.defence.gov.au (ednex501.dsto.defence.gov.au [131.185.2.81]) by muttley.dsto.defence.gov.au (8.11.3/8.11.3) with ESMTP id j1706eQ16782 for ; Mon, 7 Feb 2005 10:36:40 +1030 (CST) Received: from squash.dsto.defence.gov.au ([131.185.40.212]) by ednex501.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id YK39H3ZQ; Mon, 7 Feb 2005 10:36:35 +1030 Received: from squash.dsto.defence.gov.au (localhost [127.0.0.1]) by squash.dsto.defence.gov.au (8.12.11/8.12.11) with ESMTP id j1708lXL050790 for ; Mon, 7 Feb 2005 10:38:47 +1030 (CST) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by squash.dsto.defence.gov.au (8.12.11/8.12.11/Submit) id j1708lQN050789 for usb@freebsd.org; Mon, 7 Feb 2005 10:38:47 +1030 (CST) (envelope-from wilkinsa) Date: Mon, 7 Feb 2005 10:38:47 +1030 From: "Wilkinson, Alex" To: usb@freebsd.org Message-ID: <20050207000846.GD50431@squash.dsto.defence.gov.au> Mail-Followup-To: usb@freebsd.org References: <20050107064748.GE18554@squash.dsto.defence.gov.au> <41DE4E52.2040301@elischer.org> <20050111000956.GB32601@squash.dsto.defence.gov.au> <20050111013925.GD32601@squash.dsto.defence.gov.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20050111013925.GD32601@squash.dsto.defence.gov.au> User-Agent: Mutt/1.5.6i Subject: Re: [USB] JetFlash TS1GJF2B 2.00 Attempt to query devicesizefailed: UNIT ATTENTION [WORK AROUND X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 00:13:19 -0000 0n Tue, Jan 11, 2005 at 12:09:25PM +1030, Wilkinson, Alex wrote: > 0n Tue, Jan 11, 2005 at 10:39:56AM +1030, Wilkinson, Alex wrote: > > > >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > > >> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > > >> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > > >> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > > >> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > > >> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have > > >> changed > > >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > >Okay, I'm trying to make sense of the aforementioned debug output. > >1. (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > > I'm suspecting that this means that the READ CAPACITY command > failed, therefore we are unable to determine the device's > physical parameters. > >2. (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > > Looks like we are waiting to for the device to become ready to be > accessed. > >3. (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed > > This 'Additional Sense Code' seems to be where it fails. Looking at > the RBC specs we should see an ASC/ASCQ of 'NEW MEDIA READY FOR > ACCESS'. However, we don't. > >This is as far as I can go without having my hand held. I would dearly >like to get this UMASS device working. > >Can any USB wizards please suggest quirks etc that could result in a >solution. removing 'device ehci' from my kernel allows this usb thumb drive to work. umass0: USB Flash Disk, rev 2.00/2.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: 1000MB (2048000 512 byte sectors: 64H 32S/T 1000C) What sux is that I cannot utilse the speed of USB 2.0 ;( - aW From owner-freebsd-usb@FreeBSD.ORG Mon Feb 7 03:39:18 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B10916A4CE; Mon, 7 Feb 2005 03:39:18 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74A8543D31; Mon, 7 Feb 2005 03:39:17 +0000 (GMT) (envelope-from amistry@am-productions.biz) Received: from [192.168.1.100] (adsl-68-77-186-245.dsl.wotnoh.ameritech.net [68.77.186.245]) (authenticated bits=0)j173D5mQ056947 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sun, 6 Feb 2005 22:13:07 -0500 (EST) (envelope-from amistry@am-productions.biz) From: Anish Mistry To: freebsd-usb@freebsd.org Date: Sun, 6 Feb 2005 22:43:08 -0500 User-Agent: KMail/1.7 References: <200502062347.j16NlBt0019744@www.freebsd.org> In-Reply-To: <200502062347.j16NlBt0019744@www.freebsd.org> Organization: AM Productions MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1546316.UxGLJDRl3M"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502062243.21390.amistry@am-productions.biz> X-Spam-Status: No, hits=0.8 required=5.0 tests=BIZ_TLD autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on crumpet.united-ware.com cc: Yuri cc: freebsd-gnats-submit@freebsd.org Subject: Re: usb/77184: kernel panic on USB device disconnect X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 03:39:18 -0000 --nextPart1546316.UxGLJDRl3M Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I got a similar panic on -CURRENT a couple months ago, also with a Sony=20 camera, but I don't have access to it for the next few weeks to test. =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart1546316.UxGLJDRl3M Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCBuPZxqA5ziudZT0RAhavAJ4iTSE+lh7VvLz/U8NmzgDXbLmwVwCeKazG J9H8JTL3nNzBPWUbgOgs038= =uZ1g -----END PGP SIGNATURE----- --nextPart1546316.UxGLJDRl3M-- From owner-freebsd-usb@FreeBSD.ORG Mon Feb 7 03:40:20 2005 Return-Path: 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 E5BB516A4CF for ; Mon, 7 Feb 2005 03:40:20 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C618843D2D for ; Mon, 7 Feb 2005 03:40:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j173eKTp078190 for ; Mon, 7 Feb 2005 03:40:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j173eK6I078189; Mon, 7 Feb 2005 03:40:20 GMT (envelope-from gnats) Date: Mon, 7 Feb 2005 03:40:20 GMT Message-Id: <200502070340.j173eK6I078189@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Anish Mistry Subject: Re: usb/77184: kernel panic on USB device disconnect X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Anish Mistry List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 03:40:21 -0000 The following reply was made to PR usb/77184; it has been noted by GNATS. From: Anish Mistry To: freebsd-usb@freebsd.org Cc: Yuri , freebsd-gnats-submit@freebsd.org Subject: Re: usb/77184: kernel panic on USB device disconnect Date: Sun, 6 Feb 2005 22:43:08 -0500 --nextPart1546316.UxGLJDRl3M Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I got a similar panic on -CURRENT a couple months ago, also with a Sony=20 camera, but I don't have access to it for the next few weeks to test. =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart1546316.UxGLJDRl3M Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCBuPZxqA5ziudZT0RAhavAJ4iTSE+lh7VvLz/U8NmzgDXbLmwVwCeKazG J9H8JTL3nNzBPWUbgOgs038= =uZ1g -----END PGP SIGNATURE----- --nextPart1546316.UxGLJDRl3M-- From owner-freebsd-usb@FreeBSD.ORG Mon Feb 7 11:01:55 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0333416A4FE for ; Mon, 7 Feb 2005 11:01:55 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C13B543D46 for ; Mon, 7 Feb 2005 11:01:54 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j17B1sQB059442 for ; Mon, 7 Feb 2005 11:01:54 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j17B1rG8059436 for freebsd-usb@freebsd.org; Mon, 7 Feb 2005 11:01:53 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 7 Feb 2005 11:01:53 GMT Message-Id: <200502071101.j17B1rG8059436@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 11:01:55 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2001/12/12] kern/32713 usb [usb] mouse detaches from hub and doesnt f [2002/01/13] kern/33839 usb usb0: host controller halted (involving A f [2002/04/07] i386/36850 usb Page Fault using ppp with USB Modem [4.9] f [2002/06/24] kern/39805 usb 4.6R install panics with umass0 device co o [2002/07/19] kern/40792 usb signals lead to data loss on device ugen o [2002/12/10] kern/46176 usb umass causes kernel panic if device remov o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I o [2002/12/29] kern/46618 usb USB (UHCI/ICH3) PALM connect/disconnect/c o [2003/02/17] kern/48359 usb SiS 5597/8 USB + uscanner breakage a [2003/03/02] kern/48849 usb Maxtor XT5000 causes panic in boot o [2003/03/05] kern/48952 usb uscanner0 hangs a [2003/03/20] kern/50149 usb Using Alcatel SpeedTouch results in "usb0 a [2003/08/14] kern/55587 usb null dereference in usbdi.c: usb_transfer o [2003/09/26] bin/57255 usb usbd and multi-function devices f [2003/12/11] kern/60131 usb [usb] Page fault on disconnect of USB dev s [2003/12/15] kern/60276 usb [usb] Kernel panic when plugging in USB ( o [2004/01/11] kern/61191 usb [usb] panic: USB vs. Serial problems o [2004/01/15] kern/61377 usb [kbd] usb keyboard not functional after b o [2004/01/20] kern/61627 usb [usb] [patch] New USB printer not support f [2004/01/23] kern/61804 usb [panic] panic with hitachi travelstar USB o [2004/01/24] kern/61841 usb [boot] 5.2 Boot freeze if memorybird (USB f [2004/01/30] kern/62088 usb [usb] Logitech Cordless/Optical Mouse not o [2004/01/30] kern/62123 usb [usb] LaCie 160GB USB drive umass: BBB re o [2004/02/23] i386/63251 usb [usb] USB stops working after 2nd APM sus o [2004/02/26] kern/63375 usb [patch] panic: unplugging USB devices pan o [2004/03/01] kern/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/04/07] kern/65292 usb [panic] random page faults (usb-related?) o [2004/04/19] i386/65783 usb [panic] Panic when attaching card reader o [2004/07/13] kern/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] kern/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/09/27] kern/72119 usb Detaching USB Memory Stick w/o umount cau f [2004/10/11] i386/72497 usb WD USB Disk Panics -stable and 5.2.1 o [2004/10/29] kern/73295 usb Lock order reversal in USB code. o [2004/10/30] kern/73307 usb Kernel panics on USB disconnect o [2004/11/18] kern/74088 usb ohci ehci uhub: port disabled on connecti o [2005/01/08] usb/75941 usb system halted during booting due to ehci o [2005/01/13] usb/76204 usb panic while using usb attached modem o [2005/01/18] usb/76395 usb USB printer does not work, usbdevs says " o [2005/01/21] usb/76554 usb Panram "yoyo" USB MP3 player causes panic o [2005/01/21] usb/76555 usb PNY USB DISK 2.0 USB thumbdrive causes wo o [2005/01/25] usb/76684 usb Toshiba PDR-M4 camera connected via USB h o [2005/01/25] usb/76687 usb ugen USB_SET_TIMEOUT panics kernel when t o [2005/01/26] usb/76727 usb usb printing locks machine o [2005/01/30] usb/76847 usb ukbd panics on boot o [2005/02/06] usb/77184 usb kernel panic on USB device disconnect 45 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/09/30] conf/30929 usb [patch] use usbd to initialize USB ADSL m o [2001/12/09] kern/32652 usb [patch] A new ioctl to uscanner s [2001/12/09] ports/32653 usb Added patches to improve USB scanner supp f [2002/04/23] kern/37374 usb [PATCH] closing ums0 blocks with wmesg uh f [2002/05/04] conf/37732 usb usbd start in wrong place in /etc/rc in 4 o [2002/05/23] kern/38452 usb [usb] Logitech USB iFeel: device_probe_an o [2002/07/16] kern/40657 usb [usb] Logitech iFeel usb mouse will not a o [2002/07/24] kern/40948 usb [usb] USB HP CDW8200 does not work o [2002/08/07] kern/41415 usb [usb] [patch] Some USB scanners cannot ta f [2002/08/30] bin/42213 usb moused(8) seems to delay some mouse event f [2002/10/25] kern/44450 usb USB support FAILURE for device that was s o [2003/01/18] kern/47200 usb USB port is disabled when Kodak DX4900 is o [2003/02/06] kern/48014 usb [usb] moused fails to correctly identify o [2003/02/16] bin/48342 usb [PATCH] usbd dynamic device list. o [2003/03/19] kern/50110 usb [usb] Astra 2100U scanner being detected o [2003/05/08] kern/51958 usb [usb] [patch] update for urio driver o [2003/05/10] kern/52026 usb [usb] feature request: umass driver suppo f [2003/05/19] bin/52432 usb [sysinstall] drivers.flp won't load with o [2003/06/08] kern/53025 usb [PATCH] ugen does not allow O_NONBLOCK fo f [2003/09/19] kern/56999 usb FreeCom USB CD/RW problem on FreeBSD 5.1 o [2003/11/10] i386/59147 usb [usb] USB active extension cable not reco o [2003/11/11] kern/59169 usb [patch] ulpt is missing read operation o [2003/12/15] kern/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] bin/61234 usb [usb] [patch] usbhidaction doesn't suppor o [2004/01/14] kern/61365 usb FreeBSD resets when I turn off monitor w/ o [2004/02/13] kern/62788 usb need quirks for Super Talent Flash USB 2. o [2004/03/04] kern/63779 usb [usb] USB-mass storage (USB to IDE Conver o [2004/03/06] kern/63837 usb [patch] USB: hid_is_collection() only loo o [2004/04/11] kern/65436 usb QUIRK: [patch] to add support for PNY Att o [2004/04/19] kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops o [2004/05/11] kern/66547 usb [usb] Palm Tungsten T USB does not initia o [2004/06/27] kern/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/07/06] i386/68719 usb [usb] USB 2.0 mobil rack+ fat32 performan o [2004/08/16] kern/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] kern/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] kern/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] kern/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] kern/71455 usb [usb] Slow USB umass performance of 5.3 o [2004/09/11] kern/71605 usb [usb] [patch] umass doesn't recognize mul o [2004/10/05] kern/72344 usb [usb] [patch] QUIRK: Dane-Elec zMate 512 f [2004/10/06] i386/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/23] i386/73056 usb [usb] Sun Microsystems Type 6 USB mouse n o [2004/11/02] i386/73421 usb [usb] USB not recgnized/working on Toshib o [2004/11/16] kern/73999 usb [usb] USB Freezes when a device is plugge o [2005/01/07] usb/75928 usb Cytronix SmartMedia card (SMC) reader has o [2005/01/19] usb/76461 usb disklabel of umass(4)-CAM(4)-da(4) not us o [2005/01/27] usb/76732 usb Mouse problems with USB KVM Switch 47 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Feb 8 07:19:55 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E364316A4CE; Tue, 8 Feb 2005 07:19:55 +0000 (GMT) Received: from smtp.thilelli.net (smtp.thilelli.net [213.41.129.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF64943D39; Tue, 8 Feb 2005 07:19:54 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 1AA057306E; Tue, 8 Feb 2005 08:19:49 +0100 (CET) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24517-01-7; Tue, 8 Feb 2005 08:19:44 +0100 (CET) Received: from webmail.thilelli.net (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 816947306D; Tue, 8 Feb 2005 08:19:44 +0100 (CET) Received: from 192.168.1.18 (SquirrelMail authenticated user jgabel); by webmail.thilelli.net with HTTP; Tue, 8 Feb 2005 08:19:44 +0100 (CET) Message-ID: <54591.192.168.1.18.1107847184.squirrel@192.168.1.18> Date: Tue, 8 Feb 2005 08:19:44 +0100 (CET) From: "Julien Gabel" To: bug-followup@FreeBSD.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at thilelli.net cc: freebsd-acpi@freebsd.org cc: freebsd-usb@freebsd.org Subject: Re: kern/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jpeg@thilelli.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2005 07:19:56 -0000 Just a side note, the desktop on which the problem (still) occurs follow the RELENG_5 branch and the build used at this time is as follow: FreeBSD 5.3-STABLE #0: Fri Feb 4 05:38:57 CET 2005 But since mid/end-december 2004 (for ~2 months now _approximatively_) i encountered systematically an interrupt storm from the USB host controller which prevent me inevitably to be able to use all of ly USB devices: Interrupt storm detected on "irq10: uhci0 uhci1+"; throttling interrupt source In this context, if i reenable ACPI support on boot, i didn't see any interrupt storm problem anymore... but i still can't use USB on this system. So, i now had an unusable USB system: - ACPI disable / uhci interrupt storm (doesn't even get the device created on the fly) => unusable USB devices - ACPI enable / "conflict" with USB stack (doesn't even get the device created on the fly) => unusable USB devices Any advice? -- -jpeg. PS: Please CC me, since i am not a suscriber of freebsd-acpi@ nor freebsd-usb@. From owner-freebsd-usb@FreeBSD.ORG Tue Feb 8 09:45:26 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6739916A4CE for ; Tue, 8 Feb 2005 09:45:26 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 574CF43D55 for ; Tue, 8 Feb 2005 09:45:21 +0000 (GMT) (envelope-from anthony.wyatt@gmail.com) Received: by rproxy.gmail.com with SMTP id f1so889777rne for ; Tue, 08 Feb 2005 01:45:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=r4sQ4Nt82i4sgoDGEo8tlvWoaaebJZ4Ocy7f5C6GeAdPh9J2+uA9yU33Q4HlcvncF9OMX2KQTMOW1tzTAkL1AY3c15dMcwAaO+7xxe9vhdP/gYESuol9qtDj9CwwzUWu2QBJnJ8ySFEKezjV7w7S597tuyRmtY1qRcpQly4IAew= Received: by 10.38.13.9 with SMTP id 9mr216586rnm; Tue, 08 Feb 2005 01:45:20 -0800 (PST) Received: by 10.38.162.54 with HTTP; Tue, 8 Feb 2005 01:45:20 -0800 (PST) Message-ID: <992db33b050208014526bb0c31@mail.gmail.com> Date: Tue, 8 Feb 2005 20:45:20 +1100 From: Anthony Wyatt To: freebsd-usb@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Need help quirking my HDD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Anthony Wyatt List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2005 09:45:26 -0000 Hi Everyone, I'm having problems getting this most out of my USB 2.0 HDD. This is my dmesg: umass0: Cypress Semiconductor USB2.0 Storage Device, rev 2.00/0.01, addr 2 ehci_idone: need toggle update status=80018d40 nstatus=80008c80 umass0: Get Max Lun not supported (STALLED) da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 190782MB (390721968 512 byte sectors: 255H 63S/T 24321C) As you can see 1MB/s for a USB2 device is quite sad, and I'm not really sure where to start to fix it. Any help would be greatly appreciated. Thanks in advance, Anthony From owner-freebsd-usb@FreeBSD.ORG Tue Feb 8 11:11:19 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2546216A4CE for ; Tue, 8 Feb 2005 11:11:19 +0000 (GMT) Received: from web41203.mail.yahoo.com (web41203.mail.yahoo.com [66.218.93.36]) by mx1.FreeBSD.org (Postfix) with SMTP id D4EEB43D5E for ; Tue, 8 Feb 2005 11:11:18 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 92637 invoked by uid 60001); 8 Feb 2005 11:11:18 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=NiUwH9ZdXFObylKlxcKmGHLwqoAKiVdbPuvEeh3MrpZtW6jMf3DOTtKv88p1w+NXpehxCwyywbsNp1QlDVIMzG1AjKtzesCDY6lolaAjP61hVPUB2W0T2llfwMNoMuKIZKwJNiKSMaZJMVD4ILDjmKf0kOyd75jKuhWFUbKXh/E= ; Message-ID: <20050208111118.92635.qmail@web41203.mail.yahoo.com> Received: from [83.129.195.204] by web41203.mail.yahoo.com via HTTP; Tue, 08 Feb 2005 03:11:17 PST Date: Tue, 8 Feb 2005 03:11:17 -0800 (PST) From: Arne "Wörner" To: Anthony Wyatt , freebsd-usb@freebsd.org In-Reply-To: <992db33b050208014526bb0c31@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Need help quirking my HDD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2005 11:11:19 -0000 --- Anthony Wyatt wrote: > I'm having problems getting this most out of my USB 2.0 HDD. > [...] > As you can see 1MB/s for a USB2 device is quite sad, and I'm > not really sure where to start to fix it. > It might be even worse. As far as I have been told, the 1MB/s are just a quick shot by the CAM system. In reality the transfer rate might be lower... Have you tried a dd of=/dev/null bs=128k count=1000 if=/dev/da0 from that device? -Arne __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 From owner-freebsd-usb@FreeBSD.ORG Tue Feb 8 11:43:37 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD58A16A4CE for ; Tue, 8 Feb 2005 11:43:37 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0902143D48 for ; Tue, 8 Feb 2005 11:43:36 +0000 (GMT) (envelope-from anthony.wyatt@gmail.com) Received: by rproxy.gmail.com with SMTP id f1so901309rne for ; Tue, 08 Feb 2005 03:43:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=aQfygJfSYbPSjsaWFN+kSjk/oXcDIzQH6zi386LFfqBoL85wferD666vNCDCTEm/1uGr9SiOJdapoUr/ztZf/MEHsMziAT9+odedcYlld9wIQ6TVm9Ithc3QwCBLBQQIL2Tnot57FcNfC+o3ZRY7CgUVknqnmliHo60/g6MT2B4= Received: by 10.38.73.27 with SMTP id v27mr282684rna; Tue, 08 Feb 2005 03:43:32 -0800 (PST) Received: by 10.38.162.54 with HTTP; Tue, 8 Feb 2005 03:43:32 -0800 (PST) Message-ID: <992db33b05020803437055a32@mail.gmail.com> Date: Tue, 8 Feb 2005 22:43:32 +1100 From: Anthony Wyatt To: Sebastien B In-Reply-To: <200502081103.23967.sebastien.b@swissinfo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <992db33b050208014526bb0c31@mail.gmail.com> <200502081103.23967.sebastien.b@swissinfo.org> cc: freebsd-usb@freebsd.org Subject: Re: Need help quirking my HDD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Anthony Wyatt List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2005 11:43:37 -0000 I did a test and this is the output: server# dd of=/dev/null bs=128k count=1000 if=/dev/da0 1000+0 records in 1000+0 records out 131072000 bytes transferred in 8.085032 secs (16211686 bytes/sec) Which is around 16MB/s. I'm using it as a backup device so it should complete my backups around 16 times faster now :-) Thanks for all your help, Anthony On Tue, 8 Feb 2005 11:03:23 +0100, Sebastien B wrote: > > As you can see 1MB/s for a USB2 device is quite sad, and I'm not > > really sure where to start to fix it. > > I have the same message (with the same hardware), but my transfers are > actually 25MB/s, no matter what dmesg says. > Just make sure ehci is enabled in your kernel, it is not by default. > > From owner-freebsd-usb@FreeBSD.ORG Wed Feb 9 00:50:22 2005 Return-Path: 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 12E1D16A4CE for ; Wed, 9 Feb 2005 00:50:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E76C043D41 for ; Wed, 9 Feb 2005 00:50:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j190oLAa061916 for ; Wed, 9 Feb 2005 00:50:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j190oLSB061915; Wed, 9 Feb 2005 00:50:21 GMT (envelope-from gnats) Date: Wed, 9 Feb 2005 00:50:21 GMT Message-Id: <200502090050.j190oLSB061915@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Marcin Wisnicki Subject: Re: usb/76204: panic while using usb attached modem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Marcin Wisnicki List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 00:50:22 -0000 The following reply was made to PR usb/76204; it has been noted by GNATS. From: Marcin Wisnicki To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: usb/76204: panic while using usb attached modem Date: Wed, 09 Feb 2005 01:49:55 +0100 I have this problem (same backtrace) too on via vt8235 with ATEN/IOGEAR UC232A usb2serial adapter and isdn modem attached to it, using /usr/sbin/ppp, always connected. It seems to happen only under high load. usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 addr 2: full speed, self powered, config 1, DeskJet 920C(0x1504), Hewlett-Packard(0x03f0), rev 1.00 port 2 addr 3: full speed, power 100 mA, config 1, PL2303 Serial adapter (ATEN/IOGEAR UC232A)(0x2303), Prolific Technology(0x067b), rev 2.02 uplcom.c with latest change (1.20.2.4) 5.3-STABLE i386 Wed Jan 26 21:49:03 CET 2005 (kgdb) bt #0 doadump () at pcpu.h:159 #1 0xc04b1693 in boot (howto=0x104) at /usr/src/sys/kern/kern_shutdown.c:410 #2 0xc04b19eb in panic (fmt=0xc0784024 "uhci_abort_xfer: not in process context") at /usr/src/sys/kern/kern_shutdown.c:566 #3 0xc0770eda in uhci_abort_xfer (xfer=0xc4a52000, status=USBD_NORMAL_COMPLETION) at /usr/src/sys/modules/usb/../../dev/usb/uhci.c:1956 #4 0xc07706a9 in uhci_timeout_task (addr=0x0) at /usr/src/sys/modules/usb/../../dev/usb/uhci.c:1534 #5 0xc0769f1e in usb_task_thread (arg=0x0) at /usr/src/sys/modules/usb/../../dev/usb/usb.c:464 #6 0xc04978cf in fork_exit (callout=0xc0769e80 , arg=0x0, frame=0x0) at /usr/src/sys/kern/kern_fork.c:807 #7 0xc05f414c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:209 From owner-freebsd-usb@FreeBSD.ORG Wed Feb 9 07:30:20 2005 Return-Path: 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 A37EF16A4CE for ; Wed, 9 Feb 2005 07:30:20 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6821943D2D for ; Wed, 9 Feb 2005 07:30:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j197UKV6043061 for ; Wed, 9 Feb 2005 07:30:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j197UKh3043060; Wed, 9 Feb 2005 07:30:20 GMT (envelope-from gnats) Resent-Date: Wed, 9 Feb 2005 07:30:20 GMT Resent-Message-Id: <200502090730.j197UKh3043060@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Steve Watt Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D20D616A4CE for ; Wed, 9 Feb 2005 07:29:58 +0000 (GMT) Received: from wattres.watt.com (wattres.watt.com [66.93.133.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95E9843D49 for ; Wed, 9 Feb 2005 07:29:58 +0000 (GMT) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (localhost.watt.com [127.0.0.1]) by wattres.watt.com (8.13.1/8.13.1) with ESMTP id j197TwSK002158 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 8 Feb 2005 23:29:58 -0800 (PST) (envelope-from steve@wattres.watt.com) Received: (from steve@localhost) by wattres.watt.com (8.13.1/8.13.1/Submit) id j197Twto002157; Tue, 8 Feb 2005 23:29:58 -0800 (PST) (envelope-from steve) Message-Id: <200502090729.j197Twto002157@wattres.watt.com> Date: Tue, 8 Feb 2005 23:29:58 -0800 (PST) From: Steve Watt To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: usb/77294: ucom + ulpcom panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Steve Watt List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 07:30:20 -0000 >Number: 77294 >Category: usb >Synopsis: ucom + ulpcom panic >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 09 07:30:19 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Steve Watt >Release: FreeBSD 5.3-STABLE i386 >Organization: Watt Consultants >Environment: System: FreeBSD wattres.Watt.COM 5.3-STABLE FreeBSD 5.3-STABLE #4: Tue Feb 8 21:28:10 PST 2005 root@wattres.Watt.COM:/usr/obj/usr/src/sys/WATTRES i386 Freshly updated to 5-STABLE as of 9 Feb 2005 06:09 GMT. usbdevs says: (root@wattres) 15# usbdevs -dv Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 uhub0 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 uhub1 port 1 addr 2: full speed, self powered, config 1, Generic USB Hub(0x9254), ALCOR(0x058f), rev 3.12 uhub2 port 1 addr 3: full speed, power 500 mA, config 1, PL2303 Serial adapter (ATEN/IOGEAR UC232A)(0x2303), Prolific Technology(0x067b), rev 2.02 ucom0 port 2 addr 4: full speed, power 500 mA, config 1, PL2303 Serial adapter (ATEN/IOGEAR UC232A)(0x2303), Prolific Technology(0x067b), rev 2.02 ucom1 port 3 addr 5: full speed, power 500 mA, config 1, PL2303 Serial adapter (ATEN/IOGEAR UC232A)(0x2303), Prolific Technology(0x067b), rev 2.02 ucom2 port 4 powered port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 uhub3 port 1 powered port 2 powered >Description: I get reproducable panic()s that look like a NULL pointer dereference. What I saw on the console: putc to a clist with no reserved blocks putc to a clist with no reserved blocks putc to a clist with no reserved blocks putc to a clist with no reserved blocks putc to a clist with no reserved blocks putc to a clist with no reserved blocks putc to a clist with no reserved blocks putc to a clist with no reserved blocks putc to a clist with no reserved blocks putc to a clist with no reserved blocks putc to a clist with no reserved blocks putc to a clist with no reserved blocks putc to a clist with no reserved blocks putc to a clist with no reserved blocks ucom1: read start failed fatal trap 12 in kernel mode fault virtual address = 0x4c [ ... ] current process = getty stopped at usb_transfer_complete+0xd2: movl 0x4c(%eax),%eax The traceback from ddb looks like: db> trace Tracing pid 1148 tid 100196 td 0xc1ceb960 usb_transfer_complete(c1e8c300,2,c1e8c36c,c1d75980,c1564e00) at usb_transfer_complete+0xd2 uhci_abort_xfer(c1e8c300,6,d025e9e4,c05fbd4b,c1e8c300) at uhci_abort_xfer+0xf5 uhci_device_bulk_abort(c1e8c300,c15a8500,d025e9f0,c05fba87,c1d75980) at uhci_device_bulk_abort+0x19 usbd_ar_pipe(c1d75980,d025e9fc,c0a8c22c,c1d75980,d025ea18) at usbd_ar_pipe+0x22 usbd_abort_pipe(c1d75980,d025ea18,c0a8bd30,c15a8500,1) at usbd_abort_pipe+0x11 ucomstopread(c15a8500,1,c1564e00,3,c1ceae20) at ucomstopread+0x28 ucomstop(c1564e00,3,fffffffd,4,d025ead0) at ucomstop+0x49 ttyflush(c1564e00,3,0,c1b0c400,c1564e00) at ttyflush+0x43 ttioctl(c1564e00,80047410,d025ec54,3,c1ceb960) at ttioctl+0x916 ttyioctl(c09861f8,80047410,d025ec54,3,c1ceb960) at ttyioctl+0x66 ucomioctl(c09861f8,80047410,d025ec54,3,c1ceb960) at ucomioctl+0x68 spec_ioctl(d025eb7c,d025ec28,c06d55d8,d025eb7c,c1b1bb28) at spec_ioctl+0x16a spec_vnoperate(d025eb7c,c1b1bb28,c1e93e70,c1b1bb28,d025ebc8) at spec_vnoperate+0x18 vn_ioctl(c1b1bb28,80047410,d025ec54,c146cd80,c1ceb960) at vn_ioctl+0x196 ioctl(c1ceb960,d025ed14,c,c1ceb960,d025ed3c) at ioctl+0x692 syscall[...] >How-To-Repeat: Have a getty running on ucom1 (or ucom0 or ucom2) kermit kermit> set carrier-watch off kermit> set line /dev/ucom1 [ kermit hangs ] ^Z # kill % System dies here. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Feb 9 15:05:46 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8141616A4CE for ; Wed, 9 Feb 2005 15:05:46 +0000 (GMT) Received: from kraid.nerim.net (smtp-103-wednesday.nerim.net [62.4.16.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id A564B43D2D for ; Wed, 9 Feb 2005 15:05:45 +0000 (GMT) (envelope-from pornin@cronos.bolet.org) Received: from cronos.bolet.org (cronos.bolet.org [80.65.226.87]) by kraid.nerim.net (Postfix) with ESMTP id 4E1F1418AE for ; Wed, 9 Feb 2005 16:05:43 +0100 (CET) Received: from cronos.bolet.org (localhost.bolet.org [127.0.0.1]) by cronos.bolet.org (8.13.1/8.13.1) with ESMTP id j19F5hWI088390 for ; Wed, 9 Feb 2005 16:05:43 +0100 (CET) (envelope-from pornin@cronos.bolet.org) Received: (from pornin@localhost) by cronos.bolet.org (8.13.1/8.13.1/Submit) id j19F5hP2088389 for freebsd-usb@freebsd.org; Wed, 9 Feb 2005 16:05:43 +0100 (CET) (envelope-from pornin) Date: Wed, 9 Feb 2005 16:05:43 +0100 From: Thomas Pornin To: freebsd-usb@freebsd.org Message-ID: <20050209150543.GA88239@cronos.bolet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: quirks for USB keys X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 15:05:46 -0000 Hello, short version: I have a USB key which is not supported by FreeBSD. As far as I understand, in most cases, this is only a matter of specifying the correct quirks in umass.c and/or scsi_da.c. But I don't really know what quirks to try, or not. I am willing to help, and I am looking for some guidance. Is this mailing-list the correct place to ask ? Should I fill in a PR ? long version: I have a simple PC (Athlon XP, FreeBSD 5.3-STABLE from this morning [Wed Feb 9, 2005]). Here are the kernel boot messages about the USB system: uhci0: port 0xe000-0xe01f irq 21 at device 16.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub1: Iiyama product 0x0201, class 9/0, rev 1.10/1.10, addr 2 uhub1: 4 ports with 4 removable, self powered ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.10, addr 3, iclass 3/1 ums0: 3 buttons and Z dir. uhci1: port 0xe400-0xe41f irq 21 at device 16.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci2: port 0xe800-0xe81f irq 21 at device 16.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered The USB hub embedded in the CRT is connected to one of the USB ports on the back of the machine, and a mouse is plugged to that hub. This setting works: I can use my mouse under X11. And I have another USB key (a PNY one) which works when plugged in that hub (detected as da0, and accessible through a "mount" or mtools). The kernel is close to GENERIC. The only differences are: -- I changed the name "GENERIC"; -- I commented out I486_CPU and I586_CPU; -- I reduced SCSI delay from 15000 to 5000 milliseconds; -- I added option P1003_1B_SEMAPHORES. I have a 256MB USB key from Intuix. When I plug that key into the hub (or one of the free plugs at the rear of the box), I get this: umass0: M-Sys DiskOnKey, rev 2.00/2.00, addr 4 umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT (...) The pattern of three timeouts is repeated five times; the "reset failed" timeout appears after 130 seconds, then 65 more seconds lead to the "bulk-in" timeout, then 65 more seconds for the "bulk-out". The whole procedure thus blocks for 1300 seconds (5 * (130 + 65 + 65)). If I try "usbdevs -v" during that 21'40'' delay, the process blocks. However, after the delay, I can run "usbdevs -v", which, after a dozen seconds, outputs this: Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, self powered, config 1, product 0x0201(0x0201), Iiyama(0x04e1), rev 1.10 port 1 powered port 2 powered port 3 addr 4: full speed, power 94 mA, config 1, product 0x0012(0x0012), M-Systems(0x08ec), rev 2.00 port 4 addr 3: low speed, power 98 mA, config 1, product 0xc00e(0xc00e), Logitech(0x046d), rev 11.10 Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 powered port 2 powered Note that my mouse is frozen, both during the whole timeout procedure, and also afterwards, even if I unplug the key. By unplugging the key during the timeout delay, and rebooting, I got a kernel panic (kernel page fault on behalf of the moused process). I have made some searchs on the web and mailing-list, and my problem seems relatively special, because I do not even get a virtual disk (no "da0" line) and most reports talk about "STALLED", not "TIMEOUT". sys/dev/usb/umass.c has quirks for M-Systems products 0x0010 and 0x0011 (DISKONKEY and DISKONKEY2); mine appears to have the 0x0012 id. I tried to add that product definition in usbdevs: product MSYSTEMS DISKONKEY3 0x0012 DiskOnKey and this quirk in umass.c: { USB_VENDOR_MSYSTEMS, USB_PRODUCT_MSYSTEMS_DISKONKEY3, RID_WILDCARD, UMASS_PROTO_ATAPI | UMASS_PROTO_BBB, NO_QUIRKS }, but to no avail. I copied that "quirk" from the DISKONKEY2, and I have no idea whether UMASS_PROTO_ATAPI or NO_QUIRKS is correct (probably not). The key works in another machine, with Windows 2000 (IBM Thinkpad). So this is probably not a hardware defect. Note: I am aware that the key can operate with USB 2.0 and that my controller is 1.1 only. But this works with the Thinkpad, and the Intuix excuse for a documentation claims 1.1 compatibility, so I guess this is not a problem. I can do some testing but I need some help. Thanks for any information. Please send me a copy of each message: I am not subscribed to the list. --Thomas Pornin From owner-freebsd-usb@FreeBSD.ORG Wed Feb 9 17:30:14 2005 Return-Path: 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 2E9EA16A4CE for ; Wed, 9 Feb 2005 17:30:14 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC04E43D48 for ; Wed, 9 Feb 2005 17:30:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j19HUDnw015041 for ; Wed, 9 Feb 2005 17:30:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j19HUD9e015040; Wed, 9 Feb 2005 17:30:13 GMT (envelope-from gnats) Resent-Date: Wed, 9 Feb 2005 17:30:13 GMT Resent-Message-Id: <200502091730.j19HUD9e015040@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, MAB Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 720FC16A4CE for ; Wed, 9 Feb 2005 17:26:12 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E96443D48 for ; Wed, 9 Feb 2005 17:26:12 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j19HQB5E060270 for ; Wed, 9 Feb 2005 17:26:11 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j19HQBRc060253; Wed, 9 Feb 2005 17:26:11 GMT (envelope-from nobody) Message-Id: <200502091726.j19HQBRc060253@www.freebsd.org> Date: Wed, 9 Feb 2005 17:26:11 GMT From: MAB To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/77315: unproperly detached (without unmounting) USB mass storage drive causes kernel panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 17:30:14 -0000 >Number: 77315 >Category: usb >Synopsis: unproperly detached (without unmounting) USB mass storage drive causes kernel panic >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 09 17:30:13 GMT 2005 >Closed-Date: >Last-Modified: >Originator: MAB >Release: FreeBSD 5.3 >Organization: Binar LLC >Environment: FreeBSD localhost.my.domain 5.3-RELEASE FreeBSD 5.3-RELEASE #4: Fri Jan 7 20:25:18 YEKT 2005 root@localhost.my.domain:/usr/obj/usr/src/sys/CUSTOM i386 >Description: unproperly detached (without unmounting) USB mass storage drive causes kernel panic on reboot/shutdown and device special file (da[0-9]) don't disappear after detach (DEVFS enabled). >How-To-Repeat: attach USB mass-storage drive, mount it, disconnect the drive without unmounting and reboot/shutdown the system. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Feb 9 20:22:11 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFA8D16A4CE for ; Wed, 9 Feb 2005 20:22:11 +0000 (GMT) Received: from pop-a065c05.pas.sa.earthlink.net (pop-a065c05.pas.sa.earthlink.net [207.217.121.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC32143D2D for ; Wed, 9 Feb 2005 20:22:11 +0000 (GMT) (envelope-from mvh@ix.netcom.com) Received: from lsanca1-ar6-4-62-203-074.lsanca1.elnk.dsl.genuity.net ([4.62.203.74] helo=bsd.mvh) by pop-a065c05.pas.sa.earthlink.net with esmtp (Exim 3.33 #1) id 1CyyLg-00054o-00 for freebsd-usb@freebsd.org; Wed, 09 Feb 2005 12:22:08 -0800 Received: from localhost (localhost.bsd [127.0.0.1]) by bsd.mvh (Postfix) with ESMTP id A356517652 for ; Wed, 9 Feb 2005 12:22:07 -0800 (PST) Received: from bsd.mvh ([127.0.0.1]) by localhost (bsd.mvh [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17606-01 for ; Wed, 9 Feb 2005 12:22:01 -0800 (PST) Received: from localhost.bsd (localhost.bsd [127.0.0.1]) by bsd.mvh (Postfix) with ESMTP id BD22C17475 for ; Wed, 9 Feb 2005 12:22:01 -0800 (PST) From: Mike Harding To: freebsd-usb@freebsd.org Content-Type: text/plain Date: Wed, 09 Feb 2005 12:22:00 -0800 Message-Id: <1107980520.17366.8.camel@bsd.mvh> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at bsd.mvh Subject: ipod connect/disconnect freezes 5.3 machine? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 20:22:12 -0000 I have a 4th generation Ipod that I connected to my 5.3 Dell machine. After putting 'device ehci' in the kernel, I can mount the Ipod as a drive, works fine. I then use camcontrol to eject the drive so I can just use the usb cable to charge the battery. This all seems to work fine. However, if I unplug the Ipod from the cable, and reconnect, the machine will freeze up within a little bit, and I have to reboot. It doesn't show up under 'camcontrol devlist' either. I can't load it or mount it or rescan or anything without a lockup. I have some messages like ehci_check_intr: sqtdstart=NULL last message repeated 115 times and ehci_idone: need toggle update status=00080248 nstatus=80028d80 ... and I needed to reset the Ipod before Itunes would recognize it. Am I doing anything ridiculously wrong? I do want to eject the Ipod so that disk will spin down, I think... -- Mike Harding From owner-freebsd-usb@FreeBSD.ORG Thu Feb 10 15:13:52 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F12E516A4CE for ; Thu, 10 Feb 2005 15:13:52 +0000 (GMT) Received: from imap.univie.ac.at (mail.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id B56B743D39 for ; Thu, 10 Feb 2005 15:13:51 +0000 (GMT) (envelope-from michl@cc.univie.ac.at) Received: from [131.130.222.36] (hm.vpn.univie.ac.at [131.130.222.36]) by imap.univie.ac.at (8.12.10/8.12.10) with ESMTP id j1AFDi8v542662 for ; Thu, 10 Feb 2005 16:13:46 +0100 Message-ID: <420B7A28.8020007@cc.univie.ac.at> Date: Thu, 10 Feb 2005 16:13:44 +0100 From: Harald Michl User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050202 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-usb@freebsd.org X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-DCC-ZID-Univie-Metrics: mx7.univie.ac.at 4247; Body=1 Fuz1=1 Fuz2=1 Subject: Problems with Dell D400 mounting external DVD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2005 15:13:53 -0000 Hi! I just installed FreeBSD 5.3 on my new Dell D400 with external USB DVD/CR-RW. Unfortunately I'm not able to mount it properly. I saw there was already a thread in december where someone posted the problem, but so far I didn't find a solution in the mail-archives :-( Is there someone who can interpret the /var/log/messages loggings and the output of usbdevs -dv and knows what/how to do it? /var/log/messages: Feb 10 15:39:45 nbhm kernel: umass0: Dell USB Drive A04, rev 2.00/2.00, addr 2 Feb 10 15:39:45 nbhm kernel: umass0: Get Max Lun not supported (STALLED) Feb 10 15:39:45 nbhm kernel: umass0: Phase Error, residue = 0 [root@nbhm root]# usbdevs -dv Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub0 port 1 powered port 2 addr 2: full speed, self powered, config 1, BC02 Bluetooth USB Adapter(0x8000), Dell(0x413c), rev 12.66 ugen0 Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub1 port 1 powered port 2 addr 2: full speed, self powered, config 1, A04(0x9001), Dell USB Drive(0x413c), rev 2.00 umass0 Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub2 port 1 powered port 2 powered TIA and kind regards, Harald From owner-freebsd-usb@FreeBSD.ORG Fri Feb 11 00:16:20 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EACE916A4CE for ; Fri, 11 Feb 2005 00:16:20 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA02443D2F for ; Fri, 11 Feb 2005 00:16:20 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id AA6F47A403; Thu, 10 Feb 2005 16:16:20 -0800 (PST) Message-ID: <420BF954.2050605@elischer.org> Date: Thu, 10 Feb 2005 16:16:20 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Harald Michl References: <420B7A28.8020007@cc.univie.ac.at> In-Reply-To: <420B7A28.8020007@cc.univie.ac.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Problems with Dell D400 mounting external DVD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 00:16:21 -0000 there is a ptch that I have at home (I think) for dell USB drives.. I'll look for it tonight. Harald Michl wrote: > Hi! > > I just installed FreeBSD 5.3 on my new Dell D400 with external > USB DVD/CR-RW. Unfortunately I'm not able to mount it properly. > I saw there was already a thread in december where someone > posted the problem, but so far I didn't find a solution in the > mail-archives :-( > > Is there someone who can interpret the /var/log/messages loggings > and the output of usbdevs -dv and knows what/how to do it? > > /var/log/messages: > > Feb 10 15:39:45 nbhm kernel: umass0: Dell USB Drive A04, rev > 2.00/2.00, addr 2 > Feb 10 15:39:45 nbhm kernel: umass0: Get Max Lun not supported (STALLED) > Feb 10 15:39:45 nbhm kernel: umass0: Phase Error, residue = 0 > > > > [root@nbhm root]# usbdevs -dv > Controller /dev/usb0: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > uhub0 > port 1 powered > port 2 addr 2: full speed, self powered, config 1, BC02 Bluetooth USB > Adapter(0x8000), Dell(0x413c), rev 12.66 > ugen0 > Controller /dev/usb1: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > uhub1 > port 1 powered > port 2 addr 2: full speed, self powered, config 1, A04(0x9001), Dell > USB Drive(0x413c), rev 2.00 > umass0 > Controller /dev/usb2: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > uhub2 > port 1 powered > port 2 powered > > > > TIA and kind regards, > Harald > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Sat Feb 12 21:30:11 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 070D916A4CE for ; Sat, 12 Feb 2005 21:30:11 +0000 (GMT) Received: from lakermmtao09.cox.net (lakermmtao09.cox.net [68.230.240.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 573C343D1D for ; Sat, 12 Feb 2005 21:30:10 +0000 (GMT) (envelope-from mskar@atlllc.com) Received: from TERRAPIN ([68.10.203.35]) by lakermmtao09.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20050212213010.YFU942.lakermmtao09.cox.net@TERRAPIN> for ; Sat, 12 Feb 2005 16:30:10 -0500 From: "Marc Skarshinski" To: Date: Sat, 12 Feb 2005 16:30:07 -0500 Organization: Atlantis Consulting, LLC Message-ID: <000201c5114a$064ba500$fc01320a@TERRAPIN> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: ucom/uplcom question X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2005 21:30:11 -0000 I am having timeout problems on 4.9-Stable using the ucom devices provided by the "Prolific Technology PL2303 serial adapter (ATEN/IOGEAR UC232A), rev 1.10/2.02" and also the "Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00" driver. I am trying to read/write to the port from a couple of shell scripts (one which cats the port, the other which issues printf statements to the port) I think this has to do with improper port settings but I cannot get the settings, issued stty commands, to persist across printfs to the port. Are there locking devices which can/should be associated with these devices, analogous to the cuala locking devices for a cuaa device? Also, the man page for ucom states: "The ucom driver shows a behavior like a tty", yet were this a standard serial port I would generally use a cuaa device not a tty. Is a ucom suitable for controlling a device which primarily is written (the device is a relay control box)? Any help/guesses would be appreciated. Thanks! Marc Skarshinski Atlantis Consulting, LLC