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--