From owner-freebsd-usb@FreeBSD.ORG Sun Sep 18 11:04:14 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 4761316A41F for ; Sun, 18 Sep 2005 11:04:14 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC0A743D45 for ; Sun, 18 Sep 2005 11:04:13 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-39-112.daxnet.no ([193.217.39.112] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 457141387 for freebsd-usb@freebsd.org; Sun, 18 Sep 2005 13:04:09 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 18 Sep 2005 13:05:10 +0200 User-Agent: KMail/1.7 References: <0C9AA1AB019C4A44AE29659CF2BB203202EA26@gir.routemaster.net> <200509160845.51758.hselasky@c2i.net> In-Reply-To: <200509160845.51758.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509181305.11061.hselasky@c2i.net> Subject: Re: USB 2.0 external hard drive only 1.000MB/s transfers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2005 11:04:14 -0000 On Friday 16 September 2005 08:45, Hans Petter Selasky wrote: > On Thursday 15 September 2005 14:01, Chris Richards wrote: > > Hi, > > > > I bought a USB 2.0 external hard drive and USB 2.0 PCI card to use for > > backups on my FreeBSD box but the drive is recognised as only being able > > to do 1.000MB/s transfers. Obviously a USB 2.0 drive should be able to > > transfer data a lot faster... I have checked my config and can't see any > > issues. > > > > Can someone point me in the right direction or see an issue with my > > config? I have included a "dmesg" and "kernel config" below. > > > > Thank you in advance for your help. > > > > Cheers. > > > > -Chris > > The umass driver does not display the right number. What does > "dd if=/dev/daXXX of=/dev/null" show ? The speed depends very much on the block size used: Also try this: dd if=/dev/da0 of=/dev/null bs=64000 --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Sep 18 16:00:35 2005 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 28F2516A41F for ; Sun, 18 Sep 2005 16:00:35 +0000 (GMT) (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 A1B5643D48 for ; Sun, 18 Sep 2005 16:00:34 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8IG0YP0070584 for ; Sun, 18 Sep 2005 16:00:34 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8IG0YIm070583; Sun, 18 Sep 2005 16:00:34 GMT (envelope-from gnats) Resent-Date: Sun, 18 Sep 2005 16:00:34 GMT Resent-Message-Id: <200509181600.j8IG0YIm070583@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, Phoebe Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D06F16A41F for ; Sun, 18 Sep 2005 15:59:30 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AB9F43D49 for ; Sun, 18 Sep 2005 15:59:30 +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 j8IFxTgR074913 for ; Sun, 18 Sep 2005 15:59:29 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j8IFxTjM074912; Sun, 18 Sep 2005 15:59:29 GMT (envelope-from nobody) Message-Id: <200509181559.j8IFxTjM074912@www.freebsd.org> Date: Sun, 18 Sep 2005 15:59:29 GMT From: Phoebe To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: usb/86298: Known good USB mouse won't work with correct settings X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2005 16:00:35 -0000 >Number: 86298 >Category: usb >Synopsis: Known good USB mouse won't work with correct settings >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 18 16:00:34 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Phoebe >Release: 5.4 >Organization: N/A >Environment: FreeBSD pixie.telus.net 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Logitech Cordless Elite Duo (Cordless Elite + Cordless MouseMan Optical, sharing a common receiver) installed on UHCI USB. Keyboard works, mouse will not. Tried changing every combination of relevant settings (ie /dev/ums0 vs /dev/sysmouse, Auto vs SysMouse, running moused or not, etc) for eight hours and following instructions directly on many, many websites. No success. Had to use included PS/2 adapters to make it respond at all. >How-To-Repeat: Attempt to install the hardware in USB mode. Research suggested that this problem is not limited to this model. >Fix: Until USB mouse support is repaired, you must use PS/2 mode if available for your device. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sun Sep 18 17:32:54 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 4EAB116A41F; Sun, 18 Sep 2005 17:32:54 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 997DB43D45; Sun, 18 Sep 2005 17:32:52 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-216-87-133.daxnet.no ([193.216.87.133] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 260678742; Sun, 18 Sep 2005 19:32:50 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, freebsd-multimedia@freebsd.org Date: Sun, 18 Sep 2005 19:33:45 +0200 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509181933.47262.hselasky@c2i.net> Cc: Subject: New USB driver & API (updated) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2005 17:32:54 -0000 Hi, I have just updated my USB driver for FreeBSD 5/6/7. Download the three files below into a new directory and type "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 Type "make help" to get more help. I have included a patch for "uaudio.c" that will allow "full duplex" to work. This time I have added two refcounts to each "struct usbd_xfer". The one refcount keeps track of the number of threads that are holding a reference to it, and is decremented when memory is freed. The other refcount keeps track of the number of re-starts, and is incremented when a USB transfer is stopped. For example see "ehci_pcd_enable()" in "/sys/dev/usb2/_ehci.c" and "usbd_do_callback()" in "/sys/dev/usb2/_usb.c". This is almost like in Objective C. Stopping and starting a transfer does not block or sleep, which means one can hold a lock while doing this. I have added a callback, search for "priv_func", that will be called just before the USB transfer memory is freed. This can be used for mutex destruction purposes, and alike. I want to use "callout_init_mtx()", but I am not sure when this was introduced, and to not break this driver on older versions of FreeBSD, I still use "callout_init()". But this is just a matter of a few one-liners. I have done an great deal of work on "ugen" and it should now support BULK-, INTERRUPT- and ISOCHRONOUS- transfers in read and write direction. If you are interested, you can have a look at: "/sys/dev/usb2/_ugen.c" --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Sep 18 22:19:02 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 E624B16A41F for ; Sun, 18 Sep 2005 22:19:02 +0000 (GMT) (envelope-from chrisric@routemaster.net) Received: from spunky2.routemaster.net (ppp20-11.lns2.syd7.internode.on.net [59.167.20.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23D7743D46 for ; Sun, 18 Sep 2005 22:19:01 +0000 (GMT) (envelope-from chrisric@routemaster.net) Received: from gir.routemaster.net (gir.routemaster.net [10.10.10.1]) by spunky2.routemaster.net (8.13.4/8.13.4) with ESMTP id j8IMIxlc009684 for ; Mon, 19 Sep 2005 08:19:00 +1000 (EST) (envelope-from chrisric@routemaster.net) MIME-Version: 1.0 Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Mon, 19 Sep 2005 08:17:36 +1000 Message-ID: <0C9AA1AB019C4A44AE29659CF2BB203202F19A@gir.routemaster.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: USB 2.0 external hard drive only 1.000MB/s transfers Thread-Index: AcW8QIrVsCSxzlTyTzWpr9P0PeKl3QAWZ9OP From: "Chris Richards" To: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: RE: USB 2.0 external hard drive only 1.000MB/s transfers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2005 22:19:03 -0000 Hi, =20 Here is the output with the different block size. =20 root@spunky2:~$ dd if=3D/dev/da0 of=3D/dev/null bs=3D64000 ^C4262+0 records in 4262+0 records out 272768000 bytes transferred in 269.048179 secs (1013826 bytes/sec) =20 Thanks. =20 -Chris ________________________________ From: owner-freebsd-usb@freebsd.org on behalf of Hans Petter Selasky Sent: Sun 18/09/2005 9:05 PM To: freebsd-usb@freebsd.org Subject: Re: USB 2.0 external hard drive only 1.000MB/s transfers On Friday 16 September 2005 08:45, Hans Petter Selasky wrote: > On Thursday 15 September 2005 14:01, Chris Richards wrote: > > Hi, > > > > I bought a USB 2.0 external hard drive and USB 2.0 PCI card to use = for > > backups on my FreeBSD box but the drive is recognised as only being = able > > to do 1.000MB/s transfers. Obviously a USB 2.0 drive should be able = to > > transfer data a lot faster... I have checked my config and can't see = any > > issues. > > > > Can someone point me in the right direction or see an issue with my > > config? I have included a "dmesg" and "kernel config" below. > > > > Thank you in advance for your help. > > > > Cheers. > > > > -Chris > > The umass driver does not display the right number. What does > "dd if=3D/dev/daXXX of=3D/dev/null" show ? The speed depends very much on the block size used: Also try this: dd if=3D/dev/da0 of=3D/dev/null bs=3D64000 --HPS _______________________________________________ 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 Mon Sep 19 11:02:26 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 B6ABA16A41F for ; Mon, 19 Sep 2005 11:02:26 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E84D43D46 for ; Mon, 19 Sep 2005 11:02:26 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8JB2PCH018272 for ; Mon, 19 Sep 2005 11:02:25 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8JB2Pjd018266 for freebsd-usb@freebsd.org; Mon, 19 Sep 2005 11:02:25 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 19 Sep 2005 11:02:25 GMT Message-Id: <200509191102.j8JB2Pjd018266@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 Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2005 11:02:26 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/07/19] usb/40792 usb signals lead to data loss on device ugen o [2002/12/10] usb/46176 usb [panic] umass causes kernel panic if devi o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I o [2003/09/26] bin/57255 usb usbd and multi-function devices f [2003/12/11] usb/60131 usb [usb] Page fault on disconnect of USB dev s [2003/12/15] usb/60276 usb [usb] Kernel panic when plugging in USB ( o [2004/01/20] usb/61627 usb [usb] [patch] New USB printer not support f [2004/01/30] usb/62088 usb [usb] Logitech Cordless/Optical Mouse not o [2004/02/03] kern/62309 usb panic: ugen driver f [2004/03/01] usb/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/07/13] usb/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] usb/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/10/30] usb/73307 usb [panic] Kernel panics on USB disconnect o [2004/12/30] usb/75648 usb [panic] panic while loading usb.ko on 4.1 o [2005/01/01] usb/75705 usb [panic] da0 attach / Optio S4 (with backt o [2005/01/04] usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, 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/25] usb/76684 usb Toshiba PDR-M4 camera connected via USB h o [2005/02/06] usb/77184 usb kernel panic on USB device disconnect o [2005/02/09] usb/77294 usb ucom + ulpcom panic o [2005/02/16] usb/77604 usb Sluggish Logitch LX700 USB Mouse f [2005/02/20] usb/77799 usb [panic] on attach of a mp3 player to USB o [2005/02/23] usb/77940 usb [patch] [panic] insertion of usb keyboard o [2005/03/18] usb/78989 usb please add USB keyboard support to instal o [2005/03/22] usb/79140 usb WD Firewire/USB Combo hangs under load on o [2005/03/27] usb/79269 usb USB ohci da0 plug/unplug causes crashes a o [2005/03/27] usb/79287 usb UHCI hang after interrupt transfer o [2005/04/02] usb/79436 usb Panic: ohci_abort_xfer: not in process co o [2005/04/04] usb/79524 usb printing to Minolta PagePro 1[23]xxW via o [2005/04/07] usb/79656 usb [usb] RHSC interrupts lost o [2005/04/09] usb/79722 usb [usb] wrong alignments in ehci.h o [2005/04/17] usb/80040 usb [hang] Use of sound mixer causes system f o [2005/04/22] usb/80260 usb Travan USB tape drive fails to write o [2005/04/26] usb/80361 usb mounting of usb-stick fails o [2005/04/26] usb/80373 usb usb keyboard does not respond o [2005/05/04] usb/80628 usb recent USB MFCs cause panics o [2005/05/06] usb/80685 usb panic in usb_cold_explore() at begining o [2005/05/09] usb/80829 usb possible panic when loading USB-modules o [2005/05/10] usb/80862 usb USB locking issues o [2005/05/20] usb/81308 usb Polling a ugen(4) control endpoint causes o [2005/05/26] usb/81524 usb panic: usb_cold_explore: busses to explor f [2005/06/01] usb/81774 usb 2nd generation iPod mini cannot be mounte o [2005/06/13] usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 o [2005/06/15] usb/82272 usb Can not recognize Casio camera EX-Z40 as o [2005/06/17] usb/82350 usb [usb] null pointer dereference in USB sta o [2005/06/22] usb/82520 usb Reboot when USL101 connected o [2005/06/26] usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o [2005/07/16] usb/83563 usb Page Fault while detaching Mpman Usb devi o [2005/07/18] usb/83677 usb [usb] usb controller not detected o [2005/07/19] usb/83756 usb Microsoft Intellimouse Explorer 4.0A does o [2005/07/23] usb/83942 usb [patch] QUIRK: Langel USB flash mp3 playe o [2005/07/24] usb/83977 usb [ucom] [panic] ucom1: open bulk out error o [2005/07/29] usb/84295 usb Install FreeBSD with usb keyboard need st o [2005/07/30] usb/84336 usb [usb] [reboot] instant system reboot when o [2005/08/15] usb/84936 usb install - usb keyboard not recognized o [2005/09/06] usb/85814 usb Microsoft Wireless Mouse doesnt work o [2005/09/12] usb/86031 usb need support usb nic rt2500 in my 5.4 STA 59 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] usb/32652 usb [patch] A new ioctl to uscanner s [2001/12/09] usb/32653 usb Added patches to improve USB scanner supp o [2002/07/24] usb/40948 usb [usb] USB HP CDW8200 does not work o [2002/08/07] usb/41415 usb [usb] [patch] Some USB scanners cannot ta o [2003/02/16] bin/48342 usb [PATCH] usbd dynamic device list. 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 o [2003/06/08] usb/53025 usb [PATCH] ugen does not allow O_NONBLOCK fo o [2003/08/28] usb/56095 usb [patch] QUIRK: Apacer Pen Drive fails to o [2003/11/11] usb/59169 usb [patch] ulpt is missing read operation o [2003/12/15] usb/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] bin/61234 usb [usb] [patch] usbhidaction doesn't suppor o [2004/03/06] usb/63837 usb [patch] USB: hid_is_collection() only loo o [2004/04/11] usb/65436 usb QUIRK: [patch] to add support for PNY Att o [2004/04/19] kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops f [2004/05/11] kern/66547 usb [usb] Palm Tungsten T USB does not initia o [2004/06/23] usb/68232 usb [patch] ugen(4) isochronous handling corr o [2004/06/27] usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/08/16] usb/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] usb/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] usb/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] usb/72344 usb [patch] [usb] QUIRK: Dane-Elec zMate 512 o [2004/10/06] i386/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/15] usb/72732 usb [patch] Kyocera 7135 quirk. o [2004/10/15] usb/72733 usb Kyocera 7135 Palm OS connection problem. o [2004/10/23] usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse n o [2004/11/21] usb/74211 usb USB flash drive causes CAM status 0x4 on o [2004/11/25] usb/74358 usb [umass] unplugging at boot time an umass o [2004/11/27] usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R o [2004/11/30] usb/74557 usb imation 500mb usb key can only be written o [2004/12/02] usb/74609 usb [patch] [usb] allowing cdma modems to wor o [2004/12/08] usb/74849 usb [usb] [patch] Samsung SPH-i500 does not a o [2004/12/09] usb/74880 usb [usb] [patch] Samsung N400 cellphone/acm o [2004/12/12] usb/74989 usb (regression) Lost USB support between 5.2 o [2004/12/28] usb/75578 usb [patch] QUIRK: PNY USB flash key o [2005/01/04] usb/75800 usb ucom1: init failed STALLED error in time 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 o [2005/03/03] usb/78371 usb Philips Wearable Audio Player (128) fails o [2005/03/07] usb/78543 usb [patch] Support for Trip-Lite USB 2 Seria o [2005/03/18] usb/78984 usb Creative MUVO umass failure o [2005/03/23] usb/79164 usb [usb] [patch] QUIRK: Qware BeatZkey! Pro o [2005/04/09] usb/79723 usb [usb] prepare for high speed isochronous o [2005/04/09] usb/79725 usb [patch] [usb] USB device speed is not dou o [2005/04/14] usb/79893 usb New usbdevs/umass quirks derived from Lin o [2005/04/16] usb/80010 usb Add support for the AEI USB to LAN adapte o [2005/04/27] usb/80383 usb [PATCH] Add quirk for uhid to ignore cert o [2005/04/27] usb/80420 usb atapicam stops iPod functionality o [2005/05/08] usb/80773 usb "usbd_get_string()" could have taken a le o [2005/05/08] usb/80774 usb have "usbd_find_desc" in line with the ot o [2005/05/08] usb/80776 usb [if_udav] UDAV device driver shouldn't us o [2005/05/08] usb/80777 usb usb_rem_task() should wait for callback t o [2005/05/10] usb/80854 usb suggestion for new iface-no-probe mechani o [2005/05/12] usb/80935 usb uvisor.c is not work with CLIE TH55. o [2005/05/15] usb/81073 usb [patch] fix umass NO_GETMAXLUN quirk o [2005/05/18] usb/81191 usb Support for Curitel HX-550C USB modem to o [2005/05/29] usb/81621 usb external hd hangs under load on ehci o [2005/05/30] usb/81656 usb umass problem with Minolta DiMage S414 Di o [2005/06/20] usb/82436 usb [patch] USL101 Host-to-Host bridge suppor o [2005/06/30] usb/82839 usb [patch] add support for Aceeca Mez1000 de o [2005/07/05] usb/83022 usb ALI USB 2.0 EHCI Controller is not detect o [2005/07/12] usb/83353 usb [ums] [patch] ums driver limits number of o [2005/07/15] usb/83504 usb SpeedTouch USB stop working on recent cur o [2005/07/21] usb/83863 usb Communication problem between opensc/open o [2005/08/06] usb/84608 usb Sony digital camera DSC-P100, rev 2.00/5. o [2005/08/18] usb/85067 usb Cannot attach ScanJet 4300C to usb device o [2005/09/11] usb/85992 usb [uhid] [patch] USB stops working when try o [2005/09/16] usb/86195 usb [patch] allow USB Ethernet Adaptor "ELECO o [2005/09/18] usb/86298 usb Known good USB mouse won't work with corr 74 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Sep 19 12:30:24 2005 Return-Path: X-Original-To: usb@freebsd.org 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 DE9B816A41F; Mon, 19 Sep 2005 12:30:24 +0000 (GMT) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AA4443D45; Mon, 19 Sep 2005 12:30:23 +0000 (GMT) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: from ednmsw501.dsto.defence.gov.au (ednmsw501.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id j8JCSQ3J027857; Mon, 19 Sep 2005 21:58:26 +0930 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by ednmsw501.dsto.defence.gov.au (Content Technologies SMTPRS 4.3.17) with ESMTP id ; Mon, 19 Sep 2005 22:00:16 +0930 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 j8JCMa024290; Mon, 19 Sep 2005 21:52:36 +0930 (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 SJZA01TP; Mon, 19 Sep 2005 21:52:30 +0930 Received: from squash.dsto.defence.gov.au (localhost [127.0.0.1]) by squash.dsto.defence.gov.au (8.13.3/8.13.3) with ESMTP id j8JCMkm3073669; Mon, 19 Sep 2005 21:52:46 +0930 (CST) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by squash.dsto.defence.gov.au (8.13.3/8.13.3/Submit) id j8JCMkgF073668; Mon, 19 Sep 2005 21:52:46 +0930 (CST) (envelope-from wilkinsa) Date: Mon, 19 Sep 2005 21:52:46 +0930 From: "Wilkinson, Alex" To: stable@freebsd.org Message-ID: <20050919122245.GA73658@squash.dsto.defence.gov.au> Mail-Followup-To: stable@freebsd.org, usb@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Message-Flag: "Beware of Outlook! It Bites " User-Agent: Mutt/1.5.10i Cc: usb@freebsd.org Subject: PANIC: upon disconnecting UMASS device ... X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2005 12:30:25 -0000 Hi all, Without a doubt I can reproduce this panic every single time. 1. Insert UMASS USB Stick 2. mount as msdos 3. umount USB stick 4. remove USB stick 4. some time laster [hours/days] *panic*: panic: vinvalbuf: dirty bufs OS-Version: FreeBSD 5.4-STABLE #0: Thu Jul 14 12:32:30 CST 2005 [/var/log/messages before panic'd. Interestingly it takes a few hours or days before the panic actually occurs]. Sep 9 17:03:11 hostname kernel: umass0: at uhub1 port 1 (addr 2) disconnected Sep 9 17:03:11 hostname kernel: (da0:umass-sim0:0:0:0): lost device Sep 9 17:03:11 hostname kernel: (da0:umass-sim0:0:0:0): removing device entry Sep 9 17:03:11 hostname kernel: umass0: detached Sep 12 08:15:21 hostname kernel: panic: vinvalbuf: dirty bufs Sep 12 08:15:21 hostname kernel: KDB: enter: panic Sep 12 08:15:21 hostname kernel: Dumping 767 MB backrace: (kgdb) bt #0 doadump () at pcpu.h:160 #1 0xc0469db5 in db_fncall (dummy1=0, dummy2=0, dummy3=7919, dummy4=0xde1619f4 "\200\237\226À") at /usr/src/sys/ddb/db_command.c:531 #2 0xc0469b64 in db_command (last_cmdp=0xc0969684, cmd_table=0x0, aux_cmd_tablep=0xc08ea080, aux_cmd_tablep_end=0xc08ea09c) at /usr/src/sys/ddb/db_command.c:349 #3 0xc0469c55 in db_command_loop () at /usr/src/sys/ddb/db_command.c:455 #4 0xc046bb0d in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:221 #5 0xc0686dd3 in kdb_trap (type=0, code=0, tf=0xde161b40) at /usr/src/sys/kern/subr_kdb.c:470 #6 0xc0860273 in trap (frame= {tf_fs = -1064566760, tf_es = 16, tf_ds = -568983536, tf_edi = 1, tf_esi = -1064505670, tf_ebp = -568976504, tf_isp = -568976532, tf_ebx = -568976448, tf_edx = 0, tf_ecx = -1056878592, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1066898615, tf_cs = 8, tf_eflags = 646, tf_esp = -1064519392, tf_ss = -1064525103}) at /usr/src/sys/i386/i386/trap.c:584 #7 0xc084dfaa in calltrap () at /usr/src/sys/i386/i386/exception.s:140 #8 0xc08c0018 in ?? () #9 0x00000010 in ?? () #10 0xde160010 in ?? () #11 0x00000001 in ?? () #12 0xc08ceeba in ?? () #13 0xde161b88 in ?? () #14 0xde161b6c in ?? () #15 0xde161bc0 in ?? () #16 0x00000000 in ?? () #17 0xc1015000 in ?? () #18 0x00000012 in ?? () #19 0x00000003 in ?? () #20 0x00000000 in ?? () #21 0xc0686b49 in kdb_enter (msg=0x0) at cpufunc.h:56 #22 0xc066c309 in panic (fmt=0xc08ceeba "vinvalbuf: dirty bufs") at /usr/src/sys/kern/kern_shutdown.c:550 #23 0xc06cbbfe in vinvalbuf (vp=0xc4a2d318, flags=1, cred=0x0, td=0x0, slpflag=0, slptimeo=0) at /usr/src/sys/kern/vfs_subr.c:972 #24 0xc06cf4b1 in vclean (vp=0xc4a2d318, flags=8, td=0xc1f0f480) at /usr/src/sys/kern/vfs_subr.c:2478 #25 0xc06cfcb6 in vgonel (vp=0xc4a2d318, td=0x0) at /usr/src/sys/kern/vfs_subr.c:2697 #26 0xc06ca94f in vlrureclaim (mp=0xc2107000) at pcpu.h:157 #27 0xc06cac7b in vnlru_proc () at /usr/src/sys/kern/vfs_subr.c:598 #28 0xc065325e in fork_exit (callout=0xc06caa29 , arg=0x0, frame=0x0) at /usr/src/sys/kern/kern_fork.c:791 #29 0xc084e00c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:209 (kgdb) USB Code in kernel: # USB support device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device usb # USB Bus (required) USB Controllers: uhci0: port 0xa400-0xa41f irq 19 at device 31.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhci1: port 0xa000-0xa01f irq 23 at device 31.4 on pci0 usb1: on uhci1 usb1: USB revision 1.0 Offending USB UMASS Stick: Sep 9 15:46:46 hostname kernel: umass0: USB Flash Disk, rev 2.00/2.00, addr 2 Sep 9 15:46:47 hostname kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Sep 9 15:46:47 hostname kernel: da0: Removable Direct Access SCSI-2 device Sep 9 15:46:47 hostname kernel: da0: 1.000MB/s transfers Sep 9 15:46:47 hostname kernel: da0: 1000MB (2048000 512 byte sectors: 64H 32S/T 1000C) - aW From owner-freebsd-usb@FreeBSD.ORG Mon Sep 19 14:48:53 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 17EEB16A420 for ; Mon, 19 Sep 2005 14:48:53 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id E62CC43D46 for ; Mon, 19 Sep 2005 14:48:51 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.10/8.12.10) with ESMTP id j8JEmfBS033147 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 19 Sep 2005 16:48:44 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j8JEmDeG093903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 19 Sep 2005 16:48:13 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id j8JEmCpk001311; Mon, 19 Sep 2005 16:48:12 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id j8JEmBQ0001310; Mon, 19 Sep 2005 16:48:11 +0200 (CEST) (envelope-from ticso) Date: Mon, 19 Sep 2005 16:48:11 +0200 From: Bernd Walter To: Chris Richards Message-ID: <20050919144811.GA552@cicely12.cicely.de> References: <0C9AA1AB019C4A44AE29659CF2BB203202F19A@gir.routemaster.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0C9AA1AB019C4A44AE29659CF2BB203202F19A@gir.routemaster.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Spam-Report: * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on cicely12.cicely.de Cc: freebsd-usb@freebsd.org Subject: Re: USB 2.0 external hard drive only 1.000MB/s transfers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 19 Sep 2005 14:48:53 -0000 On Mon, Sep 19, 2005 at 08:17:36AM +1000, Chris Richards wrote: > Hi, > > Here is the output with the different block size. > > root@spunky2:~$ dd if=/dev/da0 of=/dev/null bs=64000 > ^C4262+0 records in > 4262+0 records out > 272768000 bytes transferred in 269.048179 secs (1013826 bytes/sec) What does usbdevs -v say? > From: owner-freebsd-usb@freebsd.org on behalf of Hans Petter Selasky > Sent: Sun 18/09/2005 9:05 PM > To: freebsd-usb@freebsd.org > Subject: Re: USB 2.0 external hard drive only 1.000MB/s transfers > > On Friday 16 September 2005 08:45, Hans Petter Selasky wrote: > > On Thursday 15 September 2005 14:01, Chris Richards wrote: > > > Hi, > > > > > > I bought a USB 2.0 external hard drive and USB 2.0 PCI card to use for > > > backups on my FreeBSD box but the drive is recognised as only being able > > > to do 1.000MB/s transfers. Obviously a USB 2.0 drive should be able to > > > transfer data a lot faster... I have checked my config and can't see any No - A high-speed drive should be able to transfer faster, but USB2.0 just means compliance with USB2.0 specs and not that it is high-speed. It is completely OK for a USB2.0 drive to be just full-speed. That said, even with a high-speed drive it finally can still be a slow one. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Mon Sep 19 22:03:56 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 B732316A41F for ; Mon, 19 Sep 2005 22:03:56 +0000 (GMT) (envelope-from chrisric@routemaster.net) Received: from spunky2.routemaster.net (ppp20-11.lns2.syd7.internode.on.net [59.167.20.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BF2343D68 for ; Mon, 19 Sep 2005 22:03:47 +0000 (GMT) (envelope-from chrisric@routemaster.net) Received: from gir.routemaster.net (gir.routemaster.net [10.10.10.1]) by spunky2.routemaster.net (8.13.4/8.13.4) with ESMTP id j8JM3RRt014385; Tue, 20 Sep 2005 08:03:28 +1000 (EST) (envelope-from chrisric@routemaster.net) MIME-Version: 1.0 Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Tue, 20 Sep 2005 08:02:04 +1000 Message-ID: <0C9AA1AB019C4A44AE29659CF2BB203202F19C@gir.routemaster.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: USB 2.0 external hard drive only 1.000MB/s transfers Thread-Index: AcW9KRQnFQ1OT0aDTfapEvScjavVGwAOwbqV From: "Chris Richards" To: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: RE: USB 2.0 external hard drive only 1.000MB/s transfers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2005 22:03:56 -0000 Hi, =20 The requested output is below and I understand what you are saying about = the speed of a drive vs USB 2.0. I have plugged the drive into Windows = XP and transferred a file to it from another computer over my 100Mb LAN = and it sits at around 9,000KB's so it is definitely capable of going = faster than it currently is on FreeBSD. =20 Cheers. =20 -Chris =20 -------------------------- root@spunky2 :~# usbdevs -v 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 powered 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 addr 2: full speed, self powered, config 1, USB TO IDE(0x0702), = vendor 0x05e3(0x05e3), rev 0.33 Controller /dev/usb2: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), = VIA(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, power 160 mA, config 1, EZ USB/Ethernet = Converter(0x0200), SMC, Inc(0x0707), rev 1.01 ________________________________ From: Bernd Walter [mailto:ticso@cicely12.cicely.de] Sent: Tue 20/09/2005 12:48 AM To: Chris Richards Cc: hselasky@c2i.net; freebsd-usb@freebsd.org Subject: Re: USB 2.0 external hard drive only 1.000MB/s transfers On Mon, Sep 19, 2005 at 08:17:36AM +1000, Chris Richards wrote: > Hi, >=20 > Here is the output with the different block size. >=20 > root@spunky2:~$ dd if=3D/dev/da0 of=3D/dev/null bs=3D64000 > ^C4262+0 records in > 4262+0 records out > 272768000 bytes transferred in 269.048179 secs (1013826 bytes/sec) What does usbdevs -v say? > From: owner-freebsd-usb@freebsd.org on behalf of Hans Petter Selasky > Sent: Sun 18/09/2005 9:05 PM > To: freebsd-usb@freebsd.org > Subject: Re: USB 2.0 external hard drive only 1.000MB/s transfers > > On Friday 16 September 2005 08:45, Hans Petter Selasky wrote: > > On Thursday 15 September 2005 14:01, Chris Richards wrote: > > > Hi, > > > > > > I bought a USB 2.0 external hard drive and USB 2.0 PCI card to use = for > > > backups on my FreeBSD box but the drive is recognised as only = being able > > > to do 1.000MB/s transfers. Obviously a USB 2.0 drive should be = able to > > > transfer data a lot faster... I have checked my config and can't = see any No - A high-speed drive should be able to transfer faster, but USB2.0 just means compliance with USB2.0 specs and not that it is high-speed. It is completely OK for a USB2.0 drive to be just full-speed. That said, even with a high-speed drive it finally can still be a slow one. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Mon Sep 19 22:28:52 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 A62A416A41F for ; Mon, 19 Sep 2005 22:28:52 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5FF743D46 for ; Mon, 19 Sep 2005 22:28:51 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.10/8.12.10) with ESMTP id j8JMSkBS042324 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 20 Sep 2005 00:28:48 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j8JMSHeG096750 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Sep 2005 00:28:17 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id j8JMSGTc002744; Tue, 20 Sep 2005 00:28:16 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id j8JMSGFx002743; Tue, 20 Sep 2005 00:28:16 +0200 (CEST) (envelope-from ticso) Date: Tue, 20 Sep 2005 00:28:16 +0200 From: Bernd Walter To: Chris Richards Message-ID: <20050919222815.GE552@cicely12.cicely.de> References: <0C9AA1AB019C4A44AE29659CF2BB203202F19C@gir.routemaster.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0C9AA1AB019C4A44AE29659CF2BB203202F19C@gir.routemaster.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Spam-Report: * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on cicely12.cicely.de Cc: ticso@cicely.de, freebsd-usb@freebsd.org Subject: Re: USB 2.0 external hard drive only 1.000MB/s transfers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 19 Sep 2005 22:28:52 -0000 On Tue, Sep 20, 2005 at 08:02:04AM +1000, Chris Richards wrote: > Hi, > > The requested output is below and I understand what you are saying about the speed of a drive vs USB 2.0. I have plugged the drive into Windows XP and transferred a file to it from another computer over my 100Mb LAN and it sits at around 9,000KB's so it is definitely capable of going faster than it currently is on FreeBSD. > > Cheers. > > -Chris > > -------------------------- > root@spunky2 :~# usbdevs -v > 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 powered > 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 addr 2: full speed, self powered, config 1, USB TO IDE(0x0702), vendor 0x05e3(0x05e3), rev 0.33 > Controller /dev/usb2: > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), VIA(0x0000), rev 1.00 > port 1 powered > port 2 powered > port 3 powered > port 4 powered > Controller /dev/usb3: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 > port 1 powered > port 2 addr 2: full speed, power 160 mA, config 1, EZ USB/Ethernet Converter(0x0200), SMC, Inc(0x0707), rev 1.01 So you have an high-speed controller (ehci), but you device is attaching to the full-speed controller (uhci). Your transferrate is not surprising with this setup. Does it make a difference if you connect the device after booting? You may also want to try another high-speed device or NEC based controller - VIA ones are known to have problems. There have been some workarounds for VIA based controller - they might help you or not. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Tue Sep 20 21:09:16 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 E148E16A41F for ; Tue, 20 Sep 2005 21:09:16 +0000 (GMT) (envelope-from uchman@home.se) Received: from pne-smtpout2-sn2.hy.skanova.net (pne-smtpout2-sn2.hy.skanova.net [81.228.8.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFC4643D4C for ; Tue, 20 Sep 2005 21:09:15 +0000 (GMT) (envelope-from uchman@home.se) Received: from cone.pean.org (195.198.247.49) by pne-smtpout2-sn2.hy.skanova.net (7.2.060.1) id 42B94E2900F94AAD for freebsd-usb@freebsd.org; Tue, 20 Sep 2005 23:09:14 +0200 Date: Tue, 20 Sep 2005 23:09:14 +0200 From: Peter =?ISO-8859-1?Q?Ankerst=E5l?= To: freebsd-usb@freebsd.org Message-Id: <20050920230914.06617904.uchman@home.se> X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: device problem (SET_ADDR_FAILED), disabling port X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2005 21:09:17 -0000 I have problems with usb on my new machine. Whatever device I connect it tells me "device problem (SET_ADDR_FAILED), di= sabling port N" uhub0: device problem (SET_ADDR_FAILED), disabling port 1 uhub1: device problem (SET_ADDR_FAILED), disabling port 2 I've tried a couple of cameras and a bluetooth-stick and all devices give m= e the same thing. I'm running FreeBSD 5.4-RELEASE-p7 With GENERIC kernel and have tried to bo= ot both with and without ACPI enabled. Info about the usb-controllers.. uhci0: port 0xe800-0xe81f irq 1= 1 at=20 device 29.0 on pci0 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 0xe880-0xe89f irq 3= at d evice 29.1 on pci0 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 0xec00-0xec1f irq 5= at d evice 29.2 on pci0 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 --=20 MVH Peter Ankerst=E5l. From owner-freebsd-usb@FreeBSD.ORG Tue Sep 20 22:16:59 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 C7E2D16A41F for ; Tue, 20 Sep 2005 22:16:59 +0000 (GMT) (envelope-from chrisric@routemaster.net) Received: from spunky2.routemaster.net (ppp13-110.lns2.syd7.internode.on.net [59.167.13.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE24E43D46 for ; Tue, 20 Sep 2005 22:16:57 +0000 (GMT) (envelope-from chrisric@routemaster.net) Received: from gir.routemaster.net (gir.routemaster.net [10.10.10.1]) by spunky2.routemaster.net (8.13.4/8.13.4) with ESMTP id j8KMGcnE003150; Wed, 21 Sep 2005 08:16:39 +1000 (EST) (envelope-from chrisric@routemaster.net) MIME-Version: 1.0 Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Wed, 21 Sep 2005 08:15:15 +1000 Message-ID: <0C9AA1AB019C4A44AE29659CF2BB203202F1A0@gir.routemaster.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: USB 2.0 external hard drive only 1.000MB/s transfers Thread-Index: AcW9aVUlOEVdNcuBSryIWOPpXOjMVwAxMy77 From: "Chris Richards" To: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: RE: USB 2.0 external hard drive only 1.000MB/s transfers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2005 22:16:59 -0000 Hi, =20 I was lucky enough to have a Belkin USB 2.0 PCI card (NEC chipset) in = another PC (WinXP) so I swapped them over thinking I would be on easy = street now - no difference. =20 It's like the companion controllers "usb0" and "usb1" don't get = recognised as being USB 2.0 capable. =20 A "usbdevs -v" output for each slot on the NEC chipset USB 2.0 PCI card = is below... and another dmesg output. =20 Cheers. =20 -Chris =20 ---------------------------------------- SLOT1: root@spunky2 :~# usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), = NEC(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), = NEC(0x0000), rev 1.00 port 1 addr 2: full speed, self powered, config 1, USB TO IDE(0x0702), = vendor 0x05e3(0x05e3), rev 0.33 port 2 powered Controller /dev/usb2: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), = NEC(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, power 160 mA, config 1, EZ USB/Ethernet = Converter(0x0200), SMC, Inc(0x0707), rev 1.01 =20 SLOT2: root@spunky2 :~# usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), = NEC(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, self powered, config 1, USB TO IDE(0x0702), = vendor 0x05e3(0x05e3), rev 0.33 port 3 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), = NEC(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb2: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), = NEC(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, power 160 mA, config 1, EZ USB/Ethernet = Converter(0x0200), SMC, Inc(0x0707), rev 1.01 =20 SLOT3: root@spunky2 :~# usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), = NEC(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), = NEC(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, self powered, config 1, USB TO IDE(0x0702), = vendor 0x05e3(0x05e3), rev 0.33 Controller /dev/usb2: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), = NEC(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, power 160 mA, config 1, EZ USB/Ethernet = Converter(0x0200), SMC, Inc(0x0707), rev 1.01 =20 SLOT4: root@spunky2 :~# usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), = NEC(0x0000), rev 1.00 port 1 powered port 2 powered port 3 addr 2: full speed, self powered, config 1, USB TO IDE(0x0702), = vendor 0x05e3(0x05e3), rev 0.33 Controller /dev/usb1: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), = NEC(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb2: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), = NEC(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, power 160 mA, config 1, EZ ?EZ USB/Ethernet = Conve(0x0200), SMC, Inc(0x0707), rev 1.01 =20 ---------------------------------------- Copyright (c) 1992-2005 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 6.0-BETA3 #1: Fri Sep 16 21:01:27 EST 2005 chrisric@spunky2.routemaster.net:/usr/obj/usr/src/sys/SPUNKY2 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel Pentium III (996.77-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0x68a Stepping =3D 10 = Features=3D0x383fbff real memory =3D 267386880 (255 MB) avail memory =3D 252207104 (240 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: pcibus 0 on = motherboard pir0: on motherboard pci0: on pcib0 agp0: mem = 0x44000000-0x47ffffff,0x40600000-0x4067ffff irq 5 at device 2.0 on pci0 pcib1: at device 30.0 on pci0 pci2: on pcib1 ohci0: mem 0x40000000-0x40000fff irq 5 at = device 4.0 on pci2 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0 usb0: on ohci0 usb0: USB revision 1.0 uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0x40100000-0x40100fff irq 10 at = device 4.1 on pci2 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0 usb1: on ohci1 usb1: USB revision 1.0 uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ehci0: mem 0x40300000-0x403000ff irq = 11 at device 4.2 on pci2 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 3 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 5 ports with 5 removable, self powered fxp0: port 0x1000-0x103f = mem 0x40200000-0x40200fff irq 5 at device 8.0 on pci2 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:02:a5:7e:c5:dd fxp0: [GIANT-LOCKED] wi0: mem 0x40700000-0x40700fff irq 11 at device 10.0 = on pci2 wi0: [GIANT-LOCKED] wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI) wi0: Intersil Firmware: Primary (1.1.0), Station (1.4.9) wi0: Ethernet address: 00:09:5b:69:15:58 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port = 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x2460-0x246f at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 uhci0: port = 0x2440-0x245f irq 11 at device 31.4 on pci0 uhci0: [GIANT-LOCKED] usb3: on uhci0 usb3: USB revision 1.0 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered pci0: at device 31.5 (no driver attached) pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc7fff,0xe0000-0xeffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 = on isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/13 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on = isa0 umass0: vendor 0x05e3 USB TO IDE, rev 2.00/0.33, addr 2 aue0: SMC, Inc EZ USB/Ethernet Converter, rev 1.10/1.01, addr 2 miibus1: on aue0 acphy0: on miibus1 acphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto aue0: Ethernet address: 00:04:e2:08:b3:bb Timecounter "TSC" frequency 996769176 Hz quality 800 Timecounters tick every 1.000 msec IPv6 packet filtering initialized, logging limited to 500 packets/entry IPsec: Initialized Security Association Processing. ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding = disabled, default to deny, logging limited to 500 packets/entry by = default ad0: 19092MB at ata0-master UDMA100 acd0: CDROM at ata1-master PIO4 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device=20 da0: 1.000MB/s transfers da0: 190781MB (390719855 512 byte sectors: 255H 63S/T 24321C) Trying to mount root from ufs:/dev/ad0s1a aue0: link state changed to DOWN ________________________________ From: Bernd Walter [mailto:ticso@cicely12.cicely.de] Sent: Tue 20/09/2005 8:28 AM To: Chris Richards Cc: ticso@cicely.de; hselasky@c2i.net; freebsd-usb@freebsd.org Subject: Re: USB 2.0 external hard drive only 1.000MB/s transfers On Tue, Sep 20, 2005 at 08:02:04AM +1000, Chris Richards wrote: > Hi, >=20 > The requested output is below and I understand what you are saying = about the speed of a drive vs USB 2.0. I have plugged the drive into = Windows XP and transferred a file to it from another computer over my = 100Mb LAN and it sits at around 9,000KB's so it is definitely capable of = going faster than it currently is on FreeBSD. >=20 > Cheers. >=20 > -Chris >=20 > -------------------------- > root@spunky2 :~# usbdevs -v > 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 powered > 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 addr 2: full speed, self powered, config 1, USB TO = IDE(0x0702), vendor 0x05e3(0x05e3), rev 0.33 > Controller /dev/usb2: > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), = VIA(0x0000), rev 1.00 > port 1 powered > port 2 powered > port 3 powered > port 4 powered > Controller /dev/usb3: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = Intel(0x0000), rev 1.00 > port 1 powered > port 2 addr 2: full speed, power 160 mA, config 1, EZ USB/Ethernet = Converter(0x0200), SMC, Inc(0x0707), rev 1.01 So you have an high-speed controller (ehci), but you device is attaching to the full-speed controller (uhci). Your transferrate is not surprising with this setup. Does it make a difference if you connect the device after booting? You may also want to try another high-speed device or NEC based controller - VIA ones are known to have problems. There have been some workarounds for VIA based controller - they might help you or not. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Tue Sep 20 22:51:23 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 DA92016A41F for ; Tue, 20 Sep 2005 22:51:23 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 933B443D7D for ; Tue, 20 Sep 2005 22:51:07 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.10/8.12.10) with ESMTP id j8KMoxBS067818 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 21 Sep 2005 00:51:01 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j8KMoPeG005506 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Sep 2005 00:50:25 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id j8KMoO17007688; Wed, 21 Sep 2005 00:50:24 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id j8KMoOpH007687; Wed, 21 Sep 2005 00:50:24 +0200 (CEST) (envelope-from ticso) Date: Wed, 21 Sep 2005 00:50:24 +0200 From: Bernd Walter To: Chris Richards Message-ID: <20050920225023.GM552@cicely12.cicely.de> References: <0C9AA1AB019C4A44AE29659CF2BB203202F1A0@gir.routemaster.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0C9AA1AB019C4A44AE29659CF2BB203202F1A0@gir.routemaster.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Spam-Report: * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on cicely12.cicely.de Cc: ticso@cicely.de, freebsd-usb@freebsd.org Subject: Re: USB 2.0 external hard drive only 1.000MB/s transfers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 20 Sep 2005 22:51:24 -0000 On Wed, Sep 21, 2005 at 08:15:15AM +1000, Chris Richards wrote: > Hi, > > I was lucky enough to have a Belkin USB 2.0 PCI card (NEC chipset) in another PC (WinXP) so I swapped them over thinking I would be on easy street now - no difference. > > It's like the companion controllers "usb0" and "usb1" don't get recognised as being USB 2.0 capable. The companion controllers are not high-sped capable, the EHCI are. The EHCI gets noticed about an attached device and if it finds it not to be a high-speed one it switches over the connector to it companion controller doing the full/low-speed job. It is more likely your device is too stupid to send a propper high speed signature, so it ends with the full-speed controller. You can build a kernel with USB_DEBUG and set sysctl hw.usb.uhub.debug=10 befor connecting the device, maybe we can see more. >From the symptoms the device looks very much a non high-speed one, no clue how you made it faster under Windows. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Tue Sep 20 23:32:00 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 44DB616A41F for ; Tue, 20 Sep 2005 23:32:00 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swipnet.se [212.247.155.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88F6843D45 for ; Tue, 20 Sep 2005 23:31:59 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-216-120-189.daxnet.no ([193.216.120.189] verified) by mailfe10.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 251471109 for freebsd-usb@freebsd.org; Wed, 21 Sep 2005 01:31:57 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 21 Sep 2005 01:32:57 +0200 User-Agent: KMail/1.7 References: <0C9AA1AB019C4A44AE29659CF2BB203202F1A0@gir.routemaster.net> In-Reply-To: <0C9AA1AB019C4A44AE29659CF2BB203202F1A0@gir.routemaster.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509210132.58027.hselasky@c2i.net> Subject: Re: USB 2.0 external hard drive only 1.000MB/s transfers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2005 23:32:00 -0000 On Wednesday 21 September 2005 00:15, Chris Richards wrote: > Hi, > > I was lucky enough to have a Belkin USB 2.0 PCI card (NEC chipset) in > another PC (WinXP) so I swapped them over thinking I would be on easy > street now - no difference. > > It's like the companion controllers "usb0" and "usb1" don't get recognised > as being USB 2.0 capable. > > A "usbdevs -v" output for each slot on the NEC chipset USB 2.0 PCI card is > below... and another dmesg output. > > Cheers. > > -Chris > Have you tried to re-plug your device once? Then see if it is still USB 1.0 full speed ? You should see something like this: # dd if=/dev/da0 of=/dev/null bs=64000 792+0 records in 792+0 records out 50688000 bytes transferred in 8.145711 secs (6222661 bytes/sec) port 6 addr 122: high speed, power 200 mA, config 1, Flash Disk(0x2168), USB(0x0ea0), rev 2.00 --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Sep 21 12:09:27 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 87CD216A41F for ; Wed, 21 Sep 2005 12:09:27 +0000 (GMT) (envelope-from chrisric@routemaster.net) Received: from spunky2.routemaster.net (ppp5-190.lns1.syd7.internode.on.net [59.167.5.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id E12D343D55 for ; Wed, 21 Sep 2005 12:09:24 +0000 (GMT) (envelope-from chrisric@routemaster.net) Received: from gir.routemaster.net (gir.routemaster.net [10.10.10.1]) by spunky2.routemaster.net (8.13.4/8.13.4) with ESMTP id j8LC8xbT000687; Wed, 21 Sep 2005 22:09:00 +1000 (EST) (envelope-from chrisric@routemaster.net) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Wed, 21 Sep 2005 22:07:35 +1000 Message-ID: <0C9AA1AB019C4A44AE29659CF2BB203202EA2B@gir.routemaster.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: USB 2.0 external hard drive only 1.000MB/s transfers Thread-Index: AcW+NaVSv7yzNmzOQeGlN+WW2SiA+QAbGITw From: "Chris Richards" To: Cc: freebsd-usb@freebsd.org Subject: RE: USB 2.0 external hard drive only 1.000MB/s transfers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 12:09:27 -0000 Hi, Well... I am sorry to say I have been wasting everyone's time. I assumed that because my USB hard disk was recognised and worked at USB 2.0 speeds on Widnows XP then it would work just as well on my FreeBSD box. I borrowed a friends USB 2.0 hard disk and flash disk today... They both get recognised correctly! My BlueEye (U235J USB2.0) must not comply to USB 2.0 standards, I will see if I can't get any info from the maker (www.noontec.com) about this issue. Thank you to everyone for your help and sorry about the wild goose chase. -Chris # Sep 21 21:41:08 spunky2 kernel: uhub4: Prolific Technology Inc. USB_HUB, class 9/0, rev 2.00/0.01, addr 2 Sep 21 21:41:08 spunky2 kernel: uhub4: single transaction translator Sep 21 21:41:08 spunky2 kernel: uhub4: 1 port with 0 removable, self powered Sep 21 21:41:09 spunky2 kernel: umass1: Prolific Technology Inc. USB_Storage, rev 2.00/0.01, addr 3 Sep 21 21:41:09 spunky2 kernel: da2 at umass-sim1 bus 1 target 0 lun 0 Sep 21 21:41:09 spunky2 kernel: da2: Removable Direct Access SCSI-0 device=20 Sep 21 21:41:09 spunky2 kernel: da2: 40.000MB/s transfers Sep 21 21:41:09 spunky2 kernel: da2: 250MB (512000 512 byte sectors: 64H 32S/T 250C) # Sep 21 21:44:10 spunky2 kernel: umass2: Maxtor OneTouch, rev 2.00/2.00, addr 4 Sep 21 21:44:10 spunky2 kernel: umass2: Get Max Lun not supported (STALLED) Sep 21 21:44:12 spunky2 kernel: da3 at umass-sim2 bus 2 target 0 lun 0 Sep 21 21:44:12 spunky2 kernel: da3: Fixed Direct Access SCSI-0 device=20 Sep 21 21:44:12 spunky2 kernel: da3: 40.000MB/s transfers Sep 21 21:44:12 spunky2 kernel: da3: 78166MB (160084992 512 byte sectors: 255H 63S/T 9964C) # -----Original Message----- From: Bernd Walter [mailto:ticso@cicely12.cicely.de]=20 Sent: Wednesday, 21 September 2005 8:50 AM To: Chris Richards Cc: ticso@cicely.de; hselasky@c2i.net; freebsd-usb@freebsd.org; bakul@bitblocks.com Subject: Re: USB 2.0 external hard drive only 1.000MB/s transfers On Wed, Sep 21, 2005 at 08:15:15AM +1000, Chris Richards wrote: > Hi, > =20 > I was lucky enough to have a Belkin USB 2.0 PCI card (NEC chipset) in another PC (WinXP) so I swapped them over thinking I would be on easy street now - no difference. > =20 > It's like the companion controllers "usb0" and "usb1" don't get recognised as being USB 2.0 capable. The companion controllers are not high-sped capable, the EHCI are. The EHCI gets noticed about an attached device and if it finds it not to be a high-speed one it switches over the connector to it companion controller doing the full/low-speed job. It is more likely your device is too stupid to send a propper high speed signature, so it ends with the full-speed controller. You can build a kernel with USB_DEBUG and set sysctl hw.usb.uhub.debug=3D10 befor connecting the device, maybe we can see = more. >From the symptoms the device looks very much a non high-speed one, no clue how you made it faster under Windows. --=20 B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Wed Sep 21 17:33:31 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 E9FFB16A4A9 for ; Wed, 21 Sep 2005 17:33:31 +0000 (GMT) (envelope-from csabamolnar@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D46B43D45 for ; Wed, 21 Sep 2005 17:33:31 +0000 (GMT) (envelope-from csabamolnar@gmail.com) Received: by xproxy.gmail.com with SMTP id t6so176553wxc for ; Wed, 21 Sep 2005 10:33:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:reply-to:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:from; b=QTXGEmugS+9J6+x/Nt44IiqMT0B8u2qvhTR+jv5O+4UvcVZwQiFBS2wUZMoLmgoI0KiVIcDF3Xl8KvtncL9Ky0Uh6sJg+7SfAg0nEnSyotVPh46L834TkmLgxDdZ1XAGoYUp8a5q12/RPo5Vi9vZM1o/Twa2DwQbNOv3homA9i0= Received: by 10.70.16.17 with SMTP id 17mr2615829wxp; Wed, 21 Sep 2005 10:33:30 -0700 (PDT) Received: from ?172.19.5.120? ( [193.6.168.3]) by mx.gmail.com with ESMTP id i15sm2206973wxd.2005.09.21.10.33.29; Wed, 21 Sep 2005 10:33:30 -0700 (PDT) To: freebsd-usb@freebsd.org Date: Wed, 21 Sep 2005 19:11:02 +0200 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509211911.02664.molnarcs@gmail.com> From: =?iso-8859-1?q?Moln=E1r_Csaba?= Subject: RE: New USB driver & API (updated) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: molnarcs@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 17:33:32 -0000 I have tried your patches - and for the first time, device nodes were created for my USB Ipod-Mini. Previously, it worked only when atapicam was not built into the kernel. It was recognized, but no device nodes were created. (fireware ipods worked fine). On the other hand, my usb stick froze my computer, during file operations (copy, delete). This was the console message I got: umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:4:0:-1: Attached to scbus4 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Invalid CSW: tag 1463 should be 1464 umass0: Invalid CSW: tag 538976288 should be 1468 umass0: Invalid CSW: tag 538976288 should be 1469 umass0: Invalid CSW: tag 538976288 should be 1470 umass0: Invalid CSW: tag 538976288 should be 1471 umass0: Invalid CSW: tag 538976288 should be 1472 System is 5.4-STABLE (world and kernel built 2 weeks ago). From owner-freebsd-usb@FreeBSD.ORG Wed Sep 21 22:45:25 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 1138B16A423 for ; Wed, 21 Sep 2005 22:45:25 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swip.net [212.247.155.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81DCF43D46 for ; Wed, 21 Sep 2005 22:45:22 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-216-86-165.daxnet.no ([193.216.86.165] verified) by mailfe14.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 23386791; Thu, 22 Sep 2005 00:45:20 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, molnarcs@gmail.com Date: Thu, 22 Sep 2005 00:46:21 +0200 User-Agent: KMail/1.7 References: <200509211911.02664.molnarcs@gmail.com> In-Reply-To: <200509211911.02664.molnarcs@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200509220046.21921.hselasky@c2i.net> Cc: Subject: Re: New USB driver & API (updated) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 22:45:25 -0000 On Wednesday 21 September 2005 19:11, Moln=E1r Csaba wrote: > I have tried your patches - and for the first time, device nodes were > created for my USB Ipod-Mini. Previously, it worked only when atapicam was > not built into the kernel. It was recognized, but no device nodes were > created. (fireware ipods worked fine). > > On the other hand, my usb stick froze my computer, during file operations > (copy, delete). This was the console message I got: I think that the freeze has something to do with how "umass" is designed. I= =20 have also seen this on my computer. Umass does not pre-allocate memory, but= =20 allocates this from the "callbacks", which are called from interrupt contex= t.=20 When the interrupt handler sleeps, and this interrupt is shared, then those= =20 devices that use that interrupt handler will not respond. It is not so difficult to change umass a little, so that it pre-allocates t= his=20 memory, but I don't know what the maximum transfer size is, hence the data= =20 packets come from the CAM layer. So if there is a 512K to transfer, maybe=20 that can be split into 8 transfers of 64K ? > > umass0: SCSI over Bulk-Only; quirks =3D 0x0000 > umass0:4:0:-1: Attached to scbus4 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-0 device > da0: 40.000MB/s transfers > da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) > umass0: Invalid CSW: tag 1463 should be 1464 > umass0: Invalid CSW: tag 538976288 should be 1468 > umass0: Invalid CSW: tag 538976288 should be 1469 > umass0: Invalid CSW: tag 538976288 should be 1470 > umass0: Invalid CSW: tag 538976288 should be 1471 > umass0: Invalid CSW: tag 538976288 should be 1472 > How much ram have you got? Are you running KDE? =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Wed Sep 21 23:40:05 2005 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 74EFB16A41F for ; Wed, 21 Sep 2005 23:40:05 +0000 (GMT) (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 88CBD43D48 for ; Wed, 21 Sep 2005 23:40:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8LNe49E097031 for ; Wed, 21 Sep 2005 23:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8LNe4lF097030; Wed, 21 Sep 2005 23:40:04 GMT (envelope-from gnats) Resent-Date: Wed, 21 Sep 2005 23:40:04 GMT Resent-Message-Id: <200509212340.j8LNe4lF097030@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, "Josh Elsasser" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA70C16A41F for ; Wed, 21 Sep 2005 23:36:32 +0000 (GMT) (envelope-from josh@elsasser.org) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A75343D45 for ; Wed, 21 Sep 2005 23:36:32 +0000 (GMT) (envelope-from josh@elsasser.org) Received: from mail.elsasser.org ([141.154.51.169]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IN600J0XXKTGOM4@vms042.mailsrvcs.net> for FreeBSD-gnats-submit@freebsd.org; Wed, 21 Sep 2005 18:36:29 -0500 (CDT) Received: from loki.nat.elsasser.org (loki.nat.elsasser.org [10.40.92.2]) by mail.elsasser.org (Postfix) with ESMTP id 9457111488 for ; Wed, 21 Sep 2005 19:36:28 -0400 (EDT) Received: from loki.nat.elsasser.org (localhost [127.0.0.1]) by loki.nat.elsasser.org (Postfix) with ESMTP id 6846DC15D for ; Wed, 21 Sep 2005 19:36:28 -0400 (EDT) Message-Id: <1127345788.0@loki.nat.elsasser.org> Date: Wed, 21 Sep 2005 19:36:28 -0400 From: "Josh Elsasser" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.6 Cc: Subject: usb/86438: Fix for non-working iPod over USB is in NetBSD CVS X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 23:40:05 -0000 >Number: 86438 >Category: usb >Synopsis: Fix for non-working iPod over USB is in NetBSD CVS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 21 23:40:04 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Josh Elsasser >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: System: FreeBSD 5.4-STABLE #10: Wed Sep 21 18:14:39 EDT 2005 joshe@loki.nat.elsasser.org:/usr/src/sys/i386/compile/LOKI >Description: A recent commit to the NetBSD USB code allows my iPod, which has never worked over USB in FreeBSD or NetBSD, to attach and function normally. Here is the text of the commit message, rev 1.30 of sys/dev/usb/usb_subr.c: Module Name: src Committed By: nathanw Date: Wed Sep 21 20:17:22 UTC 2005 Modified Files: src/sys/dev/usb: usb_subr.c Log Message: usbd_setup_pipe(): Don't call usbd_clear_endpoint_stall(). It's not necessary for normal devices, and it prevents some common (but apparantly buggy) devices from working, including the Apple iPod (mini and photo) and certain M-Systems DiskOnKey flash devices. If (also buggy) devices resurface that need this when they are attached, they can be addressed, ideally in each device's driver. >How-To-Repeat: >Fix: $ cvs -d :pserver:anoncvs@anoncvs.netbsd.org:/cvsroot rdiff -u -r1.129 -r1.130 src/sys/dev/usb/usb_subr.c diff -u src/sys/dev/usb/usb_subr.c:1.129 src/sys/dev/usb/usb_subr.c:1.130 --- src/sys/dev/usb/usb_subr.c:1.129 Fri Aug 26 12:42:11 2005 +++ src/sys/dev/usb/usb_subr.c Wed Sep 21 20:17:22 2005 @@ -1,4 +1,4 @@ -/* $NetBSD: usb_subr.c,v 1.129 2005/08/26 12:42:11 drochner Exp $ */ +/* $NetBSD: usb_subr.c,v 1.130 2005/09/21 20:17:22 nathanw Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */ /* @@ -39,7 +39,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.129 2005/08/26 12:42:11 drochner Exp $"); +__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.130 2005/09/21 20:17:22 nathanw Exp $"); #include "opt_usbverbose.h" @@ -756,15 +756,6 @@ free(p, M_USB); return (err); } - /* Clear any stall and make sure DATA0 toggle will be used next. */ - if (UE_GET_ADDR(ep->edesc->bEndpointAddress) != USB_CONTROL_ENDPOINT) { - err = usbd_clear_endpoint_stall(p); - /* Some devices reject this command, so ignore a STALL. */ - if (err && err != USBD_STALLED) { - printf("usbd_setup_pipe: failed to start endpoint, %s\n", usbd_errstr(err)); - return (err); - } - } *pipe = p; return (USBD_NORMAL_COMPLETION); } >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Sep 22 00:09:16 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 46B5B16A41F for ; Thu, 22 Sep 2005 00:09:16 +0000 (GMT) (envelope-from tlb@tlb.org) Received: from anybots.com (w047.z064220186.sjc-ca.dsl.cnc.net [64.220.186.47]) by mx1.FreeBSD.org (Postfix) with SMTP id BF79D43D46 for ; Thu, 22 Sep 2005 00:09:15 +0000 (GMT) (envelope-from tlb@tlb.org) Received: (qmail 3303 invoked from network); 22 Sep 2005 00:09:14 -0000 Received: from unknown (HELO fester) (10.10.10.20) by 10.10.10.20 with SMTP; 22 Sep 2005 00:09:14 -0000 From: Trevor Blackwell To: freebsd-usb@freebsd.org Content-Type: text/plain Date: Wed, 21 Sep 2005 17:09:14 -0700 Message-Id: <1127347754.2188.18.camel@lab> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: Slow uhid performance on Saitek X45 joystick X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2005 00:09:16 -0000 I'm using a Saitek X45 joystick, with the uhid driver, and it all works great except that the update rate is quite slow, about 7 per second or 140 mS between updates. I see the same behavior both on a 1.8 GHz P4 and on a dual 3.0 GHz Xeon both running FreeBSD 5.4-RELEASE-p6. Plugging in the device (with USB_DEBUG) gives: uhid0: Saitek Saitek X45 Flight Control Stick, rev 2.00/4.02, addr 3, iclass 3/0 uhid_attach: bLength=7 bDescriptorType=5 bEndpointAddress=1-in bmAttributes=3 wMaxPacketSize=8 bInterval=10 usbd_alloc_xfer() = 0xc31b8c00 usbd_transfer: xfer=0xc31b8c00, flags=2, pipe=0xc29c5580, running=0 usbd_dump_queue: pipe=0xc29c5580 usb_insert_transfer: pipe=0xc29c5580 running=0 timeout=5000 uhci_device_control type=0x81, request=0x06, wValue=0x2200, wIndex=0x0000 len=131, addr=3, endpt=0 uhci_alloc_std_chain: addr=3 endpt=0 len=131 speed=1 flags=0x2 usb_schedsoftintr: polling=0 The bInterval suggests it should sample every 10 mS. When I open it I get... uhidopen: sc=0xc29a5780 usbd_open_pipe_intr: address=0x81 flags=0x4 len=11 usbd_open_pipe: iface=0xc226ed20 address=0x81 flags=0x1 usbd_setup_pipe: dev=0xc2987800 iface=0xc226ed20 ep=0xc2a783d0 pipe=0xe3f0798c uhci_open: pipe=0xc2009800, addr=3, endpt=129 (1) uhci_device_setintr: pipe=0xc2009800 uhci_device_setintr: ival=10 npoll=13 uhci_device_setintr: bw=0 offs=1 uhci_add_intr: n=1 sqh=0xc1ffd820 uhci_add_intr: n=11 sqh=0xc1ffd840 uhci_add_intr: n=21 sqh=0xc1ffd860 uhci_add_intr: n=31 sqh=0xc1ffd880 uhci_add_intr: n=41 sqh=0xc1ffd8a0 uhci_add_intr: n=51 sqh=0xc1ffd8c0 uhci_add_intr: n=61 sqh=0xc1ffd8e0 uhci_add_intr: n=71 sqh=0xc1ffd900 uhci_add_intr: n=81 sqh=0xc1ffd920 uhci_add_intr: n=91 sqh=0xc1ffd940 uhci_add_intr: n=101 sqh=0xc1ffdee0 uhci_add_intr: n=111 sqh=0xc1ffde80 uhci_add_intr: n=121 sqh=0xc1ffd7e0 uhci_device_setintr: returns 0xc2009800 usbd_clear_endpoint_stall usbd_alloc_xfer() = 0xc31b8c00 usbd_transfer: xfer=0xc31b8c00, flags=2, pipe=0xc29c5580, running=0 usbd_dump_queue: pipe=0xc29c5580 usb_insert_transfer: pipe=0xc29c5580 running=0 timeout=5000 uhci_device_control type=0x02, request=0x01, wValue=0x0000, wIndex=0x0081 len=0, addr=3, endpt=0 And then, repeating about 7 times per second when the joystick is moving... usb_transfer_complete: pipe=0xc2009800 xfer=0xc31b8c00 status=0 actlen=11 usb_transfer_complete: repeat=1 new head=0xc31b8c00 uhid_intr: status=0 cc=11 uhid_intr: data = ff f7 7f c2 80 aa 63 00 21 00 00 uhid_intr: waking 0xc29a57b4 uhci_device_intr_done: length=11 uhci_device_intr_done: requeing uhci_alloc_std_chain: addr=3 endpt=1 len=11 speed=1 flags=0x4 uhidread: woke, error=0 uhidread: got 11 chars uhidread uhidread: sleep on 0xc29a57b4 usb_schedsoftintr: polling=0 so everything works just like I'd expect, except for the slow update rate. 7/second may sound like a lot, but it's unusable for controlling things. Other USB devices have high update rates on this system, such as a: uhid0: Phidgets Inc. PhidgetInterfaceKit, rev 1.10/8.0b, addr 4, iclass 3/0 which gives a reliable 50 updates/sec with an 8-byte input record. The joystick is popular for flight simulators under Linux, and I haven't found reports of a similar problem with the Linux kernel The relevant uhci and uhub devices are: uhci0: port 0xef40-0xef5f irq 19 at device 31.2 on pci0 uhci0: LegSup = 0x0030 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 uhub2: D-Link product 0xf103, class 9/0, rev 2.00/1.00, addr 2 uhub2: 7 ports with 7 removable, self powered I've spend a couple hours poking around with no revelations yet, but if someone could give me a push in the right direction I might be able to fix it. -- Trevor Blackwell tlb@tlb.org (650) 776-7870 From owner-freebsd-usb@FreeBSD.ORG Thu Sep 22 06:10:13 2005 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 DF3F716A41F for ; Thu, 22 Sep 2005 06:10:13 +0000 (GMT) (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 98F8743D45 for ; Thu, 22 Sep 2005 06:10: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.3/8.13.3) with ESMTP id j8M6ADp0049923 for ; Thu, 22 Sep 2005 06:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8M6ADsK049922; Thu, 22 Sep 2005 06:10:13 GMT (envelope-from gnats) Date: Thu, 22 Sep 2005 06:10:13 GMT Message-Id: <200509220610.j8M6ADsK049922@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Michael Schout Cc: Subject: Re: usb/86438: Fix for non-working iPod over USB is in NetBSD CVS X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Schout List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2005 06:10:14 -0000 The following reply was made to PR usb/86438; it has been noted by GNATS. From: Michael Schout To: bug-followup@FreeBSD.org, josh@elsasser.org Cc: Subject: Re: usb/86438: Fix for non-working iPod over USB is in NetBSD CVS Date: Thu, 22 Sep 2005 01:09:50 -0500 Just want to point out that this patch makes the new iPod nano work in FreeBSD also. Before, FreeBSD would not see the partitions when the nano was plugged in. With this patch, the nano works perfectly. (Tested on: RELENG_5, cvsupped on Sep 20). From owner-freebsd-usb@FreeBSD.ORG Sat Sep 24 03:59:22 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 9AECF16A41F for ; Sat, 24 Sep 2005 03:59:22 +0000 (GMT) (envelope-from csabamolnar@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37C7643D49 for ; Sat, 24 Sep 2005 03:59:22 +0000 (GMT) (envelope-from csabamolnar@gmail.com) Received: by xproxy.gmail.com with SMTP id t13so762777wxc for ; Fri, 23 Sep 2005 20:59:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:reply-to:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:from; b=Y9RbR4TXLWyTj8p0G5oDIALcIYyx1ybp3uIJca+QTC+cE1aFwIy8L1eHc2Pgz7hJ/lmOkicpXV7Q2ih2dR7bkCh+hiXHDUoJZCP127+Bdp9die09WqhxK+PMxhjuLyf2OrNBBGduqAiL0j6gnQURSLr5EUB//ztiS6cgl431Nco= Received: by 10.70.69.7 with SMTP id r7mr1280668wxa; Fri, 23 Sep 2005 16:37:59 -0700 (PDT) Received: from ?172.19.5.120? ( [193.6.168.3]) by mx.gmail.com with ESMTP id i19sm705304wxd.2005.09.23.16.37.58; Fri, 23 Sep 2005 16:37:59 -0700 (PDT) To: hselasky@c2i.net Date: Sat, 24 Sep 2005 01:40:51 +0200 User-Agent: KMail/1.8.2 References: <200509211911.02664.molnarcs@gmail.com> <200509220046.21921.hselasky@c2i.net> In-Reply-To: <200509220046.21921.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509240140.52380.molnarcs@gmail.com> From: =?iso-8859-1?q?Moln=E1r_Csaba?= Cc: freebsd-usb@freebsd.org Subject: Re: New USB driver & API (updated) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: molnarcs@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2005 03:59:22 -0000 Thanks for the tip - some months ago I accidentally disabled swap partition (commented out the wrong line, I wanted to remove a cdrom entry for a different acount) ... and only find out about it a week later in top :) So it should be a good short-term solution until you guys work out something :) Thanks for your efforts, and have a nice weekend :) From owner-freebsd-usb@FreeBSD.ORG Sat Sep 24 21:56:28 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org 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 1377D16A41F for ; Sat, 24 Sep 2005 21:56:28 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from crumpet.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C40043D48 for ; Sat, 24 Sep 2005 21:56:27 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from bigguy.am-productions.biz (am-productions.biz [69.61.164.22]) (authenticated bits=0) by crumpet.united-ware.com (8.12.8p2/8.12.8) with ESMTP id j8OLpNC9054986 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sat, 24 Sep 2005 17:51:24 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-usb@freebsd.org Date: Sat, 24 Sep 2005 17:57:03 -0400 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart7842964.lhXhpmkQZA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200509241757.14231.mistry.7@osu.edu> X-Spam-Status: No, hits=-3.0 required=5.0 tests=BAYES_50,MYFREEBSD2 autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on crumpet.united-ware.com X-Virus-Scanned: ClamAV 0.86.2/1099/Fri Sep 23 16:29:28 2005 on crumpet.united-ware.com X-Virus-Status: Clean X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [PATCH] Trying to get UCR-61S2B support X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2005 21:56:28 -0000 --nextPart7842964.lhXhpmkQZA Content-Type: multipart/mixed; boundary="Boundary-01=_wucNDL1x7qF3Fb4" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_wucNDL1x7qF3Fb4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline After looking at this PR=20 http://www.freebsd.org/cgi/query-pr.cgi?pr=3D62257 I've been trying to get my UCR card reader to work. I've gotten as=20 far as trying to initialize the card reader by sending it the=20 initialization string, but it seems to panic in umass.c on=20 umass_bbb_state with "umass0: Unknown state 1". The state 1 is=20 TSTATE_IDLE. I'm not sure if anyone can help, but I think I'm pretty=20 close. I *think* the TSTATE_IDLE comes from the sc->transfer_state=20 setting at the end of the umass_attach function since the calls for=20 the data transfers are asynchronous. The callback for the=20 umass_bbb_transfer function isn't called before the panic so it=20 doesn't seem like the transfer has actually occurred yet. I'm going=20 to keep trying to get a backtrace, but I've had no luck so far. Any=20 suggestions on where to go? Thanks, =2D-=20 Anish Mistry --Boundary-01=_wucNDL1x7qF3Fb4-- --nextPart7842964.lhXhpmkQZA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDNcu5xqA5ziudZT0RAuRBAJ0WHYtlUD4hcsWHxtWStM9pVXZZnQCg2rd2 2/mnYW8pwpKPQrFTdd6yIrg= =1183 -----END PGP SIGNATURE----- --nextPart7842964.lhXhpmkQZA--