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