From owner-freebsd-usb@FreeBSD.ORG Sun Jan 5 10:50:01 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 81EFA546 for ; Sun, 5 Jan 2014 10:50:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6C956148D for ; Sun, 5 Jan 2014 10:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s05Ao1HA081605 for ; Sun, 5 Jan 2014 10:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s05Ao1Od081604; Sun, 5 Jan 2014 10:50:01 GMT (envelope-from gnats) Date: Sun, 5 Jan 2014 10:50:01 GMT Message-Id: <201401051050.s05Ao1Od081604@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: usb/185454: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jan 2014 10:50:01 -0000 The following reply was made to PR usb/185454; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/185454: commit references a PR Date: Sun, 5 Jan 2014 10:41:52 +0000 (UTC) Author: hselasky Date: Sun Jan 5 10:41:43 2014 New Revision: 260315 URL: http://svnweb.freebsd.org/changeset/base/260315 Log: Implement two new libusb API functions. PR: usb/185454 MFC after: 2 weeks Modified: head/lib/libusb/Makefile head/lib/libusb/libusb.3 head/lib/libusb/libusb.h head/lib/libusb/libusb10_io.c Modified: head/lib/libusb/Makefile ============================================================================== --- head/lib/libusb/Makefile Sun Jan 5 02:00:05 2014 (r260314) +++ head/lib/libusb/Makefile Sun Jan 5 10:41:43 2014 (r260315) @@ -130,6 +130,8 @@ MLINKS += libusb.3 libusb_event_handler_ MLINKS += libusb.3 libusb_lock_event_waiters.3 MLINKS += libusb.3 libusb_unlock_event_waiters.3 MLINKS += libusb.3 libusb_wait_for_event.3 +MLINKS += libusb.3 libusb_handle_events_timeout_completed.3 +MLINKS += libusb.3 libusb_handle_events_completed.3 MLINKS += libusb.3 libusb_handle_events_timeout.3 MLINKS += libusb.3 libusb_handle_events.3 MLINKS += libusb.3 libusb_handle_events_locked.3 Modified: head/lib/libusb/libusb.3 ============================================================================== --- head/lib/libusb/libusb.3 Sun Jan 5 02:00:05 2014 (r260314) +++ head/lib/libusb/libusb.3 Sun Jan 5 10:41:43 2014 (r260315) @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 7, 2013 +.Dd January 5, 2014 .Dt LIBUSB 3 .Os .Sh NAME @@ -485,11 +485,40 @@ transfer completes or another thread sto timeout expired. .Pp .Ft int +.Fn libusb_handle_events_timeout_completed "libusb_context *ctx" "struct timeval *tv" "int *completed" +Handle any pending events by checking if timeouts have expired and by +checking the set of file descriptors for activity. +If the +.Fa completed +argument is not equal to NULL, this function will +loop until a transfer completion callback sets the variable pointed to +by the +.Fa completed +argument to non-zero. +If the +.Fa tv +argument is not equal to NULL, this function will return +LIBUSB_ERROR_TIMEOUT after the given timeout. +Returns 0 on success, or a LIBUSB_ERROR code on failure or timeout. +.Pp +.Ft int +.Fn libusb_handle_events_completed "libusb_context *ctx" "int *completed" +Handle any pending events by checking the set of file descriptors for activity. +If the +.Fa completed +argument is not equal to NULL, this function will +loop until a transfer completion callback sets the variable pointed to +by the +.Fa completed +argument to non-zero. +Returns 0 on success, or a LIBUSB_ERROR code on failure. +.Pp +.Ft int .Fn libusb_handle_events_timeout "libusb_context *ctx" "struct timeval *tv" Handle any pending events by checking if timeouts have expired and by checking the set of file descriptors for activity. Returns 0 on success, or a -LIBUSB_ERROR code on failure. +LIBUSB_ERROR code on failure or timeout. .Pp .Ft int .Fn libusb_handle_events "libusb_context *ctx" @@ -508,7 +537,7 @@ Must be called with the event lock held. Determine the next internal timeout that libusb needs to handle. Returns 0 if there are no pending timeouts, 1 if a timeout was returned, or a LIBUSB_ERROR -code on failure. +code on failure or timeout. .Pp .Ft void .Fn libusb_set_pollfd_notifiers "libusb_context *ctx" "libusb_pollfd_added_cb added_cb" "libusb_pollfd_removed_cb remove_cb" "void *user_data" Modified: head/lib/libusb/libusb.h ============================================================================== --- head/lib/libusb/libusb.h Sun Jan 5 02:00:05 2014 (r260314) +++ head/lib/libusb/libusb.h Sun Jan 5 10:41:43 2014 (r260315) @@ -438,6 +438,8 @@ int libusb_event_handler_active(libusb_c void libusb_lock_event_waiters(libusb_context * ctx); void libusb_unlock_event_waiters(libusb_context * ctx); int libusb_wait_for_event(libusb_context * ctx, struct timeval *tv); +int libusb_handle_events_timeout_completed(libusb_context * ctx, struct timeval *tv, int *completed); +int libusb_handle_events_completed(libusb_context * ctx, int *completed); int libusb_handle_events_timeout(libusb_context * ctx, struct timeval *tv); int libusb_handle_events(libusb_context * ctx); int libusb_handle_events_locked(libusb_context * ctx, struct timeval *tv); Modified: head/lib/libusb/libusb10_io.c ============================================================================== --- head/lib/libusb/libusb10_io.c Sun Jan 5 02:00:05 2014 (r260314) +++ head/lib/libusb/libusb10_io.c Sun Jan 5 10:41:43 2014 (r260315) @@ -336,29 +336,50 @@ libusb_wait_for_event(libusb_context *ct } int -libusb_handle_events_timeout(libusb_context *ctx, struct timeval *tv) +libusb_handle_events_timeout_completed(libusb_context *ctx, + struct timeval *tv, int *completed) { - int err; + int err = 0; ctx = GET_CONTEXT(ctx); - DPRINTF(ctx, LIBUSB_DEBUG_FUNCTION, "libusb_handle_events_timeout enter"); + DPRINTF(ctx, LIBUSB_DEBUG_FUNCTION, "libusb_handle_events_timeout_completed enter"); libusb_lock_events(ctx); - err = libusb_handle_events_locked(ctx, tv); + while (1) { + if (completed != NULL) { + if (*completed != 0 || err != 0) + break; + } + err = libusb_handle_events_locked(ctx, tv); + if (completed == NULL) + break; + } libusb_unlock_events(ctx); - DPRINTF(ctx, LIBUSB_DEBUG_FUNCTION, "libusb_handle_events_timeout leave"); + DPRINTF(ctx, LIBUSB_DEBUG_FUNCTION, "libusb_handle_events_timeout_completed exit"); return (err); } int +libusb_handle_events_completed(libusb_context *ctx, int *completed) +{ + return (libusb_handle_events_timeout_completed(ctx, NULL, completed)); +} + +int +libusb_handle_events_timeout(libusb_context *ctx, struct timeval *tv) +{ + return (libusb_handle_events_timeout_completed(ctx, tv, NULL)); +} + +int libusb_handle_events(libusb_context *ctx) { - return (libusb_handle_events_timeout(ctx, NULL)); + return (libusb_handle_events_timeout_completed(ctx, NULL, NULL)); } int @@ -371,8 +392,9 @@ libusb_handle_events_locked(libusb_conte if (libusb_event_handling_ok(ctx)) { err = libusb10_handle_events_sub(ctx, tv); } else { - libusb_wait_for_event(ctx, tv); - err = 0; + err = libusb_wait_for_event(ctx, tv); + if (err != 0) + err = LIBUSB_ERROR_TIMEOUT; } return (err); } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Mon Jan 6 02:00:46 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A63544EC for ; Mon, 6 Jan 2014 02:00:46 +0000 (UTC) Received: from sanddollar.geekisp.com (sanddollar.geekisp.com [216.168.135.167]) by mx1.freebsd.org (Postfix) with SMTP id 39DB018B6 for ; Mon, 6 Jan 2014 02:00:46 +0000 (UTC) Received: (qmail 9862 invoked by uid 1003); 6 Jan 2014 01:54:04 -0000 Received: from unknown (HELO kiwi) (tyler@monkeypox.org@173.239.70.2) by mail.geekisp.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 6 Jan 2014 01:54:03 -0000 Date: Sun, 5 Jan 2014 17:53:59 -0800 From: "R. Tyler Croy" To: freebsd-usb@freebsd.org Subject: USB_ERR_STALLED on -PRERELEASE when attaching a Galaxy Nexus Message-ID: <20140106015359.GA3245@kiwi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhCCdIwQf0d0uSA5" Content-Disposition: inline User-Agent: Mutt/1.5.22 (2013-10-16) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jan 2014 02:00:46 -0000 --AhCCdIwQf0d0uSA5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I'm trying to tinker with my Galaxy Nexus phone, and I seem to have issues with connecting the phone. Below is the dmesg that comes up, when the phone is attached, my USB keybaord gets funky too Jan 5 17:39:21 kiwi kernel: ugen7.5: at usbus7 Jan 5 17:39:21 kiwi devd: Executing 'logger Unknown USB device: vendor 0x04e8 product 0x685c bus uhub0' Jan 5 17:39:21 kiwi root: Unknown USB device: vendor 0x04e8 product 0x685c bus uhub0 Jan 5 17:39:21 kiwi kernel: ums1: at uhub8, port 2, addr 4 (disconnected) Jan 5 17:39:21 kiwi devd: Executing '/etc/rc.d/moused stop ums1' Jan 5 17:39:22 kiwi kernel: usbd_req_re_enumerate: addr=4, set address failed! (USB_ERR_STALLED, ignored) Jan 5 17:39:23 kiwi kernel: usbd_setup_device_desc: getting device descriptor at addr 4 failed, USB_ERR_STALLED Jan 5 17:39:24 kiwi kernel: usbd_req_re_enumerate: addr=4, set address failed! (USB_ERR_STALLED, ignored) Jan 5 17:39:25 kiwi kernel: usbd_setup_device_desc: getting device descriptor at addr 4 failed, USB_ERR_STALLED I'm running: FreeBSD kiwi 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #6 r259920: Thu Dec 26 12:14:47 PST 2013 root@kiwi:/usr/obj/usr/src/sys/KIWI amd64 Is this a bug I should try to track down? - R. Tyler Croy ------------------ Code: https://github.com/rtyler Chatter: https://twitter.com/agentdero rtyler@jabber.org --AhCCdIwQf0d0uSA5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlLKDLcACgkQFCbH3D9R4W94EACfdoXdmpDRrviZMG+SaNdybr+t WSEAmwXbSDtxVMN2V1Iyc++3S2clIP8u =WWrT -----END PGP SIGNATURE----- --AhCCdIwQf0d0uSA5-- From owner-freebsd-usb@FreeBSD.ORG Mon Jan 6 07:05:23 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9F0E9D4E for ; Mon, 6 Jan 2014 07:05:23 +0000 (UTC) Received: from mta04.bitpro.no (mta04.bitpro.no [92.42.64.203]) by mx1.freebsd.org (Postfix) with ESMTP id 58B781D26 for ; Mon, 6 Jan 2014 07:05:22 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta04.bitpro.no (Postfix) with ESMTPS id A45FF100292; Mon, 6 Jan 2014 08:05:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 8D8778F5DB8; Mon, 6 Jan 2014 08:06:00 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dfCMPk5XOf-B; Mon, 6 Jan 2014 08:05:59 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 679168F564B; Mon, 6 Jan 2014 08:05:59 +0100 (CET) Message-ID: <52CA55F2.7060100@bitfrost.no> Date: Mon, 06 Jan 2014 08:06:26 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: "R. Tyler Croy" , freebsd-usb@freebsd.org Subject: Re: USB_ERR_STALLED on -PRERELEASE when attaching a Galaxy Nexus References: <20140106015359.GA3245@kiwi> In-Reply-To: <20140106015359.GA3245@kiwi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jan 2014 07:05:23 -0000 On 01/06/14 02:53, R. Tyler Croy wrote: > I'm trying to tinker with my Galaxy Nexus phone, and I seem to have issues with > connecting the phone. Below is the dmesg that comes up, when the phone is > attached, my USB keybaord gets funky too > > Jan 5 17:39:21 kiwi kernel: ugen7.5: at usbus7 > Jan 5 17:39:21 kiwi devd: Executing 'logger Unknown USB device: vendor 0x04e8 product 0x685c bus uhub0' > Jan 5 17:39:21 kiwi root: Unknown USB device: vendor 0x04e8 product 0x685c bus uhub0 > Jan 5 17:39:21 kiwi kernel: ums1: at uhub8, port 2, addr 4 (disconnected) > Jan 5 17:39:21 kiwi devd: Executing '/etc/rc.d/moused stop ums1' > Jan 5 17:39:22 kiwi kernel: usbd_req_re_enumerate: addr=4, set address failed! (USB_ERR_STALLED, ignored) > Jan 5 17:39:23 kiwi kernel: usbd_setup_device_desc: getting device descriptor at addr 4 failed, USB_ERR_STALLED > Jan 5 17:39:24 kiwi kernel: usbd_req_re_enumerate: addr=4, set address failed! (USB_ERR_STALLED, ignored) > Jan 5 17:39:25 kiwi kernel: usbd_setup_device_desc: getting device descriptor at addr 4 failed, USB_ERR_STALLED > > > I'm running: > > FreeBSD kiwi 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #6 r259920: Thu Dec 26 12:14:47 PST 2013 root@kiwi:/usr/obj/usr/src/sys/KIWI amd64 > > > Is this a bug I should try to track down? > > - R. Tyler Croy > ------------------ > Code: https://github.com/rtyler > Chatter: https://twitter.com/agentdero > rtyler@jabber.org > Hi, Possibly your device is trying to charge from the USB port, causing these disconnect events. Try disabling USB charging and select the correct USB profile in your phone menus. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jan 6 11:06:56 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A765E78F for ; Mon, 6 Jan 2014 11:06:56 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 88BD0109E for ; Mon, 6 Jan 2014 11:06:56 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s06B6ucc045421 for ; Mon, 6 Jan 2014 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s06B6utd045417 for freebsd-usb@FreeBSD.org; Mon, 6 Jan 2014 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 6 Jan 2014 11:06:56 GMT Message-Id: <201401061106.s06B6utd045417@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jan 2014 11:06:56 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/185454 usb libusb lacks libusb_handle_events_completed() o kern/185208 usb (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error o usb/184014 usb USB storage devices do not work in FreeBSD 9.2 or high o usb/183728 usb libusb20 examples filenames cause problems on windows. o usb/183505 usb [usb] Arduino Leonardo exposes three interface descrip f usb/183409 usb USB Class 2 audio device playback issue o usb/183302 usb USB no proper work o usb/183090 usb Logitech USB microphone failure o usb/182936 usb [patch] [usbdevs] if_run update for Beklin F6D4050v2 o usb/182820 usb usbusX if destroy page fault panic o usb/182361 usb [panic] Suspend when using USB disc as root causes ker o usb/181987 usb USB isochronous transfer of the USB driver (Mentor Gra o usb/181425 usb USB keyboard with full N-key rollover not working o usb/181159 usb Problem attaching USB device o usb/180837 usb [scsi_da] [patch] Kingston DT 101 G2 usb stick quirk ( o usb/180726 usb XHCI umass support breaks between r248085 and r252560 o usb/180657 usb [PATCH] Filco Majestouch 2 keyboard recognized as keyb o usb/180617 usb New quirk (another member of Western Digital My Passpo o usb/180254 usb FreeBSD 9.1 on 384GB memory server o usb/180119 usb FreeBSD 9.1 umass driver does not correctly handle Pan o usb/179505 usb Kernel detaches Arduino Leonardo (and similar) board u o usb/179342 usb Freebsd 10.0-current USB 3.0 not working (xhci_do_coma o usb/179109 usb After detach USB Flash a keyboard does not work. o usb/179107 usb [usb] After detach USB Flash a keyboard does not work. o usb/178773 usb [usbdevs] [patch] Huawei E303 USB 3G modem support o usb/178771 usb [usbdevs] [patch] Western Digital My Passport HD o usb/178722 usb FreeBSD 9.1-STABLE r250561 breaks support for webcam L o usb/178267 usb [usb] USB causing interrupt storm on irq16 o usb/177897 usb [u3g][patch] add support for the Huawei E352 modem o usb/177896 usb man page for usb_quirk suggests adding device to kerne o usb/177895 usb similar 1TB Western Digital "My Passports" - some load o usb/177666 usb [usbdevs] [patch] Add support for Texas Instruments / o usb/176913 usb [ehci] High interrupt load with ehci o usb/176841 usb [umass] Sony DSC-H2 USB connection fails o usb/176417 usb [xhci][cam][umass] kernelpanic while removing plugged o usb/175731 usb detaching USB keyboard freezes other USB keyboards o usb/175639 usb not detect usb netcard D-LINK DUB-E100 rev C1 o usb/175599 usb [usbdevs][patch]Liebert UPS PSI1000 being assigned uhi o usb/175551 usb Seagate 2TB USB extern hard disk have errors with Free o usb/175379 usb usb card-reader problem o usb/175302 usb don't mount virtual driver CD for my phone o usb/174963 usb buffalo wli-uc-gn wireless card sometimes unusable and o usb/174835 usb uaudio fails to create pcm/dsp device file o usb/174814 usb [PATCH] support for MiFi 2200 o usb/174695 usb usb keeps disconnecting mouse or keyboard o usb/174575 usb Interrupt storm error on startup o usb/174464 usb clone MAC address(es) on usb networks cdce(4) && ue[0- o usb/174254 usb MIDI keyboard not recognised o usb/173722 usb [xhci] xhci driver bug after suspend to RAM (ACPI S3 m o usb/173616 usb LG USB DVD-RW USB STALL o usb/173182 usb usbus appears as a network device o usb/172937 usb FreeBSD 9.1-RC2 usb3 port disconnects o usb/172633 usb Sony Cybershot not recognized as USB mem stick o usb/172199 usb [xhci] high interrupts load xhci o usb/171354 usb [umass] Medium not present error on flash drive [regre o usb/171262 usb plug in sdhc via usb reader reboots machine o usb/171197 usb ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1 o usb/170699 usb FreeBSD 9.0 Doesn't list HDD or its partitions in part o usb/170688 usb patch][usbdevs][wlan] Patch for ASUS Black Diamond USB o usb/170606 usb r239222 kernel panic at boot - usb locking issue o usb/170358 usb [ums] Wrong (duplicate) button numbers o usb/170123 usb [umass] HP v210w USB stick not supported o usb/169935 usb [keyboard] Unable use USB keyboard while panic o usb/169789 usb [u3g] [patch] add support for huawei e3131 o usb/169461 usb [ugen] USB2 high-speed device detected as full speed o usb/169428 usb [ugen] ugen not detecting all endpoints on device [reg o usb/168551 usb [umass] Issues with embedded card reader (Laptop ASUS o usb/168132 usb [umass] MATSHITA memory card size reported wrong, moun o usb/167847 usb [ural] dlink dwl-122g e crashes(?) when trying wap2 cr o usb/167001 usb [USB] [PATCH] add support for Smart G2 64MB memory key o usb/165815 usb [usbdevs] [patch] add k3772z 3g modem support o usb/165163 usb [keyboard] The USB RF keyboard and mouse become non-re o usb/164058 usb [umass] Lexar 8GB USB flash drive doesn't work by defa f usb/163328 usb [usb] Support for Atheros USB abgn devices o kern/163091 usb [panic] Fatal trap 12: page fault while in kernel mode f usb/162306 usb usb devices cant get address asignation, no memories, o usb/162054 usb usbdump just hangs on 9.0-RC1 f usb/161793 usb poor EHCI usb2 i/o performance o usb/160436 usb ucom wedges machine on parity error ? o usb/160299 usb MicroSDHC-to-USB adapters do not work in FreeBSD 8.x o usb/160192 usb [install] Installation from USB-Stick doesn't find the o usb/159274 usb USB 3.0 Etron EJ168A does not work. f usb/159191 usb [fusefs-ntfs] write on fusefs-ntfs mounted partition r o usb/157376 usb LaCie USB disk not recognized o usb/157074 usb [boot] [usb8] vfs_mountroot_ask is called when no usb o usb/156898 usb [keyboard] usb keyboard does not work while boot (ps2 f usb/156735 usb Need Quirk for Goflex USB Disk Drives o usb/156726 usb [snd_uaudio]: snd_uaudio(4) fails to detach when mixer o usb/156725 usb USB stack stall cause complete system input loss o usb/156596 usb [ehci] Extremely high interrupt rate on ehci/uhci IRQ1 o usb/156000 usb rum(4) Fatal trap 18: integer divide fault while in ke f usb/155996 usb NanoBSD not booted as Disk o usb/155784 usb Problem with Transcend StoreJet 25M3 (2AJ1) on Asus M2 o usb/155663 usb [usbdevs] [patch] Add support for Supertop Nano 1GB US o usb/154753 usb [usbdevs] [patch] Support for Qualcomm USB modem/stora o usb/154506 usb [umass] Copying dir with large files makes FreeBSD loa o usb/154192 usb [umass] In Garmin Oregon GPS, only the first umass dev o i386/153851 usb [keyboard] keyboard issues on new Intel Mother boards. o usb/153703 usb [keyboard] My USB keyboard can not be used in 8-STABLE o usb/153609 usb [zyd] [panic] kernel: Fatal trap 12: page fault while f kern/153514 usb [cam] [panic] CAM related panic o usb/153149 usb [umass] USB stick quirk regression [regression] o usb/152075 usb [usb8] [ehci] [request] Add quirk for CS5536 USB o usb/150892 usb [zyd] Whenever network contacted in any shape, way or o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf p usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem o usb/149283 usb [uftdi] avrdude unable to talk to Arduino board (via u o usb/149162 usb [ural] ASUS WL-167g doesn't work in 8.1 (continue of 1 s usb/148702 usb [usb8] [request] IO DATA USB-RSAQ5 support on FreeBSD- o usb/148080 usb usbconfig(8) sometimes does not turn off the device o i386/147475 usb [install] FreeBSD 8.x does not install on ASUS K8N4-E o usb/146840 usb [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e o usb/146153 usb [axe] [usb8] Hosts in network doesn't receive any pack f usb/146054 usb [urtw] [usb8] urtw driver potentially out of date f usb/145513 usb [usb8] New USB stack: no new devices after forced usb p usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o usb/145415 usb [umass] [usb8] USB card reader does not create slices a usb/145184 usb GENERIC can't mount root from USB on Asus EEE o usb/145165 usb [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER f kern/144938 usb [keyboard] [boot] Boot Failure with Apple (MB869LL/A) o usb/144387 usb [run] [panic] if_run panic o usb/144043 usb [umass] [usb8] USB DLT tape drive throws random errors a usb/143790 usb [boot] [cam] can not boot from usb hdd f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system p usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J p usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P f usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb8] Encrypted root, geli password at boot; enter ke o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT o kern/138292 usb [zyd] [usb8] "zyd0: device timeout" with ZyXEL G-202 o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135206 usb machine reboots when inserted USB device f usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134085 usb [umass] [patch] Adding usb quirk for Sony USB flash dr o usb/133989 usb [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb [rum] driver not working properly in hostap mode o usb/132594 usb USB subsystem causes page fault and crashes o usb/132080 usb [patch] [usb] [rum] [panic] Kernel panic after NOMEM c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device f usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader f usb/128745 usb [zyd] zyd theoretically supported usb device makes ker o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d f usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o kern/124130 usb [usb] gmirror fails to start usb devices that were pre o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS f usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o conf/120406 usb [devd] [patch] Handle newly attached pcm devices (eg. o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [snd_uaudio] [patch] Not possible to record with Plant o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a f usb/117150 usb [zyd] usb zyd device under moderate load panics system o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg f usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. f usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails f usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s s usb/52026 usb [new driver] [request] umass driver support for InSyst s usb/51958 usb [urio] [patch] update for urio driver o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 326 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Jan 6 19:47:16 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 27EE8C78 for ; Mon, 6 Jan 2014 19:47:16 +0000 (UTC) Received: from sanddollar.geekisp.com (sanddollar.geekisp.com [216.168.135.167]) by mx1.freebsd.org (Postfix) with SMTP id C239E1468 for ; Mon, 6 Jan 2014 19:47:15 +0000 (UTC) Received: (qmail 18638 invoked by uid 1003); 6 Jan 2014 19:47:13 -0000 Received: from unknown (HELO kiwi) (tyler@monkeypox.org@64.125.69.200) by mail.geekisp.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 6 Jan 2014 19:47:13 -0000 Date: Mon, 6 Jan 2014 11:47:10 -0800 From: "R. Tyler Croy" To: Hans Petter Selasky Subject: Re: USB_ERR_STALLED on -PRERELEASE when attaching a Galaxy Nexus Message-ID: <20140106194710.GF31269@kiwi> References: <20140106015359.GA3245@kiwi> <52CA55F2.7060100@bitfrost.no> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8TaQrIeukR7mmbKf" Content-Disposition: inline In-Reply-To: <52CA55F2.7060100@bitfrost.no> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jan 2014 19:47:16 -0000 --8TaQrIeukR7mmbKf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 06 Jan 2014, Hans Petter Selasky wrote: > On 01/06/14 02:53, R. Tyler Croy wrote: > >I'm trying to tinker with my Galaxy Nexus phone, and I seem to have issu= es with > >connecting the phone. Below is the dmesg that comes up, when the phone is > >attached, my USB keybaord gets funky too > > > > Jan 5 17:39:21 kiwi kernel: ugen7.5: at usbus7 > > Jan 5 17:39:21 kiwi devd: Executing 'logger Unknown USB device: ve= ndor 0x04e8 product 0x685c bus uhub0' > > Jan 5 17:39:21 kiwi root: Unknown USB device: vendor 0x04e8 produc= t 0x685c bus uhub0 > > Jan 5 17:39:21 kiwi kernel: ums1: at uhub8, port 2, addr 4 (discon= nected) > > Jan 5 17:39:21 kiwi devd: Executing '/etc/rc.d/moused stop ums1' > > Jan 5 17:39:22 kiwi kernel: usbd_req_re_enumerate: addr=3D4, set a= ddress failed! (USB_ERR_STALLED, ignored) > > Jan 5 17:39:23 kiwi kernel: usbd_setup_device_desc: getting device= descriptor at addr 4 failed, USB_ERR_STALLED > > Jan 5 17:39:24 kiwi kernel: usbd_req_re_enumerate: addr=3D4, set a= ddress failed! (USB_ERR_STALLED, ignored) > > Jan 5 17:39:25 kiwi kernel: usbd_setup_device_desc: getting device= descriptor at addr 4 failed, USB_ERR_STALLED > > > > > >I'm running: > > > > FreeBSD kiwi 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #6 r259920: Th= u Dec 26 12:14:47 PST 2013 root@kiwi:/usr/obj/usr/src/sys/KIWI amd64 >=20 > Possibly your device is trying to charge from the USB port, causing these > disconnect events. Try disabling USB charging and select the correct USB > profile in your phone menus. I attached another Android device without issue last night, which was surprising to me. Today, after updating to r260356, I'm able to plug the device in without issue. I've not changed any settings on the device as far as I can tell :/ Cheers - R. Tyler Croy ------------------ Code: https://github.com/rtyler Chatter: https://twitter.com/agentdero rtyler@jabber.org --8TaQrIeukR7mmbKf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlLLCD4ACgkQFCbH3D9R4W/NXwCcCyuXywk0oztsnTx8pkCBg2W/ dK8An3PZcKo820Z20o0htP0O6vRtbdfg =yDqc -----END PGP SIGNATURE----- --8TaQrIeukR7mmbKf-- From owner-freebsd-usb@FreeBSD.ORG Wed Jan 8 11:57:57 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8FC67C87 for ; Wed, 8 Jan 2014 11:57:57 +0000 (UTC) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6BF9A10E8 for ; Wed, 8 Jan 2014 11:57:56 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1W0rld-0003Q3-EC for freebsd-usb@freebsd.org; Wed, 08 Jan 2014 03:57:49 -0800 Date: Wed, 8 Jan 2014 03:57:49 -0800 (PST) From: Jakub Lach To: freebsd-usb@freebsd.org Message-ID: <1389182269401-5874834.post@n5.nabble.com> In-Reply-To: <1388708634301-5873330.post@n5.nabble.com> References: <1382022807183-5852651.post@n5.nabble.com> <1388435678215-5872568.post@n5.nabble.com> <1388443884008-5872632.post@n5.nabble.com> <1388444738384-5872634.post@n5.nabble.com> <52C29DEF.3050707@bitfrost.no> <1388489384455-5872738.post@n5.nabble.com> <1388618855365-5873020.post@n5.nabble.com> <52C5312C.5070901@bitfrost.no> <1388708634301-5873330.post@n5.nabble.com> Subject: Re: 9-STABLE, lost access to previously working usb device MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jan 2014 11:57:57 -0000 Is there anything more I could provide? -- View this message in context: http://freebsd.1045724.n5.nabble.com/9-STABLE-lost-access-to-previously-working-usb-device-tp5852605p5874834.html Sent from the freebsd-usb mailing list archive at Nabble.com. From owner-freebsd-usb@FreeBSD.ORG Thu Jan 9 15:02:40 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 69BFB71 for ; Thu, 9 Jan 2014 15:02:40 +0000 (UTC) Received: from mail-qc0-x232.google.com (mail-qc0-x232.google.com [IPv6:2607:f8b0:400d:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2B6281DF2 for ; Thu, 9 Jan 2014 15:02:40 +0000 (UTC) Received: by mail-qc0-f178.google.com with SMTP id i17so2688433qcy.37 for ; Thu, 09 Jan 2014 07:02:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=+Ajm2Fr6WwPnnAowwPgcoqFjNquVnezRJJivgoiVGpQ=; b=tKL1Mg39GEUdzP2C29m2HNSpLheD7Icvuiji4LZOAfKJkhn1kGfuNsMBTaIStOWkEA bF6gwt7ja1PKkioJLwQA1bUVTMhzpzGXEkc4IIxmTRcpETLlz5RtPcIEdO8IEzL+9tgU Q2ZcWBG2c4/wt7Zfi2JFx/VXgqFc/0j0ikSsYtEUnvv0DDKX+8fp8ITS4WUabpAPVvtW xLnfF7fhQ37z5S0PKFHV0fkWbu0RHwaGin3H0gwRbcgFbpH/eorNKYnNvzjivlk0u2E7 7ayZthVtrDPDwnyFnzKO3CgLejf8C2CGJ/24GNEhfOzJjiRTdEpeJmgedsX6wab8t/kE ZokA== MIME-Version: 1.0 X-Received: by 10.49.81.178 with SMTP id b18mr8749001qey.0.1389279759367; Thu, 09 Jan 2014 07:02:39 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.52.8 with HTTP; Thu, 9 Jan 2014 07:02:39 -0800 (PST) Date: Thu, 9 Jan 2014 07:02:39 -0800 X-Google-Sender-Auth: rEUh2JOEvd3ELsFyVSsOIG3cWhQ Message-ID: Subject: USB_DEV_BCD_LTEQ() doesn't work From: Adrian Chadd To: "freebsd-usb@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2014 15:02:40 -0000 Hi, I'm trying to fix the atheros bluetooth USB matching to match the ath3k rules and unfortunately I'm hitting a snag. eg, in the blacklist: - { USB_VPI(0x0cf3, 0x3004, 0) }, + { USB_VPI(0x0cf3, 0x3004, 0), USB_DEV_BCD_LTEQ(1) }, Now, the rule is "if it's in the list, it's blacklisted", and in this instance, these devices with a bcdDevice of <=1 are blacklisted. However, this doesn't at all work. The USB matching code that looks like it's doing it isn't. Ideas? -adrian From owner-freebsd-usb@FreeBSD.ORG Thu Jan 9 15:13:08 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 729E4706; Thu, 9 Jan 2014 15:13:08 +0000 (UTC) Received: from mta05.bitpro.no (mta05.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 2B6481ED6; Thu, 9 Jan 2014 15:13:07 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta05.bitpro.no (Postfix) with ESMTPS id 4C08217FC61; Thu, 9 Jan 2014 16:13:04 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 800708F8571; Thu, 9 Jan 2014 16:13:51 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oxRZ8PNBFeyi; Thu, 9 Jan 2014 16:13:50 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 8ACDB8F8177; Thu, 9 Jan 2014 16:13:50 +0100 (CET) Message-ID: <52CEBCC4.605@bitfrost.no> Date: Thu, 09 Jan 2014 16:14:12 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Adrian Chadd , "freebsd-usb@freebsd.org" Subject: Re: USB_DEV_BCD_LTEQ() doesn't work References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2014 15:13:08 -0000 On 01/09/14 16:02, Adrian Chadd wrote: > Hi, > > I'm trying to fix the atheros bluetooth USB matching to match the > ath3k rules and unfortunately I'm hitting a snag. > > eg, in the blacklist: > > - { USB_VPI(0x0cf3, 0x3004, 0) }, > + { USB_VPI(0x0cf3, 0x3004, 0), USB_DEV_BCD_LTEQ(1) }, > > Now, the rule is "if it's in the list, it's blacklisted", and in this > instance, these devices with a bcdDevice of <=1 are blacklisted. > > However, this doesn't at all work. The USB matching code that looks > like it's doing it isn't. > > Ideas? > > Hi, Use both GTEQ and LTEQ to make a range: #define USB_DEV_BCD_GTEQ(lo) /* greater than or equal */ \ .match_flag_dev_lo = 1, .bcdDevice_lo = (lo) #define USB_DEV_BCD_LTEQ(hi) /* less than or equal */ \ .match_flag_dev_hi = 1, .bcdDevice_hi = (hi) --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jan 10 03:10:00 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EBF77EF1 for ; Fri, 10 Jan 2014 03:10:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C5C921D09 for ; Fri, 10 Jan 2014 03:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0A3A06Y022166 for ; Fri, 10 Jan 2014 03:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0A3A04F022165; Fri, 10 Jan 2014 03:10:00 GMT (envelope-from gnats) Resent-Date: Fri, 10 Jan 2014 03:10:00 GMT Resent-Message-Id: <201401100310.s0A3A04F022165@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, Alex Goncharov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 64DF4C24 for ; Fri, 10 Jan 2014 03:02:37 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4F95D1CC7 for ; Fri, 10 Jan 2014 03:02:37 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0A32atJ061225 for ; Fri, 10 Jan 2014 03:02:36 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0A32a2L061224; Fri, 10 Jan 2014 03:02:36 GMT (envelope-from nobody) Message-Id: <201401100302.s0A32a2L061224@oldred.freebsd.org> Date: Fri, 10 Jan 2014 03:02:36 GMT From: Alex Goncharov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 03:10:01 -0000 >Number: 185628 >Category: usb >Synopsis: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 >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: Fri Jan 10 03:10:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Alex Goncharov >Release: 9.2-STABLE, built from svn source, r260321 >Organization: >Environment: FreeBSD 9.2-STABLE FreeBSD 9.2-STABLE #0 r260321 Sun Jan 5 13:06:01 EST 2014 >Description: This is an extremely reproducible and very upsetting new problem. I have been using two identical Seagate Expansion 0219 drives for about a year, attaching them to three FreeBSD systems, all of which I update, building from the source, about every two-three weeks. No problem, good drives -- till the last Sunday. This past Sunday, I update two systems from r259425 to r260321, and suddenly both of them now show these 'dmesg'es on connecting either of the two drives: ------------------------------------------------------------ usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED usb_alloc_device: Failure selecting configuration index 0:USB_ERR_STALLED, port 3, addr 2 (ignored) ugen5.2: at usbus5 ugen5.2: at usbus5 (disconnected) ------------------------------------------------------------ Fortunately, I didn't upgrade my third system and its still at FreeBSD 9.2-STABLE FreeBSD 9.2-STABLE #0 r259425: Sun Dec 15 16:52:59 EST 2013 I've been using one of these two Seagate drives on it without a single problem (didn't have to try the second one.) So between r259425 and r26032 something significant was changed in the code, but I couldn't spot it, having looked into lib/libusb etc/devd code differences. Other points of reference for the current situation: 1. Several other USB drives I have -- Buffalo, Toshiba, Sony -- function without this problem. 2. After I discovered this problem in r260321, I copied the full (close to 1TB) contents of my primary Seagate drive to two 1T Sony drives, using my Linux system. Not a single problem. 3. When I tried to copy (in r260321 only) the contents of my 500G Buffalo drives to the same Sony drive, my system went down twice, because the device written to, 'da0' was being lost while being written to; I first used gjournal and then the plain 'news -U /dev/da0' to create a file system -- the same result: the computer crashed after a few tens of GBs had been copied to the Sony. (A very poor comparison to my Linux experience, alas.) 4. To my astonishment, I could not boot into the old kernel boot /boot/kernel.old/kernel now, to experiment with the r259425 kernel. On both system where I tried that, the boot process was interrupted on some devd (devfs) problems. I've never had see such behavior before (but I haven't been booting with kernel.old for 2+ years.) Needless to say, this is a big disappointment, especially considering the wonderful behavior of both Seagate and Sony drives when used on a Linux machines -- with a wider range or the file systems I used. I'll try 10.0-STABLE in a couple of weeks, but for now the non-upgraded 9.2-STABLE #0 r259425 machine will stay non-upgraded (and I am thinking, again, if moving to Linux more resolutely than I have done so far, would make sense now.) Thank you, -- Alex >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Jan 10 07:10:01 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BBE4BA1D for ; Fri, 10 Jan 2014 07:10:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 99D3B1E07 for ; Fri, 10 Jan 2014 07:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0A7A1vJ082545 for ; Fri, 10 Jan 2014 07:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0A7A1OX082544; Fri, 10 Jan 2014 07:10:01 GMT (envelope-from gnats) Date: Fri, 10 Jan 2014 07:10:01 GMT Message-Id: <201401100710.s0A7A1OX082544@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 07:10:01 -0000 The following reply was made to PR usb/185628; it has been noted by GNATS. From: Hans Petter Selasky To: Alex Goncharov , freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 Date: Fri, 10 Jan 2014 08:02:25 +0100 On 01/10/14 04:02, Alex Goncharov wrote: > >> Number: 185628 >> Category: usb >> Synopsis: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 >> 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: Fri Jan 10 03:10:00 UTC 2014 >> Closed-Date: >> Last-Modified: >> Originator: Alex Goncharov >> Release: 9.2-STABLE, built from svn source, r260321 >> Organization: >> Environment: > FreeBSD 9.2-STABLE FreeBSD 9.2-STABLE #0 r260321 Sun Jan 5 13:06:01 EST 2014 >> Description: > This is an extremely reproducible and very upsetting new problem. > > I have been using two identical Seagate Expansion 0219 drives for > about a year, attaching them to three FreeBSD systems, all of which I > update, building from the source, about every two-three weeks. No > problem, good drives -- till the last Sunday. > > This past Sunday, I update two systems from r259425 to r260321, and > suddenly both of them now show these 'dmesg'es on connecting either of > the two drives: > > ------------------------------------------------------------ > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED > usb_alloc_device: Failure selecting configuration index 0:USB_ERR_STALLED, port 3, addr 2 (ignored) > ugen5.2: at usbus5 > ugen5.2: at usbus5 (disconnected) > ------------------------------------------------------------ > > Fortunately, I didn't upgrade my third system and its still at > > FreeBSD 9.2-STABLE FreeBSD 9.2-STABLE #0 r259425: Sun Dec 15 16:52:59 EST 2013 > > I've been using one of these two Seagate drives on it without a > single problem (didn't have to try the second one.) > > So between r259425 and r26032 something significant was changed in the > code, but I couldn't spot it, having looked into lib/libusb etc/devd > code differences. > > Other points of reference for the current situation: > > 1. Several other USB drives I have -- Buffalo, Toshiba, Sony -- > function without this problem. > > 2. After I discovered this problem in r260321, I copied the full (close > to 1TB) contents of my primary Seagate drive to two 1T Sony drives, > using my Linux system. Not a single problem. > > 3. When I tried to copy (in r260321 only) the contents of my 500G > Buffalo drives to the same Sony drive, my system went down twice, > because the device written to, 'da0' was being lost while being > written to; I first used gjournal and then the plain 'news -U > /dev/da0' to create a file system -- the same result: the computer > crashed after a few tens of GBs had been copied to the Sony. > > (A very poor comparison to my Linux experience, alas.) > > 4. To my astonishment, I could not boot into the old kernel > > boot /boot/kernel.old/kernel > > now, to experiment with the r259425 kernel. > > On both system where I tried that, the boot process was interrupted > on some devd (devfs) problems. I've never had see such behavior > before (but I haven't been booting with kernel.old for 2+ years.) > > Needless to say, this is a big disappointment, especially considering > the wonderful behavior of both Seagate and Sony drives when used on a > Linux machines -- with a wider range or the file systems I used. > > I'll try 10.0-STABLE in a couple of weeks, but for now the > non-upgraded 9.2-STABLE #0 r259425 machine will stay non-upgraded (and > I am thinking, again, if moving to Linux more resolutely than I have > done so far, would make sense now.) > Hi, There has been very few changes changes in the USB code recently. Can you tell which USB controllers you have in your system (PCI devices) and tell to which of these your HDD's are attaching to. If devices simply re-attach either they are not respond and software initiates a reset, which can be disabled by setting "hw.usb.no_cs_fail" or the software in the USB HDD died and rebooted. Linux hide these problems, but they are visible through the fact that you'll see some requests delaying for some seconds to complete instead of some milliseconds. Beware that many USB HDD's contain reprogramable software and that there might be timing reasons for HDD's breaking down on one system and not on another. For example Linux buffer at lot more using 64K reads, while under FreeBSD you'll see more different block sizes being read and written. Do you have dmesg from around the spurious detach? Thank you, --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jan 10 07:40:02 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 435C9149 for ; Fri, 10 Jan 2014 07:40:02 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 239861FE5 for ; Fri, 10 Jan 2014 07:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0A7e1uO095722 for ; Fri, 10 Jan 2014 07:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0A7e1cb095721; Fri, 10 Jan 2014 07:40:01 GMT (envelope-from gnats) Date: Fri, 10 Jan 2014 07:40:01 GMT Message-Id: <201401100740.s0A7e1cb095721@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 07:40:02 -0000 The following reply was made to PR usb/185628; it has been noted by GNATS. From: Hans Petter Selasky To: Alex Goncharov , freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 Date: Fri, 10 Jan 2014 08:38:13 +0100 On 01/10/14 04:02, Alex Goncharov wrote: > >> Number: 185628 >> Category: usb >> Synopsis: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 >> 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: Fri Jan 10 03:10:00 UTC 2014 >> Closed-Date: >> Last-Modified: >> Originator: Alex Goncharov >> Release: 9.2-STABLE, built from svn source, r260321 >> Organization: >> Environment: > FreeBSD 9.2-STABLE FreeBSD 9.2-STABLE #0 r260321 Sun Jan 5 13:06:01 EST 2014 >> Description: > This is an extremely reproducible and very upsetting new problem. > > I have been using two identical Seagate Expansion 0219 drives for > about a year, attaching them to three FreeBSD systems, all of which I > update, building from the source, about every two-three weeks. No > problem, good drives -- till the last Sunday. Hi, Can you give some more details? Are these in some kind of enclosure? What USB speed are they connected at? If you are using an XHCI controller and the drives are connected at Super Speed (5.0 GBit), there has been a change in the XHCI driver which change how short packets are handled for transfers larger than 64K. The following patch will revert to the old behaviour from a class-driver point of view: ================================================================== --- umass.c (revision 260392) +++ umass.c (local) @@ -1362,7 +1362,11 @@ sc->sc_transfer.data_ptr += actlen; sc->sc_transfer.actlen += actlen; - if (actlen < sumlen) { + /* + * Filter out devices sending a short packet + * when they shouldn't: + */ + if ((actlen % 512) != 0 && (actlen < sumlen)) { /* short transfer */ sc->sc_transfer.data_rem = 0; } --HPS > > This past Sunday, I update two systems from r259425 to r260321, and > suddenly both of them now show these 'dmesg'es on connecting either of > the two drives: > > ------------------------------------------------------------ > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED > usb_alloc_device: Failure selecting configuration index 0:USB_ERR_STALLED, port 3, addr 2 (ignored) > ugen5.2: at usbus5 > ugen5.2: at usbus5 (disconnected) > ------------------------------------------------------------ Do other USB devices connected to the same USB host controller continue to work? --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jan 10 07:50:01 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5D96E6A9 for ; Fri, 10 Jan 2014 07:50:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2D9C610BC for ; Fri, 10 Jan 2014 07:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0A7o1fE097702 for ; Fri, 10 Jan 2014 07:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0A7o1eX097689; Fri, 10 Jan 2014 07:50:01 GMT (envelope-from gnats) Date: Fri, 10 Jan 2014 07:50:01 GMT Message-Id: <201401100750.s0A7o1eX097689@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 07:50:01 -0000 The following reply was made to PR usb/185628; it has been noted by GNATS. From: Hans Petter Selasky To: Alex Goncharov , freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 Date: Fri, 10 Jan 2014 08:48:38 +0100 This is a multi-part message in MIME format. --------------080508060307050403080600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 01/10/14 04:02, Alex Goncharov wrote: > >> Number: 185628 >> Category: usb >> Synopsis: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 >> 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: Fri Jan 10 03:10:00 UTC 2014 >> Closed-Date: >> Last-Modified: >> Originator: Alex Goncharov >> Release: 9.2-STABLE, built from svn source, r260321 >> Organization: >> Environment: > FreeBSD 9.2-STABLE FreeBSD 9.2-STABLE #0 r260321 Sun Jan 5 13:06:01 EST 2014 >> Description: > This is an extremely reproducible and very upsetting new problem. Here is a patch you can try, as an attachment. --HPS --------------080508060307050403080600 Content-Type: text/x-patch; name="umass.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="umass.diff" === umass.c ================================================================== --- umass.c (revision 260392) +++ umass.c (local) @@ -1362,9 +1362,18 @@ sc->sc_transfer.data_ptr += actlen; sc->sc_transfer.actlen += actlen; + /* + * Filter out transfers containing a short packet when + * they shouldn't: + */ if (actlen < sumlen) { - /* short transfer */ - sc->sc_transfer.data_rem = 0; + if (actlen % 512) { + /* short transfer for sure */ + sc->sc_transfer.data_rem = 0; + } else { + /* get the remaining data, if any */ + sc->sc_transfer.data_timeout = 1000; + } } case USB_ST_SETUP: DPRINTF(sc, UDMASS_BBB, "max_bulk=%d, data_rem=%d\n", --------------080508060307050403080600-- From owner-freebsd-usb@FreeBSD.ORG Fri Jan 10 11:50:02 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0043CDA7 for ; Fri, 10 Jan 2014 11:50:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DE83A149D for ; Fri, 10 Jan 2014 11:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0ABo17r054763 for ; Fri, 10 Jan 2014 11:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0ABo1t7054762; Fri, 10 Jan 2014 11:50:01 GMT (envelope-from gnats) Date: Fri, 10 Jan 2014 11:50:01 GMT Message-Id: <201401101150.s0ABo1t7054762@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Alex Goncharov Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Alex Goncharov List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 11:50:02 -0000 The following reply was made to PR usb/185628; it has been noted by GNATS. From: Alex Goncharov To: Hans Petter Selasky , "freebsd-gnats-submit@FreeBSD.org" Cc: Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 Date: Fri, 10 Jan 2014 03:49:00 -0800 (PST) --464114708-973494774-1389354540=:24518 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello Hans,=0A=0AThank you for your prompt replies; I'll make this a short = note, before=0Arunning to work, and we can work on this later.=0A=0A> Here = is a patch you can try, as an attachment.=0A=0AOK, re-building now.=0A=0A> = Can you give some more details? Are these in some kind of enclosure?=0A=0AT= his model:=0A=0A=A0=A0 http://www.amazon.com/gp/product/B008R7FC74/ref=3Dwm= s_ohs_product?ie=3DUTF8&psc=3D1=0A=0A> What USB speed are they connected at= ?=0A=0A"A normal" one -- I speak as a layman here; later I can give you all= =0A'usbconfig' information.=0A=0A> If you are using an XHCI controller and = the drives are connected at=0A> Super Speed (5.0 GBit),=0A=0ADon't think so= .=0A=0A> Do other USB devices connected to the same USB host controller=0A>= continue to work?=0A=0ADidn't try many but, Buffalo and Sony USB drives di= dn't show anything=0Alike the Seagate's behavior -- see my original posting= .=0A=0ANow: the two upgraded computers, both of which get these=0AUSB_ERR_S= TALLED events, are totally different: one is a self-built=0Adesktop, the ot= her -- a Compaq laptop.=A0 The OS upgrade is the common=0Afactor.=0A=0A> Ca= n you tell which USB controllers you have in your system (PCI=0A> devices) = and tell to which of these your HDD's are attaching to.=0A=0A(Later).=0A=0A= > If devices simply re-attach either they are not respond and software=0A> = initiates a reset, which can be disabled by setting=0A> "hw.usb.no_cs_fail"= or the software in the USB HDD died and=0A> rebooted.=0A=0AMay be; but thi= nk about the fact correlations: the fact of the two=0Asystem's upgrade, two= identical Seagate units, and other HDDs being=0Anon-stalled.=0A=0A> Linux = hide these problems, but they are visible through the fact that=0A> you'll = see some requests delaying for some seconds to complete instead=0A> of some= milliseconds.=0A=0AI copied the 1 TB of data from Seagate UFS to Sony Ext4= and Sony NTFS,=0Amuch faster than I expected it to happen based on my past= FreeBSD=0Aperceptions.=A0 This is just a perception, not a measured fact, = but I=0Areally don't care about a 25% slower if I can use an HDD.=A0 In the= =0Apast, I had to return a 1 TB Western Digital HDD, because it was=0Apredi= ctably lost while even being read on my FreeBSD systems.=A0 Seagate=0Aand T= oshiba apparently do some retries which WD didn't.=0A=0A> Beware that many = USB HDD's contain reprogramable software and that there=0A> might be timing= reasons for HDD's breaking down on one system and not on=0A> another. For = example Linux buffer at lot more using 64K reads, while=0A> under FreeBSD y= ou'll see more different block sizes being read and written.=0A> =0A> Do yo= u have dmesg from around the spurious detach?=0A=0ALater -- I have to go *n= ow*.=0A=0A=0A-- Alex=0A=0A=0A=0A=0AOn Friday, January 10, 2014 2:47 AM, Han= s Petter Selasky wrote:=0A =0AOn 01/10/14 04:02, Alex Gon= charov wrote:=0A>=0A>> Number:=A0 =A0 =A0 =A0 185628=0A>> Category:=A0 =A0= =A0 usb=0A>> Synopsis:=A0 =A0 =A0 usbd_req_re_enumerate set address fail= ed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321=0A>> = Confidential:=A0 no=0A>> Severity:=A0 =A0 =A0 non-critical=0A>> Priority:= =A0 =A0 =A0 low=0A>> Responsible:=A0 =A0 freebsd-usb=0A>> State:=A0 =A0 = =A0 =A0 =A0 open=0A>> Quarter:=0A>> Keywords:=0A>> Date-Required:=0A>> Clas= s:=A0 =A0 =A0 =A0 =A0 sw-bug=0A>> Submitter-Id:=A0 current-users=0A>> Arri= val-Date:=A0 Fri Jan 10 03:10:00 UTC 2014=0A>> Closed-Date:=0A>> Last-Modi= fied:=0A>> Originator:=A0 =A0 Alex Goncharov=0A>> Release:=A0 =A0 =A0 =A0 = 9.2-STABLE, built from svn source, r260321=0A>> Organization:=0A>> Environm= ent:=0A> FreeBSD 9.2-STABLE FreeBSD 9.2-STABLE #0 r260321 Sun Jan=A0 5 13:0= 6:01 EST 2014=0A>> Description:=0A> This is an extremely reproducible and v= ery upsetting new problem.=0A=0AHere is a patch you can try, as an attachme= nt.=0A=0A--HPS --464114708-973494774-1389354540=:24518 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hello Hans,

Thank you for your prompt repli= es; I'll make this a short note, before
running to work, and we can work= on this later.

> Here is a patch you can try, as an attachment.<= br>
OK, re-building now.

> Can you give some more details? Are= these in some kind of enclosure?

This model:

   ht= tp://www.amazon.com/gp/product/B008R7FC74/ref=3Dwms_ohs_product?ie=3DUTF8&a= mp;psc=3D1

> What USB speed are they connected at?

"A norm= al" one -- I speak as a layman here; later I can give you all
'usbconfig= ' information.

> If you are using an XHCI controller and the driv= es are connected at
> Super Speed (5.0 GBit),

Don't think so.<= br>
> Do other USB devices connected to the same USB host controller
> continue to work?

Didn't try many but, Buffalo a= nd Sony USB drives didn't show anything
like the Seagate's behavior -- s= ee my original posting.

Now: the two upgraded computers, both of whi= ch get these
USB_ERR_STALLED events, are totally different: one is a sel= f-built
desktop, the other -- a Compaq laptop.  The OS upgrade is t= he common
factor.

> Can you tell which USB controllers you hav= e in your system (PCI
> devices) and tell to which of these your HDD'= s are attaching to.

(Later).

> If devices simply re-attach= either they are not respond and software
> initiates a reset, which = can be disabled by setting
> "hw.usb.no_cs_fail" or the software in t= he USB HDD died and
> rebooted.

May be; but think about the fa= ct correlations: the fact of the two
system's upgrade, two identical Sea= gate units, and other HDDs being
non-stalled.

> Linux hide these problems, but they are visible through the fact that
> yo= u'll see some requests delaying for some seconds to complete instead
>= ; of some milliseconds.

I copied the 1 TB of data from Seagate UFS t= o Sony Ext4 and Sony NTFS,
much faster than I expected it to happen base= d on my past FreeBSD
perceptions.  This is just a perception, not a= measured fact, but I
really don't care about a 25% slower if I can use = an HDD.  In the
past, I had to return a 1 TB Western Digital HDD, b= ecause it was
predictably lost while even being read on my FreeBSD syste= ms.  Seagate
and Toshiba apparently do some retries which WD didn't= .

> Beware that many USB HDD's contain reprogramable software and= that there
> might be timing reasons for HDD's breaking down on one = system and not on
> another. For example Linux buffer at lot more usi= ng 64K reads, while
> under FreeBSD you'll see more different block sizes being read and written.
>
> Do you have dmesg fro= m around the spurious detach?

Later -- I have to go *now*.

-- Alex


On Friday, January 10, 2014 2= :47 AM, Hans Petter Selasky <hps@bitfrost.no> wrote:
On 01/10/14 04:02, Alex Goncharov wrote:
>= ;
>> Number:        185628
>> Catego= ry:      usb
>> Synopsis:      usb= d_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drive= s between r259425 and r260321
>> Confidential:  no
>&g= t; Severity:      non-critical
>> Priority:  =     low
>> Responsible:    freebsd-usb
>= ;> State:          open
>> Quarter:>> Keywords:
>> Date-Required:
>> Class:  &nb= sp;       sw-bug
>> Submitter-Id:  current-us= ers
>> Arrival-Date:  Fri Jan 10 03:10:00 UTC 2014
>&g= t; Closed-Date:
>> Last-Modified:
>> Originator:    Alex Goncharov
>> Release:   =     9.2-STABLE, built from svn source, r260321
>> Organ= ization:
>> Environment:
> FreeBSD 9.2-STABLE FreeBSD 9.2-ST= ABLE #0 r260321 Sun Jan  5 13:06:01 EST 2014
>> Description:<= br>> This is an extremely reproducible and very upsetting new problem.
Here is a patch you can try, as an attachment.

--HPS


--464114708-973494774-1389354540=:24518-- From owner-freebsd-usb@FreeBSD.ORG Fri Jan 10 13:10:01 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9E2FB3E9 for ; Fri, 10 Jan 2014 13:10:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 897311A18 for ; Fri, 10 Jan 2014 13:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0ADA10Z075044 for ; Fri, 10 Jan 2014 13:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0ADA1Qs075043; Fri, 10 Jan 2014 13:10:01 GMT (envelope-from gnats) Date: Fri, 10 Jan 2014 13:10:01 GMT Message-Id: <201401101310.s0ADA1Qs075043@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 13:10:01 -0000 The following reply was made to PR usb/185628; it has been noted by GNATS. From: Hans Petter Selasky To: Alex Goncharov , "freebsd-gnats-submit@FreeBSD.org" Cc: Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 Date: Fri, 10 Jan 2014 14:09:05 +0100 On 01/10/14 12:49, Alex Goncharov wrote: >> >If devices simply re-attach either they are not respond and software >> >initiates a reset, which can be disabled by setting >> >"hw.usb.no_cs_fail" or the software in the USB HDD died and >> >rebooted. > May be; but think about the fact correlations: the fact of the two > system's upgrade, two identical Seagate units, and other HDDs being > non-stalled. > Hi, If you are running EHCI, there has been no changes in the USB stack, and you should look for CAM/SCSI related changes: Just grepping quickly, can this be related to what you are seeing? http://svnweb.freebsd.org/changeset/base/259722 --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jan 10 14:10:01 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7A1C07F5 for ; Fri, 10 Jan 2014 14:10:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 651101F54 for ; Fri, 10 Jan 2014 14:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0AEA1Da088162 for ; Fri, 10 Jan 2014 14:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0AEA1FG088161; Fri, 10 Jan 2014 14:10:01 GMT (envelope-from gnats) Date: Fri, 10 Jan 2014 14:10:01 GMT Message-Id: <201401101410.s0AEA1FG088161@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Alex Goncharov Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Alex Goncharov List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 14:10:01 -0000 The following reply was made to PR usb/185628; it has been noted by GNATS. From: Alex Goncharov To: Hans Petter Selasky , "freebsd-gnats-submit@FreeBSD.org" Cc: Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 Date: Fri, 10 Jan 2014 06:05:04 -0800 (PST) --464114708-1921223609-1389362704=:6984 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable > If you are running EHCI, there has been no changes in the USB stack, and= =0A> you should look for CAM/SCSI related changes:=0A> =0A> Just grepping q= uickly, can this be related to what you are seeing?=0A> =0A> http://svnweb.= freebsd.org/changeset/base/259722=0A=0A=A0 Author: =A0=A0=A0 mav=0A=A0 Date= : =A0=A0=A0 Sun Dec 22 13:03:33 2013 UTC (2 weeks, 5 days ago)=0A=0AThank y= ou: this may be the trouble-causing change.=A0 Later, I'll see if=0Areverti= ng it results in being able to use the Seagate HDDs again.=0A=0AThe 'pcicon= f' for the desktop (upgraded, Seagate-problematic now):=0A=0A--------------= --------------------------------------------------------=0Apciconf -lv=0A= =3D>=0Ahostb0@pci0:0:0:0:=A0=A0=A0=A0=A0 class=3D0x060000 card=3D0x01271028= chip=3D0x25608086 rev=3D0x01 hdr=3D0x00=0A=A0=A0=A0 vendor=A0=A0=A0=A0 =3D= 'Intel Corporation'=0A=A0=A0=A0 device=A0=A0=A0=A0 =3D '82845G/GL[Brookdal= e-G]/GE/PE DRAM Controller/Host-Hub Interface'=0A=A0=A0=A0 class=A0=A0=A0= =A0=A0 =3D bridge=0A=A0=A0=A0 subclass=A0=A0 =3D HOST-PCI=0Avgapci0@pci0:0:= 2:0:=A0=A0=A0=A0 class=3D0x030000 card=3D0x01271028 chip=3D0x25628086 rev= =3D0x01 hdr=3D0x00=0A=A0=A0=A0 vendor=A0=A0=A0=A0 =3D 'Intel Corporation'= =0A=A0=A0=A0 device=A0=A0=A0=A0 =3D '82845G/GL[Brookdale-G]/GE Chipset Inte= grated Graphics Device'=0A=A0=A0=A0 class=A0=A0=A0=A0=A0 =3D display=0A=A0= =A0=A0 subclass=A0=A0 =3D VGA=0Auhci0@pci0:0:29:0:=A0=A0=A0=A0=A0 class=3D0= x0c0300 card=3D0x01271028 chip=3D0x24c28086 rev=3D0x01 hdr=3D0x00=0A=A0=A0= =A0 vendor=A0=A0=A0=A0 =3D 'Intel Corporation'=0A=A0=A0=A0 device=A0=A0=A0= =A0 =3D '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller'=0A=A0=A0= =A0 class=A0=A0=A0=A0=A0 =3D serial bus=0A=A0=A0=A0 subclass=A0=A0 =3D USB= =0Auhci1@pci0:0:29:1:=A0=A0=A0=A0=A0 class=3D0x0c0300 card=3D0x01271028 chi= p=3D0x24c48086 rev=3D0x01 hdr=3D0x00=0A=A0=A0=A0 vendor=A0=A0=A0=A0 =3D 'In= tel Corporation'=0A=A0=A0=A0 device=A0=A0=A0=A0 =3D '82801DB/DBL/DBM (ICH4/= ICH4-L/ICH4-M) USB UHCI Controller'=0A=A0=A0=A0 class=A0=A0=A0=A0=A0 =3D se= rial bus=0A=A0=A0=A0 subclass=A0=A0 =3D USB=0Auhci2@pci0:0:29:2:=A0=A0=A0= =A0=A0 class=3D0x0c0300 card=3D0x01271028 chip=3D0x24c78086 rev=3D0x01 hdr= =3D0x00=0A=A0=A0=A0 vendor=A0=A0=A0=A0 =3D 'Intel Corporation'=0A=A0=A0=A0 = device=A0=A0=A0=A0 =3D '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Contr= oller'=0A=A0=A0=A0 class=A0=A0=A0=A0=A0 =3D serial bus=0A=A0=A0=A0 subclass= =A0=A0 =3D USB=0Aehci0@pci0:0:29:7:=A0=A0=A0=A0=A0 class=3D0x0c0320 card=3D= 0x01271028 chip=3D0x24cd8086 rev=3D0x01 hdr=3D0x00=0A=A0=A0=A0 vendor=A0=A0= =A0=A0 =3D 'Intel Corporation'=0A=A0=A0=A0 device=A0=A0=A0=A0 =3D '82801DB/= DBM (ICH4/ICH4-M) USB2 EHCI Controller'=0A=A0=A0=A0 class=A0=A0=A0=A0=A0 = =3D serial bus=0A=A0=A0=A0 subclass=A0=A0 =3D USB=0Apcib1@pci0:0:30:0:=A0= =A0=A0=A0=A0 class=3D0x060400 card=3D0x00000000 chip=3D0x244e8086 rev=3D0x8= 1 hdr=3D0x01=0A=A0=A0=A0 vendor=A0=A0=A0=A0 =3D 'Intel Corporation'=0A=A0= =A0=A0 device=A0=A0=A0=A0 =3D '82801 PCI Bridge'=0A=A0=A0=A0 class=A0=A0=A0= =A0=A0 =3D bridge=0A=A0=A0=A0 subclass=A0=A0 =3D PCI-PCI=0Aisab0@pci0:0:31:= 0:=A0=A0=A0=A0=A0 class=3D0x060100 card=3D0x00000000 chip=3D0x24c08086 rev= =3D0x01 hdr=3D0x00=0A=A0=A0=A0 vendor=A0=A0=A0=A0 =3D 'Intel Corporation'= =0A=A0=A0=A0 device=A0=A0=A0=A0 =3D '82801DB/DBL (ICH4/ICH4-L) LPC Interfac= e Bridge'=0A=A0=A0=A0 class=A0=A0=A0=A0=A0 =3D bridge=0A=A0=A0=A0 subclass= =A0=A0 =3D PCI-ISA=0Aatapci0@pci0:0:31:1:=A0=A0=A0 class=3D0x01018a card=3D= 0x01271028 chip=3D0x24cb8086 rev=3D0x01 hdr=3D0x00=0A=A0=A0=A0 vendor=A0=A0= =A0=A0 =3D 'Intel Corporation'=0A=A0=A0=A0 device=A0=A0=A0=A0 =3D '82801DB = (ICH4) IDE Controller'=0A=A0=A0=A0 class=A0=A0=A0=A0=A0 =3D mass storage=0A= =A0=A0=A0 subclass=A0=A0 =3D ATA=0Anone0@pci0:0:31:3:=A0=A0=A0=A0=A0 class= =3D0x0c0500 card=3D0x01271028 chip=3D0x24c38086 rev=3D0x01 hdr=3D0x00=0A=A0= =A0=A0 vendor=A0=A0=A0=A0 =3D 'Intel Corporation'=0A=A0=A0=A0 device=A0=A0= =A0=A0 =3D '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller'=0A=A0=A0= =A0 class=A0=A0=A0=A0=A0 =3D serial bus=0A=A0=A0=A0 subclass=A0=A0 =3D SMBu= s=0Adc0@pci0:1:7:0: class=3D0x020000 card=3D0x05741317 chip=3D0x09851317 re= v=3D0x11 hdr=3D0x00=0A=A0=A0=A0 vendor=A0=A0=A0=A0 =3D 'ADMtek'=0A=A0=A0=A0= device=A0=A0=A0=A0 =3D 'NC100 Network Everywhere Fast Ethernet 10/100'=0A= =A0=A0=A0 class=A0=A0=A0=A0=A0 =3D network=0A=A0=A0=A0 subclass=A0=A0 =3D e= thernet=0Afxp0@pci0:1:8:0:=A0=A0=A0=A0=A0=A0=A0 class=3D0x020000 card=3D0x0= 00c8086 chip=3D0x12298086 rev=3D0x08 hdr=3D0x00=0A=A0=A0=A0 vendor=A0=A0=A0= =A0 =3D 'Intel Corporation'=0A=A0=A0=A0 device=A0=A0=A0=A0 =3D '82557/8/9/0= /1 Ethernet Pro 100'=0A=A0=A0=A0 class=A0=A0=A0=A0=A0 =3D network=0A=A0=A0= =A0 subclass=A0=A0 =3D ethernet=0A-----------------------------------------= ----------------------------- --464114708-1921223609-1389362704=:6984 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
> If you are running EHCI, there has been no changes = in the USB stack, and
> you should look for CAM/SCSI related changes:=
>
> Just grepping quickly, can this be related to what you ar= e seeing?
>
> http://svnweb.freebsd.org/changeset/base/259722<= br>
  Author:     mav
  Date:   &n= bsp; Sun Dec 22 13:03:33 2013 UTC (2 weeks, 5 days ago)

Thank you: t= his may be the trouble-causing change.  Later, I'll see if
revertin= g it results in being able to use the Seagate HDDs again.

The 'pcico= nf' for the desktop (upgraded, Seagate-problematic now):

-----------= -----------------------------------------------------------
pciconf -lv<= br>=3D>
hostb0@pci0:0:0:0:      class=3D0x060000 card=3D0x01271028 chip=3D0x25608086 rev=3D0x01 hdr=3D0x00=
    vendor     =3D 'Intel Corporatio= n'
    device     =3D '82845G/GL[Broo= kdale-G]/GE/PE DRAM Controller/Host-Hub Interface'
    cl= ass      =3D bridge
    subclass=    =3D HOST-PCI
vgapci0@pci0:0:2:0:     cl= ass=3D0x030000 card=3D0x01271028 chip=3D0x25628086 rev=3D0x01 hdr=3D0x00    vendor     =3D 'Intel Corporation'<= br>    device     =3D '82845G/GL[Brookda= le-G]/GE Chipset Integrated Graphics Device'
    class&nb= sp;     =3D display
    subclass = ;  =3D VGA
uhci0@pci0:0:29:0:      class= =3D0x0c0300 card=3D0x01271028 chip=3D0x24c28086 rev=3D0x01 hdr=3D0x00
&n= bsp;   vendor     =3D 'Intel Corporation'
  &nbs= p; device     =3D '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M)= USB UHCI Controller'
    class    &n= bsp; =3D serial bus
    subclass   =3D USB
u= hci1@pci0:0:29:1:      class=3D0x0c0300 card=3D0x0= 1271028 chip=3D0x24c48086 rev=3D0x01 hdr=3D0x00
    vendo= r     =3D 'Intel Corporation'
    dev= ice     =3D '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB U= HCI Controller'
    class      = =3D serial bus
    subclass   =3D USB
uhci2@= pci0:0:29:2:      class=3D0x0c0300 card=3D0x012710= 28 chip=3D0x24c78086 rev=3D0x01 hdr=3D0x00
    vendor&nbs= p;    =3D 'Intel Corporation'
    device&n= bsp;    =3D '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller'
  =   class      =3D serial bus
  &n= bsp; subclass   =3D USB
ehci0@pci0:0:29:7:   &n= bsp;  class=3D0x0c0320 card=3D0x01271028 chip=3D0x24cd8086 rev=3D0x01 = hdr=3D0x00
    vendor     =3D 'Intel = Corporation'
    device     =3D '8280= 1DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller'
    class&nbs= p;     =3D serial bus
    subclass&nb= sp;  =3D USB
pcib1@pci0:0:30:0:      class= =3D0x060400 card=3D0x00000000 chip=3D0x244e8086 rev=3D0x81 hdr=3D0x01
&n= bsp;   vendor     =3D 'Intel Corporation'
=     device     =3D '82801 PCI Bridge'    class      =3D bridge
 = ;   subclass   =3D PCI-PCI
isab0@pci0:0:31:0:   &n= bsp;  class=3D0x060100 card=3D0x00000000 chip=3D0x24c08086 rev=3D0x01 = hdr=3D0x00
    vendor     =3D 'Intel = Corporation'
    device     =3D '8280= 1DB/DBL (ICH4/ICH4-L) LPC Interface Bridge'
    class&nbs= p;     =3D bridge
    subclass &= nbsp; =3D PCI-ISA
atapci0@pci0:0:31:1:    class=3D0x01018= a card=3D0x01271028 chip=3D0x24cb8086 rev=3D0x01 hdr=3D0x00
  =   vendor     =3D 'Intel Corporation'
 &nbs= p;  device     =3D '82801DB (ICH4) IDE Controller'=
    class      =3D mass storage=
    subclass   =3D ATA
none0@pci0:0:31:3:&n= bsp;     class=3D0x0c0500 card=3D0x01271028 chip=3D0x24= c38086 rev=3D0x01 hdr=3D0x00
    vendor     =3D 'Intel= Corporation'
    device     =3D '828= 01DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller'
    c= lass      =3D serial bus
    sub= class   =3D SMBus
dc0@pci0:1:7:0: class=3D0x020000 card=3D0x05= 741317 chip=3D0x09851317 rev=3D0x11 hdr=3D0x00
    vendor=      =3D 'ADMtek'
    device &nb= sp;   =3D 'NC100 Network Everywhere Fast Ethernet 10/100'
&nbs= p;   class      =3D network
 &nb= sp;  subclass   =3D ethernet
fxp0@pci0:1:8:0:  =       class=3D0x020000 card=3D0x000c8086 chip=3D0x= 12298086 rev=3D0x08 hdr=3D0x00
    vendor  &nbs= p;  =3D 'Intel Corporation'
    device  &n= bsp;  =3D '82557/8/9/0/1 Ethernet Pro 100'
    class     = ; =3D network
    subclass   =3D ethernet
--= --------------------------------------------------------------------
<= /body> --464114708-1921223609-1389362704=:6984-- From owner-freebsd-usb@FreeBSD.ORG Sat Jan 11 04:00:01 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8CC05548 for ; Sat, 11 Jan 2014 04:00:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6D7BE1CB4 for ; Sat, 11 Jan 2014 04:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0B401rw086928 for ; Sat, 11 Jan 2014 04:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0B401uo086927; Sat, 11 Jan 2014 04:00:01 GMT (envelope-from gnats) Date: Sat, 11 Jan 2014 04:00:01 GMT Message-Id: <201401110400.s0B401uo086927@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Alex Goncharov Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Alex Goncharov List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jan 2014 04:00:01 -0000 The following reply was made to PR usb/185628; it has been noted by GNATS. From: Alex Goncharov To: Hans Petter Selasky , "freebsd-gnats-submit@FreeBSD.org" Cc: Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 Date: Fri, 10 Jan 2014 19:50:58 -0800 (PST) --464114708-874558429-1389412258=:8299 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I rebuilt the kernel with change 259722 reverted:=0A=0A=A0 ident /boot/kern= el.scsi_all-back/kernel | grep /scsi_all.c=0A=A0 =3D>=0A=A0=A0=A0=A0 $FreeB= SD: stable/9/sys/cam/scsi/scsi_all.c 257050 2013-10-24 10:34:13Z mav $=0A= =0AStill have the same dmesges:=0A=0A-----=0Ausbd_req_re_enumerate: addr=3D= 2, set address failed! (USB_ERR_STALLED, ignored)=0Ausbd_setup_device_desc:= getting device descriptor at addr 2 failed, USB_ERR_STALLED=0Ausbd_req_re_= enumerate: addr=3D2, set address failed! (USB_ERR_STALLED, ignored)=0Ausbd_= setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STAL= LED=0Ausb_alloc_device: Failure selecting configuration index 0:USB_ERR_STA= LLED, port 4, addr 2 (ignored)=0Augen5.2: at usbus5=0A----=0A=0AI= 'll launch another rebuild for the night, after 'svn up' -- maybe something= will be discovered.=A0 If anybody has suggestions on debugging the issue, = please let me know.=0A=0A-- Alex=0A=0A=0A=0A=0AOn Friday, January 10, 2014 = 8:08 AM, Hans Petter Selasky wrote:=0A =0AOn 01/10/14 12:= 49, Alex Goncharov wrote:=0A>> >If devices simply re-attach either they are= not respond and software=0A>> >initiates a reset, which can be disabled by= setting=0A>> >"hw.usb.no_cs_fail" or the software in the USB HDD died and= =0A>> >rebooted.=0A> May be; but think about the fact correlations: the fac= t of the two=0A> system's upgrade, two identical Seagate units, and other H= DDs being=0A> non-stalled.=0A>=0A=0AHi,=0A=0AIf you are running EHCI, there= has been no changes in the USB stack, and =0Ayou should look for CAM/SCSI = related changes:=0A=0AJust grepping quickly, can this be related to what yo= u are seeing?=0A=0Ahttp://svnweb.freebsd.org/changeset/base/259722=0A=0A--H= PS --464114708-874558429-1389412258=:8299 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
I rebuilt the kernel with change 259722 reverted:

  ident /boot/kernel.scsi_all-back/kernel | grep /scsi= _all.c
  =3D>
     $FreeBSD: stable/9/sys= /cam/scsi/scsi_all.c 257050 2013-10-24 10:34:13Z mav $

Still have th= e same dmesges:

-----
usbd_req_re_enumerate: addr=3D2, set addres= s failed! (USB_ERR_STALLED, ignored)
usbd_setup_device_desc: getting dev= ice descriptor at addr 2 failed, USB_ERR_STALLED
usbd_req_re_enumerate: = addr=3D2, set address failed! (USB_ERR_STALLED, ignored)
usbd_setup_devi= ce_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED
usb= _alloc_device: Failure selecting configuration index 0:USB_ERR_STALLED, por= t 4, addr 2 (ignored)
ugen5.2: <Seagate> at usbus5
----

I'll launch another rebuild for the night, after 'sv= n up' -- maybe something will be discovered.  If anybody has suggestio= ns on debugging the issue, please let me know.

-- Alex


On Friday, January 10, 2014 8:08 AM, Hans Petter Selasky <hps@b= itfrost.no> wrote:
On= 01/10/14 12:49, Alex Goncharov wrote:
>> >If devices simply re= -attach either they are not respond and software
>> >initiates = a reset, which can be disabled by setting
>> >"hw.usb.no_cs_fai= l" or the software in the USB HDD died and
>> >rebooted.
> May be;= but think about the fact correlations: the fact of the two
> system'= s upgrade, two identical Seagate units, and other HDDs being
> non-st= alled.
>

Hi,

If you are running EHCI, there has been no= changes in the USB stack, and
you should look for CAM/SCSI related cha= nges:

Just grepping quickly, can this be related to what you are see= ing?

http://svnweb.freebsd.org/changeset/base/259722

-= -HPS


--464114708-874558429-1389412258=:8299-- From owner-freebsd-usb@FreeBSD.ORG Sat Jan 11 11:10:32 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B2698BA5 for ; Sat, 11 Jan 2014 11:10:32 +0000 (UTC) Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by mx1.freebsd.org (Postfix) with ESMTP id 3D25E195E for ; Sat, 11 Jan 2014 11:10:31 +0000 (UTC) Received: from imac-van-huub-2.fritz.box (huubs.xs4all.nl [83.160.119.88]) (authenticated bits=0) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id s0BBAOIM071401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 11 Jan 2014 12:10:25 +0100 (CET) (envelope-from huubsch@xs4all.nl) Message-ID: <52D126A0.8060605@xs4all.nl> Date: Sat, 11 Jan 2014 12:10:24 +0100 From: Huub Schuurmans User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Subject: usb-lan adapter does not work in 10.0-RC4 X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jan 2014 11:10:32 -0000 USB-LAN adapters with the ASIX AX88772 chip do not work properly on 10.0-RC4, whereas thera are no problems with 9.0-RELEASE. Ping and dhcp work, ssh and http do not. Adapters that use if_aue, if_udav or if_mos work fine. The full description of the tests is reported in PR http://www.freebsd.org/cgi/query-pr.cgi?pr=185387 Any suggestion how to debug this driver is very welcome, kind regards, Huub From owner-freebsd-usb@FreeBSD.ORG Sat Jan 11 11:13:15 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 00367BFE for ; Sat, 11 Jan 2014 11:13:14 +0000 (UTC) Received: from nm50.bullet.mail.bf1.yahoo.com (nm50.bullet.mail.bf1.yahoo.com [216.109.114.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8E4C419C6 for ; Sat, 11 Jan 2014 11:13:14 +0000 (UTC) Received: from [66.196.81.170] by nm50.bullet.mail.bf1.yahoo.com with NNFMP; 11 Jan 2014 11:10:42 -0000 Received: from [98.139.212.225] by tm16.bullet.mail.bf1.yahoo.com with NNFMP; 11 Jan 2014 11:10:42 -0000 Received: from [127.0.0.1] by omp1034.mail.bf1.yahoo.com with NNFMP; 11 Jan 2014 11:10:42 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 129074.91299.bm@omp1034.mail.bf1.yahoo.com Received: (qmail 8584 invoked by uid 60001); 11 Jan 2014 11:10:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1389438642; bh=bPMJz4vzlX0Ge6IfGVOSu9ARHetAV5qw4pAh8tVTjTY=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=BS2utrrYnP2PZ3oRI/+4+Blf0HCkhEHLDeGYZCViZoKftedU2AQGKBQjTuduX6XXIPhp04/SlMFBUZyU1BXHNEQC35Httoq6EOVA6KKe2oEL8FWJz+l2ZFqgzHz0QTmAiSpB1i2QyNY03Zjv0jqhwVRLV8j78QHpelsA587Mzeg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=MZxWknM8ds0o5aACviB8tHitwgpkNlrIJfPxe602MkkQlTJsQmTt8t06oOXEPabnvwctqQObtPINxttVdNDqOlfJiCCq3faDukbXIvekJPlFnO/0q3Vt62BQrxojRdTP3EGEx/gccVJuPDgf0waMo6w78ocs7SyF3lyVlkNHADc=; X-YMail-OSG: xLoQIIwVM1lZUbp5GVsV0YPidUbCW6aLpu4Hb2O0al_GGrC 6PCnn_uNSPvDWwTM7YntXW_NPda8qLmT84BXSz.93esKzWC7Bse7XiLG7.a2 _tyVndZBg2wSBdw4xJGz7njO90qjT2_5a.BEYoobOVDHpz0C7gh9MZclNBgy aGPqLwK2RqHcnY6rhs.0HSLEcOegv9SOWVlkZ31Jx.Vf6ELX6ffDXdEqNmbP FL0fGhT0kaHsyLBfkzuasQMKESwAGXI7tYbRDSdqdaQfHWaxPgT8rlramyRP PhJNtFgv8J7L73O_ayJRHgUyrBkcHwJZtUSacZFm8QxN_1JotPyFGbn09dUL NA7h1Mr5iLtToE2QKSWCjvCEsY2ax45EhB66N05kQyJe_SJaLjMCf0JXV87D kl0SLeq3j2T6GenyMuJB4j2DzeyNlae_jCu6xNSsyyXqdTaziEpgQlsUCmp5 HokocIfRuwqKGX6Kx9elvFfrkUyN_FuXnujdZ0hIhWJvN7oZ8fVTuAfNhTpc CkMvb4D6ud3EmN6_4pn1pEI6EQSg7gLaSQvlmt8YKOdlgDhqrZ32mUIj0BAE lPeynZaIxeR_pJ_ZpDvjxFsI- Received: from [24.34.111.37] by web162106.mail.bf1.yahoo.com via HTTP; Sat, 11 Jan 2014 03:10:41 PST X-Rocket-MIMEInfo: 002.001, Tm8gaW1wcm92ZW1lbnQgYWZ0ZXI6DQoNCiAgKiAnc3ZuIHVwJyB0byByMjYwNTMxTQ0KDQogICogc2NzaV9hbGwuYyByZXZlcnRlZCB0bzoNCg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0Kc3ZuIGRpZmYNCkluZGV4OiBzeXMvY2FtL3Njc2kvc2NzaV9hbGwuYw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIHN5cy9jYW0vc2NzaS9zY3NpX2FsbC5jICAgICAocmV2aXNpb24gMjYwNTMxKQ0KKysBMAEBAQE- X-Mailer: YahooMailClassic/387 YahooMailWebService/0.8.172.614 Message-ID: <1389438641.70307.YahooMailBasic@web162106.mail.bf1.yahoo.com> Date: Sat, 11 Jan 2014 03:10:41 -0800 (PST) From: Alex Goncharov Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-usb@FreeBSD.org In-Reply-To: <201401100310.s0A3A0W5022158@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jan 2014 11:13:15 -0000 No improvement after: * 'svn up' to r260531M * scsi_all.c reverted to: ---------------------------------------- svn diff Index: sys/cam/scsi/scsi_all.c =================================================================== --- sys/cam/scsi/scsi_all.c (revision 260531) +++ sys/cam/scsi/scsi_all.c (working copy) @@ -6509,11 +6509,7 @@ while (rhs_id <= rhs_last && (rhs_id->identifier + rhs_id->length) <= rhs_end) { - if ((rhs_id->id_type & - (SVPD_ID_ASSOC_MASK | SVPD_ID_TYPE_MASK)) == - (lhs_id->id_type & - (SVPD_ID_ASSOC_MASK | SVPD_ID_TYPE_MASK)) - && rhs_id->length == lhs_id->length + if (rhs_id->length == lhs_id->length && memcmp(rhs_id->identifier, lhs_id->identifier, rhs_id->length) == 0) return (0); ---------------------------------------- More info: ---------------------------------------- sysctl kern.bootfile => kern.bootfile: /boot/kernel/kernel strings /boot/kernel/kernel | grep '^FreeBSD 9' => FreeBSD 9.2-STABLE #0 r260531M: Sat Jan 11 00:55:07 EST 2014 ident /boot/kernel/kernel | grep sys/cam/scsi/scsi_all.c => $FreeBSD: stable/9/sys/cam/scsi/scsi_all.c 257050 2013-10-24 10:34:13Z mav $ ---------------------------------------- With hw.usb.no_cs_fail 0 or 1, the same dmesges on attaching the Seagate drive: ---------------------------------------- kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED kernel: usb_alloc_device: Failure selecting configuration index 0:USB_ERR_STALLED, port 3, addr 2 (ignored) kernel: ugen5.2: at usbus5 ---------------------------------------- Used this drive all right yesterday with the build done 2013-12-15. -- Alex From owner-freebsd-usb@FreeBSD.ORG Sat Jan 11 11:20:01 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4D635C7F for ; Sat, 11 Jan 2014 11:20:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1CD7219F6 for ; Sat, 11 Jan 2014 11:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0BBK0Hc000116 for ; Sat, 11 Jan 2014 11:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0BBK0II000115; Sat, 11 Jan 2014 11:20:00 GMT (envelope-from gnats) Date: Sat, 11 Jan 2014 11:20:00 GMT Message-Id: <201401111120.s0BBK0II000115@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Alex Goncharov Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Alex Goncharov List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jan 2014 11:20:01 -0000 The following reply was made to PR usb/185628; it has been noted by GNATS. From: Alex Goncharov To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/185628: usbd_req_re_enumerate set address failed USB_ERR_STALLED for Seagate USB drives between r259425 and r260321 Date: Sat, 11 Jan 2014 03:10:41 -0800 (PST) No improvement after: * 'svn up' to r260531M * scsi_all.c reverted to: ---------------------------------------- svn diff Index: sys/cam/scsi/scsi_all.c =================================================================== --- sys/cam/scsi/scsi_all.c (revision 260531) +++ sys/cam/scsi/scsi_all.c (working copy) @@ -6509,11 +6509,7 @@ while (rhs_id <= rhs_last && (rhs_id->identifier + rhs_id->length) <= rhs_end) { - if ((rhs_id->id_type & - (SVPD_ID_ASSOC_MASK | SVPD_ID_TYPE_MASK)) == - (lhs_id->id_type & - (SVPD_ID_ASSOC_MASK | SVPD_ID_TYPE_MASK)) - && rhs_id->length == lhs_id->length + if (rhs_id->length == lhs_id->length && memcmp(rhs_id->identifier, lhs_id->identifier, rhs_id->length) == 0) return (0); ---------------------------------------- More info: ---------------------------------------- sysctl kern.bootfile => kern.bootfile: /boot/kernel/kernel strings /boot/kernel/kernel | grep '^FreeBSD 9' => FreeBSD 9.2-STABLE #0 r260531M: Sat Jan 11 00:55:07 EST 2014 ident /boot/kernel/kernel | grep sys/cam/scsi/scsi_all.c => $FreeBSD: stable/9/sys/cam/scsi/scsi_all.c 257050 2013-10-24 10:34:13Z mav $ ---------------------------------------- With hw.usb.no_cs_fail 0 or 1, the same dmesges on attaching the Seagate drive: ---------------------------------------- kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED kernel: usb_alloc_device: Failure selecting configuration index 0:USB_ERR_STALLED, port 3, addr 2 (ignored) kernel: ugen5.2: at usbus5 ---------------------------------------- Used this drive all right yesterday with the build done 2013-12-15. -- Alex