From owner-freebsd-usb@FreeBSD.ORG Sun Nov 17 00:59:41 2013 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 2B1CCA2 for ; Sun, 17 Nov 2013 00:59:41 +0000 (UTC) Received: from mta04.bitpro.no (mta04.bitpro.no [92.42.64.203]) by mx1.freebsd.org (Postfix) with ESMTP id DCF952E65 for ; Sun, 17 Nov 2013 00:59:39 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta04.bitpro.no (Postfix) with ESMTPS id 441561006FE; Sat, 16 Nov 2013 22:59:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id D30188EEE4A; Sat, 16 Nov 2013 22:59:57 +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 ZkOkXdsbIxsg; Sat, 16 Nov 2013 22:59:57 +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 345218EEE40; Sat, 16 Nov 2013 22:59:57 +0100 (CET) Message-ID: <5287EB04.9000205@bitfrost.no> Date: Sat, 16 Nov 2013 23:00:36 +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: Peter Jeremy , freebsd-usb@freebsd.org Subject: Re: USB bus stopping References: <20131116211752.GA96782@server.rulingia.com> In-Reply-To: <20131116211752.GA96782@server.rulingia.com> 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.16 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Nov 2013 00:59:41 -0000 On 11/16/13 22:17, Peter Jeremy wrote: > 07:34:26.147358 usbus4.2 DONE-BULK-EP=00000002,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0 > 07:34:26.147420 usbus4.2 SUBM-BULK-EP=00000002,SPD=HIGH,NFR=1,SLEN=20480,IVAL=0 > 07:35:29.624720 usbus4.2 DONE-BULK-EP=00000002,SPD=HIGH,NFR=0,SLEN=0,IVAL=0,ERR=TIMEOUT > 07:35:29.624742 usbus4.2 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=8,IVAL=0 Hi, You possibly need a HW USB analyzer to go further with this. If you can prove that the device is infinitly NAK'ing the USB transfer, which I think it is, not receiving the data it should, then it's a device fault, which is not that uncommon. Some devices don't handle stress simply. Else there are some known issues on the host side. See: hw.usb.ehci.lostintrbug For example. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Nov 17 01:00:01 2013 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 5C544D3 for ; Sun, 17 Nov 2013 01: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 3C19C2E6B for ; Sun, 17 Nov 2013 01: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 rAH101xI059830 for ; Sun, 17 Nov 2013 01: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 rAH100rS059826; Sun, 17 Nov 2013 01:00:00 GMT (envelope-from gnats) Date: Sun, 17 Nov 2013 01:00:00 GMT Message-Id: <201311170100.rAH100rS059826@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: =?utf-8?Q?Hans_Petter_Selasky?= Subject: RE: usb/184014: USB storage devices do not work in FreeBSD 9.2 or higher. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: =?utf-8?Q?Hans_Petter_Selasky?= List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Nov 2013 01:00:01 -0000 The following reply was made to PR usb/184014; it has been noted by GNATS. From: =?utf-8?Q?Hans_Petter_Selasky?= To: =?utf-8?Q?Stan_Gammons?= , =?utf-8?Q?freebsd-gnats-submit=40FreeBSD=2Eorg?= Cc: =?utf-8?Q?Alexander_Motin?= Subject: RE: usb/184014: USB storage devices do not work in FreeBSD 9.2 or higher. Date: Sat, 16 Nov 2013 11:49:37 +0100 This is a multi-part message in MIME format. Your mail reader does not understand MIME message format. --=_1TQxDDr0NO-kTx5SxO-B8U3cUY7e9m3awlHQx6rw74cJhabX Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi,=0D=0A=0D=0AThis is most likely not a USB issue, but rather belongs in= the CAM / SCSI area.=0D=0A=0D=0AYou can try enabling USB quirks for your= device.=0D=0A=0D=0A--HPS=0D=0A=20=0D=0A-----Original message-----=0D=0A>= From:Stan Gammons = >=0D=0A> Sent: Saturday 16th November 2013 4:40=0D=0A> To: freebsd-gnats-= submit@FreeBSD.org =20=0D=0A> Su= bject: usb/184014: USB storage devices do not work in FreeBSD 9.2 or high= er.=0D=0A>=20=0D=0A>=20=0D=0A> >Number: 184014=0D=0A> >Category: = usb=0D=0A> >Synopsis: USB storage devices do not work in Free= BSD 9.2 or higher.=0D=0A> >Confidential: no=0D=0A> >Severity: non= -critical=0D=0A> >Priority: low=0D=0A> >Responsible: freebsd-usb= =0D=0A> >State: open=0D=0A> >Quarter: =20=0D=0A> >Keywords= : =20=0D=0A> >Date-Required:=0D=0A> >Class: sw-bug=0D=0A> >= Submitter-Id: current-users=0D=0A> >Arrival-Date: Sat Nov 16 03:40:00= UTC 2013=0D=0A> >Closed-Date:=0D=0A> >Last-Modified:=0D=0A> >Originator:= Stan Gammons=0D=0A> >Release: 9.2 Release=0D=0A> >Organizatio= n:=0D=0A> >Environment:=0D=0A> FreeBSD gateway2.home.pc 9.2-RELEASE FreeB= SD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC 2013 root@bake.isc= =2Efreebsd.org :/usr/obj/usr/src/sys/G= ENERIC i386=0D=0A> >Description:=0D=0A> USB Ethernet device works Ok, bu= t USB thumb drive does not. Both worked fine in FreeBSD 9.1 Release. Her= e is dmesg output from inserting the thumb drive.=0D=0A>=20=0D=0A> umass0= : on usbus4=0D=0A>= umass0: SCSI over Bulk-Only; quirks =3D 0x4100=0D=0A> umass0:2:0:-1: At= tached to scbus2=0D=0A> da0 at umass-sim0 bus 0 scbus2 target 0 lun 0=0D=0A= > da0: Removable Direct Access SCSI-0 device=0D= =0A> da0: 40.000MB/s transfers=0D=0A> da0: 7639MB (15644912 512 byte sect= ors: 255H 63S/T 973C)=0D=0A> da0: quirks=3D0x2=0D=0A> (da0:uma= ss-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00=0D=0A= > (da0:umass-sim0:0:0:0): CAM status: Auto-Sense Retrieval Failed=0D=0A> = (da0:umass-sim0:0:0:0): Error 5, Unretryable error=0D=0A> (da0:umass-sim0= :0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00=0D=0A> (da0= :umass-sim0:0:0:0): CAM status: Auto-Sense Retrieval Failed=0D=0A> (da0:u= mass-sim0:0:0:0): Error 5, Unretryable error=0D=0A> (da0:umass-sim0:0:0:0= ): got CAM status 0x50=0D=0A> (da0:umass-sim0:0:0:0): fatal error, failed= to attach to device=0D=0A> (da0:umass-sim0:0:0:0): lost device - 0 outst= anding, 5 refs=0D=0A> (da0:umass-sim0:0:0:0): removing device entry=0D=0A= > >How-To-Repeat:=0D=0A> Occurs every time a USB thumb drive is inserted = in USB port.=0D=0A> >Fix:=0D=0A>=20=0D=0A>=20=0D=0A> >Release-Note:=0D=0A= > >Audit-Trail:=0D=0A> >Unformatted:=0D=0A> _____________________________= __________________=0D=0A> freebsd-usb@freebsd.org mailing list=0D=0A> http://lists.freebsd.org/mailman/listinfo/= freebsd-usb =20=0D= =0A> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.or= g "=0D=0A>=20=0D=0A=0D=0A --=_1TQxDDr0NO-kTx5SxO-B8U3cUY7e9m3awlHQx6rw74cJhabX Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0A=0A =0A =0A RE: usb/184014: = USB storage devices do not work in FreeBSD 9.2 or higher.=0A=0A=0A
Hi,

This is most likely not a USB issue, but rath= er belongs in the CAM / SCSI area.

You can try enabling USB quirks= for your device.

--HPS

-----Original message-----
>= From:Stan Gammons <s_gammons= @charter.net>
> Sent: Saturday 16th November 2013 4:40
&g= t; To: freebsd-gnats-= submit@FreeBSD.org
> Subject: usb/184014: USB storage devices d= o not work in FreeBSD 9.2 or higher.
>
>
> >Number= : 184014
> >Category: usb
> >Synopsis: = USB storage devices do not work in FreeBSD 9.2 or higher.
> >= ;Confidential: no
> >Severity: non-critical
> >= Priority: low
> >Responsible: freebsd-usb
> >S= tate: open
> >Quarter:
> >Keywords: =
> >Date-Required:
> >Class: sw-bug
>= ; >Submitter-Id: current-users
> >Arrival-Date: Sat Nov 1= 6 03:40:00 UTC 2013
> >Closed-Date:
> >Last-Modified:> >Originator: Stan Gammons
> >Release: 9.2 R= elease
> >Organization:
> >Environment:
> FreeBSD= gateway2.home.pc 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 = 03:52:52 UTC 2013 root@b= ake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386
> >De= scription:
> USB Ethernet device works Ok, but USB thumb drive does= not. Both worked fine in FreeBSD 9.1 Release. Here is dmesg output from= inserting the thumb drive.
>
> umass0: <Kingston DT 100 = G2, class 0/0, rev 2.00/1.00, addr 3> on usbus4
> umass0: SCSI = over Bulk-Only; quirks =3D 0x4100
> umass0:2:0:-1: Attached to scbu= s2
> da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
> da0: <= ;Kingston DT 100 G2 1.00> Removable Direct Access SCSI-0 device
>= ; da0: 40.000MB/s transfers
> da0: 7639MB (15644912 512 byte sector= s: 255H 63S/T 973C)
> da0: quirks=3D0x2<NO_6_BYTE>
> (d= a0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 0= 0
> (da0:umass-sim0:0:0:0): CAM status: Auto-Sense Retrieval Failed=
> (da0:umass-sim0:0:0:0): Error 5, Unretryable error
> (da0:= umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00> (da0:umass-sim0:0:0:0): CAM status: Auto-Sense Retrieval Failed> (da0:umass-sim0:0:0:0): Error 5, Unretryable error
> (da0:uma= ss-sim0:0:0:0): got CAM status 0x50
> (da0:umass-sim0:0:0:0): fatal= error, failed to attach to device
> (da0:umass-sim0:0:0:0): lost d= evice - 0 outstanding, 5 refs
> (da0:umass-sim0:0:0:0): removing de= vice entry
> >How-To-Repeat:
> Occurs every time a USB thu= mb drive is inserted in USB port.
> >Fix:
>
>
&= gt; >Release-Note:
> >Audit-Trail:
> >Unformatted:> _______________________________________________
> freebsd-usb@freebsd.org mailing list=
> http://lists.freebsd.org/mailman/listinfo/freebsd-usb=
> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"
= >
=0A=0A --=_1TQxDDr0NO-kTx5SxO-B8U3cUY7e9m3awlHQx6rw74cJhabX-- From owner-freebsd-usb@FreeBSD.ORG Sun Nov 17 01:37:58 2013 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 70E87494 for ; Sun, 17 Nov 2013 01:37:58 +0000 (UTC) Received: from mail-pb0-x234.google.com (mail-pb0-x234.google.com [IPv6:2607:f8b0:400e:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4FBBB2FC8 for ; Sun, 17 Nov 2013 01:37:58 +0000 (UTC) Received: by mail-pb0-f52.google.com with SMTP id wy17so4017720pbc.11 for ; Sat, 16 Nov 2013 17:37:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=gbbQII4t6fAIMwvS6YwJOLZO0i4uViDE5DI+9NFztU0=; b=aBDZdHnDWZjORYQoSv+6CPJo6pQ6hFSXk9N0GVk+D4S8toIRoypBCGbWN6WPU0I+/z u+00LwjLJniJqDt3XNKwxXygNiRhdIg5MtitPMwWBq88DHLFayEi3I3E/g8Lmez8Z/2f HNtq4KOH9RF2IQH/8tD6oVcQztDpYk9h9bBy7wGgrBvhfT0qa1gcvksGFoFYjnfY3rTY zoYoN9Zr+c2i6QzgmNqCATZZpYn5zPNZEBD9fjUrDBa+b2qzQAenuJbVu5g1Jlamods6 pIHtrcVmATNZX6cj76nV6Mehiw2X1hYiF5d5Urj9bsfKOqIlBWXWYM3AGHeh0+JpSfrU cgKQ== MIME-Version: 1.0 X-Received: by 10.68.88.161 with SMTP id bh1mr13790825pbb.49.1384652277985; Sat, 16 Nov 2013 17:37:57 -0800 (PST) Received: by 10.68.123.134 with HTTP; Sat, 16 Nov 2013 17:37:57 -0800 (PST) Date: Sun, 17 Nov 2013 09:37:57 +0800 Message-ID: Subject: DWM-156 (A3) 3G Adapter working! From: Harun Musa To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Nov 2013 01:37:58 -0000 Hi! Product info: http://www.dlink.com.my/products/?idproduct=474&idCategory=199 added to usbdevs product DLINK2 DWM156_A3_INIT 0xa804 DWM-156_A3_INIT product DLINK2 DWM156_A3 0x7e11 DWM-156_A3 & added to u3g.c U3G_DEV(DLINK2, DWM156_A3, 0), U3G_DEV(DLINK2, DWM156_A3_INIT, U3GINIT_SCSIEJECT), also working on OpenBSD 5.4 added to usbdevs product DLINK2 DWM156A3_CD 0xa804 DWM-156_CD rev A3 product DLINK2 DWM156A3 0x7e11 DWM-156 rev A3 & added to umsm.c {{ USB_VENDOR_DLINK2, USB_PRODUCT_DLINK2_DWM156A3_CD }, DEV_UMASS4}, {{ USB_VENDOR_DLINK2, USB_PRODUCT_DLINK2_DWM156A3 }, 0}, --- That it's . tq From owner-freebsd-usb@FreeBSD.ORG Sun Nov 17 14:32:52 2013 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 0DB7E99B for ; Sun, 17 Nov 2013 14:32:52 +0000 (UTC) Received: from mta03.bitpro.no (mta03.bitpro.no [92.42.64.204]) by mx1.freebsd.org (Postfix) with ESMTP id C248820E5 for ; Sun, 17 Nov 2013 14:32:51 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta03.bitpro.no (Postfix) with ESMTP id D868E7A0F8; Sun, 17 Nov 2013 15:12:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id CC59D8EFDA2; Sun, 17 Nov 2013 15:13:27 +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 KKowBElCitpv; Sun, 17 Nov 2013 15:13:26 +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 2F7628EF3A5; Sun, 17 Nov 2013 15:13:26 +0100 (CET) Message-ID: <5288CF2D.1040307@bitfrost.no> Date: Sun, 17 Nov 2013 15:14:05 +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: Harun Musa , freebsd-usb@freebsd.org Subject: Re: DWM-156 (A3) 3G Adapter working! 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.16 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Nov 2013 14:32:52 -0000 On 11/17/13 02:37, Harun Musa wrote: > Hi! > > Product info: > http://www.dlink.com.my/products/?idproduct=474&idCategory=199 > > added to usbdevs > product DLINK2 DWM156_A3_INIT 0xa804 DWM-156_A3_INIT > product DLINK2 DWM156_A3 0x7e11 DWM-156_A3 > & added to u3g.c > U3G_DEV(DLINK2, DWM156_A3, 0), > U3G_DEV(DLINK2, DWM156_A3_INIT, U3GINIT_SCSIEJECT), > > also working on OpenBSD 5.4 > added to usbdevs > product DLINK2 DWM156A3_CD 0xa804 DWM-156_CD rev A3 > product DLINK2 DWM156A3 0x7e11 DWM-156 rev A3 > & added to umsm.c > {{ USB_VENDOR_DLINK2, USB_PRODUCT_DLINK2_DWM156A3_CD }, DEV_UMASS4}, > {{ USB_VENDOR_DLINK2, USB_PRODUCT_DLINK2_DWM156A3 }, 0}, > > --- > That it's . > tq > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > > Hi, Do you mind creating a PR for this? Just file under USB category. Thank you! --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Nov 17 17:10:02 2013 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 50E1ED88 for ; Sun, 17 Nov 2013 17:10: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 26B04285A for ; Sun, 17 Nov 2013 17:10: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 rAHHA19D048455 for ; Sun, 17 Nov 2013 17: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 rAHHA1u6048454; Sun, 17 Nov 2013 17:10:01 GMT (envelope-from gnats) Date: Sun, 17 Nov 2013 17:10:01 GMT Message-Id: <201311171710.rAHHA1u6048454@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Stan Gammons Subject: Re: usb/184014: USB storage devices do not work in FreeBSD 9.2 or higher. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: Stan Gammons List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Nov 2013 17:10:02 -0000 The following reply was made to PR usb/184014; it has been noted by GNATS. From: Stan Gammons To: Hans Petter Selasky , "freebsd-gnats-submit@FreeBSD.org" Cc: Alexander Motin Subject: Re: usb/184014: USB storage devices do not work in FreeBSD 9.2 or higher. Date: Sun, 17 Nov 2013 11:06:20 -0600 I've been unable to figure out what quirks are needed to make this work. Using usbconfig or a different brand USB drive are the easiest things to do. Thanks for the help. Stan From owner-freebsd-usb@FreeBSD.ORG Mon Nov 18 11:06:59 2013 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 52C2AB26 for ; Mon, 18 Nov 2013 11:06:59 +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 41406209C for ; Mon, 18 Nov 2013 11:06:59 +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 rAIB6xo1009254 for ; Mon, 18 Nov 2013 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rAIB6wmv009247 for freebsd-usb@FreeBSD.org; Mon, 18 Nov 2013 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Nov 2013 11:06:58 GMT Message-Id: <201311181106.rAIB6wmv009247@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.16 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Nov 2013 11:06:59 -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/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 324 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Nov 19 06:31:22 2013 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 1AC8CF10 for ; Tue, 19 Nov 2013 06:31:22 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A8221273A for ; Tue, 19 Nov 2013 06:31:21 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id rAJ6V4uv000857; Mon, 18 Nov 2013 22:31:09 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201311190631.rAJ6V4uv000857@gw.catspoiler.org> Date: Mon, 18 Nov 2013 22:31:04 -0800 (PST) From: Don Lewis Subject: Re: U3GINIT_SCSIEJECT quirk To: hps@bitfrost.no In-Reply-To: <5285CE2A.2020609@bitfrost.no> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Nov 2013 06:31:22 -0000 On 15 Nov, Hans Petter Selasky wrote: > The SCSI quirk is not needed. This should be fixed in the SCSI stack! The SCSI quirk does seem to be needed, at least to make the umass device readable. With the UQ_MSC_NO_PREVENT_ALLOW quirk, I am able to mount the umass device (before it goes way) and read its contents. This quirk is not implemented in 8.4-STABLE, and on my 8.4-STABLE machine I am not able to read the umass device. It looks like PREVENT REMOVAL causes the device to become unreadable. If I do a verbose boot on my 8.4-STABLE machine, I can see more of what is going on when I plug in the device: ugen1.2: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x0100 umass0:2:0:-1: Attached to scbus2 (probe0:umass-sim0:0:0:0): SCSI status error (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (probe0:umass-sim0:0:0:0): Error 6, Unretryable error pass1 at umass-sim0 bus 0 scbus2 target 0 lun 0 pass1: Removable CD-ROM SCSI-2 device pass1: Serial Number 091166643730000 pass1: 1.000MB/s transfers GEOM: new disk cd1 (cd1:umass-sim0:0:0:0): SCSI status error (cd1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd1:umass-sim0:0:0:0): SCSI status: Check Condition (cd1:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd1:umass-sim0:0:0:0): Error 6, Unretryable error cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0 cd1: Removable CD-ROM SCSI-2 device cd1: Serial Number 091166643730000 cd1: 1.000MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not present cd1: quirks=0x10<10_BYTE_ONLY> (cd1:umass-sim0:0:0:0): SCSI status error (cd1:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd1:umass-sim0:0:0:0): SCSI status: Check Condition (cd1:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd1:umass-sim0:0:0:0): Error 6, Unretryable error (cd1:umass-sim0:0:0:0): SCSI status error (cd1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd1:umass-sim0:0:0:0): SCSI status: Check Condition (cd1:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd1:umass-sim0:0:0:0): Error 6, Unretryable error (cd1:umass-sim0:0:0:0): SCSI status error (cd1:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd1:umass-sim0:0:0:0): SCSI status: Check Condition (cd1:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd1:umass-sim0:0:0:0): Error 6, Unretryable error (cd1:umass-sim0:0:0:0): SCSI status error (cd1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd1:umass-sim0:0:0:0): SCSI status: Check Condition (cd1:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd1:umass-sim0:0:0:0): Error 6, Unretryable error I played around a bit with camcontrol debug on my 11.0-CURRENT box. Unfortunately it isn't possible to turn on debug for a specific device before it is plugged in, and if I enable debugging for all devices, I have to be pretty selective about the debug flags to keep hard drive I/O from being logged (which causes a feedback loop via syslog). Here's 11.0-CURRENT without the quirk: (noperiph:xpt0:0:-1:ffffffff): debugging flags now 61 ugen2.2: at usbus2 umass0: on usbus2 umass0: SCSI over Bulk-Only; quirks = 0x0100 umass0:9:0: Attached to scbus9 (noperiph:umass-sim0:0:-1:ffffffff): xpt_async(AC_PATH_REGISTERED) (probe0:umass-sim0:0:0:0): Periph created (probe0:umass-sim0:0:0:0): Probe started (probe0:umass-sim0:0:0:0): Probe PROBE_INVALID to PROBE_INQUIRY (probe0:umass-sim0:0:0:0): Probe PROBE_INQUIRY to PROBE_FULL_INQUIRY (probe0:umass-sim0:0:0:0): Probe PROBE_FULL_INQUIRY to PROBE_SUPPORTED_VPD_LIST (probe0:umass-sim0:0:0:0): Probe PROBE_SUPPORTED_VPD_LIST to PROBE_DEVICE_ID (probe0:umass-sim0:0:0:0): Probe PROBE_DEVICE_ID to PROBE_SERIAL_NUM (probe0:umass-sim0:0:0:0): Probe PROBE_SERIAL_NUM to PROBE_TUR_FOR_NEGOTIATION (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (probe0:umass-sim0:0:0:0): Error 6, Unretryable error (probe0:umass-sim0:0:0:0): Probe PROBE_TUR_FOR_NEGOTIATION to PROBE_DONE (probe0:umass-sim0:0:0:0): Probe completed (probe0:umass-sim0:0:0:0): Periph invalidated (probe0:umass-sim0:0:0:0): Periph destroyed (noperiph:umass-sim0:0:0:0): xpt_async(AC_FOUND_DEVICE) (cd0:umass-sim0:0:0:0): Periph created (pass2:umass-sim0:0:0:0): Periph created pass2 at umass-sim0 bus 0 scbus9 target 0 lun 0 pass2: Removable CD-ROM SCSI-2 device pass2: Serial Number 091166643730000 GEOM: new disk cd0 pass2: 1.000MB/s transfers (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error cd0 at umass-sim0 bus 0 scbus9 target 0 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: Serial Number 091166643730000 cd0: 1.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present cd0: quirks=0x10<10_BYTE_ONLY> (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Error 6, Retries exhausted (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Error 6, Retries exhausted (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back (noperiph:(cd0:umass-sim0:0:umass-sim0:0:0:0:0): xpt_async(AC_UNIT_ATTENTION) 0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Error 6, Retries exhausted (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back (noperiph:(cd0:umass-sim0:0:umass-sim0:0:0:0:0): xpt_async(AC_UNIT_ATTENTION) 0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Retrying command (per sense data) (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (cd0:umass-sim0:0:0:0): Error 6, Retries exhausted (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back (noperiph:(cd0:umass-sim0:0:umass-sim0:0:0:0:0): xpt_async(AC_UNIT_ATTENTION) 0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): cdclose (noperiph:umass-sim0:0:0:0): debugging flags now 69 (pass2:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 (pass2:umass-sim0:0:0:0): GET EVENT STATUS NOTIFICATION. CDB: 4a 01 00 00 10 00 00 00 08 00 (cd0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 (pass2:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 (pass2:umass-sim0:0:0:0): GET EVENT STATUS NOTIFICATION. CDB: 4a 01 00 00 10 00 00 00 08 00 (pass2:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 [...] And 11.0-CURRENT with the quirk: (noperiph:xpt0:0:-1:ffffffff): debugging flags now 61 ugen2.2: at usbus2 umass0: on usbus2 umass0: SCSI over Bulk-Only; quirks = 0x8100 umass0:9:0: Attached to scbus9 (noperiph:umass-sim0:0:-1:ffffffff): xpt_async(AC_PATH_REGISTERED) (probe0:umass-sim0:0:0:0): Periph created (probe0:umass-sim0:0:0:0): Probe started (probe0:umass-sim0:0:0:0): Probe PROBE_INVALID to PROBE_INQUIRY (probe0:umass-sim0:0:0:0): Probe PROBE_INQUIRY to PROBE_FULL_INQUIRY (probe0:umass-sim0:0:0:0): Probe PROBE_FULL_INQUIRY to PROBE_SUPPORTED_VPD_LIST (probe0:umass-sim0:0:0:0): Probe PROBE_SUPPORTED_VPD_LIST to PROBE_DEVICE_ID (probe0:umass-sim0:0:0:0): Probe PROBE_DEVICE_ID to PROBE_SERIAL_NUM (probe0:umass-sim0:0:0:0): Probe PROBE_SERIAL_NUM to PROBE_TUR_FOR_NEGOTIATION (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (probe0:umass-sim0:0:0:0): Error 6, Unretryable error (probe0:umass-sim0:0:0:0): Probe PROBE_TUR_FOR_NEGOTIATION to PROBE_DONE (probe0:umass-sim0:0:0:0): Probe completed (probe0:umass-sim0:0:0:0): Periph invalidated (probe0:umass-sim0:0:0:0): Periph destroyed (noperiph:umass-sim0:0:0:0): xpt_async(AC_FOUND_DEVICE) (cd0:umass-sim0:0:0:0): Periph created (pass2:umass-sim0:0:0:0): Periph created pass2 at umass-sim0 bus 0 scbus9 target 0 lun 0 pass2: Removable CD-ROM SCSI-2 device pass2: Serial Number 091166643730000 pass2: 1.000MB/s transfers GEOM: new disk cd0 (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error cd0 at umass-sim0 bus 0 scbus9 target 0 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: Serial Number 091166643730000 cd0: 1.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present cd0: quirks=0x10<10_BYTE_ONLY> (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI status: Check Condition (cd0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (cd0:umass-sim0:0:0:0): Error 6, Unretryable error (cd0:umass-sim0:0:0:0): cdclose (pass2:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 (pass2:umass-sim0:0:0:0): CAM status: SCSI Status Error (pass2:umass-sim0:0:0:0): SCSI status: Check Condition (pass2:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (pass2:umass-sim0:0:0:0): Error 6, Unretryable error (pass2:umass-sim0:0:0:0): GET EVENT STATUS NOTIFICATION. CDB: 4a 01 00 00 10 00 00 00 08 00 (pass2:umass-sim0:0:0:0): CAM status: SCSI Status Error (pass2:umass-sim0:0:0:0): SCSI status: Check Condition (pass2:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (pass2:umass-sim0:0:0:0): Error 6, Unretryable error (pass2:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 (pass2:umass-sim0:0:0:0): CAM status: SCSI Status Error (pass2:umass-sim0:0:0:0): SCSI status: Check Condition (pass2:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (pass2:umass-sim0:0:0:0): Error 6, Unretryable error (pass2:umass-sim0:0:0:0): GET EVENT STATUS NOTIFICATION. CDB: 4a 01 00 00 10 00 00 00 08 00 (pass2:umass-sim0:0:0:0): CAM status: SCSI Status Error (pass2:umass-sim0:0:0:0): SCSI status: Check Condition (pass2:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (pass2:umass-sim0:0:0:0): Error 6, Unretryable error (pass2:umass-sim0:0:0:0): MODE SENSE(10). CDB: 5a 00 2a 00 00 00 00 00 22 00 (pass2:umass-sim0:0:0:0): CAM status: SCSI Status Error (pass2:umass-sim0:0:0:0): SCSI status: Check Condition (pass2:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair) (pass2:umass-sim0:0:0:0): Error 6, Unretryable error (noperiph:umass-sim0:0:0:0): xpt_async(AC_UNIT_ATTENTION) (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): cdclose (cd0:umass-sim0:0:0:0): cdopen (cd0:umass-sim0:0:0:0): cdclose (noperiph:umass-sim0:0:0:0): debugging flags now 69 (pass2:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 (pass2:umass-sim0:0:0:0): GET EVENT STATUS NOTIFICATION. CDB: 4a 01 00 00 10 00 00 00 08 00 (cd0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 (pass2:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 (pass2:umass-sim0:0:0:0): GET EVENT STATUS NOTIFICATION. CDB: 4a 01 00 00 10 00 00 00 08 00 [...] From owner-freebsd-usb@FreeBSD.ORG Tue Nov 19 09:10:47 2013 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 C1A7C802 for ; Tue, 19 Nov 2013 09:10:47 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A5D352EEB for ; Tue, 19 Nov 2013 09:10:47 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id rAJ9Ab3o001017; Tue, 19 Nov 2013 01:10:41 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201311190910.rAJ9Ab3o001017@gw.catspoiler.org> Date: Tue, 19 Nov 2013 01:10:37 -0800 (PST) From: Don Lewis Subject: Re: U3GINIT_SCSIEJECT quirk To: hps@bitfrost.no In-Reply-To: <5285CE2A.2020609@bitfrost.no> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Nov 2013 09:10:47 -0000 On 15 Nov, Hans Petter Selasky wrote: > On 11/15/13 00:37, Don Lewis wrote: >> My first question is how does U3GINIT_SCSIEJECT manage to ever work? It >> seems like there would be chicken vs. egg issue here. The quirk is on >> the u3g device, so how would it get activated until the u3g device is >> attached? The u3g device doesn't appear until the umass device is >> ejected. > > Hi, > > Check the VID and PID of your USB device using usbconfig. Maybe it is > not the same value in both cases? I sprinkled some calls to printf() inside u3g_test_autoinst(). It looks like it is never getting called the first time the device is plugged in. Strangely, it seems to be called twice after I do camcontrol eject cd0 but it just returns both times because bInterfaceClass is 255 and not UICLASS_MASS. When I unplug the device and then plug it in again, u3g_test_autoinst() gets called when the device first appears. It ejects the umass device, and then gets called again (doing nothing) when the u3g device appears. > U3G patch looks OK. > > The SCSI quirk is not needed. This should be fixed in the SCSI stack! I did some more debug and the umass device does seem to be readable even without the quirk, even though there were READ(10) failures earlier. I'm also unable to reproduce the panic. I think it's probably a hard to trigger race condition in CAM. From owner-freebsd-usb@FreeBSD.ORG Tue Nov 19 21:50:01 2013 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 649A63A3 for ; Tue, 19 Nov 2013 21: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 5474A2F6A for ; Tue, 19 Nov 2013 21: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 rAJLo0pf019097 for ; Tue, 19 Nov 2013 21:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rAJLo0BZ019096; Tue, 19 Nov 2013 21:50:00 GMT (envelope-from gnats) Date: Tue, 19 Nov 2013 21:50:00 GMT Message-Id: <201311192150.rAJLo0BZ019096@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Dave Hayes Subject: Re: usb/169935: [keyboard] Unable use USB keyboard while panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: Dave Hayes List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Nov 2013 21:50:01 -0000 The following reply was made to PR usb/169935; it has been noted by GNATS. From: Dave Hayes To: bug-followup@FreeBSD.org, kes-kes@yandex.ru Cc: Subject: Re: usb/169935: [keyboard] Unable use USB keyboard while panic Date: Tue, 19 Nov 2013 13:35:34 -0800 Just another datapoint. If I get a panic really early on (e.g. a fatal trap 12 during the very first part of the kernel's booting process) I experience this same issue. I've dropped to a debugger, but can't trace what happened because the keyboard does not work. Using a PS/2 does not work as this machine has no PS/2 keyboard interface. :) -- Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org >>>> *The opinions expressed above are entirely my own* <<<< Anarchism is founded on the observation that since few are wise enough to rule themselves, even fewer are wise enough to rule others. - Edward Abbey From owner-freebsd-usb@FreeBSD.ORG Wed Nov 20 04:13:31 2013 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 A0753A11 for ; Wed, 20 Nov 2013 04:13:31 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 844282A5F for ; Wed, 20 Nov 2013 04:13:31 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id rAK4DKNx002908; Tue, 19 Nov 2013 20:13:24 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201311200413.rAK4DKNx002908@gw.catspoiler.org> Date: Tue, 19 Nov 2013 20:13:20 -0800 (PST) From: Don Lewis Subject: Re: U3GINIT_SCSIEJECT quirk To: hps@bitfrost.no In-Reply-To: <5285CE2A.2020609@bitfrost.no> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Nov 2013 04:13:31 -0000 On 15 Nov, Hans Petter Selasky wrote: > On 11/15/13 00:37, Don Lewis wrote: >> My first question is how does U3GINIT_SCSIEJECT manage to ever work? It >> seems like there would be chicken vs. egg issue here. The quirk is on >> the u3g device, so how would it get activated until the u3g device is >> attached? The u3g device doesn't appear until the umass device is >> ejected. > > Hi, > > Check the VID and PID of your USB device using usbconfig. Maybe it is > not the same value in both cases? > > U3G patch looks OK. Ok, I've committed the u3g patch. > The SCSI quirk is not needed. This should be fixed in the SCSI stack! I'm holding off committing the SCSI quirk. I did figure out why the eject isn't happening the first time that the device is plugged in. The problem is that u3g_driver_loaded() isn't getting called (to register the event handler) until the u3g device appears. This device first shows up as a umass device, and the u3g device doesn't appear until I do "camcontrol eject". It works the next time the device is plugged in because the event handler is already registered. I've got u3g built into my kernel. I don't know if it might work better if I was using u3g as a module, but I think it would be racy. Plugging in the device would cause devd to kldload the module, which would then register the event handler. I don't know if that would happen before usb_probe_and_attach() called EVENT_HANDLER_INVOKE(), but that sounds unlikely. If u3g is built in, I think the best fix would be to somehow register the event handler during the boot sequence before we start attaching the USB devices. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 20 23:59:37 2013 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 E06CCA9F for ; Wed, 20 Nov 2013 23:59:37 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C3E232304 for ; Wed, 20 Nov 2013 23:59:37 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id rAKNxLcW005292; Wed, 20 Nov 2013 15:59:25 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201311202359.rAKNxLcW005292@gw.catspoiler.org> Date: Wed, 20 Nov 2013 15:59:21 -0800 (PST) From: Don Lewis Subject: Re: U3GINIT_SCSIEJECT quirk To: hps@bitfrost.no MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Nov 2013 23:59:37 -0000 On 19 Nov, Don Lewis wrote: > I did figure out why the eject isn't happening the first time that the > device is plugged in. The problem is that u3g_driver_loaded() isn't > getting called (to register the event handler) until the u3g device > appears. This device first shows up as a umass device, and the u3g > device doesn't appear until I do "camcontrol eject". > > It works the next time the device is plugged in because the event > handler is already registered. > > I've got u3g built into my kernel. I don't know if it might work better > if I was using u3g as a module, but I think it would be racy. Plugging > in the device would cause devd to kldload the module, which would then > register the event handler. I don't know if that would happen before > usb_probe_and_attach() called EVENT_HANDLER_INVOKE(), but that sounds > unlikely. > > If u3g is built in, I think the best fix would be to somehow register > the event handler during the boot sequence before we start attaching the > USB devices. Mystery solved! I had assumed that u3g was built into my kernel because I had assumed that it was included in the GENERIC kernel config file, which I include in my kernel config. That turns out to be incorrect. The u3g driver was getting kldloaded by devd after I did the "camcontrol eject". It turns out that was happening even before I added the new PID because the device changes its PID to a value that was already compiled into the driver when it switches from umass to u3g mode. If the driver is compiled into the kernel, there is a SYSINIT that should register the event handler during boot. In the case of a module, adding this to /boot/loader.conf makes all the right things happen, even on the first insertion of the device: u3g_load="YES" The SCSI quirk is still an open issue, but it's sort of academic because the eject happens before the cd device even appears, so the problem that I think are occurring during geom tasting don't get triggered. There is also the hard to trigger CAM panic that I stumbled across, but the fast automatic eject should avoid that problem as well. It's something that should be tracked down and fixed though. From owner-freebsd-usb@FreeBSD.ORG Thu Nov 21 11:02:02 2013 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 F30A7797 for ; Thu, 21 Nov 2013 11:02:02 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DA4972CE1 for ; Thu, 21 Nov 2013 11:02:02 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id rALB1tOU006535 for ; Thu, 21 Nov 2013 03:01:59 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201311211101.rALB1tOU006535@gw.catspoiler.org> Date: Thu, 21 Nov 2013 03:01:55 -0800 (PST) From: Don Lewis Subject: CFR: u3g(4) man page tweaks To: freebsd-usb@FreeBSD.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Nov 2013 11:02:03 -0000 Document that the u3g driver can be automagically autoloaded by devd when the device is plugged in. Also mention that if the driver is not built into the kernel or loaded before the device is plugged in, then the automatic mode switch does not happen. Index: share/man/man4/u3g.4 =================================================================== --- share/man/man4/u3g.4 (revision 258423) +++ share/man/man4/u3g.4 (working copy) @@ -18,7 +18,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 8, 2012 +.Dd November 20, 2013 .Dt U3G 4 .Os .Sh NAME @@ -40,6 +40,9 @@ .Bd -literal -offset indent u3g_load="YES" .Ed +.Pp +If neither of the above is done, the driver will automatically be loaded +by devd when the device is connected. .Sh DESCRIPTION The .Nm @@ -99,6 +102,10 @@ .Xr usb 4 , .Xr usb_quirk 4 , .Xr usbconfig 8 +.Sh BUGS +The automatic mode switch from disk mode to modem mode does not work unless +the driver is either built into the kernel or loaded before the device is +connected. .Sh HISTORY The .Nm From owner-freebsd-usb@FreeBSD.ORG Sat Nov 23 16:29:43 2013 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 2F408317 for ; Sat, 23 Nov 2013 16:29:43 +0000 (UTC) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DC0F02F92 for ; Sat, 23 Nov 2013 16:29:42 +0000 (UTC) Received: from mail-in-12-z2.arcor-online.net (mail-in-12-z2.arcor-online.net [151.189.8.29]) by mx.arcor.de (Postfix) with ESMTP id 088E810CB80 for ; Sat, 23 Nov 2013 16:56:15 +0100 (CET) Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail-in-12-z2.arcor-online.net (Postfix) with ESMTP id 0531E2E6789 for ; Sat, 23 Nov 2013 16:56:15 +0100 (CET) X-Greylist: Passed host: 188.105.215.149 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-09.arcor-online.net D13EA10D80E Received: from [192.168.0.7] (dslb-188-105-215-149.pools.arcor-ip.net [188.105.215.149]) (Authenticated sender: screamingfist@arcor.de) by mail-in-09.arcor-online.net (Postfix) with ESMTPSA id D13EA10D80E for ; Sat, 23 Nov 2013 16:56:14 +0100 (CET) Subject: Question about usb-hid development From: Stefan Achatz To: freebsd-usb@freebsd.org Content-Type: text/plain; charset="UTF-8" Date: Sat, 23 Nov 2013 15:48:46 +0100 Message-ID: <1385218126.3605.25.camel@neuromancer.tessier-ashpool> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 (2.30.3-1.fc13) Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: erazor_de@users.sourceforge.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Nov 2013 16:29:43 -0000 Hello, I'm writing Linux support for gaming USB keyboards/mice and think about porting functionality to FreeBSD. While I'm installing FreeBSD and strolling through the source fighting with the differences to Linux, maybe someone could give me a starting point: In Linux there is a hidraw chardevice from which the unparsed, polled reports can be read, and that supports ioctl's to read/write feature reports. Is there something similar in FreeBSD? Thanks and have a nice day Stefan From owner-freebsd-usb@FreeBSD.ORG Sat Nov 23 22:35:42 2013 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 C9FE01C4 for ; Sat, 23 Nov 2013 22:35:42 +0000 (UTC) Received: from mail-qe0-x22f.google.com (mail-qe0-x22f.google.com [IPv6:2607:f8b0:400d:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8D3BC2F2B for ; Sat, 23 Nov 2013 22:35:42 +0000 (UTC) Received: by mail-qe0-f47.google.com with SMTP id t7so2345896qeb.34 for ; Sat, 23 Nov 2013 14:35:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:content-type; bh=Lp2uGvhJM0PsC3WSiPyZ/awUULyn2Qj7lZf5hIB4ksM=; b=THawrfSXPW9+IUm6pdRXjvog8wNEMWrcHc5LuvuU1HaBkww4kYJyH0+eBVHJQu21Lp 9x9WRoZkHPes8oLN890sZZql/l2DGcrQmuxFPmOVFApBtLRYZ8lS/hF9g8hThiERW2t8 ryn28jw46Rhs2S90UEOgqeNVRMWv+YXUMemdagbSeCvSEXH9DuXxrHAIDl4+vbKd55Dl DkqZaoFZO7SlTL0kbuIOqDZi2U4ZTz1cZ1tCUvCTLRv9lnkoWta4oTOrAribYW1JFmrg 7LG4nrrM444KaWcgutVnt7rT+vwmQ2sutZvD+Sw/9H3y5A8UuAKdyM/mMN5/C4lFo05J e77g== X-Received: by 10.224.56.5 with SMTP id w5mr33400333qag.60.1385246141755; Sat, 23 Nov 2013 14:35:41 -0800 (PST) Received: from blackbeast.local (75-121-125-131.dyn.centurytel.net. [75.121.125.131]) by mx.google.com with ESMTPSA id h9sm103196549qaq.9.2013.11.23.14.35.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Nov 2013 14:35:40 -0800 (PST) From: Chuck Burns To: erazor_de@users.sourceforge.net, freebsd-usb@freebsd.org Subject: Re: Question about usb-hid development Date: Sat, 23 Nov 2013 16:35:35 -0600 Message-ID: <2893309.GTtavP7479@blackbeast.local> User-Agent: KMail/4.10.5 (FreeBSD/10.0-BETA3; KDE/4.10.5; amd64; ; ) In-Reply-To: <1385218126.3605.25.camel@neuromancer.tessier-ashpool> References: <1385218126.3605.25.camel@neuromancer.tessier-ashpool> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Nov 2013 22:35:42 -0000 On Saturday, November 23, 2013 3:48:46 PM Stefan Achatz wrote: > Hello, > I'm writing Linux support for gaming USB keyboards/mice and think about > porting functionality to FreeBSD. > While I'm installing FreeBSD and strolling through the source fighting > with the differences to Linux, maybe someone could give me a starting > point: > In Linux there is a hidraw chardevice from which the unparsed, polled > reports can be read, and that supports ioctl's to read/write feature > reports. > Is there something similar in FreeBSD? > Thanks and have a nice day > Stefan Two words for you. "man ugen" it's the generic USB driver. break19