From owner-freebsd-usb@FreeBSD.ORG Sun Feb 10 00:10:54 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9BD57EA1 for ; Sun, 10 Feb 2013 00:10:54 +0000 (UTC) (envelope-from freebsd@psconsult.nl) Received: from mx1.psconsult.nl (unknown [IPv6:2001:7b8:30f:e0::5059:ee8a]) by mx1.freebsd.org (Postfix) with ESMTP id 5310EF11 for ; Sun, 10 Feb 2013 00:10:54 +0000 (UTC) Received: from mx1.psconsult.nl (mx1.hvnu.psconsult.nl [46.44.189.154]) by mx1.psconsult.nl (8.14.5/8.14.4) with ESMTP id r1A0AjD6042706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 10 Feb 2013 01:10:50 +0100 (CET) (envelope-from freebsd@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.5/8.14.4/Submit) id r1A0Aj7o042705; Sun, 10 Feb 2013 01:10:45 +0100 (CET) (envelope-from freebsd@psconsult.nl) X-Authentication-Warning: mx1.psconsult.nl: paul set sender to freebsd@psconsult.nl using -f Date: Sun, 10 Feb 2013 01:10:45 +0100 From: Paul Schenkeveld To: Hans Petter Selasky Subject: Re: Pencam does not attach Message-ID: <20130210001045.GA62613@psconsult.nl> References: <20130209125156.GA15557@psconsult.nl> <201302091556.53324.hselasky@c2i.net> <20130209200403.GA58311@psconsult.nl> <201302092336.15778.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201302092336.15778.hselasky@c2i.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 00:10:54 -0000 On Sat, Feb 09, 2013 at 11:36:15PM +0100, Hans Petter Selasky wrote: > On Saturday 09 February 2013 21:04:03 Paul Schenkeveld wrote: > > On Sat, Feb 09, 2013 at 03:56:53PM +0100, Hans Petter Selasky wrote: > > > On Saturday 09 February 2013 13:51:56 Paul Schenkeveld wrote: > > > > Hi, > > > > > > > > I tried to use a USB pen camera with flash drive but get no more than: > > > > usbus7: port reset timeout > > > > uhub_reattach_port: port 1 reset failed, error=USB_ERR_TIMEOUT > > > > uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port > > > > 1 usbd_set_config_index: could not read device status: > > > > USB_ERR_STALLED usbd_req_re_enumerate: addr=3, set address failed! > > > > (USB_ERR_STALLED, > > > > > > > > ignored) usbd_req_re_enumerate: addr=3, set address failed! > > > > (USB_ERR_STALLED, ignored) usb_alloc_device: Failure selecting > > > > configuration index 0:USB_ERR_STALLED, port 1, addr 3 (ignored) > > > > ugen7.3: at usbus7 > > > > > > > > ugen7.3: at usbus7 (disconnected) > > > > > > > > It works fine on a Macbook so I know it's not broken. > > > > > > > > Any chance of getting this to work? > > > > > > > > BTW I'm running 8.3-STABLE with a kernel built in May 2012. > > > > > > Hi, > > > > > > > With kind regards, > > > > > > You should try 8-stable first. There has been some timing fixes in this > > > area. > > > > Just compiled a 8-STABLE kernel (svn rev 246578). Initially I get the > > almost same errors as above: > > > > usbus7: port reset timeout > > uhub_reattach_port: port 1 reset failed, error=USB_ERR_TIMEOUT > > uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 1 > > usbd_set_config_index: could not read device status: USB_ERR_STALLED > > usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, > > ignored) usbd_req_re_enumerate: addr=3, set address failed! > > (USB_ERR_STALLED, ignored) usb_alloc_device: Failure selecting > > configuration index 0:USB_ERR_STALLED, port 1, addr 3 (ignored) ugen7.3: > > at usbus7 > > ugen7.3: at usbus7 (disconnected) > > > > > See: sysctl hw.usb.timings > > > > Could not find documentation but with guessing and trying I got rid of > > the first three messages using hw.usb.timings.port_powerup_delay=100: > > > > usbd_set_config_index: could not read device status: USB_ERR_STALLED > > usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, > > ignored) usbd_req_re_enumerate: addr=3, set address failed! > > (USB_ERR_STALLED, ignored) usb_alloc_device: Failure selecting > > configuration index 0:USB_ERR_STALLED, port 2, addr 3 (ignored) ugen7.3: > > at usbus7 > > ugen7.3: at usbus7 (disconnected) > > > > Anything else I should try? > > Hi, > > Can you identify the limit at which your device works / does not work by using > binary search. > > Also try to play with the other tunables, and see what happens! I already tried changing all other tunables, one by one, both lower and higher values. The second set of messages above is the bet I got. It was never recognized as a umass. > --HPS Thanks! Paul Schenkeveld From owner-freebsd-usb@FreeBSD.ORG Sun Feb 10 11:07:35 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A338AF2A; Sun, 10 Feb 2013 11:07:35 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 0ED0C6CD; Sun, 10 Feb 2013 11:07:34 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 379820867; Sun, 10 Feb 2013 12:02:25 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: some usb troubles Date: Sun, 10 Feb 2013 12:03:36 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <20130209180124.GA1783@dchagin.static.corbina.net> In-Reply-To: <20130209180124.GA1783@dchagin.static.corbina.net> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-current@freebsd.org, Chagin Dmitry X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 11:07:35 -0000 On Saturday 09 February 2013 19:01:25 Chagin Dmitry wrote: > Hi all, > > trying to run macbookpro10,1 on HEAD: > > 1) usb3.0 does not work at 9.1 and HEAD (r246587) > 2) Between stable/9 and HEAD (r246587) we are lost uhid devices > (external keyboard and mouse) and umass. dmesg on the same hw can find > here: > > http://people.freebsd.org/~dchagin/macbookpro/dmesg.generic.stable9.txt > http://people.freebsd.org/~dchagin/macbookpro/dmesg.generic.HEAD.txt > > pciconf: > > http://people.freebsd.org/~dchagin/macbookpro/pciconf.txt > > any help would be greatly apprecated. Hi, This error is not directly USB related. It means probably that ACPI or the PCI subsystem is not finding an IRQ for the XHCI driver. This might be the reason USB is not working properly. xhci0: Could not allocate IRQ device_attach: xhci0 attach returned 6 --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Feb 10 11:09:11 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4446E103; Sun, 10 Feb 2013 11:09:11 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.c2i.net [212.247.155.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9E4736EB; Sun, 10 Feb 2013 11:09:10 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 202539701; Sun, 10 Feb 2013 12:09:03 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: some usb troubles Date: Sun, 10 Feb 2013 12:10:14 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <20130209180124.GA1783@dchagin.static.corbina.net> <201302101203.36647.hselasky@c2i.net> In-Reply-To: <201302101203.36647.hselasky@c2i.net> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-current@freebsd.org, Chagin Dmitry X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 11:09:11 -0000 On Sunday 10 February 2013 12:03:36 Hans Petter Selasky wrote: > On Saturday 09 February 2013 19:01:25 Chagin Dmitry wrote: > > Hi all, > > > > trying to run macbookpro10,1 on HEAD: > > > > 1) usb3.0 does not work at 9.1 and HEAD (r246587) > > 2) Between stable/9 and HEAD (r246587) we are lost uhid devices > > (external keyboard and mouse) and umass. dmesg on the same hw can find > > here: > > > > http://people.freebsd.org/~dchagin/macbookpro/dmesg.generic.stable9.txt > > http://people.freebsd.org/~dchagin/macbookpro/dmesg.generic.HEAD.txt > > > > pciconf: > > > > http://people.freebsd.org/~dchagin/macbookpro/pciconf.txt > > > > any help would be greatly apprecated. > > Hi, > > This error is not directly USB related. It means probably that ACPI or the > PCI subsystem is not finding an IRQ for the XHCI driver. This might be the > reason USB is not working properly. > > xhci0: Could not allocate IRQ > device_attach: xhci0 attach returned 6 > Hi, ehci1: mem 0xc1c16800-0xc1c16bff irq 22 at device 29.0 on pci0 The following sysctl might also be of interest: hw.usb.xhci.xhci_port_route It decides if a port is connected to the EHCI or XHCI. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Feb 10 11:20:53 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F2C4367C; Sun, 10 Feb 2013 11:20:52 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 8493378B; Sun, 10 Feb 2013 11:20:52 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.6/8.14.6) with ESMTP id r1ABKi9D076451; Sun, 10 Feb 2013 13:20:44 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.4 kib.kiev.ua r1ABKi9D076451 Received: (from kostik@localhost) by tom.home (8.14.6/8.14.6/Submit) id r1ABKikx076450; Sun, 10 Feb 2013 13:20:44 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 10 Feb 2013 13:20:44 +0200 From: Konstantin Belousov To: Hans Petter Selasky Subject: Re: some usb troubles Message-ID: <20130210112044.GL2522@kib.kiev.ua> References: <20130209180124.GA1783@dchagin.static.corbina.net> <201302101203.36647.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yOE9MG6yPKDVMreq" Content-Disposition: inline In-Reply-To: <201302101203.36647.hselasky@c2i.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org, Chagin Dmitry X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 11:20:53 -0000 --yOE9MG6yPKDVMreq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 10, 2013 at 12:03:36PM +0100, Hans Petter Selasky wrote: > On Saturday 09 February 2013 19:01:25 Chagin Dmitry wrote: > > Hi all, > >=20 > > trying to run macbookpro10,1 on HEAD: > >=20 > > 1) usb3.0 does not work at 9.1 and HEAD (r246587) > > 2) Between stable/9 and HEAD (r246587) we are lost uhid devices > > (external keyboard and mouse) and umass. dmesg on the same hw can find > > here: > >=20 > > http://people.freebsd.org/~dchagin/macbookpro/dmesg.generic.stable9.txt > > http://people.freebsd.org/~dchagin/macbookpro/dmesg.generic.HEAD.txt > >=20 > > pciconf: > >=20 > > http://people.freebsd.org/~dchagin/macbookpro/pciconf.txt > >=20 > > any help would be greatly apprecated. >=20 > Hi, >=20 > This error is not directly USB related. It means probably that ACPI or th= e PCI=20 > subsystem is not finding an IRQ for the XHCI driver. This might be the re= ason=20 > USB is not working properly. >=20 > xhci0: Could not allocate IRQ > device_attach: xhci0 attach returned 6 It seems that apple firmware assumes that USB host controller driver will use MSI. FreeBSD drivers tries to set up the legacy IRQ, and fails because apple tables do not describe this set-up. --yOE9MG6yPKDVMreq Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRF4KMAAoJEJDCuSvBvK1B+jgP/jXdErzAlKdEx1G3Irvsb7/n FRWFETbxqR5DPlRAbRnc10UkCvqvU1f1ule6qG/+y37Lu1R9bIBxYRJq97xX+vRW P8dKJMwdQGJWd5vkd++V5GBffZXFsoVB5eRABDE87ukS6IRrYBtqzDQFaxVzfC8H thmWEHV4yfJ0OQ9l6wCp1pEFpcN/yUvSxJvXxbMXnjdF0nPW6Qy6HPJZdVpv3wyQ MepwWh/1AGDP+DzaYxQgJgRJSykoJPDu/2cTM/WEiU4bAe/++sCg6ralKzLKMtto qy8rJd0zMNglwOvrbHg+SxqIjomP7ZV8N5H8VhgMM900GsvSdDSzAlpWQmuYdByp eTdV0iYKnVDb6WDFKDkKl9rWbDf4e/CH6aCWpGwqfaSFnT5PgXX+Q9mMPz4OkU68 DlIN8zUyFeoNIWiNGn8+oh+hxoSAXUGftTcXC7ht1GjZXCbH7fvT6AMI7oO6NLZ8 WuONbIHHvgRpmErsTnoDS6LvWvPOqfLQe+1m4KT3X+2HtwdPBMmD5ohXPXLNli4Q U3/HD1BpNqIkzHlLNeS/HBp8hv/8qeFePm+eFu5EiYv66Mi80GhmdRhFsuJcbxht JAyzOgokQVRSRKUVYb+1BVT9i9/V2Yb50P8fQmJAmX0uvN9hqPSLsxVVh7hnfFMS VYFjmpgpOHs15mA6hEC5 =FGAX -----END PGP SIGNATURE----- --yOE9MG6yPKDVMreq-- From owner-freebsd-usb@FreeBSD.ORG Sun Feb 10 11:46:01 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2D773BA1; Sun, 10 Feb 2013 11:46:01 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [IPv6:2a00:1450:4010:c03::231]) by mx1.freebsd.org (Postfix) with ESMTP id 7BB0F84E; Sun, 10 Feb 2013 11:46:00 +0000 (UTC) Received: by mail-la0-f49.google.com with SMTP id fs13so4944321lab.22 for ; Sun, 10 Feb 2013 03:45:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=0qkZWXmHYVA/A22EbWj1zg4EA7WvjCz1Ns8TZhztFX0=; b=UpYJjolKQqHn9YeamLh7jrySvp+gnp6pzuCz5tAa034P2XhxM17EbAAgyAugo5UQKl VFUbg3suwuGuvuEdGWRY1JW1UIUwUAI0tnNcwRn2IcUu/xarX31/wuybVXaaO3OjxUyX 2NW6HDOJlNsdJqxg21aDkaNFGr2un5e+0TMSeFqEe6DFGZRryTBDC2JLfGE+C5iQgS6L VeTLAVCID2lBCJ8nwSs+Si6w76yZNEohaVn3ZHBPaazoD1pWZb4gNuTw3eVaT6DbziPT mnYU/Toat+CS+5cNMKuD2mWTcEzzKqk55lID5CMkwoBNX/XihxthM0XnefziCS1Q3FJu MW2Q== X-Received: by 10.112.102.165 with SMTP id fp5mr1215902lbb.18.1360496759250; Sun, 10 Feb 2013 03:45:59 -0800 (PST) Received: from dchagin.static.corbina.net (dchagin.static.corbina.ru. [78.107.232.239]) by mx.google.com with ESMTPS id f4sm2538576lbo.4.2013.02.10.03.45.56 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 10 Feb 2013 03:45:57 -0800 (PST) Sender: Dmitry Chagin Received: from dchagin.static.corbina.net (localhost [127.0.0.1]) by dchagin.static.corbina.net (8.14.6/8.14.6) with ESMTP id r1ABjsm2002393; Sun, 10 Feb 2013 15:45:54 +0400 (MSK) (envelope-from dchagin@dchagin.static.corbina.net) Received: (from dchagin@localhost) by dchagin.static.corbina.net (8.14.6/8.14.6/Submit) id r1ABjsmQ002392; Sun, 10 Feb 2013 15:45:54 +0400 (MSK) (envelope-from dchagin) Date: Sun, 10 Feb 2013 15:45:54 +0400 From: Chagin Dmitry To: Hans Petter Selasky Subject: Re: some usb troubles Message-ID: <20130210114554.GA2364@dchagin.static.corbina.net> References: <20130209180124.GA1783@dchagin.static.corbina.net> <201302101203.36647.hselasky@c2i.net> <201302101210.14389.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline In-Reply-To: <201302101210.14389.hselasky@c2i.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org, Chagin Dmitry X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 11:46:01 -0000 --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 10, 2013 at 12:10:14PM +0100, Hans Petter Selasky wrote: > On Sunday 10 February 2013 12:03:36 Hans Petter Selasky wrote: > > On Saturday 09 February 2013 19:01:25 Chagin Dmitry wrote: > > > Hi all, > > >=20 > > > trying to run macbookpro10,1 on HEAD: > > >=20 > > > 1) usb3.0 does not work at 9.1 and HEAD (r246587) > > > 2) Between stable/9 and HEAD (r246587) we are lost uhid devices > > > (external keyboard and mouse) and umass. dmesg on the same hw can find > > > here: > > >=20 > > > http://people.freebsd.org/~dchagin/macbookpro/dmesg.generic.stable9.t= xt > > > http://people.freebsd.org/~dchagin/macbookpro/dmesg.generic.HEAD.txt > > >=20 > > > pciconf: > > >=20 > > > http://people.freebsd.org/~dchagin/macbookpro/pciconf.txt > > >=20 > > > any help would be greatly apprecated. > >=20 > > Hi, > >=20 > > This error is not directly USB related. It means probably that ACPI or = the > > PCI subsystem is not finding an IRQ for the XHCI driver. This might be = the > > reason USB is not working properly. > >=20 > > xhci0: Could not allocate IRQ > > device_attach: xhci0 attach returned 6 > > >=20 > Hi, >=20 > ehci1: mem 0xc1c16800-0xc1c16bff= irq=20 > 22 at device 29.0 on pci0 >=20 > The following sysctl might also be of interest: >=20 > hw.usb.xhci.xhci_port_route >=20 > It decides if a port is connected to the EHCI or XHCI. >=20 dchagin# sysctl hw.usb.xhci.xhci_port_route hw.usb.xhci.xhci_port_route: 0 btw, this is not the worst problem, usb 2.0 not working at HEAD, against 9.1, where the same hw works fine. --=20 Have fun! chd --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEXiHIACgkQ0t2Tb3OO/O36CwCfb0Cf2C0JlJie18ldAAUjY1yI mbsAn3pi8PVR3EDj34ibDhHGuSOKj3dM =PC4m -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA-- From owner-freebsd-usb@FreeBSD.ORG Sun Feb 10 13:01:40 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5C888F62; Sun, 10 Feb 2013 13:01:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id AD7AEB7E; Sun, 10 Feb 2013 13:01:39 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 375686925; Sun, 10 Feb 2013 14:01:31 +0100 From: Hans Petter Selasky To: Konstantin Belousov Subject: Re: some usb troubles Date: Sun, 10 Feb 2013 14:02:43 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <20130209180124.GA1783@dchagin.static.corbina.net> <201302101203.36647.hselasky@c2i.net> <20130210112044.GL2522@kib.kiev.ua> In-Reply-To: <20130210112044.GL2522@kib.kiev.ua> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org, Chagin Dmitry X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 13:01:40 -0000 On Sunday 10 February 2013 12:20:44 Konstantin Belousov wrote: > On Sun, Feb 10, 2013 at 12:03:36PM +0100, Hans Petter Selasky wrote: > > On Saturday 09 February 2013 19:01:25 Chagin Dmitry wrote: > > > Hi all, > > > > > > trying to run macbookpro10,1 on HEAD: > > > > > > 1) usb3.0 does not work at 9.1 and HEAD (r246587) > > > 2) Between stable/9 and HEAD (r246587) we are lost uhid devices > > > (external keyboard and mouse) and umass. dmesg on the same hw can find > > > here: > > > > > > http://people.freebsd.org/~dchagin/macbookpro/dmesg.generic.stable9.txt > > > http://people.freebsd.org/~dchagin/macbookpro/dmesg.generic.HEAD.txt > > > > > > pciconf: > > > > > > http://people.freebsd.org/~dchagin/macbookpro/pciconf.txt > > > > > > any help would be greatly apprecated. > > > > Hi, > > > > This error is not directly USB related. It means probably that ACPI or > > the PCI subsystem is not finding an IRQ for the XHCI driver. This might > > be the reason USB is not working properly. > > > > xhci0: Could not allocate IRQ > > device_attach: xhci0 attach returned 6 > > It seems that apple firmware assumes that USB host controller driver > will use MSI. FreeBSD drivers tries to set up the legacy IRQ, and fails > because apple tables do not describe this set-up. Hi, Would someone be kind enough to provide a patch for that for sys/dev/usb/controller/xhci_pci.c ? I'm currently not in possession of such hardware. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Feb 10 13:19:52 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 42E9F3F5 for ; Sun, 10 Feb 2013 13:19:52 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 053DECD9 for ; Sun, 10 Feb 2013 13:19:51 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id rr4so357926pbb.41 for ; Sun, 10 Feb 2013 05:19:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=M9aLzeMP+xOKGYSRdR480Xw7zBaFhLho72N2C/RvGe8=; b=gKdzxTAxeR3qehRRGN+YqLH0QzCOwlVChPQ1gWQYgImLyj4xdBOgRqiGZgs4n4zhak StlCuzBrApyPvVRFSww+E5UvF+qvG6yrkjbO7OXncNDiqMRcywpUSfDshQAXwAXVHfeN 79lV3nHsi3pBCZAvBBUoc2gGyBvQtxqzpXL6g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:x-gm-message-state; bh=M9aLzeMP+xOKGYSRdR480Xw7zBaFhLho72N2C/RvGe8=; b=TpjryP9RHRpIR4U8pJvkaPWL5p4WrGtX2doPe6zhspkH/x3jyBqI221vF3MGS7Yzde dPG81/2GNriWXAIfv1FYF03j5wEILc1LvZxStFTLUoGjxb96BB3aL32389ECpKcSNg9l 2pSbilWsNluG7RVbnySdy1h0VrwkzFAjGaMlfOYEdCf8E277PhnEqDORu3WLk782ElyK QHXeO6psyLLJo6ui1f02H0ETBLrawALJVNF4crwYPafB6oKbDexoxEzJ1479pKvBA2cj G4wi6qot/785wU3kM4fUfjlK3jAZaZ2ILhwt4F4EjVEgP6223RCYL13j7DvkP+9anmo+ Z5Yg== X-Received: by 10.68.130.35 with SMTP id ob3mr10726542pbb.37.1360502391304; Sun, 10 Feb 2013 05:19:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.66.148.10 with HTTP; Sun, 10 Feb 2013 05:19:21 -0800 (PST) In-Reply-To: <201302100905.37797.hselasky@c2i.net> References: <201302100905.37797.hselasky@c2i.net> From: Eitan Adler Date: Sun, 10 Feb 2013 08:19:21 -0500 Message-ID: Subject: Re: panic on removing urtw0 To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQl1bXazxb5HRzyu/QE0QbA3o9cWgtPY888Ib3fWcUv88SgTj2ryyCF1ZtnUEMYmzoOJfo4b Cc: usb@freebsd.org, Adrian Chadd X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 13:19:52 -0000 [moving to -usb where this seemingly belongs] On 10 February 2013 03:05, Hans Petter Selasky wrote: > On Sunday 10 February 2013 03:17:03 Adrian Chadd wrote: >> Yes to both - i think some USB stack / memory buffer changes are >> responsible for your issue. :-) >> > > Hi, > > Can you send me the backtrace of the panic and I'll fix it. I fixed panic upon > attach. [ textdump & kernel available upon request ] Unread portion of the kernel message buffer: urtw0: failed to stop (USB_ERR_NOT_CONFIGURED) Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0x368 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff808c4be7 stack pointer = 0x28:0xffffff8227152730 frame pointer = 0x28:0xffffff8227152780 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 15 (usbus2) trap number = 12 panic: page fault cpuid = 1 KDB: stack backtrace: #0 0xffffffff8090c7a6 at kdb_backtrace+0x66 #1 0xffffffff808d67be at panic+0x1ce #2 0xffffffff80bc4140 at trap_fatal+0x290 #3 0xffffffff80bc447d at trap_pfault+0x1ed #4 0xffffffff80bc4a9e at trap+0x3ce #5 0xffffffff80baf05f at calltrap+0x8 #6 0xffffffff809a541a at ieee80211_ageq_remove+0xea #7 0xffffffff809a54c9 at ieee80211_ageq_drain_node+0x9 #8 0xffffffff809c584a at node_cleanup+0x6a #9 0xffffffff809c5960 at node_free+0x30 #10 0xffffffff8077f97b at urtw_free_data_list+0x4b #11 0xffffffff80785a45 at urtw_detach+0xd5 #12 0xffffffff80905a84 at device_detach+0x74 #13 0xffffffff80750388 at usb_detach_device+0x58 #14 0xffffffff80750524 at usb_unconfigure+0x34 #15 0xffffffff807507c5 at usb_free_device+0x195 #16 0xffffffff80758dce at uhub_explore+0x1be #17 0xffffffff807590d4 at uhub_explore+0x4c4 -- Eitan Adler From owner-freebsd-usb@FreeBSD.ORG Sun Feb 10 13:26:16 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6E86D814; Sun, 10 Feb 2013 13:26:16 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id B0CBED4B; Sun, 10 Feb 2013 13:26:15 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 377216870; Sun, 10 Feb 2013 14:26:14 +0100 From: Hans Petter Selasky To: Eitan Adler Subject: Re: panic on removing urtw0 Date: Sun, 10 Feb 2013 14:27:24 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <201302100905.37797.hselasky@c2i.net> In-Reply-To: X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: Adrian Chadd , freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 13:26:16 -0000 On Sunday 10 February 2013 14:19:21 Eitan Adler wrote: > [moving to -usb where this seemingly belongs] > > On 10 February 2013 03:05, Hans Petter Selasky wrote: > > On Sunday 10 February 2013 03:17:03 Adrian Chadd wrote: > >> Yes to both - i think some USB stack / memory buffer changes are > >> responsible for your issue. :-) > > > > Hi, > > > > Can you send me the backtrace of the panic and I'll fix it. I fixed panic > > upon attach. > > [ textdump & kernel available upon request ] > > Unread portion of the kernel message buffer: > urtw0: failed to stop (USB_ERR_NOT_CONFIGURED) > Hi, Can you try this again with latest -current as of now. It happens because the nodes are freed after the IEEE802.11 adapter is gone. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Feb 10 19:22:44 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A1CEC37D for ; Sun, 10 Feb 2013 19:22:44 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-da0-f47.google.com (mail-da0-f47.google.com [209.85.210.47]) by mx1.freebsd.org (Postfix) with ESMTP id 78175E32 for ; Sun, 10 Feb 2013 19:22:44 +0000 (UTC) Received: by mail-da0-f47.google.com with SMTP id s35so2419375dak.20 for ; Sun, 10 Feb 2013 11:22:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=8dQkHLfmYsJbg/xgF83zdMlmyO2fSBHbIVKLWLEYQcI=; b=Fzm1Gl7//GQr1ULoMmgRDd2zRF8wjDuIKgGcEaZJWv9fWSVGzxsoPO7/iM54xxXiD3 iYBAEyuK+O+4+LDULJdqz2qQ1zrtma0Byet4X8oPTqjCzt3k0rAial4HW9jh4ZCgaw3s WDVt8W5copaPHOeotLWD7zsYc0z3gaqd18Jrk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:x-gm-message-state; bh=8dQkHLfmYsJbg/xgF83zdMlmyO2fSBHbIVKLWLEYQcI=; b=aTO7R8cuMJa/EChW8irLySH9mNP4d1dg3ZwzqQT8KNZPHR4cYzQ2YklqzyV3cNioli gr4zdoMuRk7y9BCE67nnH9xYPIShUcdoEYnUQdg7XFjTdhBgycVb+9qkFf1hYM1DguDk PAfgRSQSvy5Z7ZPjEer41i24brMUqTSJ4QtTPnJhqXlCbfqfrkQ9qe2n1BQkYbNCR54T myc4OLJO7Di4zJtffLt5bABILWOIBRHFwD+miZJNB2S+buYY45celvTmh79zIcKriX/P +CvDRq74YJE0YUM/gdNfa+JHcUuuIlI4Z4XB0NO1XcltVZ2dRa68VOnZCDStlgbI2WWU MWBg== X-Received: by 10.68.189.197 with SMTP id gk5mr12885739pbc.21.1360523737469; Sun, 10 Feb 2013 11:15:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.66.148.10 with HTTP; Sun, 10 Feb 2013 11:15:07 -0800 (PST) In-Reply-To: <201302101427.24768.hselasky@c2i.net> References: <201302100905.37797.hselasky@c2i.net> <201302101427.24768.hselasky@c2i.net> From: Eitan Adler Date: Sun, 10 Feb 2013 14:15:07 -0500 Message-ID: Subject: Re: panic on removing urtw0 To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkgXOs5WyyEBgU+5MFQudU6vok230pphRheabx0g7sARBMB9zyLLa30WPq4Not8tj5a88Dn Cc: Adrian Chadd , freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 19:22:44 -0000 On 10 February 2013 08:27, Hans Petter Selasky wrote: > On Sunday 10 February 2013 14:19:21 Eitan Adler wrote: >> [moving to -usb where this seemingly belongs] >> >> On 10 February 2013 03:05, Hans Petter Selasky wrote: >> > On Sunday 10 February 2013 03:17:03 Adrian Chadd wrote: >> >> Yes to both - i think some USB stack / memory buffer changes are >> >> responsible for your issue. :-) >> > >> > Hi, >> > >> > Can you send me the backtrace of the panic and I'll fix it. I fixed panic >> > upon attach. >> >> [ textdump & kernel available upon request ] >> >> Unread portion of the kernel message buffer: >> urtw0: failed to stop (USB_ERR_NOT_CONFIGURED) >> > > Hi, > > Can you try this again with latest -current as of now. It happens because the > nodes are freed after the IEEE802.11 adapter is gone. I can not test because the device does not attach at all on r246623. -- Eitan Adler From owner-freebsd-usb@FreeBSD.ORG Mon Feb 11 10:25:04 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AB787401; Mon, 11 Feb 2013 10:25:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id D480D192A; Mon, 11 Feb 2013 10:25:03 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 377444173; Mon, 11 Feb 2013 11:24:56 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, bug-followup@freebsd.org Subject: usb/175731: detaching USB keyboard freezes other USB keyboards Date: Mon, 11 Feb 2013 11:26:08 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <201302072140.r17Le1MG098491@freefall.freebsd.org> In-Reply-To: <201302072140.r17Le1MG098491@freefall.freebsd.org> X-Face: ?p&W)c( =?iso-8859-1?q?+80hU=3B=27=7B=2E=245K+zq=7BoC6y=7C=0A=09/D=27an*6mw?=>j'f:eBsex\Gi, Cc: x11@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 10:25:04 -0000 On Thursday 07 February 2013 22:40:01 Hans Petter Selasky wrote: > The following reply was made to PR usb/175731; it has been noted by GNATS. > Hi, You should look into HAL and xf86-input-keyboard ports. I don't have time to debug this currently. To prevent KBD X11 driver unload by /usr/ports/x11-drivers/xf86-input-keyboard change this in the source code: { - xf86AddInputDriver(&KBD, NULL, 0); + xf86AddInputDriver(&KBD, module, 0); return module; } The problem is deeper. When X11 sees that the keyboard is gone it issues some IOCTLs on /dev/console, like the keyboard MODE and then no more keys are received. See using ktrace on Xorg. This is a shared device receiving key-presses for all keyboards as far as I can see and it should only be programmed once. This is currently not handled. Inside the file referenced below code is present to set "x11_driver" to "kbd". Probably changing this will affect the outcome too: /usr/local/share/hal/fdi/policy/10osvendor/10-x11-input.fdi How to reproduce: Plug two USB keyboards using a HAL enabled Xorg server. Unplug one keyboard. Input from the other keyboard disappears until some other keyboard device is plugged again! --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Feb 11 10:30:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DEE3056D for ; Mon, 11 Feb 2013 10:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D21BD1974 for ; Mon, 11 Feb 2013 10:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1BAU1no073784 for ; Mon, 11 Feb 2013 10:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1BAU1hf073781; Mon, 11 Feb 2013 10:30:01 GMT (envelope-from gnats) Date: Mon, 11 Feb 2013 10:30:01 GMT Message-Id: <201302111030.r1BAU1hf073781@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: usb/175731: detaching USB keyboard freezes other USB keyboards X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 10:30:01 -0000 The following reply was made to PR usb/175731; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org, bug-followup@freebsd.org Cc: x11@freebsd.org Subject: usb/175731: detaching USB keyboard freezes other USB keyboards Date: Mon, 11 Feb 2013 11:26:08 +0100 On Thursday 07 February 2013 22:40:01 Hans Petter Selasky wrote: > The following reply was made to PR usb/175731; it has been noted by GNATS. > Hi, You should look into HAL and xf86-input-keyboard ports. I don't have time to debug this currently. To prevent KBD X11 driver unload by /usr/ports/x11-drivers/xf86-input-keyboard change this in the source code: { - xf86AddInputDriver(&KBD, NULL, 0); + xf86AddInputDriver(&KBD, module, 0); return module; } The problem is deeper. When X11 sees that the keyboard is gone it issues some IOCTLs on /dev/console, like the keyboard MODE and then no more keys are received. See using ktrace on Xorg. This is a shared device receiving key-presses for all keyboards as far as I can see and it should only be programmed once. This is currently not handled. Inside the file referenced below code is present to set "x11_driver" to "kbd". Probably changing this will affect the outcome too: /usr/local/share/hal/fdi/policy/10osvendor/10-x11-input.fdi How to reproduce: Plug two USB keyboards using a HAL enabled Xorg server. Unplug one keyboard. Input from the other keyboard disappears until some other keyboard device is plugged again! --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Feb 11 11:06:54 2013 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1C8A92F2 for ; Mon, 11 Feb 2013 11:06:54 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 0EB6A1BE4 for ; Mon, 11 Feb 2013 11:06:54 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1BB6sqk081459 for ; Mon, 11 Feb 2013 11:06:54 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1BB6r0D081457 for freebsd-usb@FreeBSD.org; Mon, 11 Feb 2013 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Feb 2013 11:06:53 GMT Message-Id: <201302111106.r1BB6r0D081457@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.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 11:06:54 -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/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/175454 usb update usbdevs and usb_quirk.c for SanDisk SDDR-289 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 driver bug after suspend to ram (ACPI S3 mode) 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 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 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 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 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 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 o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 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 289 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Feb 11 11:46:09 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D48DA36B; Mon, 11 Feb 2013 11:46:09 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx1.freebsd.org (Postfix) with ESMTP id 881FB123; Mon, 11 Feb 2013 11:46:09 +0000 (UTC) Received: by mail-ve0-f172.google.com with SMTP id cz11so5150871veb.3 for ; Mon, 11 Feb 2013 03:46:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=rD/xQpUZkRVEuh8BYc3hlBic+KG5ejhcSScHZgCiBWg=; b=Qf9hEAyQkbaSYR9iUIx4USm3+HFrEA85dUmOjuGnFUsEfLfVvWOzqL4vd2PtWt7BAC BQN5dm4EBNyITdJWawf1Nz/huFbPPAjnI25xZVtq/+AQ4vUmSKKONCVtgRuyS7/hfCsO C9jHNzmGDU+7Hce+4dcUoZXa73r7XqymSRfBgtZbbNjqjwhufWt6QmlGqe5OohyHnusZ QAFY6xbS0WKrDjB10qa3+FpOym6m1hOG5KQfmcPFwZFJCSyDTa+pVxqyvF816fw4i9c5 GUe//tmFf/5RVKwYBTmEguSQwHt3msahUknXxau54eq4Owc2KN0C4gYHAEtyaSp7huzq vwWw== MIME-Version: 1.0 X-Received: by 10.52.33.68 with SMTP id p4mr6124954vdi.125.1360583163384; Mon, 11 Feb 2013 03:46:03 -0800 (PST) Received: by 10.58.100.147 with HTTP; Mon, 11 Feb 2013 03:46:03 -0800 (PST) In-Reply-To: <201302111126.08104.hselasky@c2i.net> References: <201302072140.r17Le1MG098491@freefall.freebsd.org> <201302111126.08104.hselasky@c2i.net> Date: Mon, 11 Feb 2013 11:46:03 +0000 Message-ID: Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards From: Tom Evans To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Cc: freebsd-x11@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 11:46:09 -0000 On Mon, Feb 11, 2013 at 10:26 AM, Hans Petter Selasky wrote: > On Thursday 07 February 2013 22:40:01 Hans Petter Selasky wrote: >> The following reply was made to PR usb/175731; it has been noted by GNATS. >> > > Hi, > > You should look into HAL and xf86-input-keyboard ports. I don't have time to > debug this currently. > > To prevent KBD X11 driver unload by /usr/ports/x11-drivers/xf86-input-keyboard > change this in the source code: > > { > - xf86AddInputDriver(&KBD, NULL, 0); > + xf86AddInputDriver(&KBD, module, 0); > > return module; > } > > The problem is deeper. When X11 sees that the keyboard is gone it > issues some IOCTLs on /dev/console, like the keyboard MODE and then no more > keys are received. See using ktrace on Xorg. This is a shared device receiving > key-presses for all keyboards as far as I can see and it should only be > programmed once. This is currently not handled. > > Inside the file referenced below code is present to set "x11_driver" to "kbd". > Probably changing this will affect the outcome too: > > /usr/local/share/hal/fdi/policy/10osvendor/10-x11-input.fdi > > How to reproduce: > > Plug two USB keyboards using a HAL enabled Xorg server. Unplug one keyboard. > Input from the other keyboard disappears until some other keyboard device is > plugged again! > > --HPS This sounds very similar to what happens when I undock my laptop from a dock which has a couple of USB keyboards attached. All keys stop responding in X, but I can use the built in keyboard to switch to a VT, hit a few keys, switch back to X and the built in keyboard has recovered in X. Cheers Tom From owner-freebsd-usb@FreeBSD.ORG Mon Feb 11 19:44:33 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 77E46123 for ; Mon, 11 Feb 2013 19:44:33 +0000 (UTC) (envelope-from aman.sawrup@bluecoat.com) Received: from synonym.bluecoat.com (synonym.bluecoat.com [199.91.133.5]) by mx1.freebsd.org (Postfix) with ESMTP id 594349FF for ; Mon, 11 Feb 2013 19:44:33 +0000 (UTC) Received: from [10.167.0.106] (aman-sawrup.waterloo.bluecoat.com [10.167.0.106]) by synonym.bluecoat.com (Postfix) with ESMTP id 1073A7FE281; Mon, 11 Feb 2013 11:44:25 -0800 (PST) Message-ID: <51194A19.40203@bluecoat.com> Date: Mon, 11 Feb 2013 14:44:25 -0500 From: Aman Sawrup User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 To: freebsd-usb@freebsd.org Subject: Re: Reading 1024 bytes from mass storage device using 3 frames gives USB_ERR_STALLED References: <1360360082956-5785167.post@n5.nabble.com> <201302090001.57258.hselasky@c2i.net> In-Reply-To: <201302090001.57258.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 19:44:33 -0000 Hi Hans, I have a couple of questions about usbd_xfer_max_framelen() and usbd_xfer_max_len(): 1. You mentioned the frame length should be a multiple of usbd_xfer_max_framelen(). If there is only 1 frame in the transfer, is it okay if the frame length is less than usbd_xfer_max_framelen()? When I set the frame length to 8 bytes for SCSI OP Read Capacity, it works without error. Similarly, when I set the frame length to 254 bytes for SCSI OP Inquiry, it also works without error. 2. usbd_xfer_max_len() returns 131,072 bytes, which is the value of UMASS_BULK_SIZE. I'm able to transfer 131,072 bytes, using only a single frame, without error. You mentioned each frame in encoded in one or more USB packets with each packet size presumably being wMaxPacketSize (512 byte). Does that mean the controller code (i.e. ehci.c) will split up the single 131,072 byte frame into 256 USB packets, 512 bytes each packet? I ask because I'm debugging an issue where the USB EHCI host controller does a DMA write into physical address 0. Thanks Aman On 02/08/2013 06:01 PM, Hans Petter Selasky wrote: On Friday 08 February 2013 22:48:02 aman.sawrup wrote: Hello, We have ported the FreeBSD USB stack to my employers proprietary RTOS. The code was taken from the MAIN branch a little while after RELENG_8_BP tag was created. I'm trying to read data from the following mass storage device umass0: ehci0: [FILTER+ITHREAD] usbus0: EHCI version 1.0 usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 uhub0: 2 ports with 2 removable, self powered ugen0.2: at usbus0 uhub1: on usbus0 uhub1: 8 ports with 8 removable, self powered ugen0.3: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x4800 Reading data one frame per transfer works. For example, if I want to read 512 bytes that is physically contiguous and is placed in a single frame, that works fine. However, when attempting to read 1024 bytes, that is not physically contiguous, using 3 frames for the same transfer, I get USB_ERR_STALLED. I have the frames setup as follows: frame[0] = 200 bytes frame[1] = 512 bytes frame[2] = 312 bytes Hi, The frame lengths must be a multiple of the wMaxPacketSize (typically 64 or 512). Each frame is encoded like one or more USB packets independent of the next one. I.E. USB packet data may not cross a frame. This is not supported by the EHCI/OHCI and UHCI hardware, and the USB stack will not make a fixup buffer for this. The USB stack returns the device independent multiplier length for this purpose when calling usbd_xfer_max_framelen(). Only when (frame[n] % usbd_xfer_max_framelen() == 0) it will work like you want. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Feb 12 07:37:52 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DCF45130 for ; Tue, 12 Feb 2013 07:37:52 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.c2i.net [212.247.154.66]) by mx1.freebsd.org (Postfix) with ESMTP id 63AA69ED for ; Tue, 12 Feb 2013 07:37:51 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 209824810; Tue, 12 Feb 2013 08:37:42 +0100 From: Hans Petter Selasky To: Aman Sawrup Subject: Re: Reading 1024 bytes from mass storage device using 3 frames gives USB_ERR_STALLED Date: Tue, 12 Feb 2013 08:38:54 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <1360360082956-5785167.post@n5.nabble.com> <201302090001.57258.hselasky@c2i.net> <51194A19.40203@bluecoat.com> In-Reply-To: <51194A19.40203@bluecoat.com> X-Face: ?p&W)c( =?iso-8859-1?q?+80hU=3B=27=7B=2E=245K+zq=7BoC6y=7C=0A=09/D=27an*6mw?=>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2013 07:37:52 -0000 On Monday 11 February 2013 20:44:25 Aman Sawrup wrote: > Hi Hans, > > I have a couple of questions about usbd_xfer_max_framelen() and > usbd_xfer_max_len(): > > You mentioned the frame length should be a multiple of > usbd_xfer_max_framelen(). If there is only 1 frame in the transfer, is it > okay if the frame length is less than usbd_xfer_max_framelen()? When I set > the frame length to 8 bytes for SCSI OP Read Capacity, it works without > error. Similarly, when I set the frame length to 254 bytes for SCSI OP > Inquiry, it also works without error. usbd_xfer_max_len() returns 131,072 > bytes, which is the value of UMASS_BULK_SIZE. I'm able to transfer > 131,072 bytes, using only a single frame, without error. You mentioned > each frame in encoded in one or more USB packets with each packet size > presumably being wMaxPacketSize (512 byte). Does that mean the controller > code (i.e. ehci.c) will split up the single 131,072 byte frame into 256 > USB packets, 512 bytes each packet? I ask because I'm debugging an issue > where the USB EHCI host controller does a DMA write into physical address > 0. Thanks > Aman Hi Aman, Only the last frame you send is allowed to be non-multiple of usbd_xfer_max_framelen(). 512 1024 512 13 Is OK. 512 13 1024 Is NOK. You should also set the flag for single short frame ok and not multi short frame ok. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Feb 12 18:51:48 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 05B3C40B for ; Tue, 12 Feb 2013 18:51:48 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id B2CC6A48 for ; Tue, 12 Feb 2013 18:51:47 +0000 (UTC) Received: from [192.168.43.26] (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.14.5/8.14.5) with ESMTP id r1CIpgb1014759; Tue, 12 Feb 2013 13:51:42 -0500 (EST) (envelope-from mike@sentex.net) Message-ID: <511A8F40.1020302@sentex.net> Date: Tue, 12 Feb 2013 13:51:44 -0500 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Subject: USB 3 stick X-Enigmail-Version: 1.4.2 Content-Type: multipart/mixed; boundary="------------050706060000020709080903" X-Scanned-By: MIMEDefang 2.72 on 64.7.153.18 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2013 18:51:48 -0000 This is a multi-part message in MIME format. --------------050706060000020709080903 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, I picked up a Zalman USB 3.0 flash stick that has problems if its connected at boot time. If I reboot the box with the stick plugged in (RELENG_9 from Feb 11), I get the errors below. xhci_do_command: Command timeout! usb_alloc_device: set address 2 failed (USB_ERR_TIMEOUT, ignored) xhci_do_command: Command timeout! xhci_do_command: Command timeout! xhci_do_command: Command timeout! ugen0.2: at usbus0 uhub3: on usbus0 ugen2.2: at usbus2 uhub4: on usbus2 xhci_do_command: Command timeout! Root mount waiting for: usbus2 usbus1 usbus0 xhci_do_command: Command timeout! xhci_do_command: Command timeout! uhub3: 4 ports with 4 removable, self powered xhci_do_command: Command timeout! xhci_do_command: Command timeout! uhub4: 6 ports with 6 removable, self powered xhci_do_command: Command timeout! Root mount waiting for: usbus1 xhci_do_command: Command timeout! xhci_do_command: Command timeout! usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT, ignored) Root mount waiting for: usbus1 xhci_do_command: Command timeout! uhub_reattach_port: could not allocate new device and the device does not show up. I can unplug it and replug it, but it will not work in the USB 3 port. If I replug it into the 2.x port after the problematic boot, it works. If I boot up the box and then plug the stick into the 3.0 port, it works as expected. speed is good as well 0{USB3}# dd if=/dev/da0 of=/dev/null bs=1024k count=300 300+0 records in 300+0 records out 314572800 bytes transferred in 3.462889 secs (90841146 bytes/sec) 0{USB3}# 0{USB3}# dd if=/dev/zero of=/dev/da0 count=300 bs=1024k 300+0 records in 300+0 records out 314572800 bytes transferred in 3.577376 secs (87933952 bytes/sec) 0{USB3}# USB output attached. Any ideas what the issue might be ? ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ --------------050706060000020709080903 Content-Type: text/plain; charset=windows-1252; name="usb.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="usb.txt" Base Board Information Manufacturer: Intel Corporation Product Name: DH61BE Version: AAG14062-205 Version: BEH6110H.86A.0109.2012.1221.1455 Release Date: 12/21/2012 Address: 0xF0000 Runtime Size: 64 kB ROM Size: 4096 kB ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen1.1: at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x001f bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0002 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x06 bDescriptorType = 0x30 bDescriptorSubType = 0x00 RAW dump: 0x00 | 0x06, 0x30, 0x00, 0x00, 0x00, 0x00 ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00e0 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x000c bRefresh = 0x0000 bSynchAddress = 0x0000 ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00e0 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x000c bRefresh = 0x0000 bSynchAddress = 0x0000 ugen1.2: at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x002c bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0080 bMaxPower = 0x003f Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0002 bmAttributes = 0x0002 wMaxPacketSize = 0x0400 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x06 bDescriptorType = 0x30 bDescriptorSubType = 0x0f RAW dump: 0x00 | 0x06, 0x30, 0x0f, 0x00, 0x00, 0x00 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0002 wMaxPacketSize = 0x0400 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x06 bDescriptorType = 0x30 bDescriptorSubType = 0x0f RAW dump: 0x00 | 0x06, 0x30, 0x0f, 0x00, 0x00, 0x00 ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x0000 idProduct = 0x0000 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 ugen1.1: at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0300 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0003 bMaxPacketSize0 = 0x0009 idVendor = 0x0000 idProduct = 0x0000 bcdDevice = 0x0100 iManufacturer = 0x0001 <0x1033> iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x0000 idProduct = 0x0000 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x8087 idProduct = 0x0024 bcdDevice = 0x0000 iManufacturer = 0x0000 iProduct = 0x0000 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x8087 idProduct = 0x0024 bcdDevice = 0x0000 iManufacturer = 0x0000 iProduct = 0x0000 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 ugen1.2: at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0300 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0009 idVendor = 0x1f75 idProduct = 0x0902 bcdDevice = 0x000a iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <0902000000000000000000000230> bNumConfigurations = 0x0001 0{USB3}# usbconfig ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.1: at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.2: at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON 0{USB3}# ehci0@pci0:0:26:0: class=0x0c0320 card=0x200c8086 chip=0x1c2d8086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' device = '6 Series/C200 Series Chipset Family USB Enhanced Host Controller' class = serial bus subclass = USB bar [10] = type Memory, range 32, base 0xf7e28000, size 1024, enabled cap 01[50] = powerspec 2 supports D0 D3 current D0 cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14 cap 13[98] = PCI Advanced Features: FLR TP xhci0@pci0:3:0:0: class=0x0c0330 card=0x200c8086 chip=0x01941033 rev=0x04 hdr=0x00 vendor = 'NEC Corporation' device = 'uPD720200 USB 3.0 Host Controller' class = serial bus subclass = USB bar [10] = type Memory, range 64, base 0xf7c00000, size 8192, enabled cap 01[50] = powerspec 3 supports D0 D3 current D0 cap 05[70] = MSI supports 8 messages, 64 bit cap 11[90] = MSI-X supports 8 messages in map 0x10 cap 10[a0] = PCI-Express 2 endpoint max data 128(128) link x1(x1) speed 5.0(5.0) ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected ecap 0003[140] = Serial 1 ffffffffffffffff ecap 0018[150] = unknown 1 --------------050706060000020709080903-- From owner-freebsd-usb@FreeBSD.ORG Wed Feb 13 08:16:14 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B4F3F1AC for ; Wed, 13 Feb 2013 08:16:14 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 48D281A8 for ; Wed, 13 Feb 2013 08:16:13 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 375998291; Wed, 13 Feb 2013 09:16:05 +0100 From: Hans Petter Selasky To: Mike Tancsa Subject: Re: USB 3 stick Date: Wed, 13 Feb 2013 09:17:16 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <511A8F40.1020302@sentex.net> In-Reply-To: <511A8F40.1020302@sentex.net> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 08:16:14 -0000 On Tuesday 12 February 2013 19:51:44 Mike Tancsa wrote: > Hi, > > I picked up a Zalman USB 3.0 flash stick that has problems if its > connected at boot time. If I reboot the box with the stick plugged in > (RELENG_9 from Feb 11), I get the errors below. > > If I boot up the box and then plug the stick into the 3.0 port, it works > as expected. Have you tried playing with BIOS USB 3.0 settings? --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Feb 13 09:52:44 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C7CB3CC2 for ; Wed, 13 Feb 2013 09:52:44 +0000 (UTC) (envelope-from zeus@ibs.dn.ua) Received: from relay.ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by mx1.freebsd.org (Postfix) with ESMTP id 5010E775 for ; Wed, 13 Feb 2013 09:52:43 +0000 (UTC) Received: from ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by relay.ibs.dn.ua with ESMTP id r1D9qZeu084143 for ; Wed, 13 Feb 2013 11:52:36 +0200 (EET) Message-ID: <20130213115235.84142@relay.ibs.dn.ua> Date: Wed, 13 Feb 2013 11:52:35 +0300 From: Zeus Panchenko To: cc: Subject: plenty complains on microSD reader Kingston FCR-MRG2 Organization: I.B.S. LLC X-Mailer: MH-E 8.3.1; GNU Mailutils 2.99.97; GNU Emacs 24.0.93 X-Face: &sReWXo3Iwtqql1[My(t1Gkx; y?KF@KF`4X+'9Cs@PtK^y%}^.>Mtbpyz6U=,Op:KPOT.uG )Nvx`=er!l?WASh7KeaGhga"1[&yz$_7ir'cVp7o%CGbJ/V)j/=]vzvvcqcZkf; JDurQG6wTg+?/xA go`}1.Ze//K; Fk&/&OoHd'[b7iGt2UO>o(YskCT[_D)kh4!yY'<&:yt+zM=A`@`~9U+P[qS:f; #9z~ Or/Bo#N-'S'!'[3Wog'ADkyMqmGDvga?WW)qd=?)`Y&k=o}>!ST\ X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Zeus Panchenko List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 09:52:44 -0000 hi, on Kingston microSD reader FCR-MRG2 plug-in I receive a lot of conplains: ugen1.3: at usbus1 umass1: on usbus1 da1 at umass-sim1 bus 1 scbus3 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 1876MB (3842048 512 byte sectors: 255H 63S/T 239C) (da1:umass-sim1:1:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 0 0 0 1 0 (da1:umass-sim1:1:0:0): CAM status: SCSI Status Error (da1:umass-sim1:1:0:0): SCSI status: Check Condition (da1:umass-sim1:1:0:0): SCSI sense: No sense data present (da1:umass-sim1:1:0:0): Retrying command (per sense data) ... cut 16 sections like above ... ugen1.3: at usbus1 (disconnected) umass1: at uhub1, port 1, addr 3 (disconnected) (da1:umass-sim1:1:0:0): lost device - 0 outstanding, 1 refs (pass2:umass-sim1:1:(da1:0:umass-sim1:1:0): 0:passdevgonecb: devfs entry is gone 0): removing device entry > uname FreeBSD 9.1-STABLE #12 r246707: amd64 > usbconfig ugen1.3: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON is it expected behaviour? -- Zeus V. Panchenko jid:zeus@im.ibs.dn.ua IT Dpt., I.B.S. LLC GMT+2 (EET) From owner-freebsd-usb@FreeBSD.ORG Wed Feb 13 10:14:52 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 89D4538C for ; Wed, 13 Feb 2013 10:14:52 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 1571F8A8 for ; Wed, 13 Feb 2013 10:14:51 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 372940155; Wed, 13 Feb 2013 11:09:43 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, Zeus Panchenko Subject: Re: plenty complains on microSD reader Kingston FCR-MRG2 Date: Wed, 13 Feb 2013 11:10:54 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <20130213115235.84142@relay.ibs.dn.ua> In-Reply-To: <20130213115235.84142@relay.ibs.dn.ua> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 10:14:52 -0000 On Wednesday 13 February 2013 09:52:35 Zeus Panchenko wrote: > hi, > > on Kingston microSD reader FCR-MRG2 plug-in I receive a lot of conplains: > > ugen1.3: at usbus1 > umass1: 2.00/1.00, addr 3> on usbus1 da1 at umass-sim1 bus 1 scbus3 target 0 lun 0 > da1: Removable Direct Access SCSI-0 device > da1: 40.000MB/s transfers > da1: 1876MB (3842048 512 byte sectors: 255H 63S/T 239C) > (da1:umass-sim1:1:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 0 0 0 1 0 > (da1:umass-sim1:1:0:0): CAM status: SCSI Status Error > (da1:umass-sim1:1:0:0): SCSI status: Check Condition > (da1:umass-sim1:1:0:0): SCSI sense: No sense data present > (da1:umass-sim1:1:0:0): Retrying command (per sense data) > ... > cut 16 sections like above > ... > ugen1.3: at usbus1 (disconnected) > umass1: at uhub1, port 1, addr 3 (disconnected) > (da1:umass-sim1:1:0:0): lost device - 0 outstanding, 1 refs > (pass2:umass-sim1:1:(da1:0:umass-sim1:1:0): 0:passdevgonecb: devfs entry is > gone 0): removing device entry > > > uname > > FreeBSD 9.1-STABLE #12 r246707: amd64 > > > usbconfig > > ugen1.3: at usbus1, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON > > > is it expected behaviour? Hi, Try to set the no synchronize quirk for your device first: usbconfig dump_quirk_names usbconfig -d X.Y add_quirk UQ_MSC_NO_SYNC_CACHE --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Feb 13 12:07:28 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 01C37E56 for ; Wed, 13 Feb 2013 12:07:28 +0000 (UTC) (envelope-from zeus@ibs.dn.ua) Received: from relay.ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by mx1.freebsd.org (Postfix) with ESMTP id 7B56FDEF for ; Wed, 13 Feb 2013 12:07:26 +0000 (UTC) Received: from ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by relay.ibs.dn.ua with ESMTP id r1DC7K7w000227; Wed, 13 Feb 2013 14:07:20 +0200 (EET) Message-ID: <20130213140720.225@relay.ibs.dn.ua> Date: Wed, 13 Feb 2013 14:07:20 +0300 From: Zeus Panchenko To: "Hans Petter Selasky" Subject: Re: plenty complains on microSD reader Kingston FCR-MRG2 In-reply-to: Your message of Wed, 13 Feb 2013 11:10:54 +0100 <201302131110.54499.hselasky@c2i.net> References: <20130213115235.84142@relay.ibs.dn.ua> <201302131110.54499.hselasky@c2i.net> Organization: I.B.S. LLC X-Mailer: MH-E 8.3.1; GNU Mailutils 2.99.97; GNU Emacs 24.0.93 X-Face: &sReWXo3Iwtqql1[My(t1Gkx; y?KF@KF`4X+'9Cs@PtK^y%}^.>Mtbpyz6U=,Op:KPOT.uG )Nvx`=er!l?WASh7KeaGhga"1[&yz$_7ir'cVp7o%CGbJ/V)j/=]vzvvcqcZkf; JDurQG6wTg+?/xA go`}1.Ze//K; Fk&/&OoHd'[b7iGt2UO>o(YskCT[_D)kh4!yY'<&:yt+zM=A`@`~9U+P[qS:f; #9z~ Or/Bo#N-'S'!'[3Wog'ADkyMqmGDvga?WW)qd=?)`Y&k=o}>!ST\ Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Zeus Panchenko List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 12:07:28 -0000 Hans Petter Selasky wrote: > > Try to set the no synchronize quirk for your device first: > first of what, sorry? first of pluging the reader? or first of noising here? :) > usbconfig dump_quirk_names yes, a lot of them > usbconfig -d X.Y add_quirk UQ_MSC_NO_SYNC_CACHE 1. plug reader in (the same ugen1.3) 2. > usbconfig -d 1.3 add_quirk UQ_MSC_NO_SYNC_CACHE;echo $? 0 3. re-pluging reader and the complains are there, all the same :( -- Zeus V. Panchenko jid:zeus@im.ibs.dn.ua IT Dpt., I.B.S. LLC GMT+2 (EET) From owner-freebsd-usb@FreeBSD.ORG Wed Feb 13 12:17:40 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 159F7FDA for ; Wed, 13 Feb 2013 12:17:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.c2i.net [212.247.155.2]) by mx1.freebsd.org (Postfix) with ESMTP id 931FEE4A for ; Wed, 13 Feb 2013 12:17:39 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 203560720; Wed, 13 Feb 2013 13:17:31 +0100 From: Hans Petter Selasky To: Zeus Panchenko Subject: Re: plenty complains on microSD reader Kingston FCR-MRG2 Date: Wed, 13 Feb 2013 13:18:43 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <20130213115235.84142@relay.ibs.dn.ua> <201302131110.54499.hselasky@c2i.net> <20130213140720.225@relay.ibs.dn.ua> In-Reply-To: <20130213140720.225@relay.ibs.dn.ua> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 12:17:40 -0000 On Wednesday 13 February 2013 12:07:20 Zeus Panchenko wrote: > Hans Petter Selasky wrote: > > Try to set the no synchronize quirk for your device first: > first of what, sorry? > first of pluging the reader? > or first of noising here? :) > > > usbconfig dump_quirk_names > > yes, a lot of them > > > usbconfig -d X.Y add_quirk UQ_MSC_NO_SYNC_CACHE > > 1. plug reader in (the same ugen1.3) > 2. > usbconfig -d 1.3 add_quirk UQ_MSC_NO_SYNC_CACHE;echo $? > 0 > 3. re-pluging reader and the complains are there, all the same :( Hi, The errors you get possibly mean your device does not support a specific SCSI command and crashes! This is not a USB fault, but more related to CAM/SCSI layers. Try using: usbdump -i usbusX -f Y -vvv -s 65536 And see if you get any ERR= which are not the same like ERR=0 31 byte transfer are wrapped SCSI commands. 13 byte transfers are SCSI status messages. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Feb 13 12:30:54 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F0CA93E0 for ; Wed, 13 Feb 2013 12:30:54 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id BEA25EDA for ; Wed, 13 Feb 2013 12:30:54 +0000 (UTC) Received: from [192.168.43.26] (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.14.5/8.14.5) with ESMTP id r1DCUnpf031533; Wed, 13 Feb 2013 07:30:49 -0500 (EST) (envelope-from mike@sentex.net) Message-ID: <511B8788.1040002@sentex.net> Date: Wed, 13 Feb 2013 07:31:04 -0500 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: USB 3 stick References: <511A8F40.1020302@sentex.net> <201302130917.16875.hselasky@c2i.net> In-Reply-To: <201302130917.16875.hselasky@c2i.net> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 12:30:55 -0000 On 2/13/2013 3:17 AM, Hans Petter Selasky wrote: >> > >> If I boot up the box and then plug the stick into the 3.0 port, it works >> as expected. > > Have you tried playing with BIOS USB 3.0 settings? Hi, There are not really any options to set other than enable or disable or legacy mode or not. I will try disabling legacy mode and see what happens. I did upgrade it to the latest version of the BIOS as well. ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-usb@FreeBSD.ORG Thu Feb 14 09:19:32 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AB8ACB6C for ; Thu, 14 Feb 2013 09:19:32 +0000 (UTC) (envelope-from nkoch@demig.de) Received: from h949823.serverkompetenz.net (demig.de [85.214.63.38]) by mx1.freebsd.org (Postfix) with ESMTP id 06B65FAE for ; Thu, 14 Feb 2013 09:19:31 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=demig.de; b=NgL8xuPT4DTGhn7MRhni0kHmrBMEGuD3cBWf/dyyeiHeZI6ZONVgs+Kjrcfnx4yYcQDBpslORHbMKKN75Qj1edop754Um36VLTuNGMSifO5tQwsts35CtNp3rrhm5PLJ; h=Received:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:X-Enigmail-Version:Content-Type:Content-Transfer-Encoding:X-Scanned-By; Received: (qmail 22411 invoked from network); 14 Feb 2013 10:19:23 +0100 Received: from ip-78-94-60-110.unitymediagroup.de (HELO firewall.demig.intra) (78.94.60.110) by demig.de with (DHE-RSA-AES256-SHA encrypted) SMTP; 14 Feb 2013 10:19:23 +0100 Received: from entw-pr.demig.intra (srv-pr-1 [192.168.148.236]) by firewall.demig.intra (8.14.4/8.14.4) with ESMTP id r1E9J5QP006375; Thu, 14 Feb 2013 10:19:05 +0100 (CET) (envelope-from nkoch@demig.de) Received: from [192.168.148.83] (ws-pr-3a [192.168.148.83]) by entw-pr.demig.intra (8.14.2/8.13.4) with ESMTP id r1E9J5tN068330; Thu, 14 Feb 2013 10:19:05 +0100 (CET) (envelope-from nkoch@demig.de) Message-ID: <511CAC09.4030807@demig.de> Date: Thu, 14 Feb 2013 10:19:05 +0100 From: Norbert Koch User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: hselasky@c2i.net Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards References: <201302071210.r17CA1xw091861@freefall.freebsd.org> <201302072226.17824.hselasky@c2i.net> In-Reply-To: <201302072226.17824.hselasky@c2i.net> X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 192.168.148.235 Cc: imp@freebsd.org, bug-followup@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 09:19:32 -0000 Am 07.02.2013 22:26, schrieb Hans Petter Selasky: > On Thursday 07 February 2013 13:10:01 Norbert Koch wrote: >> The following reply was made to PR usb/175731; it has been noted by GNATS. >> >> From: Norbert Koch >> To: bug-followup@FreeBSD.org >> Cc: >> Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards >> Date: Thu, 07 Feb 2013 13:01:01 +0100 >> >> Same problem with FreeBSD-9.1-RELEASE. > Hi, > > In /etc/devd.conf there are a few lines of code: > > # When a USB keyboard arrives, attach it as the console keyboard. > attach 100 { > device-name "ukbd0"; > action "/etc/rc.d/syscons setkeyboard /dev/ukbd0"; > }; > detach 100 { > device-name "ukbd0"; > action "/etc/rc.d/syscons setkeyboard /dev/kbd0"; > }; > > Can you try to uncomment these? > > Then restart devd or reboot and try again and see what happens. > > I believe the devd.conf lines above should be removed. > > --HPS I already tried this. Commenting out does not help. Two choices work for me: 1. devd_enable=NO and hald_enable=YES 2. devd_enable=YES and option "AutoAddDevices" "NO" in xorg.conf From owner-freebsd-usb@FreeBSD.ORG Thu Feb 14 09:20:03 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]) by hub.freebsd.org (Postfix) with ESMTP id 14151C8D for ; Thu, 14 Feb 2013 09:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 06C36FBB for ; Thu, 14 Feb 2013 09:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1E9K2xX085980 for ; Thu, 14 Feb 2013 09:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1E9K21K085979; Thu, 14 Feb 2013 09:20:02 GMT (envelope-from gnats) Date: Thu, 14 Feb 2013 09:20:02 GMT Message-Id: <201302140920.r1E9K21K085979@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Norbert Koch Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Norbert Koch List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 09:20:03 -0000 The following reply was made to PR usb/175731; it has been noted by GNATS. From: Norbert Koch To: hselasky@c2i.net Cc: freebsd-usb@freebsd.org, bug-followup@freebsd.org, imp@freebsd.org Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards Date: Thu, 14 Feb 2013 10:19:05 +0100 Am 07.02.2013 22:26, schrieb Hans Petter Selasky: > On Thursday 07 February 2013 13:10:01 Norbert Koch wrote: >> The following reply was made to PR usb/175731; it has been noted by GNATS. >> >> From: Norbert Koch >> To: bug-followup@FreeBSD.org >> Cc: >> Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards >> Date: Thu, 07 Feb 2013 13:01:01 +0100 >> >> Same problem with FreeBSD-9.1-RELEASE. > Hi, > > In /etc/devd.conf there are a few lines of code: > > # When a USB keyboard arrives, attach it as the console keyboard. > attach 100 { > device-name "ukbd0"; > action "/etc/rc.d/syscons setkeyboard /dev/ukbd0"; > }; > detach 100 { > device-name "ukbd0"; > action "/etc/rc.d/syscons setkeyboard /dev/kbd0"; > }; > > Can you try to uncomment these? > > Then restart devd or reboot and try again and see what happens. > > I believe the devd.conf lines above should be removed. > > --HPS I already tried this. Commenting out does not help. Two choices work for me: 1. devd_enable=NO and hald_enable=YES 2. devd_enable=YES and option "AutoAddDevices" "NO" in xorg.conf From owner-freebsd-usb@FreeBSD.ORG Thu Feb 14 10:19:29 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 033ED975; Thu, 14 Feb 2013 10:19:29 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 6B2E5278; Thu, 14 Feb 2013 10:19:27 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 376727600; Thu, 14 Feb 2013 11:19:20 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, Norbert Koch Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards Date: Thu, 14 Feb 2013 11:20:32 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <201302140920.r1E9K21K085979@freefall.freebsd.org> In-Reply-To: <201302140920.r1E9K21K085979@freefall.freebsd.org> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: bug-followup@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 10:19:29 -0000 On Thursday 14 February 2013 10:20:02 Norbert Koch wrote: > The following reply was made to PR usb/175731; it has been noted by GNATS. > > From: Norbert Koch > To: hselasky@c2i.net > Cc: freebsd-usb@freebsd.org, bug-followup@freebsd.org, imp@freebsd.org > Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards > Date: Thu, 14 Feb 2013 10:19:05 +0100 > > Am 07.02.2013 22:26, schrieb Hans Petter Selasky: > > On Thursday 07 February 2013 13:10:01 Norbert Koch wrote: > >> The following reply was made to PR usb/175731; it has been noted by > >> GNATS. > >> > >> From: Norbert Koch > >> To: bug-followup@FreeBSD.org > >> Cc: > >> Subject: Re: usb/175731: detaching USB keyboard freezes other USB > >> keyboards Date: Thu, 07 Feb 2013 13:01:01 +0100 > >> > >> Same problem with FreeBSD-9.1-RELEASE. > > > > Hi, > > > > In /etc/devd.conf there are a few lines of code: > > > > # When a USB keyboard arrives, attach it as the console keyboard. > > attach 100 { > > > > device-name "ukbd0"; > > action "/etc/rc.d/syscons setkeyboard /dev/ukbd0"; > > > > }; > > detach 100 { > > > > device-name "ukbd0"; > > action "/etc/rc.d/syscons setkeyboard /dev/kbd0"; > > > > }; > > > > Can you try to uncomment these? > > > > Then restart devd or reboot and try again and see what happens. > > > > I believe the devd.conf lines above should be removed. > > > > --HPS > > I already tried this. Commenting out does not help. > > Two choices work for me: > 1. devd_enable=NO and hald_enable=YES > 2. devd_enable=YES and option "AutoAddDevices" "NO" in xorg.conf > Can you edit this file: /usr/local/share/hal/fdi/policy/10osvendor/10-x11-input.fdi And change: kbd Into: kbd_dummy Then restart hal. Possibly you need a keyboard device entry in /etc/X11/xorg.conf after this change. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Feb 14 10:20:03 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]) by hub.freebsd.org (Postfix) with ESMTP id 7C7279AE for ; Thu, 14 Feb 2013 10:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 5678A281 for ; Thu, 14 Feb 2013 10:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1EAK2pW096948 for ; Thu, 14 Feb 2013 10:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1EAK24w096947; Thu, 14 Feb 2013 10:20:02 GMT (envelope-from gnats) Date: Thu, 14 Feb 2013 10:20:02 GMT Message-Id: <201302141020.r1EAK24w096947@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 10:20:03 -0000 The following reply was made to PR usb/175731; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org, Norbert Koch Cc: bug-followup@freebsd.org Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards Date: Thu, 14 Feb 2013 11:20:32 +0100 On Thursday 14 February 2013 10:20:02 Norbert Koch wrote: > The following reply was made to PR usb/175731; it has been noted by GNATS. > > From: Norbert Koch > To: hselasky@c2i.net > Cc: freebsd-usb@freebsd.org, bug-followup@freebsd.org, imp@freebsd.org > Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards > Date: Thu, 14 Feb 2013 10:19:05 +0100 > > Am 07.02.2013 22:26, schrieb Hans Petter Selasky: > > On Thursday 07 February 2013 13:10:01 Norbert Koch wrote: > >> The following reply was made to PR usb/175731; it has been noted by > >> GNATS. > >> > >> From: Norbert Koch > >> To: bug-followup@FreeBSD.org > >> Cc: > >> Subject: Re: usb/175731: detaching USB keyboard freezes other USB > >> keyboards Date: Thu, 07 Feb 2013 13:01:01 +0100 > >> > >> Same problem with FreeBSD-9.1-RELEASE. > > > > Hi, > > > > In /etc/devd.conf there are a few lines of code: > > > > # When a USB keyboard arrives, attach it as the console keyboard. > > attach 100 { > > > > device-name "ukbd0"; > > action "/etc/rc.d/syscons setkeyboard /dev/ukbd0"; > > > > }; > > detach 100 { > > > > device-name "ukbd0"; > > action "/etc/rc.d/syscons setkeyboard /dev/kbd0"; > > > > }; > > > > Can you try to uncomment these? > > > > Then restart devd or reboot and try again and see what happens. > > > > I believe the devd.conf lines above should be removed. > > > > --HPS > > I already tried this. Commenting out does not help. > > Two choices work for me: > 1. devd_enable=NO and hald_enable=YES > 2. devd_enable=YES and option "AutoAddDevices" "NO" in xorg.conf > Can you edit this file: /usr/local/share/hal/fdi/policy/10osvendor/10-x11-input.fdi And change: kbd Into: kbd_dummy Then restart hal. Possibly you need a keyboard device entry in /etc/X11/xorg.conf after this change. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Feb 14 22:16:32 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C15FAED4 for ; Thu, 14 Feb 2013 22:16:32 +0000 (UTC) (envelope-from aman.sawrup@bluecoat.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id A75BC11B for ; Thu, 14 Feb 2013 22:16:32 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1U676V-0003Va-Gd for freebsd-usb@freebsd.org; Thu, 14 Feb 2013 14:16:31 -0800 Date: Thu, 14 Feb 2013 14:16:31 -0800 (PST) From: Aman Sawrup To: freebsd-usb@freebsd.org Message-ID: <1360880191509-5787089.post@n5.nabble.com> In-Reply-To: <201302120838.54414.hselasky@c2i.net> References: <1360360082956-5785167.post@n5.nabble.com> <201302090001.57258.hselasky@c2i.net> <51194A19.40203@bluecoat.com> <201302120838.54414.hselasky@c2i.net> Subject: Re: Reading 1024 bytes from mass storage device using 3 frames gives USB_ERR_STALLED MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 22:16:32 -0000 Hi Hans, Is it possible to do the following: 1. Set frame 0 length to 200 bytes 2. usbd_transfer_submit() 3. Wait for USB_ST_TRANSFERRED 4. Set frame 0 length to 512 bytes 5. Set frame 1 length to 312 bytes 6. usbd_transfer_submit() Effectively, send 200 bytes in first transfer, then send remaining 724 bytes in second transfer. Thanks Aman -- View this message in context: http://freebsd.1045724.n5.nabble.com/Reading-1024-bytes-from-mass-storage-device-using-3-frames-gives-USB-ERR-STALLED-tp5785167p5787089.html Sent from the freebsd-usb mailing list archive at Nabble.com. From owner-freebsd-usb@FreeBSD.ORG Fri Feb 15 07:34: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]) by hub.freebsd.org (Postfix) with ESMTP id 4B132E81 for ; Fri, 15 Feb 2013 07:34:37 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id B42CB8AB for ; Fri, 15 Feb 2013 07:34:36 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 376723795; Fri, 15 Feb 2013 08:34:27 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: Reading 1024 bytes from mass storage device using 3 frames gives USB_ERR_STALLED Date: Fri, 15 Feb 2013 08:35:38 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <1360360082956-5785167.post@n5.nabble.com> <201302120838.54414.hselasky@c2i.net> <1360880191509-5787089.post@n5.nabble.com> In-Reply-To: <1360880191509-5787089.post@n5.nabble.com> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: Aman Sawrup X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2013 07:34:37 -0000 On Thursday 14 February 2013 23:16:31 Aman Sawrup wrote: > Hi Hans, > > Is it possible to do the following: > > 1. Set frame 0 length to 200 bytes > 2. usbd_transfer_submit() > 3. Wait for USB_ST_TRANSFERRED > 4. Set frame 0 length to 512 bytes > 5. Set frame 1 length to 312 bytes > 6. usbd_transfer_submit() > > Effectively, send 200 bytes in first transfer, then send remaining 724 > bytes in second transfer. No, not unless your USB device handles the 200 bytes split apart from the 512 bytes. You can check using an USB analyzer what is happening on the USB cable. --HPS