From owner-freebsd-usb@FreeBSD.ORG Sun Jul 8 00:25:21 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DA6CD16A421 for ; Sun, 8 Jul 2007 00:25:21 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by mx1.freebsd.org (Postfix) with ESMTP id B2F5F13C447 for ; Sun, 8 Jul 2007 00:25:21 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id j37so806923waf for ; Sat, 07 Jul 2007 17:25:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Y+TXA9KY3CfcLH0wKt0fnlVwOIgnlNIv7IrMD5K8AWKWF9ToQwvTfUBlRfKR5Pg+5RpfT2DUn+0QnFxYBrextwZoSjmG3bQIVE4XVsvrJ2l9Ywr0IZEvTjuabDw7uO3xbI9LcpxRIXj9jn3J2M9SSPyxRu2lipwzF9LR77uAn+s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Clg0eYLetF2+Fo5VznfedVfRgF4SL8SWMrtvuqRoLycng8y1cKjA25G3WgtrsnsxaESXo8JXztqBHojrxKZtYea4wmEYBPsQePAJZtUW85Q9en0ChdmD0gVxIesaI75GZ5LWPenOTSNxQcE1PgHx4em8yow8TMK39WDZQ/FvV6s= Received: by 10.114.254.1 with SMTP id b1mr1866503wai.1183854320788; Sat, 07 Jul 2007 17:25:20 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Sat, 7 Jul 2007 17:25:20 -0700 (PDT) Message-ID: Date: Sat, 7 Jul 2007 20:25:20 -0400 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200707051724.30175.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200707051724.30175.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 00:25:21 -0000 On 7/5/07, Hans Petter Selasky wrote: > > > > The chip does not handle a clear-stall request on the control pipe to > > > > clear-stall on the interrupt pipe. The result is that the interrupt > > > > pipe stops, or at least all buffers are cleared. > > > > The following is part of the usb firmware from Micrcohip. Somehow it masks EP0 in the handler to SET & CLEAR FEATURES requesrs. Is this the problem? if((SetupPkt.bFeature == ENDPOINT_HALT)&& (SetupPkt.Recipient == RCPT_EP)&& (SetupPkt.EPNum != 0)) /****************************************************************************** * Function: void USBStdFeatureReqHandler(void) * * PreCondition: None * * Input: None * * Output: None * * Side Effects: None * * Overview: This routine handles the standard SET & CLEAR FEATURES * requests * * Note: None *****************************************************************************/ void USBStdFeatureReqHandler(void) { if((SetupPkt.bFeature == DEVICE_REMOTE_WAKEUP)&& (SetupPkt.Recipient == RCPT_DEV)) { ctrl_trf_session_owner = MUID_USB9; if(SetupPkt.bRequest == SET_FEATURE) usb_stat.RemoteWakeup = 1; else usb_stat.RemoteWakeup = 0; }//end if if((SetupPkt.bFeature == ENDPOINT_HALT)&& (SetupPkt.Recipient == RCPT_EP)&& (SetupPkt.EPNum != 0)) { ctrl_trf_session_owner = MUID_USB9; /* Must do address calculation here */ pDst.bRam = (byte*)&ep0Bo+(SetupPkt.EPNum*8)+(SetupPkt.EPDir*4); if(SetupPkt.bRequest == SET_FEATURE) *pDst.bRam = _USIE|_BSTALL; else { if(SetupPkt.EPDir == 1) // IN *pDst.bRam = _UCPU; else *pDst.bRam = _USIE|_DAT0|_DTSEN; }//end if }//end if }//end USBStdFeatureReqHandler Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Sun Jul 8 00:30:15 2007 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5F85C16A468 for ; Sun, 8 Jul 2007 00:30:15 +0000 (UTC) (envelope-from xistence@0x58.com) Received: from mailexchange.osnn.net (1e.66.5646.static.theplanet.com [70.86.102.30]) by mx1.freebsd.org (Postfix) with SMTP id 14B3E13C45B for ; Sun, 8 Jul 2007 00:30:15 +0000 (UTC) (envelope-from xistence@0x58.com) Received: (qmail 47700 invoked by uid 0); 7 Jul 2007 23:59:48 -0000 Received: from unknown (HELO ?10.10.10.22?) (xistence@0x58.com@72.208.132.56) by mailexchange.osnn.net with SMTP; 7 Jul 2007 23:59:48 -0000 Mime-Version: 1.0 (Apple Message framework v752.3) To: usb@freebsd.org, hackers@freebsd.org, current@freebsd.org Message-Id: <9496044C-3275-4D9C-8FFF-FD1FCE1F6728@0x58.com> Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-3--612617406; protocol="application/pkcs7-signature" From: Bert JW Regeer Date: Sat, 7 Jul 2007 17:03:32 -0700 X-Mailer: Apple Mail (2.752.3) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: device rue causes kernel panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 00:30:15 -0000 --Apple-Mail-3--612617406 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hello, I have a USB 10/100 FastEthernet device, that is identified as a RealTek device. On 6.2-RELEASE it works without any issues, and some older versions of CURRENT it worked perfectly as well. I csup'ed to CURRENT today (2007-07-07 at 16:30 MST), rebuild my kernel and it failed, so I grabbed the hard drive, made a copy into a VMWare image, recompiled the same CURRENT with debugging enabled, and retrieved the following backtrace from kgdb from a secondary VMWare running FreeBSD 6.2-RELEASE with kgdb: (kgdb) bt #0 kdb_enter (msg=0xc0a90fed "panic") at /usr/src/sys/kern/ subr_kdb.c:310 #1 0xc074b9b4 in panic (fmt=0xc0a94933 "Trying sleep, but thread marked as sleeping prohibited") at /usr/src/sys/kern/kern_shutdown.c:547 #2 0xc077a912 in sleepq_add (wchan=0xc2322c00, lock=0x0, wmesg=0xc0a85dc8 "usbsyn", flags=0, queue=0) at /usr/src/sys/kern/subr_sleepqueue.c:289 #3 0xc0753d33 in _sleep (ident=0xc2322c00, lock=Variable "lock" is not available. ) at /usr/src/sys/kern/kern_synch.c:201 #4 0xc06cc498 in usbd_transfer (xfer=0xc2322c00) at /usr/src/sys/dev/ usb/usbdi.c:333 #5 0xc06cc5e6 in usbd_sync_transfer (xfer=0xc2322c00) at /usr/src/ sys/dev/usb/usbdi.c:406 #6 0xc06cc678 in usbd_do_request_flags_pipe (dev=0xc2275300, pipe=0xc2275100, req=0xcbd46bb8, data=0xcbd46bd3, flags=Variable "flags" is not available. ) at /usr/src/sys/dev/usb/usbdi.c:1098 #7 0xc06cc7cc in usbd_do_request_flags (dev=0xc2275300, req=0xcbd46bb8, data=0xcbd46bd3, flags=Variable "flags" is not available. ) at /usr/src/sys/dev/usb/usbdi.c:1068 #8 0xc06cc807 in usbd_do_request (dev=0xc2275300, req=0xcbd46bb8, data=0xcbd46bd3) at /usr/src/sys/dev/usb/usbdi.c:1060 #9 0xc06ae924 in rue_read_mem (sc=0xc2264d00, addr=Variable "addr" is not available. ) at /usr/src/sys/dev/usb/if_rue.c:227 #10 0xc06ae9cc in rue_csr_read_1 (sc=Variable "sc" is not available. ) at /usr/src/sys/dev/usb/if_rue.c:276 #11 0xc06aea47 in rue_miibus_readreg (dev=0xc2275080, phy=0, reg=311) at /usr/src/sys/dev/usb/if_rue.c:376 #12 0xc05f01eb in miibus_readreg (dev=0xc2274d00, phy=0, reg=311) at miibus_if.h:26 #13 0xc05f5b6e in ruephy_service (sc=0xc2278440, mii=0xc2278d00, cmd=1) at miibus_if.h:26 #14 0xc05efc14 in mii_tick (mii=0xc2278d00) at /usr/src/sys/dev/mii/ mii.c:390 #15 0xc06aef53 in rue_tick (xsc=0xc2264d00) at /usr/src/sys/dev/usb/ if_rue.c:935 #16 0xc075d229 in softclock (dummy=0x0) at /usr/src/sys/kern/ kern_timeout.c:281 #17 0xc0730905 in ithread_loop (arg=0xc21152b0) at /usr/src/sys/kern/ kern_intr.c:1036 #18 0xc072dd88 in fork_exit (callout=0xc0730750 , arg=0xc21152b0, frame=0xcbd46d38) at /usr/src/sys/kern/kern_fork.c:797 #19 0xc09e0820 in fork_trampoline () at /usr/src/sys/i386/i386/ exception.s:205 Steps to reproduce: 1. Plug in a rue device 2. plug in a cable so that it's status is active 3. ifconfig rue0 up 4. Wait for the kernel to panic about a second or so later If there is anything else you guys need me to do, please let me know and I will see what I can do. Bert JW Regeer p.s. I am not on the current@freebsd.org mailling list, please CC all replies to me. --Apple-Mail-3--612617406-- From owner-freebsd-usb@FreeBSD.ORG Sun Jul 8 04:02:44 2007 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 85D1216A47B; Sun, 8 Jul 2007 04:02:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 3B09C13C455; Sun, 8 Jul 2007 04:02:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l6841Lak099270; Sat, 7 Jul 2007 22:01:21 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 07 Jul 2007 22:02:03 -0600 (MDT) Message-Id: <20070707.220203.776519881.imp@bsdimp.com> To: xistence@0x58.com From: "M. Warner Losh" In-Reply-To: <9496044C-3275-4D9C-8FFF-FD1FCE1F6728@0x58.com> References: <9496044C-3275-4D9C-8FFF-FD1FCE1F6728@0x58.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sat, 07 Jul 2007 22:01:21 -0600 (MDT) Cc: usb@freebsd.org, hackers@freebsd.org, current@freebsd.org Subject: Re: device rue causes kernel panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 04:02:44 -0000 In message: <9496044C-3275-4D9C-8FFF-FD1FCE1F6728@0x58.com> Bert JW Regeer writes: : I have a USB 10/100 FastEthernet device, that is identified as a : RealTek device. On 6.2-RELEASE it works without any issues, and some : older versions of CURRENT it worked perfectly as well. I csup'ed to : CURRENT today (2007-07-07 at 16:30 MST), rebuild my kernel and it : failed: : panic (fmt=0xc0a94933 "Trying sleep, but thread marked as sleeping prohibited") : _sleep (ident=0xc2322c00...) at /usr/src/sys/kern/kern_synch.c:201 : usbd_transfer (xfer=0xc2322c00) at /usr/src/sys/dev/usb/usbdi.c:333 : usbd_sync_transfer (xfer=0xc2322c00) at /usr/src/sys/dev/usb/usbdi.c:406 : usbd_do_request_flags_pipe ... at /usr/src/sys/dev/usb/usbdi.c:1098 : usbd_do_request_flags ...at /usr/src/sys/dev/usb/usbdi.c:1068 : usbd_do_request at /usr/src/sys/dev/usb/usbdi.c:1060 : rue_read_mem at /usr/src/sys/dev/usb/if_rue.c:227 : rue_csr_read_1 at /usr/src/sys/dev/usb/if_rue.c:276 : rue_miibus_readreg at /usr/src/sys/dev/usb/if_rue.c:376 ... : ruephy_service at miibus_if.h:26 /* Likely wrong */ : mii_tick at /usr/src/sys/dev/mii/mii.c:390 : rue_tick at /usr/src/sys/dev/usb/if_rue.c:935 : softclock at /usr/src/sys/kern/kern_timeout.c:281 ... This driver needs to be re-written ala aue, axe, kue and udav to use a taskqueue for the mii ticking. It appears to be the only usb driver in the tree to still do stuff directly in a callout. This context can't sleep... Warner From owner-freebsd-usb@FreeBSD.ORG Sun Jul 8 04:14:42 2007 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A04216A421; Sun, 8 Jul 2007 04:14:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 1014513C480; Sun, 8 Jul 2007 04:14:41 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l684E2lt099333; Sat, 7 Jul 2007 22:14:02 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 07 Jul 2007 22:14:44 -0600 (MDT) Message-Id: <20070707.221444.-1816826594.imp@bsdimp.com> To: xistence@0x58.com From: "M. Warner Losh" In-Reply-To: <20070707.220203.776519881.imp@bsdimp.com> References: <9496044C-3275-4D9C-8FFF-FD1FCE1F6728@0x58.com> <20070707.220203.776519881.imp@bsdimp.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Sat_Jul__7_22_14_44_2007_946)--" Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sat, 07 Jul 2007 22:14:03 -0600 (MDT) Cc: usb@freebsd.org, hackers@freebsd.org, current@freebsd.org Subject: Re: device rue causes kernel panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 04:14:42 -0000 ----Next_Part(Sat_Jul__7_22_14_44_2007_946)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit In message: <20070707.220203.776519881.imp@bsdimp.com> "M. Warner Losh" writes: : In message: <9496044C-3275-4D9C-8FFF-FD1FCE1F6728@0x58.com> : Bert JW Regeer writes: : : I have a USB 10/100 FastEthernet device, that is identified as a : : RealTek device. On 6.2-RELEASE it works without any issues, and some : : older versions of CURRENT it worked perfectly as well. I csup'ed to : : CURRENT today (2007-07-07 at 16:30 MST), rebuild my kernel and it : : failed: : : panic (fmt=0xc0a94933 "Trying sleep, but thread marked as sleeping prohibited") : : _sleep (ident=0xc2322c00...) at /usr/src/sys/kern/kern_synch.c:201 : : usbd_transfer (xfer=0xc2322c00) at /usr/src/sys/dev/usb/usbdi.c:333 : : usbd_sync_transfer (xfer=0xc2322c00) at /usr/src/sys/dev/usb/usbdi.c:406 : : usbd_do_request_flags_pipe ... at /usr/src/sys/dev/usb/usbdi.c:1098 : : usbd_do_request_flags ...at /usr/src/sys/dev/usb/usbdi.c:1068 : : usbd_do_request at /usr/src/sys/dev/usb/usbdi.c:1060 : : rue_read_mem at /usr/src/sys/dev/usb/if_rue.c:227 : : rue_csr_read_1 at /usr/src/sys/dev/usb/if_rue.c:276 : : rue_miibus_readreg at /usr/src/sys/dev/usb/if_rue.c:376 : ... : : ruephy_service at miibus_if.h:26 /* Likely wrong */ : : mii_tick at /usr/src/sys/dev/mii/mii.c:390 : : rue_tick at /usr/src/sys/dev/usb/if_rue.c:935 : : softclock at /usr/src/sys/kern/kern_timeout.c:281 : ... : : This driver needs to be re-written ala aue, axe, kue and udav to use a : taskqueue for the mii ticking. It appears to be the only usb driver : in the tree to still do stuff directly in a callout. This context : can't sleep... You might try this patch. Warner ----Next_Part(Sat_Jul__7_22_14_44_2007_946)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="rue-task.diff" Index: if_rue.c =================================================================== RCS file: /cache/ncvs/src/sys/dev/usb/if_rue.c,v retrieving revision 1.39 diff -u -r1.39 if_rue.c --- if_rue.c 20 Jun 2007 05:10:52 -0000 1.39 +++ if_rue.c 8 Jul 2007 04:13:16 -0000 @@ -142,6 +142,7 @@ static void rue_rxeof(usbd_xfer_handle, usbd_private_handle, usbd_status); static void rue_txeof(usbd_xfer_handle, usbd_private_handle, usbd_status); static void rue_tick(void *); +static void rue_tick_task(void *); static void rue_rxstart(struct ifnet *); static void rue_start(struct ifnet *); static int rue_ioctl(struct ifnet *, u_long, caddr_t); @@ -594,6 +595,8 @@ goto error; } + usb_init_task(&sc->rue_tick_task, rue_tick_task, sc); + err = usbd_device2interface_handle(uaa->device, RUE_IFACE_IDX, &iface); if (err) { device_printf(sc->rue_dev, "getting interface handle failed\n"); @@ -704,6 +707,7 @@ sc->rue_dying = 1; untimeout(rue_tick, sc, sc->rue_stat_ch); + usb_rem_task(sc->rue_udev, &sc->rue_tick_task); ether_ifdetach(ifp); if_free(ifp); @@ -916,6 +920,20 @@ static void rue_tick(void *xsc) { + struct rue_softc *sc = xsc; + + if (sc == NULL) + return; + if (sc->rue_dying) + return; + + /* Perform periodic stuff in process context */ + usb_add_task(sc->rue_udev, &sc->rue_tick_task, USB_TASKQ_DRIVER); +} + +static void +rue_tick_task(void *xsc) +{ struct rue_softc *sc = xsc; struct ifnet *ifp; struct mii_data *mii; Index: if_ruereg.h =================================================================== RCS file: /cache/ncvs/src/sys/dev/usb/if_ruereg.h,v retrieving revision 1.7 diff -u -r1.7 if_ruereg.h --- if_ruereg.h 12 May 2007 05:53:53 -0000 1.7 +++ if_ruereg.h 8 Jul 2007 04:11:39 -0000 @@ -204,6 +204,7 @@ char rue_dying; struct timeval rue_rx_notice; struct usb_qdat rue_qdat; + struct usb_task rue_tick_task; }; #if defined(__FreeBSD__) ----Next_Part(Sat_Jul__7_22_14_44_2007_946)---- From owner-freebsd-usb@FreeBSD.ORG Sun Jul 8 05:11:58 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1561316A46B for ; Sun, 8 Jul 2007 05:11:58 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B5B4313C458 for ; Sun, 8 Jul 2007 05:11:57 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l685At8W099619; Sat, 7 Jul 2007 23:10:55 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 07 Jul 2007 23:11:36 -0600 (MDT) Message-Id: <20070707.231136.-593229846.imp@bsdimp.com> To: xiaofanc@gmail.com From: "M. Warner Losh" In-Reply-To: References: <200707051724.30175.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sat, 07 Jul 2007 23:10:55 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 05:11:58 -0000 In message: "Xiaofan Chen" writes: : On 7/5/07, Hans Petter Selasky wrote: : > > > > The chip does not handle a clear-stall request on the control pipe to : > > > > clear-stall on the interrupt pipe. The result is that the interrupt : > > > > pipe stops, or at least all buffers are cleared. : > > > > : : The following is part of the usb firmware from Micrcohip. I never learned the details, but a client of mine was able to get fixes from Microchip for their product. The exact problem was that endpoint stall clearing didn't work for these devices and it was a firmware bug. Warner From owner-freebsd-usb@FreeBSD.ORG Sun Jul 8 07:21:04 2007 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7695916A477 for ; Sun, 8 Jul 2007 07:21:04 +0000 (UTC) (envelope-from xistence@0x58.com) Received: from mailexchange.osnn.net (1e.66.5646.static.theplanet.com [70.86.102.30]) by mx1.freebsd.org (Postfix) with SMTP id 2B47B13C489 for ; Sun, 8 Jul 2007 07:21:03 +0000 (UTC) (envelope-from xistence@0x58.com) Received: (qmail 67346 invoked by uid 0); 8 Jul 2007 07:17:18 -0000 Received: from unknown (HELO ?10.10.10.22?) (xistence@0x58.com@72.208.132.56) by mailexchange.osnn.net with SMTP; 8 Jul 2007 07:17:18 -0000 In-Reply-To: <20070707.221444.-1816826594.imp@bsdimp.com> References: <9496044C-3275-4D9C-8FFF-FD1FCE1F6728@0x58.com> <20070707.220203.776519881.imp@bsdimp.com> <20070707.221444.-1816826594.imp@bsdimp.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-5--586368409; protocol="application/pkcs7-signature" Message-Id: <89437BFD-62EF-49FB-9405-8364719F1CFE@0x58.com> From: Bert JW Regeer Date: Sun, 8 Jul 2007 00:21:01 -0700 To: M. Warner Losh X-Mailer: Apple Mail (2.752.3) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: usb@freebsd.org, hackers@freebsd.org, current@freebsd.org Subject: Re: device rue causes kernel panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 07:21:04 -0000 --Apple-Mail-5--586368409 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jul 7, 2007, at 9:14 PM, M. Warner Losh wrote: > In message: <20070707.220203.776519881.imp@bsdimp.com> > "M. Warner Losh" writes: > : In message: <9496044C-3275-4D9C-8FFF-FD1FCE1F6728@0x58.com> > : Bert JW Regeer writes: > : : I have a USB 10/100 FastEthernet device, that is identified as a > : : RealTek device. On 6.2-RELEASE it works without any issues, and > some > : : older versions of CURRENT it worked perfectly as well. I > csup'ed to > : : CURRENT today (2007-07-07 at 16:30 MST), rebuild my kernel and it > : : failed: > : : panic (fmt=0xc0a94933 "Trying sleep, but thread marked as > sleeping prohibited") > : : _sleep (ident=0xc2322c00...) at /usr/src/sys/kern/kern_synch.c:201 > : : usbd_transfer (xfer=0xc2322c00) at /usr/src/sys/dev/usb/usbdi.c: > 333 > : : usbd_sync_transfer (xfer=0xc2322c00) at /usr/src/sys/dev/usb/ > usbdi.c:406 > : : usbd_do_request_flags_pipe ... at /usr/src/sys/dev/usb/usbdi.c: > 1098 > : : usbd_do_request_flags ...at /usr/src/sys/dev/usb/usbdi.c:1068 > : : usbd_do_request at /usr/src/sys/dev/usb/usbdi.c:1060 > : : rue_read_mem at /usr/src/sys/dev/usb/if_rue.c:227 > : : rue_csr_read_1 at /usr/src/sys/dev/usb/if_rue.c:276 > : : rue_miibus_readreg at /usr/src/sys/dev/usb/if_rue.c:376 > : ... > : : ruephy_service at miibus_if.h:26 /* Likely wrong */ > : : mii_tick at /usr/src/sys/dev/mii/mii.c:390 > : : rue_tick at /usr/src/sys/dev/usb/if_rue.c:935 > : : softclock at /usr/src/sys/kern/kern_timeout.c:281 > : ... > : > : This driver needs to be re-written ala aue, axe, kue and udav to > use a > : taskqueue for the mii ticking. It appears to be the only usb driver > : in the tree to still do stuff directly in a callout. This context > : can't sleep... > > You might try this patch. > > Warner > Index: if_rue.c > =================================================================== > RCS file: /cache/ncvs/src/sys/dev/usb/if_rue.c,v > retrieving revision 1.39 > diff -u -r1.39 if_rue.c > --- if_rue.c 20 Jun 2007 05:10:52 -0000 1.39 > +++ if_rue.c 8 Jul 2007 04:13:16 -0000 > @@ -142,6 +142,7 @@ > static void rue_rxeof(usbd_xfer_handle, usbd_private_handle, > usbd_status); > static void rue_txeof(usbd_xfer_handle, usbd_private_handle, > usbd_status); > static void rue_tick(void *); > +static void rue_tick_task(void *); > static void rue_rxstart(struct ifnet *); > static void rue_start(struct ifnet *); > static int rue_ioctl(struct ifnet *, u_long, caddr_t); > @@ -594,6 +595,8 @@ > goto error; > } > > + usb_init_task(&sc->rue_tick_task, rue_tick_task, sc); > + > err = usbd_device2interface_handle(uaa->device, RUE_IFACE_IDX, > &iface); > if (err) { > device_printf(sc->rue_dev, "getting interface handle failed\n"); > @@ -704,6 +707,7 @@ > > sc->rue_dying = 1; > untimeout(rue_tick, sc, sc->rue_stat_ch); > + usb_rem_task(sc->rue_udev, &sc->rue_tick_task); > ether_ifdetach(ifp); > if_free(ifp); > > @@ -916,6 +920,20 @@ > static void > rue_tick(void *xsc) > { > + struct rue_softc *sc = xsc; > + > + if (sc == NULL) > + return; > + if (sc->rue_dying) > + return; > + > + /* Perform periodic stuff in process context */ > + usb_add_task(sc->rue_udev, &sc->rue_tick_task, USB_TASKQ_DRIVER); > +} > + > +static void > +rue_tick_task(void *xsc) > +{ > struct rue_softc *sc = xsc; > struct ifnet *ifp; > struct mii_data *mii; > Index: if_ruereg.h > =================================================================== > RCS file: /cache/ncvs/src/sys/dev/usb/if_ruereg.h,v > retrieving revision 1.7 > diff -u -r1.7 if_ruereg.h > --- if_ruereg.h 12 May 2007 05:53:53 -0000 1.7 > +++ if_ruereg.h 8 Jul 2007 04:11:39 -0000 > @@ -204,6 +204,7 @@ > char rue_dying; > struct timeval rue_rx_notice; > struct usb_qdat rue_qdat; > + struct usb_task rue_tick_task; > }; > > #if defined(__FreeBSD__) > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers- > unsubscribe@freebsd.org" This patch works, in that no more Kernel panics are created, however the following did show up in dmesg//var/log/messages as I was using dhclient rue0: Jul 7 16:15:53 FreeBSD-VMWare root: Unknown USB device: vendor 0x0bda product 0x8150 bus uhub0 Jul 7 16:15:53 FreeBSD-VMWare kernel: rue0: on uhub0 Jul 7 16:15:53 FreeBSD-VMWare kernel: miibus0: on rue0 Jul 7 16:15:53 FreeBSD-VMWare kernel: ruephy0: PHY 0 on miibus0 Jul 7 16:15:53 FreeBSD-VMWare kernel: ruephy0: 10baseT, 10baseT- FDX, 100baseTX, 100baseTX-FDX, auto Jul 7 16:15:53 FreeBSD-VMWare kernel: rue0: using obsoleted if_watchdog interface Jul 7 16:15:53 FreeBSD-VMWare kernel: rue0: Ethernet address: 00:10:60:e0:ab:a8 Jul 7 16:15:53 FreeBSD-VMWare kernel: rue0: if_start running deferred for Giant Jul 7 16:15:53 FreeBSD-VMWare kernel: rue0: link state changed to DOWN Jul 7 16:15:54 FreeBSD-VMWare kernel: uhub2: on uhub0 Jul 7 16:15:54 FreeBSD-VMWare kernel: uhub2: 7 ports with 7 removable, self powered Jul 7 16:15:57 FreeBSD-VMWare kernel: rue0: link state changed to UP Jul 7 16:15:57 FreeBSD-VMWare kernel: rue0: link state changed to DOWN Jul 7 16:15:57 FreeBSD-VMWare kernel: rue0: link state changed to UP Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:09 FreeBSD-VMWare kernel: lock order reversal: (Giant after non-sleepable) Jul 7 16:16:09 FreeBSD-VMWare kernel: 1st 0xc0bf334c in_multi_mtx (in_multi_mtx) @ /usr/src/sys/netinet/in_mcast.c:317 Jul 7 16:16:09 FreeBSD-VMWare kernel: 2nd 0xc0ba47a8 Giant (Giant) @ /usr/src/sys/kern/kern_synch.c:235 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/in.c:506 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/in.c:506 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/in.c:506 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/in.c:506 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/in.c:506 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/in.c:506 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:09 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:09 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:12 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:12 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/in.c:506 Jul 7 16:16:12 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:12 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/in.c:506 Jul 7 16:16:12 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:12 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/in.c:506 Jul 7 16:16:12 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:12 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/in.c:506 Jul 7 16:16:12 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:12 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/in.c:506 Jul 7 16:16:12 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:12 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/in.c:506 Jul 7 16:16:12 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:12 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:12 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:12 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:12 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:12 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:12 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:12 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:12 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:12 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:12 FreeBSD-VMWare kernel: Sleeping on "usbsyn" with the following non-sleepable locks held: Jul 7 16:16:12 FreeBSD-VMWare kernel: exclusive sleep mutex in_multi_mtx r = 0 (0xc0bf334c) locked @ /usr/src/sys/netinet/ in_mcast.c:317 Jul 7 16:16:12 FreeBSD-VMWare dhclient: New IP Address (rue0): 10.10.10.228 Jul 7 16:16:12 FreeBSD-VMWare dhclient: New Subnet Mask (rue0): 255.255.255.0 Jul 7 16:16:12 FreeBSD-VMWare dhclient: New Broadcast Address (rue0): 10.10.10.255 Jul 7 16:16:12 FreeBSD-VMWare dhclient: New Routers (rue0): 10.10.10.11 Bert JW Regeer --Apple-Mail-5--586368409-- From owner-freebsd-usb@FreeBSD.ORG Sun Jul 8 08:29:21 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63EF416A421 for ; Sun, 8 Jul 2007 08:29:21 +0000 (UTC) (envelope-from andrew@dobrohot.org) Received: from smtp-9.masterhost.ru (smtp-9.masterhost.ru [83.222.24.109]) by mx1.freebsd.org (Postfix) with SMTP id 927C913C45A for ; Sun, 8 Jul 2007 08:29:20 +0000 (UTC) (envelope-from andrew@dobrohot.org) Received: (qmail 88807 invoked from network); 8 Jul 2007 08:29:02 -0000 Received: from ns.km10433.keymachine.de (HELO inspirra.localdomain) (izdat%dobrohot.org@62.141.50.149) by smtp1.masterhost.ru with SMTP; 8 Jul 2007 08:29:03 -0000 Received: from inspirra.localdomain (inspirra.localdomain [192.168.2.1]) by inspirra.localdomain (8.14.1/8.13.8) with ESMTP id l688RuBB061367 for ; Sun, 8 Jul 2007 12:27:56 +0400 (MSD) (envelope-from andrew@dobrohot.org) Message-ID: <4690A00B.3020003@dobrohot.org> Date: Sun, 08 Jul 2007 12:27:55 +0400 From: Andrew Muhametshin Organization: =?windows-1251?Q?=C0=CD=CE_=22=C4=EE=E1=F0=EE=F5=EE=F2=22?= User-Agent: Thunderbird 2.0.0.4 (X11/20070616) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Subject: impossible to work with the scanner X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 08:29:21 -0000 Hello. It is absolutely impossible to work with the scanner! After scanning there are extraneous strips. An example here (310Kb): http://www.dobrohot.org/files/scanner-error-001.jpg ...Or, process of scanning hangs. For check, I tried to use same the scanner on other systems (Linux, and Windows) -- And in them, all worked perfectly. This problem, is inherent only in FreeBSD. $ uname -a FreeBSD host01 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jul 6 20:39:20 MSD 2007 root@inspirra.localdomain:/SHARED/obj.host01/usr/src/sys/HOST01 i386 And new USB stack, revision 531 $ scanimage -L device `epson:/dev/uscanner0' is a Epson GT-9300 flatbed scanner $ egrep "^usb4|uscanner" /var/run/dmesg.boot usb4: EHCI version 0.95 usb4: on ehci0 usb4: 480MBps High Speed USB v2.0 uscanner0: With the best regards, Andrew M. P.S. I am sorry for my English. I am compelled to use the electronic translator From owner-freebsd-usb@FreeBSD.ORG Sun Jul 8 13:16:56 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E812716A468 for ; Sun, 8 Jul 2007 13:16:56 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id C1D2C13C448 for ; Sun, 8 Jul 2007 13:16:56 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id j37so986626waf for ; Sun, 08 Jul 2007 06:16:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=J/1YihHgBnITwIqHaj1upElCq5l+Bqgw3pMYmZ2gVJSDdh2Fvo6vDDrEvaUFoAMFc1o1KRsjWwImTtTQQAKevY3+HDPt/eKelMh9BVTA3i+xauL7PX0cEpfOmF6MAEFeDzv5I9jleN0pO+v6SDR3MjpkreMsGH0S/1BJHDUdkrY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=L7J3f6nKvd+vNsmrIVMAsPaSrAwb8zWR6e6iF6sLiv9TWQfqj/XnSh+sC5aK+hNrnQ29Dk4h2YdydmUOog1zs6Y4U3myd0k2KS96xILdmuvS1VZNkQOKifm3094bVgBFTGLMH1DxmN+qLXvsr06VSBAsIknJTnQb4KOKwDx2vIY= Received: by 10.115.93.16 with SMTP id v16mr2236422wal.1183900615893; Sun, 08 Jul 2007 06:16:55 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Sun, 8 Jul 2007 06:16:55 -0700 (PDT) Message-ID: Date: Sun, 8 Jul 2007 09:16:55 -0400 From: "Xiaofan Chen" To: "M. Warner Losh" In-Reply-To: <20070707.231136.-593229846.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200707051724.30175.hselasky@c2i.net> <20070707.231136.-593229846.imp@bsdimp.com> Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 13:16:57 -0000 On 7/8/07, M. Warner Losh wrote: > In message: > "Xiaofan Chen" writes: > : On 7/5/07, Hans Petter Selasky wrote: > : > > > > The chip does not handle a clear-stall request on the control pipe to > : > > > > clear-stall on the interrupt pipe. The result is that the interrupt > : > > > > pipe stops, or at least all buffers are cleared. > : > > > > > : > : The following is part of the usb firmware from Micrcohip. > > I never learned the details, but a client of mine was able to get > fixes from Microchip for their product. The exact problem was that > endpoint stall clearing didn't work for these devices and it was a > firmware bug. > Thanks a lot for the info. I ran the old USBCheck Version 5.10 with PICKit 2 and find out that it is true that PICKit 2 failed to respond to a clear STALL feature request for endpoint 0 (IN and OUT) even though it successfuly responded to the clear STALL request for endpoint 1 (IN and OUT). So I think this is a potential bug with the Microchip USB firmware framework. According to a reply from Microchip Forum: "There is a slight ambiguity in the USB spec concerning 'clear stall feature'. Endpoint 0 canot stall a request, so a request to unstall endpoint 0 is completely redundant. I recall that the required response is not clearly defined. Personally, I just accept the request and acknowledge it, but there is no real action to be taken. I guess other software writers have chosen a different path." Why FreeBSD sends out the clear stall feature request for PICKit 2? Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Sun Jul 8 16:31:41 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE72A16A421 for ; Sun, 8 Jul 2007 16:31:41 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id B6EC113C45E for ; Sun, 8 Jul 2007 16:31:41 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id j37so1034480waf for ; Sun, 08 Jul 2007 09:31:41 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JqAg0eJIFeeO2RkUZH6oZijAnmheK+nshug4Zqv7Pj2jCZNLucg3Menb9iY7Ytz5Ysm72TiTOp7n5gOF1oSzEowciszrml2OUeGyFPbnwRjOxlR7Z7jvbVuhBVw+YheNlWQZISk+XH74MNMNAsvFBORpxgECF3Is8p037th0G00= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QimZ7l6v+oOaSzo8jPAHRCQdVgTu23mv76+ngNiIjt2CjRlJu27OyDiIumHO27T8ctFVidE+7XfiejA6AzXOjbXIgiPivyk7CIbZiHNkKW0FCRLY2DsW0AWaaOiYEVm6oYJSyVnxdXtS9I3FfKT8SXkH225VqTLTnYXTbxULaUU= Received: by 10.114.80.4 with SMTP id d4mr2370396wab.1183912301164; Sun, 08 Jul 2007 09:31:41 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Sun, 8 Jul 2007 09:31:41 -0700 (PDT) Message-ID: Date: Sun, 8 Jul 2007 12:31:41 -0400 From: "Xiaofan Chen" To: "M. Warner Losh" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200707051724.30175.hselasky@c2i.net> <20070707.231136.-593229846.imp@bsdimp.com> Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 16:31:41 -0000 On 7/8/07, Xiaofan Chen wrote: > On 7/8/07, M. Warner Losh wrote: > > In message: > > "Xiaofan Chen" writes: > > : On 7/5/07, Hans Petter Selasky wrote: > > : > > > > The chip does not handle a clear-stall request on the control pipe to > > : > > > > clear-stall on the interrupt pipe. The result is that the interrupt > > : > > > > pipe stops, or at least all buffers are cleared. > > : > > > > > > : > > : The following is part of the usb firmware from Micrcohip. > > > > I never learned the details, but a client of mine was able to get > > fixes from Microchip for their product. The exact problem was that > > endpoint stall clearing didn't work for these devices and it was a > > firmware bug. > > > > Thanks a lot for the info. > > I ran the old USBCheck Version 5.10 with PICKit 2 and find out that it is > true that PICKit 2 failed to respond to a clear STALL feature request for > endpoint 0 (IN and OUT) even though it successfuly responded to the > clear STALL request for endpoint 1 (IN and OUT). So I think this is a > potential bug with the Microchip USB firmware framework. > > According to a reply from Microchip Forum: > "There is a slight ambiguity in the USB spec concerning 'clear stall feature'. > Endpoint 0 canot stall a request, so a request to unstall endpoint 0 is > completely redundant. I recall that the required response is not clearly > defined. Personally, I just accept the request and acknowledge it, but there > is no real action to be taken. I guess other software writers have chosen a > different path." > > Why FreeBSD sends out the clear stall feature request for PICKit 2? > The following is the reply from Microchip Forum poster Pacer. "The Setup transaction cannot be stalled. However to indicate that the device doesn't understand the request it may stall the data or status stage of a control transfer. This is a 'protocol' stall, unique to control pipes, so doesn't need to be unstalled with a 'clear feature'. " Therefore it must be a 'protocol stall' and FreeBSD does not need to send a clear feature request for the endpoint 0 to PICkit 2. Am I right? From owner-freebsd-usb@FreeBSD.ORG Sun Jul 8 18:38:33 2007 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DB78716A500 for ; Sun, 8 Jul 2007 18:38:33 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 9CDA613C458 for ; Sun, 8 Jul 2007 18:38:33 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A563C0.dip.t-dialin.net [84.165.99.192]) by redbull.bpaserver.net (Postfix) with ESMTP id D6B972E180; Sun, 8 Jul 2007 20:07:50 +0200 (CEST) Received: from deskjail (deskjail.Leidinger.net [192.168.1.109]) by outgoing.leidinger.net (Postfix) with ESMTP id C65B65B4902; Sun, 8 Jul 2007 20:05:39 +0200 (CEST) Date: Sun, 8 Jul 2007 20:09:05 +0200 From: Alexander Leidinger To: freebsd-emulation@freebsd.org Message-ID: <20070708200905.70107adc@deskjail> In-Reply-To: References: X-Mailer: Claws Mail 2.9.2 (GTK+ 2.10.13; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-13.295, required 8, BAYES_00 -15.00, DEAR_SOMETHING 1.60, DKIM_POLICY_SIGNSOME 0.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: usb@freebsd.org Subject: Re: 32bit apps on FreeBSD-6.1-R amd64 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 18:38:33 -0000 Quoting luizbcampos@gmail.com (Sun, 8 Jul 2007 12:29:55 -0300): > Dear Sirs > > > I own a Canon iP1600 usb printer and I need run it on > FBSD-6.1-Ramd64. Its driver when uncompressed shows > i386.rpm files. I've installed linux_base-8 but some messages appear up when If it tries to communicate to the USB stuff directly instead of being just a filter which outputs a printer language which can be saved to a file too, it will probably not work, as there's no linux-USB emulation. linu_base-8 is outdated. The current default linux base port is linux_base-fc4. > trying to install i386.rpm files by using rpm commands...and now? There's rpm2cpio and then you can extract it with cpio. Using rpm when we have our own ports collection to track installed file is superflous, and as we will never have everything correctly registered in the rpm database (when we would use it additionally) anyway (as we delete some linux stuff for various reasons), we don't install rpm at all (makes various ports stuff much easier and prevents some nasty misbehavior when rpm is not used as needed). Bye, Alexander. -- Men don't talk peace unless they're ready to back it up with war. -- Col. Green, "The Savage Curtain", stardate 5906.4 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-usb@FreeBSD.ORG Sun Jul 8 20:01:10 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 90E2916A478 for ; Sun, 8 Jul 2007 20:01:10 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 3FCA613C455 for ; Sun, 8 Jul 2007 20:01:10 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l68Jx0r9000926; Sun, 8 Jul 2007 13:59:00 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 08 Jul 2007 13:59:40 -0600 (MDT) Message-Id: <20070708.135940.1102529026.imp@bsdimp.com> To: xiaofanc@gmail.com From: "M. Warner Losh" In-Reply-To: References: <20070707.231136.-593229846.imp@bsdimp.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 08 Jul 2007 13:59:01 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 20:01:10 -0000 In message: "Xiaofan Chen" writes: : On 7/8/07, Xiaofan Chen wrote: : > On 7/8/07, M. Warner Losh wrote: : > > In message: : > > "Xiaofan Chen" writes: : > > : On 7/5/07, Hans Petter Selasky wrote: : > > : > > > > The chip does not handle a clear-stall request on the control pipe to : > > : > > > > clear-stall on the interrupt pipe. The result is that the interrupt : > > : > > > > pipe stops, or at least all buffers are cleared. : > > : > > > > : > > : : > > : The following is part of the usb firmware from Micrcohip. : > > : > > I never learned the details, but a client of mine was able to get : > > fixes from Microchip for their product. The exact problem was that : > > endpoint stall clearing didn't work for these devices and it was a : > > firmware bug. : > > : > : > Thanks a lot for the info. : > : > I ran the old USBCheck Version 5.10 with PICKit 2 and find out that it is : > true that PICKit 2 failed to respond to a clear STALL feature request for : > endpoint 0 (IN and OUT) even though it successfuly responded to the : > clear STALL request for endpoint 1 (IN and OUT). So I think this is a : > potential bug with the Microchip USB firmware framework. : > : > According to a reply from Microchip Forum: : > "There is a slight ambiguity in the USB spec concerning 'clear stall feature'. : > Endpoint 0 canot stall a request, so a request to unstall endpoint 0 is : > completely redundant. I recall that the required response is not clearly : > defined. Personally, I just accept the request and acknowledge it, but there : > is no real action to be taken. I guess other software writers have chosen a : > different path." : > : > Why FreeBSD sends out the clear stall feature request for PICKit 2? : > : : The following is the reply from Microchip Forum poster Pacer. : : "The Setup transaction cannot be stalled. However to indicate that the device : doesn't understand the request it may stall the data or status stage of a : control transfer. This is a 'protocol' stall, unique to control pipes, : so doesn't : need to be unstalled with a 'clear feature'. " : : Therefore it must be a 'protocol stall' and FreeBSD does not need to : send a clear feature request for the endpoint 0 to PICkit 2. I need to look it up, but I believe that a clear endpoint stall also resets the toggle, and that was the bug that was tracked down. : Am I right? I'm not sure. Remind me when is this clear endpoint stall sent? In 7.x we don't send one on pipe open unless the device is quirked to require one. On RELENG_6, at least as of today, we never send one on the open. Warner From owner-freebsd-usb@FreeBSD.ORG Mon Jul 9 11:08:53 2007 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A3C0416A4C9 for ; Mon, 9 Jul 2007 11:08:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 91BCA13C4BB for ; Mon, 9 Jul 2007 11:08:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l69B8rD7044982 for ; Mon, 9 Jul 2007 11:08:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l69B8pqd044975 for freebsd-usb@FreeBSD.org; Mon, 9 Jul 2007 11:08:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Jul 2007 11:08:52 GMT Message-Id: <200707091108.l69B8pqd044975@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 Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 11:08:53 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa o usb/91629 usb usbd_abort_pipe() may result in infinite loop 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/46176 usb [panic] umass causes kernel panic if device removed be o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/57085 usb [umass] umass0 problems, with Sony Vio/USB memory stic o bin/57255 usb usbd and multi-function devices o usb/62088 usb [usb] Logitech Cordless/Optical Mouse not working o usb/63621 usb [usb] USB MemoryStick Reader stalls/crashes system o usb/69006 usb [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [usb] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] mounting write-protected umass device as read/ o usb/75705 usb [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, But can not f o usb/76395 usb USB printer does not work, usbdevs says "addr 0 should o usb/77184 usb [panic] kernel panic on USB device disconnect o usb/77294 usb [ulpcom] [panic] ucom + ulpcom panic o usb/79269 usb USB ohci da0 plug/unplug causes crashes and lockups. o usb/79287 usb [uhci] UHCI hang after interrupt transfer o usb/79524 usb printing to Minolta PagePro 1[23]xxW via USB fails wit a usb/79656 usb [usb] RHSC interrupts lost o usb/79722 usb [usb] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/80361 usb [patch] mounting of usb-stick fails o usb/80829 usb possible panic when loading USB-modules o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/82350 usb [usb] null pointer dereference in USB stack o usb/82520 usb Reboot when USL101 connected s usb/82569 usb [usb] USB mass storage plug/unplug causes system panic o usb/82660 usb [umass] [panic] EHCI: I/O stuck in state 'physrd'/pani o usb/83563 usb [panic] Page Fault while detaching Mpman Usb device o usb/83677 usb [usb] usb controller often not detected (Sun W2100z) o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/86031 usb need support usb nic rt2500 in my 5.4 STABLE o usb/86767 usb [usb] [patch] bogus "slice starts beyond end of the di o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. o usb/88966 usb [modules] kldunload ucom.ko returns "Device busy" erro o usb/89003 usb LaCie Firewire drive not properly supported under 6.0 o usb/89954 usb [usb] USB Disk driver race condition? o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/91283 usb booting very slow with usb devices connection (regress o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91906 usb [hang] FreeBSD hangs while booting with USB legacy sup o usb/92052 usb [unlpt] usbd causes defunct process with busy file-han o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors from usb drivers o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93640 usb [irq] device ehci causes interrupt storm on this MSI a o usb/93828 usb [panic] ohci causes panic on boot (HP Pavillion d4100e o usb/94166 usb btx halted with a flashcard plugged o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94813 usb [umass] mounting write-protected umass device freezes o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/95131 usb [install] Boot/setup process does not accept key strok o usb/95348 usb [kbd] USB keyboard unplug causes noise on screen o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb o usb/95636 usb [boot] 5 minute delay at boot when using VT6205 based o usb/96120 usb [mouse] USB mouse not always detected o usb/96224 usb [usb] mount_msdosfs cause page fault in syncer process o usb/96457 usb [panic] fatback on umass = reboot o usb/97286 usb [mouse] MS Wireless Intellimouse Explorer 2.0 doesn't o usb/99431 usb [kbd] FreeBSD on MSI 6566E (Intel 845E motherboards) d o usb/101096 usb [if_ural] [panic] USB WLAN occasionally causes kernel- o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/102096 usb [patch] /usr/sbin/usbd does not handle multiple device o usb/103025 usb [usb] wrong detection of USB device for FreeBSD 6.1 an o usb/104292 usb [hang] system lockup on forced umount of usb-storage d o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/105186 usb USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106648 usb [hang] USB Floppy on D1950 10 min Hang on Insert w/o F o usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107827 usb [panic] ohci_add_done addr not found o usb/107848 usb [umass] cannot access Samsung flash disk o usb/107924 usb [patch] usbd(8) does not call detach o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE (regr o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/109397 usb [panic] on boot from USB flash o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/112568 usb USB mode may wrong when mounting Playstation Pro o usb/112631 usb [panic] Problem with SONY DSC-S80 camera o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/113478 usb [boot] FreeBSD could not start on Core2Duo notebook fr o usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 o usb/113851 usb [boot] Unable to boot install cd from USB-CDROM o usb/113977 usb [feature request] Need a way to set mode of USB disk's o usb/114310 usb [panic] USB hub attachment panics kernel during libusb 99 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem o usb/40948 usb [usb] USB HP CDW8200 does not work o usb/48342 usb [PATCH] usbd dynamic device list. f usb/51958 usb [urio] [patch] update for urio driver o usb/52026 usb [usb] feature request: umass driver support for InSyst f usb/54981 usb [patch] QUIRK: Add support for Lexar 256MB USB drive o usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fails to work o usb/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio o usb/62257 usb [umass] card reader UCR-61S2B is only half-supported o usb/63837 usb [uhid] [patch] USB: hid_is_collection() only looks for o usb/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops input on usb- o usb/66547 usb [usb] Palm Tungsten T USB does not initialize correctl o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/70523 usb [usb] [patch] umct sending/receiving wrong characters o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71455 usb [usb] Slow USB umass performance of 5.3 o usb/72380 usb [usb] USB does not work [dual Celeron Abit] o usb/72733 usb Kyocera 7135 Palm OS connection problem. o usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse not working in o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R f usb/74453 usb [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chip o usb/74557 usb imation 500mb usb key can only be written halfway on f o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75928 usb Cytronix SmartMedia card (SMC) reader has problems whe o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76732 usb Mouse problems with USB KVM Switch f usb/78984 usb [patch] Creative MUVO umass failure o usb/79723 usb [usb] prepare for high speed isochronous transfers o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80776 usb [udav] UDAV device driver shouldn't use usb_add_task o usb/80777 usb usb_rem_task() should wait for callback to complete? o usb/80854 usb suggestion for new iface-no-probe mechanism o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. f usb/81621 usb external hd hangs under load on ehci o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/85067 usb Cannot attach ScanJet 4300C to usb device o usb/85257 usb [boot] BTX boot loader fails on USB CDROM (HP DL145 Op o usb/86298 usb [mouse] Known good USB mouse won't work with correct s o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb [axe] axe0 read PHY failed o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb Compact Flash in HP Photosmart 2610 return " Medium n o usb/91896 usb Serial Number of USB Memory Sticks is not passed throu o usb/92852 usb [mouse] [patch] Vertical scroll not working properly o o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93872 usb [patch] SCSI quirk required for ELTA 8061 OL USB memor o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/95173 usb [umass] [patch] cannot mount external usb harddisk VIA o usb/96381 usb [patch] add a quirk table entry for a flash ram usb st o usb/97175 usb [hang] USB cardreader hangs system o usb/97472 usb [patch] add support for Olympus C150,D390 o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/99538 usb [kbd] while using USB keyboard default params of atkbd o usb/100746 usb [kbd] system does not boot due to USB keyboard problem o usb/101761 usb [patch] usb.h: increase maximal size of report descrip o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102678 usb [kbd] Dell PowerEdge DRAC5 USB Keyboard does not work o usb/102976 usb [panic] Casio Exilim Digital Camera cause panic o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103289 usb USB 2.0 problems on AMD LX-800 CPU and CS-5536 chipset o usb/103418 usb [usb] [patch] usbhidctl: add ability to write output a o usb/103917 usb USB driver reports "Addr 0 should never happen" o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104645 usb Rave C-201 MP3 player does not communicate o usb/105065 usb [sata] SATA - USB Bridge f usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/106041 usb FreeBSD does not recognise Mustek BearPaw 2400TA usb s o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze o usb/107243 usb [patch] Apacer USB Flash Drive quirk o usb/107388 usb [PATCH] Add utoppy device from NetBSD o usb/107496 usb USB device problem on RELENG_6_2 (SHORT_XFER) (regress o usb/107665 usb [usb] [patch] uscanner support for epson stylus DX5050 o usb/107701 usb [usbd] usbd ignores "detach" o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108509 usb [hang] FreeBSD hang at startup after ehci0 detected (C o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/110681 usb [ukbd] [patch] multiple keys will be repeated o usb/110991 usb [patch] QUIRK: Super Top IDE DEVICE (depends on usb/11 o usb/112461 usb [ehci] ehci USB 2.0 doesn't work on nforce4 o usb/112463 usb problem with Samsung USB DVD writer, libscg and FreeBS o usb/112944 usb [patch] Bi-directional access to HP LaserJet 1010 prin o usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/113432 usb WARNING: attempt to net_add_domain(netgraph) after dom o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/114068 usb [umass] [patch] Problems with connection of the umass 94 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Jul 9 13:08:46 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 39C9616A400; Mon, 9 Jul 2007 13:08:46 +0000 (UTC) (envelope-from kevlo@freebsd.org) Received: from ns.kevlo.org (kevlo.org [220.128.136.52]) by mx1.freebsd.org (Postfix) with ESMTP id B539413C45B; Mon, 9 Jul 2007 13:08:45 +0000 (UTC) (envelope-from kevlo@freebsd.org) Received: from [127.0.0.1] (ns.kevlo.org [220.128.136.52]) by ns.kevlo.org (8.14.1/8.14.1) with ESMTP id l69CdLrG001768; Mon, 9 Jul 2007 20:39:22 +0800 (CST) (envelope-from kevlo@freebsd.org) From: Kevin Lo To: Mark Linimon In-Reply-To: <200707060832.l668WtZf076811@freefall.freebsd.org> References: <200707060832.l668WtZf076811@freefall.freebsd.org> Content-Type: text/plain Date: Mon, 09 Jul 2007 20:34:34 +0800 Message-Id: <1183984474.5920.1.camel@monet> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: usb/107642: [patch] add Ralink Technology RT2501USB/RT2601USB chipset driver from OpenBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 13:08:46 -0000 Mark Linimon wrote: > Synopsis: [patch] add Ralink Technology RT2501USB/RT2601USB chipset driver from OpenBSD > > Responsible-Changed-From-To: freebsd-usb->kevlo > Responsible-Changed-By: linimon > Responsible-Changed-When: Fri Jul 6 08:30:46 UTC 2007 > Responsible-Changed-Why: > kevlo: is this an MFC candidate? If not, I will go ahead and close this PR. > Thanks. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=107642 No. Please close this PR, thanks. Kevin From owner-freebsd-usb@FreeBSD.ORG Mon Jul 9 16:35:55 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DF0F716A46B for ; Mon, 9 Jul 2007 16:35:55 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 0335A13C447 for ; Mon, 9 Jul 2007 16:35:54 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [212.17.141.53] (account mc467741@c2i.net HELO [10.150.99.181]) by mailfe02.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 543787224; Mon, 09 Jul 2007 18:35:51 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Mon, 9 Jul 2007 18:35:50 +0200 User-Agent: KMail/1.9.5 References: <200707051724.30175.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707091835.50445.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 16:35:56 -0000 On Sunday 08 July 2007 02:25, Xiaofan Chen wrote: > On 7/5/07, Hans Petter Selasky wrote: > > > > > The chip does not handle a clear-stall request on the control pipe > > > > > to clear-stall on the interrupt pipe. The result is that the > > > > > interrupt pipe stops, or at least all buffers are cleared. > > The following is part of the usb firmware from Micrcohip. > > Somehow it masks EP0 in the handler to SET & CLEAR FEATURES > requesrs. Is this the problem? > > if((SetupPkt.bFeature == ENDPOINT_HALT)&& > (SetupPkt.Recipient == RCPT_EP)&& > (SetupPkt.EPNum != 0)) > > > /************************************************************************** >**** * Function: void USBStdFeatureReqHandler(void) > * > * PreCondition: None > * > * Input: None > * > * Output: None > * > * Side Effects: None > * > * Overview: This routine handles the standard SET & CLEAR FEATURES > * requests > * > * Note: None > > *************************************************************************** >**/ void USBStdFeatureReqHandler(void) > { > if((SetupPkt.bFeature == DEVICE_REMOTE_WAKEUP)&& > (SetupPkt.Recipient == RCPT_DEV)) > { > ctrl_trf_session_owner = MUID_USB9; > if(SetupPkt.bRequest == SET_FEATURE) > usb_stat.RemoteWakeup = 1; > else > usb_stat.RemoteWakeup = 0; > }//end if > > if((SetupPkt.bFeature == ENDPOINT_HALT)&& > (SetupPkt.Recipient == RCPT_EP)&& > (SetupPkt.EPNum != 0)) > { > ctrl_trf_session_owner = MUID_USB9; > /* Must do address calculation here */ > pDst.bRam = (byte*)&ep0Bo+(SetupPkt.EPNum*8)+(SetupPkt.EPDir*4); > > if(SetupPkt.bRequest == SET_FEATURE) > *pDst.bRam = _USIE|_BSTALL; > else > { > if(SetupPkt.EPDir == 1) // IN > *pDst.bRam = _UCPU; > else > *pDst.bRam = _USIE|_DAT0|_DTSEN; > }//end if > }//end if > }//end USBStdFeatureReqHandler > Perhaps what happens is that the "*pDst.bRam = _UCPU;" command clears the FIFO contents of the USB interrupt endpoint in addition to clearing the stall!? If the sequence is like this: Write to interrupt endpoint. Reply command is written to FIFO. Clear interrupt endpoint stall. There is no data to read, because the FIFO has been emptied as a part of the stall command. Xiaofan Chen: Could you check the datasheet for the chip that is used, what the stall command actually does? --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jul 9 17:54:56 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 90E5316A400 for ; Mon, 9 Jul 2007 17:54:56 +0000 (UTC) (envelope-from pldrouin@cyberfingers.net) Received: from smtp.cyberfingers.net (smtp.cyberfingers.net [198.177.254.227]) by mx1.freebsd.org (Postfix) with ESMTP id 7032013C45D for ; Mon, 9 Jul 2007 17:54:56 +0000 (UTC) (envelope-from pldrouin@cyberfingers.net) Received: from [134.117.23.170] (pldrouinlap-pc.physics.carleton.ca [134.117.23.170]) by smtp.cyberfingers.net (Postfix) with ESMTP id 9EED3170088 for ; Mon, 9 Jul 2007 13:34:02 -0400 (EDT) Message-ID: <4692717C.9090901@cyberfingers.net> Date: Mon, 09 Jul 2007 13:33:48 -0400 From: Pierre-Luc Drouin User-Agent: Thunderbird 2.0.0.4 (X11/20070626) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Problem with libusb on FreeBSD? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 17:54:56 -0000 Hi, I'm trying to use GPSBabel on FreeBSD 6.2-STABLE with a Garmin Edge 305 hooked to the USB port and it looks like usb_bulk_write does not work properly. This is what I get when I try to get waypoints with GPSBabel: gpsbabel -D9 -i garmin -f usb: -o gpx -F blah.gpx GPSBabel Version: 1.3.3 Bad cmdsend r -5 sz 12 usb_bulk_write failed. 'error writing to bulk endpoint /dev/ugen1.2: Input/output error' gpsbabel in free(): error: junk pointer, too high to make sense Abort (core dumped) I have looked through the GPSBabel code and it looks like it is failing at the very first call of usb_bulk_write() when the initialization packet is sent to the device. Is this a known bug with libusb on FreeBSD 6.2? Thanks! Pierre-Luc Drouin From owner-freebsd-usb@FreeBSD.ORG Mon Jul 9 21:07:04 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C677D16A41F; Mon, 9 Jul 2007 21:07:04 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 24A2E13C4B0; Mon, 9 Jul 2007 21:07:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l69L6q1W064323; Mon, 9 Jul 2007 17:06:55 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Hans Petter Selasky Date: Mon, 9 Jul 2007 15:34:43 -0400 User-Agent: KMail/1.9.6 References: <200707040901.33019.hselasky@c2i.net> <200707061641.36396.jhb@freebsd.org> <200707071814.24578.hselasky@c2i.net> In-Reply-To: <200707071814.24578.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707091534.44421.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 09 Jul 2007 17:06:55 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/3616/Mon Jul 9 15:27:14 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org, freebsd-usb@freebsd.org Subject: Re: New USB stack and Zero copy. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 21:07:04 -0000 On Saturday 07 July 2007 12:14:24 pm Hans Petter Selasky wrote: > On Friday 06 July 2007 22:41, John Baldwin wrote: > > On Friday 06 July 2007 02:59:39 am Hans Petter Selasky wrote: > > > On Friday 06 July 2007 01:35, John Baldwin wrote: > > > > On Thursday 05 July 2007 04:25:17 pm John Baldwin wrote: > > > > > On Thursday 05 July 2007 03:31:59 am Hans Petter Selasky wrote: > > > > > > On Wednesday 04 July 2007 19:35, John-Mark Gurney wrote: > > > > > > > Hans Petter Selasky wrote this message on Wed, Jul 04, 2007 at > > > > > Huh? The bounce pages are preallocated, so bus_dmamap_load() isn't going > > to be allocating things. > > When are they allocated ? UTSL. bus_dma_tag_create() (if you pass BUS_DMA_ALLOCNOW) or bus_dmamap_create() for the first map belonging to a tag. -- John Baldwin From owner-freebsd-usb@FreeBSD.ORG Mon Jul 9 21:45:23 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B88C16A421 for ; Mon, 9 Jul 2007 21:45:23 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from solow.pil.dk (relay.pil.dk [195.41.47.164]) by mx1.freebsd.org (Postfix) with ESMTP id 1254913C4AE for ; Mon, 9 Jul 2007 21:45:23 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from tirith.brixandersen.dk (osgiliath.brixandersen.dk [87.53.223.189]) by solow.pil.dk (Postfix) with ESMTP id 6A5781CC0B6 for ; Mon, 9 Jul 2007 23:24:39 +0200 (CEST) Received: by tirith.brixandersen.dk (Postfix, from userid 1001) id D3F7DB834; Mon, 9 Jul 2007 23:24:38 +0200 (CEST) Date: Mon, 9 Jul 2007 23:24:38 +0200 From: Henrik Brix Andersen To: freebsd-usb@freebsd.org Message-ID: <20070709212438.GA56079@tirith.brixandersen.dk> Mail-Followup-To: freebsd-usb@freebsd.org References: <4692717C.9090901@cyberfingers.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline In-Reply-To: <4692717C.9090901@cyberfingers.net> X-PGP-Key: http://www.brixandersen.dk/files/HenrikBrixAndersen.asc User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: Problem with libusb on FreeBSD? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 21:45:23 -0000 --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 09, 2007 at 01:33:48PM -0400, Pierre-Luc Drouin wrote: > I have looked through the GPSBabel code and it looks like it is failing a= t=20 > the very first call of usb_bulk_write() when the initialization packet is= =20 > sent to the device. > Is this a known bug with libusb on FreeBSD 6.2? Just a quick suggestion - do you have rw access to the ugen(4) device node(s)? This is often overlooked, it seems. FWIW, I am using usb_bulk_write() in quite a few local projects without any problems. Regards, Brix --=20 Henrik Brix Andersen --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: GnuPG signed iD8DBQFGkqeWv+Q4flTiePgRAhxrAJ4vVWNAHlk8R/2FmUK188dLGJRB5QCfXXu/ kUsYP1rbXB/zf7yz9upBvrs= =0WPR -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB-- From owner-freebsd-usb@FreeBSD.ORG Mon Jul 9 22:09:23 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 21EF416A46C for ; Mon, 9 Jul 2007 22:09:23 +0000 (UTC) (envelope-from pldrouin@cyberfingers.net) Received: from smtp.cyberfingers.net (smtp.cyberfingers.net [198.177.254.227]) by mx1.freebsd.org (Postfix) with ESMTP id F3E7D13C465 for ; Mon, 9 Jul 2007 22:09:22 +0000 (UTC) (envelope-from pldrouin@cyberfingers.net) Received: from [134.117.23.170] (pldrouinlap-pc.physics.carleton.ca [134.117.23.170]) by smtp.cyberfingers.net (Postfix) with ESMTP id 48CB0170050 for ; Mon, 9 Jul 2007 18:09:18 -0400 (EDT) Message-ID: <4692B20A.5060008@cyberfingers.net> Date: Mon, 09 Jul 2007 18:09:14 -0400 From: Pierre-Luc Drouin User-Agent: Thunderbird 2.0.0.4 (X11/20070626) MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <4692717C.9090901@cyberfingers.net> <20070709212438.GA56079@tirith.brixandersen.dk> In-Reply-To: <20070709212438.GA56079@tirith.brixandersen.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Problem with libusb on FreeBSD? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 22:09:23 -0000 Yep, I have tried to run GPSBabel both as a normal user and as root. Henrik Brix Andersen wrote: > On Mon, Jul 09, 2007 at 01:33:48PM -0400, Pierre-Luc Drouin wrote: > >> I have looked through the GPSBabel code and it looks like it is failing at >> the very first call of usb_bulk_write() when the initialization packet is >> sent to the device. >> Is this a known bug with libusb on FreeBSD 6.2? >> > > Just a quick suggestion - do you have rw access to the ugen(4) device > node(s)? This is often overlooked, it seems. > > FWIW, I am using usb_bulk_write() in quite a few local projects > without any problems. > > Regards, > Brix > From owner-freebsd-usb@FreeBSD.ORG Tue Jul 10 01:27:44 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CCA4A16A421 for ; Tue, 10 Jul 2007 01:27:44 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by mx1.freebsd.org (Postfix) with ESMTP id A78CC13C480 for ; Tue, 10 Jul 2007 01:27:44 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id j37so1624199waf for ; Mon, 09 Jul 2007 18:27:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IoLB+UzYnUgJ33itby/5PkWVidUMj2NVS9x6FK5VExwXWwlBdqrJhe1/NgxunNgAe79loeb+JGpXsM09QKDomQcy7ciFUylHaH8gnkekaJyeKR7FKpeEUf21NnJwcPpBpaTEHDE+KWV5WzxzGjqtTd7DTVi+rwe84oFyzNDSw2E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=npyEkfO016TOTZ3iFbUI6mdgGp8f2F/kvkg9jLAH8kYxxj/Oou5DWiwoJ8GzYDbCquhkqYxXXbhAw8Hpv5/22kFwJOdbTPZZlSa5ArO6cJG0z5Ry4tJPZAjHWwRuMm1g2m2pawYb71HQZ6hOQX9GM8Vrn+YjbZUGCeqofLaUy1s= Received: by 10.115.22.1 with SMTP id z1mr3681991wai.1184030863864; Mon, 09 Jul 2007 18:27:43 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Mon, 9 Jul 2007 18:27:43 -0700 (PDT) Message-ID: Date: Mon, 9 Jul 2007 21:27:43 -0400 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200707091835.50445.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200707051724.30175.hselasky@c2i.net> <200707091835.50445.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 01:27:45 -0000 On 7/9/07, Hans Petter Selasky wrote: > > Perhaps what happens is that the "*pDst.bRam = _UCPU;" > command clears the FIFO > contents of the USB interrupt endpoint in addition to clearing the stall!? > > If the sequence is like this: > > Write to interrupt endpoint. > Reply command is written to FIFO. > Clear interrupt endpoint stall. > There is no data to read, because the FIFO has been emptied as a part of the > stall command. > > Xiaofan Chen: Could you check the datasheet for the chip that is used, what > the stall command actually does? I need to look further but what you mentioned seem to make sense. "*pDst.bRam = _UCPU" seems to clear the buffer. The following are the definitions for for the Buffer Descriptor Status Register. /* Buffer Descriptor Status Register Initialization Parameters */ #define _BSTALL 0x04 //Buffer Stall enable #define _DTSEN 0x08 //Data Toggle Synch enable #define _INCDIS 0x10 //Address increment disable #define _KEN 0x20 //SIE keeps buff descriptors enable #define _DAT0 0x00 //DATA0 packet expected next #define _DAT1 0x40 //DATA1 packet expected next #define _DTSMASK 0x40 //DTS Mask #define _USIE 0x80 //SIE owns buffer #define _UCPU 0x00 //CPU owns buffer FYI: Datasheet of PIC18F2550 USB MCU: http://ww1.microchip.com/downloads/en/DeviceDoc/39632D.pdf bit 7 UOWN: USB Own bit(1) 0 = The microcontroller core owns the BD and its corresponding buffer 1 = SIE owns the BD and its corresponding buffer Note: This bit must be initialized by the user to the desired value prior to enabling the USB module. bit 6 DTS: Data Toggle Synchronization bit(2) 1 = Data 1 packet 0 = Data 0 packet Note: This bit is ignored unless DTSEN = 1 bit 5 KEN: BD Keep Enable bit 1 = USB will keep the BD indefinitely once UOWN is set (required for SPP endpoint configuration) 0 = USB will hand back the BD once a token has been processed bit 4 INCDIS: Address Increment Disable bit 1 = Address increment disabled (required for SPP endpoint configuration) 0 = Address increment enabled bit 3 DTSEN: Data Toggle Synchronization Enable bit 1 = Data toggle synchronization is enabled; data packets with incorrect Sync value will be ignored except for a SETUP transaction, which is accepted even if the data toggle bits do not match 0 = No data toggle synchronization is performed bit 2 BSTALL: Buffer Stall Enable bit 1 = Buffer stall enabled; STALL handshake issued if a token is received that would use the BD in the given location (UOWN bit remains set, BD value is unchanged) 0 = Buffer stall disabled bit 1-0 BC9:BC8: Byte Count 9 and 8 bits The byte count bits represent the number of bytes that will be transmitted for an IN token or received during an OUT token. Together with BC<7:0>, the valid byte counts are 0-1023. What Warner mentioned before might also be correct. On 7/8/07, M. Warner Losh wrote: > : > > I never learned the details, but a client of mine was able to get > : > > fixes from Microchip for their product. The exact problem was that > : > > endpoint stall clearing didn't work for these devices and it was a > : > > firmware bug. > I need to look it up, but I believe that a clear endpoint stall also > resets the toggle, and that was the bug that was tracked down. > FYI: the Firmware source code for PICkit 2, an HID device is here. http://ww1.microchip.com/downloads/en/DeviceDoc/FirmwareV2.10.00.zip I am still in the process of understanding the firmware so I may misunderstand something. But I will try to dig further. Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Tue Jul 10 02:25:39 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A949316A46B for ; Tue, 10 Jul 2007 02:25:39 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id 84A4E13C447 for ; Tue, 10 Jul 2007 02:25:39 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id j37so1639293waf for ; Mon, 09 Jul 2007 19:25:39 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oUmMncJAsxssS6PYPouuoSwOyV87GFwVKUH2Bcj/9cfN8KeLezhM8NLbY3asT0XlFJe4mf92dmEWpVUjke9IFvmxQUJ9g+229/lnWkIDF/56VCrLfMRl8NyDf3p0vHi0IkVFSpkwgj3fbvoJ8XB6S0rl1kj4DX/vXOro/rTfs/0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nCtDq3InQr7QCv9lCvRupIB/7ziKKGiOg7iwHelMC1dWklbuhLK+BTLAU778/b+BhW7c7aoNa/71wzes/4CTk6nrwOvdMdd0QWs0BLjdm8m+w1xZ/MMWIcKJpOXEY7gcdQdR3TVKCo/I8pvcZaKGLB8FLQhuSJ7Efgsb8QjnD4o= Received: by 10.114.121.1 with SMTP id t1mr3727166wac.1184034339143; Mon, 09 Jul 2007 19:25:39 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Mon, 9 Jul 2007 19:25:39 -0700 (PDT) Message-ID: Date: Mon, 9 Jul 2007 22:25:39 -0400 From: "Xiaofan Chen" To: "Pierre-Luc Drouin" In-Reply-To: <4692717C.9090901@cyberfingers.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4692717C.9090901@cyberfingers.net> Cc: freebsd-usb@freebsd.org Subject: Re: Problem with libusb on FreeBSD? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 02:25:39 -0000 On 7/9/07, Pierre-Luc Drouin wrote: > I have looked through the GPSBabel code and it looks like it is failing at the very first call of usb_bulk_write() when the initialization packet is sent to the device. > Is this a known bug with libusb on FreeBSD 6.2? > Maybe you can try the new USB stack by Hans. I've problems to get PICkit 2 working under the original USB stack with libusb. With Hans's new USB stack, it is working on FreeBSD 6.2. Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Tue Jul 10 03:46:30 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D3DFC16A46D for ; Tue, 10 Jul 2007 03:46:30 +0000 (UTC) (envelope-from pldrouin@cyberfingers.net) Received: from smtp.cyberfingers.net (smtp.cyberfingers.net [198.177.254.227]) by mx1.freebsd.org (Postfix) with ESMTP id B048B13C45E for ; Tue, 10 Jul 2007 03:46:30 +0000 (UTC) (envelope-from pldrouin@cyberfingers.net) Received: from ldaemon.pldrouin.net (modemcable090.40-56-74.mc.videotron.ca [74.56.40.90]) by smtp.cyberfingers.net (Postfix) with ESMTP id AC4D717001B for ; Mon, 9 Jul 2007 23:46:25 -0400 (EDT) Message-ID: <4693010E.2000107@cyberfingers.net> Date: Mon, 09 Jul 2007 23:46:22 -0400 From: Pierre-Luc Drouin User-Agent: Thunderbird 2.0.0.4 (X11/20070618) MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <4692717C.9090901@cyberfingers.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Problem with libusb on FreeBSD? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 03:46:30 -0000 I have tried the new stack and I still get the same error... Thanks P-L Xiaofan Chen wrote: > On 7/9/07, Pierre-Luc Drouin wrote: >> I have looked through the GPSBabel code and it looks like it is >> failing at the very first call of usb_bulk_write() when the >> initialization packet is sent to the device. >> Is this a known bug with libusb on FreeBSD 6.2? >> > > Maybe you can try the new USB stack by Hans. I've problems to get PICkit > 2 working under the original USB stack with libusb. With Hans's new USB > stack, it is working on FreeBSD 6.2. > > Regards, > Xiaofan From owner-freebsd-usb@FreeBSD.ORG Tue Jul 10 15:15:42 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0D12F16A400; Tue, 10 Jul 2007 15:15:42 +0000 (UTC) (envelope-from virgem@g.com.ua) Received: from Stalker.g.com.ua (stalker.g.com.ua [193.111.248.1]) by mx1.freebsd.org (Postfix) with ESMTP id 1C1B513C457; Tue, 10 Jul 2007 15:15:40 +0000 (UTC) (envelope-from virgem@g.com.ua) Received: from anyhost.anywhere (248-199.dialup.g.com.ua [193.111.248.199]) by Stalker.g.com.ua (8.13.8/8.13.8) with ESMTP id l6A8t0VA004924; Tue, 10 Jul 2007 11:55:02 +0300 (EEST) Date: Tue, 10 Jul 2007 12:00:12 +0300 To: bug-followup@freebsd.org, virgem@g.com.ua, linimon@freebsd.org, freebsd-usb@freebsd.org, andrew@dobrohot.org From: virgem Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: User-Agent: Opera Mail/9.21 (FreeBSD) Cc: Subject: Re: usb/74211: [umass] USB flash drive causes CAM status 0x4 on 4.10Release X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 15:15:42 -0000 Hello! Now I tray using the same USB Flash Drive on FreeBSD 6.2 Release #0 = (i386), but on another hardware. And I have got a following massage: vendor 0x04e8 USB DRIVE, rev 1.10/0.50, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DRIVE 1.13> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 dmesg showed this (comletely of USB): . . . uhci0: port 0xd400-0xd41f irq 5 at device = 7.2 = on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd800-0xd81f irq 5 at device = 7.3 = on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered . . . umass0: vendor 0x04e8 USB DRIVE, rev 1.10/0.50, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DRIVE 1.13> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: at uhub1 port 2 (addr 2) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry umass0: detached umass0: vendor 0x04e8 USB DRIVE, rev 1.10/0.50, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DRIVE 1.13> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: at uhub0 port 1 (addr 2) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry umass0: detached umass0: vendor 0x04e8 USB DRIVE, rev 1.10/0.50, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DRIVE 1.13> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 # usbdevs -d -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = VIA(0x0000), rev 1.00 uhub0 port 1 addr 2: full speed, power 500 mA, config 1, USB DRIVE(0x0110), = = vendor 0x04e8(0x04e8), rev 0.50 umass0 port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = VIA(0x0000), rev 1.00 uhub1 port 1 powered port 2 powered # mount -t msdos /dev/da0s1 /mnt # umount /mnt umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 When it mounting on, I can read and write files on this USB Fash disck= . I have GENERIC (i386) kernel installed on. If I tray using this USB Flash Drive on another hardware with FreeBSD = 6.2 = Release #0 (amd64), I have got a following massages: umass0: vendor 0x04e8 USB DRIVE, rev 2.00/0.50, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DRIVE 1.13> Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 dmesg showed this (comletely of USB): . . . ohci0: mem 0xfe02f000-0xfe02ffff irq 2= 1 = at device 11.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 8 ports with 8 removable, self powered ehci0: mem 0xfe02e000-0xfe02e0ff i= rq = 22 at device 11.1 on pci0 ehci0: [GIANT-LOCKED] usb1: EHCI version 1.0 usb1: companion controller, 8 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub1: 8 ports with 8 removable, self powered . . . umass0: vendor 0x04e8 USB DRIVE, rev 2.00/0.50, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DRIVE 1.13> Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 # usbdevs -d -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), = nVidia(0x0000), rev 1.00 uhub0 port 1 powered port 2 powered port 3 addr 2: full speed, self powered, config 1, Lexmark Z600 = Series(0x0078), Lexmark(0x043d), rev 1.00 ulpt0 port 4 powered port 5 powered port 6 powered port 7 powered port 8 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), = nVidia(0x0000), rev 1.00 uhub1 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 addr 2: high speed, power 500 mA, config 1, USB DRIVE(0x0110), = = vendor 0x04e8(0x04e8), rev 0.50 umass0 port 7 powered port 8 powered # mount -t msdos /dev/da0s1 /mnt # umount /mnt umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 When it mounting on, I can read and write files on this USB Fash disck= , = to. I have GENERIC (amd64) kernel installed on, to. However, I have got another USB Flash Disck stick, and it working with= out = any errors on my hardware and software. When I plug this one in, I have got this messages for i386: umass0: vendor 0x1005 USB FLASH DRIVE, rev 2.00/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB FLASH DRIVE 34CD> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 980MB (2007040 512 byte sectors: 64H 32S/T 980C) # usbdevs -d -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = VIA(0x0000), rev 1.00 uhub0 port 1 addr 2: full speed, power 200 mA, config 1, USB FLASH = DRIVE(0xb113), vendor 0x1005(0x1005), rev 1.00 umass0 port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = VIA(0x0000), rev 1.00 uhub1 port 1 powered port 2 powered # mount -t msdos /dev/da0s1 /mnt # umount /mnt And for amd64 this ones: umass0: vendor 0x1005 USB FLASH DRIVE, rev 2.00/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB FLASH DRIVE 34CD> Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 980MB (2007040 512 byte sectors: 64H 32S/T 980C) # usbdevs -d -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), = nVidia(0x0000), rev 1.00 uhub0 port 1 powered port 2 powered port 3 addr 2: full speed, self powered, config 1, Lexmark Z600 = Series(0x0078), Lexmark(0x043d), rev 1.00 ulpt0 port 4 powered port 5 powered port 6 powered port 7 powered port 8 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), = nVidia(0x0000), rev 1.00 uhub1 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 addr 2: high speed, power 200 mA, config 1, USB FLASH = DRIVE(0xb113), vendor 0x1005(0x1005), rev 1.00 umass0 port 7 powered port 8 powered # mount -t msdos /dev/da0s1 /mnt # umount /mnt So, my USB Flash Drive disck (that was truobled on FreeBSD 4.10 Releas= e = #3 (i386)) going working (with some error messages) on FreeBSD 6.2 Release #0 (i386) as well as= on = FreeBSD 6.2 Release #0 (amd64) to. I hope this information will hepl to fix same problems with USB device= s. Best regards! Alexei Tlokachev. Ukraine. 10.07.07 From owner-freebsd-usb@FreeBSD.ORG Tue Jul 10 15:20:10 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E4FE16A46C for ; Tue, 10 Jul 2007 15:20:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7081D13C465 for ; Tue, 10 Jul 2007 15:20:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l6AFK923097792 for ; Tue, 10 Jul 2007 15:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l6AFK9BZ097791; Tue, 10 Jul 2007 15:20:09 GMT (envelope-from gnats) Date: Tue, 10 Jul 2007 15:20:09 GMT Message-Id: <200707101520.l6AFK9BZ097791@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: virgem Cc: Subject: Re: usb/74211: [umass] USB flash drive causes CAM status 0x4 on 4.10Release X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: virgem List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 15:20:10 -0000 The following reply was made to PR usb/74211; it has been noted by GNATS. From: virgem To: bug-followup@freebsd.org, virgem@g.com.ua, linimon@freebsd.org, freebsd-usb@freebsd.org, andrew@dobrohot.org Cc: Subject: Re: usb/74211: [umass] USB flash drive causes CAM status 0x4 on 4.10Release Date: Tue, 10 Jul 2007 12:00:12 +0300 Hello! Now I tray using the same USB Flash Drive on FreeBSD 6.2 Release #0 = (i386), but on another hardware. And I have got a following massage: vendor 0x04e8 USB DRIVE, rev 1.10/0.50, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DRIVE 1.13> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 dmesg showed this (comletely of USB): . . . uhci0: port 0xd400-0xd41f irq 5 at device = 7.2 = on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd800-0xd81f irq 5 at device = 7.3 = on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered . . . umass0: vendor 0x04e8 USB DRIVE, rev 1.10/0.50, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DRIVE 1.13> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: at uhub1 port 2 (addr 2) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry umass0: detached umass0: vendor 0x04e8 USB DRIVE, rev 1.10/0.50, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DRIVE 1.13> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: at uhub0 port 1 (addr 2) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry umass0: detached umass0: vendor 0x04e8 USB DRIVE, rev 1.10/0.50, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DRIVE 1.13> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 # usbdevs -d -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = VIA(0x0000), rev 1.00 uhub0 port 1 addr 2: full speed, power 500 mA, config 1, USB DRIVE(0x0110), = = vendor 0x04e8(0x04e8), rev 0.50 umass0 port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = VIA(0x0000), rev 1.00 uhub1 port 1 powered port 2 powered # mount -t msdos /dev/da0s1 /mnt # umount /mnt umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 When it mounting on, I can read and write files on this USB Fash disck= . I have GENERIC (i386) kernel installed on. If I tray using this USB Flash Drive on another hardware with FreeBSD = 6.2 = Release #0 (amd64), I have got a following massages: umass0: vendor 0x04e8 USB DRIVE, rev 2.00/0.50, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DRIVE 1.13> Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 dmesg showed this (comletely of USB): . . . ohci0: mem 0xfe02f000-0xfe02ffff irq 2= 1 = at device 11.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 8 ports with 8 removable, self powered ehci0: mem 0xfe02e000-0xfe02e0ff i= rq = 22 at device 11.1 on pci0 ehci0: [GIANT-LOCKED] usb1: EHCI version 1.0 usb1: companion controller, 8 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub1: 8 ports with 8 removable, self powered . . . umass0: vendor 0x04e8 USB DRIVE, rev 2.00/0.50, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DRIVE 1.13> Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C) umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 # usbdevs -d -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), = nVidia(0x0000), rev 1.00 uhub0 port 1 powered port 2 powered port 3 addr 2: full speed, self powered, config 1, Lexmark Z600 = Series(0x0078), Lexmark(0x043d), rev 1.00 ulpt0 port 4 powered port 5 powered port 6 powered port 7 powered port 8 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), = nVidia(0x0000), rev 1.00 uhub1 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 addr 2: high speed, power 500 mA, config 1, USB DRIVE(0x0110), = = vendor 0x04e8(0x04e8), rev 0.50 umass0 port 7 powered port 8 powered # mount -t msdos /dev/da0s1 /mnt # umount /mnt umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 umass0: Phase Error, residue =3D 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, s= csi = status =3D=3D 0x0 When it mounting on, I can read and write files on this USB Fash disck= , = to. I have GENERIC (amd64) kernel installed on, to. However, I have got another USB Flash Disck stick, and it working with= out = any errors on my hardware and software. When I plug this one in, I have got this messages for i386: umass0: vendor 0x1005 USB FLASH DRIVE, rev 2.00/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB FLASH DRIVE 34CD> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 980MB (2007040 512 byte sectors: 64H 32S/T 980C) # usbdevs -d -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = VIA(0x0000), rev 1.00 uhub0 port 1 addr 2: full speed, power 200 mA, config 1, USB FLASH = DRIVE(0xb113), vendor 0x1005(0x1005), rev 1.00 umass0 port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), = VIA(0x0000), rev 1.00 uhub1 port 1 powered port 2 powered # mount -t msdos /dev/da0s1 /mnt # umount /mnt And for amd64 this ones: umass0: vendor 0x1005 USB FLASH DRIVE, rev 2.00/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB FLASH DRIVE 34CD> Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 980MB (2007040 512 byte sectors: 64H 32S/T 980C) # usbdevs -d -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), = nVidia(0x0000), rev 1.00 uhub0 port 1 powered port 2 powered port 3 addr 2: full speed, self powered, config 1, Lexmark Z600 = Series(0x0078), Lexmark(0x043d), rev 1.00 ulpt0 port 4 powered port 5 powered port 6 powered port 7 powered port 8 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), = nVidia(0x0000), rev 1.00 uhub1 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 addr 2: high speed, power 200 mA, config 1, USB FLASH = DRIVE(0xb113), vendor 0x1005(0x1005), rev 1.00 umass0 port 7 powered port 8 powered # mount -t msdos /dev/da0s1 /mnt # umount /mnt So, my USB Flash Drive disck (that was truobled on FreeBSD 4.10 Releas= e = #3 (i386)) going working (with some error messages) on FreeBSD 6.2 Release #0 (i386) as well as= on = FreeBSD 6.2 Release #0 (amd64) to. I hope this information will hepl to fix same problems with USB device= s. Best regards! Alexei Tlokachev. Ukraine. 10.07.07 From owner-freebsd-usb@FreeBSD.ORG Tue Jul 10 20:10:06 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 99F4C16A41F for ; Tue, 10 Jul 2007 20:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 76E0213C455 for ; Tue, 10 Jul 2007 20:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l6AKA64r034687 for ; Tue, 10 Jul 2007 20:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l6AKA6u6034686; Tue, 10 Jul 2007 20:10:06 GMT (envelope-from gnats) Resent-Date: Tue, 10 Jul 2007 20:10:06 GMT Resent-Message-Id: <200707102010.l6AKA6u6034686@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Robert Noland" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 950E016A469 for ; Tue, 10 Jul 2007 20:08:49 +0000 (UTC) (envelope-from rnoland@2hip.net) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 5664613C45B for ; Tue, 10 Jul 2007 20:08:49 +0000 (UTC) (envelope-from rnoland@2hip.net) Received: from rnoland-ibm.acs.internap.com (rnoland-ibm.acs.internap.com [63.251.67.21]) (authenticated bits=0) by gizmo.2hip.net (8.13.8/8.13.8) with ESMTP id l6AJmhM8086053 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 10 Jul 2007 15:48:43 -0400 (EDT) (envelope-from rnoland@2hip.net) Received: from rnoland-ibm.acs.internap.com (localhost.acs.internap.com [127.0.0.1]) by rnoland-ibm.acs.internap.com (8.14.1/8.14.1) with ESMTP id l6AJmFut001598 for ; Tue, 10 Jul 2007 15:48:38 -0400 (EDT) (envelope-from rnoland@2hip.net) Message-Id: <1184096918.1488@rnoland-ibm.acs.internap.com> Date: Tue, 10 Jul 2007 15:48:38 -0400 From: "Robert Noland" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.8 Cc: Subject: usb/114481: Add additional product id and quirks entry for MetaGeek Wi-Spy X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 20:10:06 -0000 >Number: 114481 >Category: usb >Synopsis: Add additional product id and quirks entry for MetaGeek Wi-Spy >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 10 20:10:05 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Robert Noland >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD 7.0-CURRENT #101: Tue Jul 10 15:23:03 EDT 2007 root@rnoland-ibm.2hip.net:/usr/obj/usr/src/sys/IBM >Description: Add additional id and quirk for MetaGeek Wi-Spy. (Prevents it from being detected as ukbd) >How-To-Repeat: >Fix: --- wispy.patch begins here --- --- usbdevs.orig 2007-07-10 15:17:00.000000000 -0400 +++ usbdevs 2007-07-10 15:19:11.000000000 -0400 @@ -1556,6 +1556,9 @@ product MELCO SG54HP 0x00d8 WLI-U2-SG54HP product MELCO G54HP 0x00d9 WLI-U2-G54HP +/* MetaGeek products */ +product METAGEEK WISPY 0x083e MetaGeek Wi-Spy + /* Metricom products */ product METRICOM RICOCHET_GS 0x0001 Ricochet GS --- usb_quirks.c.orig 2007-07-10 15:17:22.000000000 -0400 +++ usb_quirks.c 2007-07-10 15:20:19.000000000 -0400 @@ -108,6 +108,8 @@ /* Devices which should be ignored by both ukbd and uhid */ { USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_WISPY, ANY, { UQ_KBD_IGNORE }}, + { USB_VENDOR_METAGEEK, USB_PRODUCT_METAGEEK_WISPY, + ANY, { UQ_KBD_IGNORE }}, { 0, 0, 0, { 0 } } }; --- wispy.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Jul 10 21:01:09 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F9C516A41F; Tue, 10 Jul 2007 21:01:09 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 677CE13C45B; Tue, 10 Jul 2007 21:01:09 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from freefall.freebsd.org (imp@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l6AL19Ar042315; Tue, 10 Jul 2007 21:01:09 GMT (envelope-from imp@freefall.freebsd.org) Received: (from imp@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l6AL19Bd042311; Tue, 10 Jul 2007 15:01:09 -0600 (MDT) (envelope-from imp) Date: Tue, 10 Jul 2007 15:01:09 -0600 (MDT) From: Warner Losh Message-Id: <200707102101.l6AL19Bd042311@freefall.freebsd.org> To: rnoland@2hip.net, imp@FreeBSD.org, freebsd-usb@FreeBSD.org, imp@FreeBSD.org Cc: Subject: Re: usb/114481: Add additional product id and quirks entry for MetaGeek Wi-Spy X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 21:01:09 -0000 Synopsis: Add additional product id and quirks entry for MetaGeek Wi-Spy State-Changed-From-To: open->patched State-Changed-By: imp State-Changed-When: Tue Jul 10 15:00:26 MDT 2007 State-Changed-Why: Applied to current. Responsible-Changed-From-To: freebsd-usb->imp Responsible-Changed-By: imp Responsible-Changed-When: Tue Jul 10 15:00:26 MDT 2007 Responsible-Changed-Why: Applied to current. http://www.freebsd.org/cgi/query-pr.cgi?pr=114481 From owner-freebsd-usb@FreeBSD.ORG Tue Jul 10 21:54:25 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A3B6F16A469; Tue, 10 Jul 2007 21:54:25 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7ABF113C44B; Tue, 10 Jul 2007 21:54:25 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l6ALsPcd049960; Tue, 10 Jul 2007 21:54:25 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l6ALsOUQ049956; Tue, 10 Jul 2007 21:54:24 GMT (envelope-from linimon) Date: Tue, 10 Jul 2007 21:54:24 GMT From: Mark Linimon Message-Id: <200707102154.l6ALsOUQ049956@freefall.freebsd.org> To: freebsdusb@bindone.de, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/110991: [patch] QUIRK: Super Top IDE DEVICE (depends on usb/110988) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 21:54:25 -0000 Synopsis: [patch] QUIRK: Super Top IDE DEVICE (depends on usb/110988) State-Changed-From-To: open->suspended State-Changed-By: linimon State-Changed-When: Tue Jul 10 21:54:03 UTC 2007 State-Changed-Why: Mark suspended pending commit of usb/110988. http://www.freebsd.org/cgi/query-pr.cgi?pr=110991 From owner-freebsd-usb@FreeBSD.ORG Tue Jul 10 22:30:11 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5726316A421 for ; Tue, 10 Jul 2007 22:30:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 2EEAE13C46A for ; Tue, 10 Jul 2007 22:30:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l6AMUAr1053677 for ; Tue, 10 Jul 2007 22:30:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l6AMUAuB053676; Tue, 10 Jul 2007 22:30:10 GMT (envelope-from gnats) Date: Tue, 10 Jul 2007 22:30:10 GMT Message-Id: <200707102230.l6AMUAuB053676@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "M. Warner Losh" Cc: Subject: usb/110988 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "M. Warner Losh" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 22:30:11 -0000 The following reply was made to PR usb/110988; it has been noted by GNATS. From: "M. Warner Losh" To: bug-followup@FreeBSD.org Cc: Subject: usb/110988 Date: Tue, 10 Jul 2007 16:28:28 -0600 (MDT) IGNORE_RESIDUE was broken in revsion 1.80, between 5.0 and 5.1. Chances are good that people with these broken drives reported the problems on 4.x or 5.0 before this revision. I wouldn't be too quick to comment out the entries that have this quirk. There are 19 of them, and it may be a bit of a pain to discover which ones are valid and which ones are cutNpaste leftovers. From owner-freebsd-usb@FreeBSD.ORG Tue Jul 10 23:04:22 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6299516A400 for ; Tue, 10 Jul 2007 23:04:22 +0000 (UTC) (envelope-from uwe@grohnwaldt.eu) Received: from p15150876.pureserver.info (grohnwaldt.de [82.165.31.234]) by mx1.freebsd.org (Postfix) with ESMTP id 486B213C45D for ; Tue, 10 Jul 2007 23:04:19 +0000 (UTC) (envelope-from uwe@grohnwaldt.eu) Received: (qmail 9838 invoked from network); 11 Jul 2007 00:37:37 +0200 Received: from vpn017017.uni-rostock.de (HELO Winter) (139.30.17.17) by muhkuhsaft.de with (DHE-RSA-AES256-SHA encrypted) SMTP; 11 Jul 2007 00:37:36 +0200 Date: Wed, 11 Jul 2007 00:37:26 +0200 From: Uwe Grohnwaldt To: freebsd-usb@freebsd.org Message-ID: <20070711003726.1fc89b31@Winter> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.13; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: mouse doesn't work after current-update X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 23:04:22 -0000 hi, after my current-update my usb-mouse doesn't work. i get a uhid and something other. uname -a shows: FreeBSD Winter 7.0-CURRENT FreeBSD 7.0-CURRENT #14: Tue Jul 10 22:38:08 CEST 2007 root@Winter:/usr/obj/usr/src/sys/GENERIC i386 dmesg shows: uhid0: on uhub5 ukbd0: on uhub5 kbd2 at ukbd0 usbdevs shows: addr 1: UHCI root hub, Intel addr 1: UHCI root hub, Intel addr 1: UHCI root hub, Intel addr 1: UHCI root hub, Intel addr 1: EHCI root hub, Intel addr 2: product 0x4482, vendor 0x04b3 addr 3: Razer Copperhead Laser Mouse, Razer Regards, Uwe From owner-freebsd-usb@FreeBSD.ORG Tue Jul 10 23:14:18 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8798516A41F for ; Tue, 10 Jul 2007 23:14:18 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 4507A13C465 for ; Tue, 10 Jul 2007 23:14:18 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l6ANDuKC020108; Tue, 10 Jul 2007 17:13:56 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 10 Jul 2007 17:13:55 -0600 (MDT) Message-Id: <20070710.171355.74731023.imp@bsdimp.com> To: Uwe@Grohnwaldt.eu From: Warner Losh In-Reply-To: <20070711003726.1fc89b31@Winter> References: <20070711003726.1fc89b31@Winter> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 10 Jul 2007 17:13:56 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: mouse doesn't work after current-update X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 23:14:18 -0000 From: Uwe Grohnwaldt Subject: mouse doesn't work after current-update Date: Wed, 11 Jul 2007 00:37:26 +0200 > hi, > after my current-update my usb-mouse doesn't work. i get a uhid and > something other. > uname -a shows: > FreeBSD Winter 7.0-CURRENT FreeBSD 7.0-CURRENT #14: Tue Jul 10 22:38:08 > CEST 2007 root@Winter:/usr/obj/usr/src/sys/GENERIC i386 > > dmesg shows: > uhid0: addr 3> on uhub5 > ukbd0: addr 3> on uhub5 > kbd2 at ukbd0 > > usbdevs shows: > addr 1: UHCI root hub, Intel > addr 1: UHCI root hub, Intel > addr 1: UHCI root hub, Intel > addr 1: UHCI root hub, Intel > addr 1: EHCI root hub, Intel > addr 2: product 0x4482, vendor 0x04b3 > addr 3: Razer Copperhead Laser Mouse, Razer Can you revert to ums.c version 1.94 (latest is 1.95) and report the results? Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jul 10 23:55:42 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 659DC16A421 for ; Tue, 10 Jul 2007 23:55:42 +0000 (UTC) (envelope-from uwe@grohnwaldt.eu) Received: from p15150876.pureserver.info (grohnwaldt.de [82.165.31.234]) by mx1.freebsd.org (Postfix) with ESMTP id B8ABD13C46C for ; Tue, 10 Jul 2007 23:55:41 +0000 (UTC) (envelope-from uwe@grohnwaldt.eu) Received: (qmail 10925 invoked from network); 11 Jul 2007 01:55:40 +0200 Received: from vpn017017.uni-rostock.de (HELO Winter) (139.30.17.17) by muhkuhsaft.de with (DHE-RSA-AES256-SHA encrypted) SMTP; 11 Jul 2007 01:55:40 +0200 Date: Wed, 11 Jul 2007 01:55:32 +0200 From: Uwe Grohnwaldt To: freebsd-usb@freebsd.org Message-ID: <20070711015532.4986e00f@Winter> In-Reply-To: <20070710.171355.74731023.imp@bsdimp.com> References: <20070711003726.1fc89b31@Winter> <20070710.171355.74731023.imp@bsdimp.com> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.13; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Re: mouse doesn't work after current-update X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 23:55:42 -0000 Am Tue, 10 Jul 2007 17:13:55 -0600 (MDT) schrieb Warner Losh : > From: Uwe Grohnwaldt > Subject: mouse doesn't work after current-update > Date: Wed, 11 Jul 2007 00:37:26 +0200 > > > hi, > > after my current-update my usb-mouse doesn't work. i get a uhid and > > something other. > > uname -a shows: > > FreeBSD Winter 7.0-CURRENT FreeBSD 7.0-CURRENT #14: Tue Jul 10 > > 22:38:08 CEST 2007 root@Winter:/usr/obj/usr/src/sys/GENERIC > > i386 > > > > dmesg shows: > > uhid0: > 2.00/21.00, addr 3> on uhub5 > > ukbd0: > 2.00/21.00, addr 3> on uhub5 > > kbd2 at ukbd0 > > > > usbdevs shows: > > addr 1: UHCI root hub, Intel > > addr 1: UHCI root hub, Intel > > addr 1: UHCI root hub, Intel > > addr 1: UHCI root hub, Intel > > addr 1: EHCI root hub, Intel > > addr 2: product 0x4482, vendor 0x04b3 > > addr 3: Razer Copperhead Laser Mouse, Razer > > Can you revert to ums.c version 1.94 (latest is 1.95) and report the > results? > > Warner After reverting the ums.c it works as usual. dmesg: ums0: on uhub5 ums0: 7 buttons and Z dir. ukbd0: on uhub5 kbd2 at ukbd0 From owner-freebsd-usb@FreeBSD.ORG Wed Jul 11 01:11:36 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 025BD16A41F for ; Wed, 11 Jul 2007 01:11:36 +0000 (UTC) (envelope-from pldrouin@cyberfingers.net) Received: from smtp.cyberfingers.net (smtp.cyberfingers.net [198.177.254.227]) by mx1.freebsd.org (Postfix) with ESMTP id D6C9813C447 for ; Wed, 11 Jul 2007 01:11:35 +0000 (UTC) (envelope-from pldrouin@cyberfingers.net) Received: from ldaemon.pldrouin.net (modemcable090.40-56-74.mc.videotron.ca [74.56.40.90]) by smtp.cyberfingers.net (Postfix) with ESMTP id 142F9170046 for ; Tue, 10 Jul 2007 21:11:31 -0400 (EDT) Message-ID: <46942E3F.1060303@cyberfingers.net> Date: Tue, 10 Jul 2007 21:11:27 -0400 From: Pierre-Luc Drouin User-Agent: Thunderbird 2.0.0.4 (X11/20070618) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Microsoft Wireless Notebook Optical Mouse 3000 not working X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2007 01:11:36 -0000 Hi, it looks like my Microsoft Wireless Notebook Optical Mouse 3000 is not working on FreeBSD 6.2: From dmesg: uhid0: From usbdevs -v: Controller /dev/usb3: addr 126: low speed, power 100 mA, config 1, Microsoft Wireless Optical Mouse� 1.00(0x00e1), Microsoft(0x045e), rev 0.07 addr 127: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 addr 126: low speed, power 100 mA, config 1, Microsoft Wireless Optical Mouse� 1.00(0x00e1), Microsoft(0x045e), rev 0.07 How can I fix that? Thanks Pierre-Luc Drouin From owner-freebsd-usb@FreeBSD.ORG Wed Jul 11 02:27:00 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED9FD16A46C for ; Wed, 11 Jul 2007 02:27:00 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A9E3A13C45A for ; Wed, 11 Jul 2007 02:27:00 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l6B2Pqke021131; Tue, 10 Jul 2007 20:25:53 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 10 Jul 2007 20:25:52 -0600 (MDT) Message-Id: <20070710.202552.-961691823.imp@bsdimp.com> To: Uwe@grohnwaldt.eu From: "M. Warner Losh" In-Reply-To: <20070711015532.4986e00f@Winter> References: <20070711003726.1fc89b31@Winter> <20070710.171355.74731023.imp@bsdimp.com> <20070711015532.4986e00f@Winter> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 10 Jul 2007 20:25:53 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: mouse doesn't work after current-update X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2007 02:27:01 -0000 In message: <20070711015532.4986e00f@Winter> Uwe Grohnwaldt writes: : Am Tue, 10 Jul 2007 17:13:55 -0600 (MDT) : schrieb Warner Losh : : : > From: Uwe Grohnwaldt : > Subject: mouse doesn't work after current-update : > Date: Wed, 11 Jul 2007 00:37:26 +0200 : > : > > hi, : > > after my current-update my usb-mouse doesn't work. i get a uhid and : > > something other. : > > uname -a shows: : > > FreeBSD Winter 7.0-CURRENT FreeBSD 7.0-CURRENT #14: Tue Jul 10 : > > 22:38:08 CEST 2007 root@Winter:/usr/obj/usr/src/sys/GENERIC : > > i386 : > > : > > dmesg shows: : > > uhid0: > 2.00/21.00, addr 3> on uhub5 : > > ukbd0: > 2.00/21.00, addr 3> on uhub5 : > > kbd2 at ukbd0 : > > : > > usbdevs shows: : > > addr 1: UHCI root hub, Intel : > > addr 1: UHCI root hub, Intel : > > addr 1: UHCI root hub, Intel : > > addr 1: UHCI root hub, Intel : > > addr 1: EHCI root hub, Intel : > > addr 2: product 0x4482, vendor 0x04b3 : > > addr 3: Razer Copperhead Laser Mouse, Razer : > : > Can you revert to ums.c version 1.94 (latest is 1.95) and report the : > results? : > : > Warner : : After reverting the ums.c it works as usual. : : dmesg: : ums0: on uhub5 : ums0: 7 buttons and Z dir. : ukbd0: on uhub5 : kbd2 at ukbd0 Damn. I was afraid you might say that :-(. Warner From owner-freebsd-usb@FreeBSD.ORG Wed Jul 11 03:17:30 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0C5FA16A400 for ; Wed, 11 Jul 2007 03:17:30 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id BDFD813C457 for ; Wed, 11 Jul 2007 03:17:29 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l6B3EsEm021522; Tue, 10 Jul 2007 21:14:55 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 10 Jul 2007 21:14:54 -0600 (MDT) Message-Id: <20070710.211454.63054261.imp@bsdimp.com> To: pldrouin@cyberfingers.net From: "M. Warner Losh" In-Reply-To: <46942E3F.1060303@cyberfingers.net> References: <46942E3F.1060303@cyberfingers.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-2022-jp-2 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 10 Jul 2007 21:14:55 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: Microsoft Wireless Notebook Optical Mouse 3000 not working X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2007 03:17:30 -0000 In message: <46942E3F.1060303@cyberfingers.net> Pierre-Luc Drouin writes: : Hi, : : it looks like my Microsoft Wireless Notebook Optical Mouse 3000 is not : working on FreeBSD 6.2: : : From dmesg: : uhid0: : : From usbdevs -v: : Controller /dev/usb3: : addr 126: low speed, power 100 mA, config 1, Microsoft Wireless Optical : Mouse$,3u=(B 1.00(0x00e1), Microsoft(0x045e), rev 0.07 : addr 127: full speed, self powered, config 1, UHCI root hub(0x0000), : Intel(0x0000), rev 1.00 : port 1 powered : port 2 addr 126: low speed, power 100 mA, config 1, Microsoft Wireless : Optical Mouse$,3u=(B 1.00(0x00e1), Microsoft(0x045e), rev 0.07 : : How can I fix that? Upgrade to -current? I may be MFCing the changes soon, if I can find the time. Warner From owner-freebsd-usb@FreeBSD.ORG Thu Jul 12 03:25:05 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CEFEB16A41F for ; Thu, 12 Jul 2007 03:25:05 +0000 (UTC) (envelope-from amb@amb.kiev.ua) Received: from simq3-srv.bellnexxia.net (simq3.bellnexxia.net [206.47.199.153]) by mx1.freebsd.org (Postfix) with ESMTP id 6D76513C45E for ; Thu, 12 Jul 2007 03:25:05 +0000 (UTC) (envelope-from amb@amb.kiev.ua) Received: from amb.homeunix.org ([156.34.182.93]) by simmts12-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070712025729.ZEFP29072.simmts12-srv.bellnexxia.net@amb.homeunix.org> for ; Wed, 11 Jul 2007 22:57:29 -0400 Received: from server.amb.kiev.ua ([10.15.25.2] helo=amb.kiev.ua) by amb.homeunix.org with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1I8orx-0003XS-AP for freebsd-usb@freebsd.org; Wed, 11 Jul 2007 23:57:29 -0300 Message-ID: <46959897.7010008@amb.kiev.ua> Date: Wed, 11 Jul 2007 23:57:27 -0300 From: Andrew Birukov User-Agent: Thunderbird 2.0.0.4 (X11/20070702) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 10.15.25.2 X-SA-Exim-Rcpt-To: freebsd-usb@freebsd.org X-SA-Exim-Mail-From: amb@amb.kiev.ua X-SA-Exim-Scanned: No (on amb.homeunix.org); SAEximRunCond expanded to false Subject: Microsoft Wireless Optical Desktop 3000 doesn't work correctly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 03:25:05 -0000 Hi, My Microsoft Wireless Optical Desktop 3000 doesn't work correctly. Keyboard is OK. Mice don't detected. FreeBSD 7.0 current, cvsup from jul 9 Jul 11 23:16:04 amb root: Unknown USB device: vendor 0x045e product 0x00f9 bus uhub5 Jul 11 23:16:04 amb kernel: ukbd0: on uhub5 Jul 11 23:16:04 amb kernel: kbd2 at ukbd0 Jul 11 23:16:04 amb kernel: uhid0: on uhub5 Earlier this keyboard and mice worked correctly with uhidev patches from Mark Hobden: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=0+0+archive/2007/freebsd-usb/20070311.freebsd-usb -- Andrew Biriukov amb@amb.kiev.ua From owner-freebsd-usb@FreeBSD.ORG Thu Jul 12 05:29:24 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C66E816A41F for ; Thu, 12 Jul 2007 05:29:24 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from pobox.codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 7E04113C480 for ; Thu, 12 Jul 2007 05:29:24 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender:X-Spam-Status:Subject; b=ftbSm6OM1G4dcQj1rHbBAjzA6DW06KqZGFg65MPDHMtj8N98+k17Q13D3oRHBosUIF91kPUJ7xGoTZmDh36y4UuzMNx3cI9AH/HSBEg1vKW7GM00ETovTmRlmOkpLppNp9lCbTecyeplquqwi1clRTJRiMxalUCE2Iz8/APUWbA=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by pobox.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1I8rEt-000FwC-RV; Thu, 12 Jul 2007 09:29:19 +0400 Date: Thu, 12 Jul 2007 09:29:15 +0400 From: Eygene Ryabinkin To: Hans Petter Selasky Message-ID: <20070712052915.GO1038@void.codelabs.ru> References: <200707060853.38198.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <200707060853.38198.hselasky@c2i.net> Sender: rea-fbsd@codelabs.ru X-Spam-Status: No, score=-1.8 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_40 Cc: freebsd-usb@freebsd.org Subject: Re: New USB stack - update X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 05:29:24 -0000 Hans, good day. Fri, Jul 06, 2007 at 08:53:38AM +0200, Hans Petter Selasky wrote: > I've just committed a bunch of improvements to my new USB stack. The changes > will be committed to P4 later today. They are currently only available > through my SVN repo. Looks like my nasty Transcend JF150 flash that used to hang the machine completely is working with the new version of the stack. Thank you! -- Eygene From owner-freebsd-usb@FreeBSD.ORG Thu Jul 12 14:59:44 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 60ACC16A400 for ; Thu, 12 Jul 2007 14:59:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 0053213C4AE for ; Thu, 12 Jul 2007 14:59:43 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.lan) by mailfe07.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 545513081 for freebsd-usb@freebsd.org; Thu, 12 Jul 2007 16:59:42 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 12 Jul 2007 16:59:44 +0200 User-Agent: KMail/1.9.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707121659.44542.hselasky@c2i.net> Subject: Wireless USB X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 14:59:44 -0000 Hi, I'm looking at adding support for Wireless USB to FreeBSD. Anyone which wants to say anything? --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jul 12 15:23:34 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B8E416A473 for ; Thu, 12 Jul 2007 15:23:34 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B6F9313C4C4 for ; Thu, 12 Jul 2007 15:23:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l6CFLZTC047496; Thu, 12 Jul 2007 09:21:35 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 12 Jul 2007 09:21:35 -0600 (MDT) Message-Id: <20070712.092135.1649769070.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200707121659.44542.hselasky@c2i.net> References: <200707121659.44542.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 12 Jul 2007 09:21:35 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: Wireless USB X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 15:23:34 -0000 In message: <200707121659.44542.hselasky@c2i.net> Hans Petter Selasky writes: : I'm looking at adding support for Wireless USB to FreeBSD. : : Anyone which wants to say anything? Given all the wireless devices for USB, I'm not sure what you are talking about here. Warner From owner-freebsd-usb@FreeBSD.ORG Thu Jul 12 16:08:16 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6BE7A16A400 for ; Thu, 12 Jul 2007 16:08:16 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 0CA8013C44C for ; Thu, 12 Jul 2007 16:08:15 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [212.17.141.53] (account mc467741@c2i.net HELO [10.150.81.62]) by mailfe05.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 444627520; Thu, 12 Jul 2007 18:08:01 +0200 From: Hans Petter Selasky To: "M. Warner Losh" Date: Thu, 12 Jul 2007 18:07:42 +0200 User-Agent: KMail/1.9.5 References: <200707121659.44542.hselasky@c2i.net> <20070712.092135.1649769070.imp@bsdimp.com> In-Reply-To: <20070712.092135.1649769070.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707121807.42158.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Wireless USB X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 16:08:16 -0000 On Thursday 12 July 2007 17:21, M. Warner Losh wrote: > In message: <200707121659.44542.hselasky@c2i.net> > > Hans Petter Selasky writes: > : I'm looking at adding support for Wireless USB to FreeBSD. > : > : Anyone which wants to say anything? > > Given all the wireless devices for USB, I'm not sure what you are > talking about here. > > Warner This: http://www.intel.com/technology/comms/wusb/whci.htm --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jul 12 19:02:42 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4336A16A400 for ; Thu, 12 Jul 2007 19:02:42 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outF.internet-mail-service.net (outF.internet-mail-service.net [216.240.47.229]) by mx1.freebsd.org (Postfix) with ESMTP id 2FC2813C448 for ; Thu, 12 Jul 2007 19:02:42 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Thu, 12 Jul 2007 12:02:39 -0700 Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id 6C6B5125B10; Thu, 12 Jul 2007 12:01:26 -0700 (PDT) Message-ID: <46967A97.4000007@elischer.org> Date: Thu, 12 Jul 2007 12:01:43 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: "M. Warner Losh" References: <200707121659.44542.hselasky@c2i.net> <20070712.092135.1649769070.imp@bsdimp.com> In-Reply-To: <20070712.092135.1649769070.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: Wireless USB X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 19:02:42 -0000 M. Warner Losh wrote: > In message: <200707121659.44542.hselasky@c2i.net> > Hans Petter Selasky writes: > : I'm looking at adding support for Wireless USB to FreeBSD. > : > : Anyone which wants to say anything? > > Given all the wireless devices for USB, I'm not sure what you are > talking about here. > > Warner > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" support for "wireless USB" as opposed to "USB Wireless".. i.e. USB with no wires.. It's a new spec some are pushing.. al lthe things on your desktop chatting, without wires.. kinda what bluetooth was supposed to be. From owner-freebsd-usb@FreeBSD.ORG Thu Jul 12 21:15:26 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D72116A475 for ; Thu, 12 Jul 2007 21:15:26 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.235]) by mx1.freebsd.org (Postfix) with ESMTP id 2A77913C46C for ; Thu, 12 Jul 2007 21:15:25 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: by wr-out-0506.google.com with SMTP id i23so217436wra for ; Thu, 12 Jul 2007 14:15:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tPcmj/im81xpiKRd6lY+jUxbEQgeMj8NtNr+cPfNZkc15rleYFGbwJ8KltZuvtnvWELjvEyBNHZayG+iuGbzVf1BoAayMGw3tdO3Pkbx8G3JzymkzWY1Zi9gXrKfrcKPdJ8YgmVg/vVUdQeXx4sIZh/tJSOAvhfcJpM6u6zpcUk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nOeOuxRmIRgLrz8awkbwhCFoUJ8doNVuKxiXyzQ5kL0UEB6CVW+09eWXZcSK866x7J41sXwCZdFGWMSakw+AKTBBEHTTGND4vZrMqis7xlV3V8HiKrgw/at4plpoC0JKQQ0rOU6G2o3W6n9o57tzxPaAljqg+6FSpnc3tn4CuaU= Received: by 10.90.116.6 with SMTP id o6mr1059218agc.1184273261491; Thu, 12 Jul 2007 13:47:41 -0700 (PDT) Received: by 10.90.92.20 with HTTP; Thu, 12 Jul 2007 13:47:41 -0700 (PDT) Message-ID: Date: Thu, 12 Jul 2007 21:47:41 +0100 From: "Mark Hobden" To: "Andrew Birukov" In-Reply-To: <46959897.7010008@amb.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46959897.7010008@amb.kiev.ua> Cc: freebsd-usb@freebsd.org Subject: Re: Microsoft Wireless Optical Desktop 3000 doesn't work correctly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 21:15:26 -0000 On 12/07/07, Andrew Birukov wrote: > > My Microsoft Wireless Optical Desktop 3000 doesn't work correctly. > Keyboard is OK. Mice don't detected. > > Earlier this keyboard and mice worked correctly with uhidev patches from > Mark Hobden: > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=0+0+archive/2007/freebsd-usb/20070311.freebsd-usb Hi Andrew, Now the commits removing compatibility macros seem to be complete I have started updating the patch. I am hoping to release a version that applies to 7-CURRENT at the weekend. Kind Regards, Mark From owner-freebsd-usb@FreeBSD.ORG Fri Jul 13 10:34:56 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D69A616A401 for ; Fri, 13 Jul 2007 10:34:56 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id 72CD113C461 for ; Fri, 13 Jul 2007 10:34:56 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.lan) by mailfe01.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 525640874; Fri, 13 Jul 2007 12:34:53 +0200 From: Hans Petter Selasky To: Julian Elischer Date: Fri, 13 Jul 2007 12:34:56 +0200 User-Agent: KMail/1.9.5 References: <200707121659.44542.hselasky@c2i.net> <20070712.092135.1649769070.imp@bsdimp.com> <46967A97.4000007@elischer.org> In-Reply-To: <46967A97.4000007@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707131234.56417.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Wireless USB X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 10:34:56 -0000 Hi, I'm currently looking at the WUSB specification. Do we already have AES-128 bit encryption in CCM mode supported in the kernel ? --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jul 13 13:38:35 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2008916A401 for ; Fri, 13 Jul 2007 13:38:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id BFCA513C47E for ; Fri, 13 Jul 2007 13:38:34 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l6DDcHAf062654; Fri, 13 Jul 2007 07:38:17 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 13 Jul 2007 07:38:18 -0600 (MDT) Message-Id: <20070713.073818.2045624667.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200707131234.56417.hselasky@c2i.net> References: <20070712.092135.1649769070.imp@bsdimp.com> <46967A97.4000007@elischer.org> <200707131234.56417.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 13 Jul 2007 07:38:17 -0600 (MDT) Cc: julian@elischer.org, freebsd-usb@freebsd.org Subject: Re: Wireless USB X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 13:38:35 -0000 In message: <200707131234.56417.hselasky@c2i.net> Hans Petter Selasky writes: : I'm currently looking at the WUSB specification. Do we already have AES-128 : bit encryption in CCM mode supported in the kernel ? I'm pretty sure that we do. Warner From owner-freebsd-usb@FreeBSD.ORG Fri Jul 13 22:33:14 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 34F2216A400 for ; Fri, 13 Jul 2007 22:33:14 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by mx1.freebsd.org (Postfix) with ESMTP id 0D67D13C4B2 for ; Fri, 13 Jul 2007 22:33:14 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id j37so769146waf for ; Fri, 13 Jul 2007 15:33:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hgjTLLQXvwepszw6aIkaEZTAsasPhm37UTPuZUF9QQl1mj+qd5Zd9YLChDCh83Dxo6NSx5sMIJW/+XwLkYSDlxGnA11TbFZwC5QsYi6YQrdylX13DTmzDbv4FyqnsKPuYPc8+sbwicXLCeRqvXn+8DXwGUyvTEl1aFIrQgCKv1M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cTV7Gd4EQDx+MI0BQFtF/bkgL23tFO4Ez43FqwXiFQToq4ztH0QDoB8vkZ3scg5BITzCQTxKOqvwh67J5nc9GUhHjDtK9ahFF8vCjwFG++/EiLaqfgpfItGrmtXE7SqFkMd6jkZGuMAiZ3kvcJIwWl8PZefepQ1TtLlEGBOxsqU= Received: by 10.114.195.19 with SMTP id s19mr2071189waf.1184365993499; Fri, 13 Jul 2007 15:33:13 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Fri, 13 Jul 2007 15:33:13 -0700 (PDT) Message-ID: Date: Fri, 13 Jul 2007 18:33:13 -0400 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200707091835.50445.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200707051724.30175.hselasky@c2i.net> <200707091835.50445.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 22:33:14 -0000 On 7/9/07, Hans Petter Selasky wrote: > > Perhaps what happens is that the "*pDst.bRam = _UCPU;" > command clears the FIFO > contents of the USB interrupt endpoint in addition to clearing the stall!? > > If the sequence is like this: > > Write to interrupt endpoint. > Reply command is written to FIFO. > Clear interrupt endpoint stall. > There is no data to read, because the FIFO has been emptied as a part of the > stall command. > > Xiaofan Chen: Could you check the datasheet for the chip that is used, what > the stall command actually does? > Sorry that I have three more questions: 1) What is the correct method to correctly respond to clear halt feature request in the firmware so that it can still recover from the stall? 2) For the host, how does it know that the buffer data is still correct if the buffer is not cleared? 2) What cause the stall to happen in the first place? Xiaofan From owner-freebsd-usb@FreeBSD.ORG Sat Jul 14 09:28:52 2007 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 18F8616A403 for ; Sat, 14 Jul 2007 09:28:52 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 9599A13C481 for ; Sat, 14 Jul 2007 09:28:51 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: by ug-out-1314.google.com with SMTP id o4so788582uge for ; Sat, 14 Jul 2007 02:28:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=BlOHU2VbWyvVD8zsMSlZY7Eocus4yYxSwQMxg7g57xfqZ/3lUpV+0UvLmqquBGd7j4n9hm6O413kORkKpt8c+T4p8jSgmyvKWu/q6OTCMxteze+DCuHkog8kt+OGuoGYm7kPe5LPih5qWtun7h3Jiw+508MT2afRpzyPfE0QR7E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=m/D/kbzEF2fxRQtUgFKbeu0Hz5y/5x/aCO4eA19ugLRvorVxX475rm5STQ7azg64t4HmZYiwv9iztIwGOcflJTAJWnZSIhYVnGd+t+D8Yhz/ehMTaAFnFyGFqKn1Z4piK0QJmGVvIOdcuica1He51CDlDFiOmnh1GULOG1LrJNs= Received: by 10.86.4.2 with SMTP id 2mr1980542fgd.1184405330409; Sat, 14 Jul 2007 02:28:50 -0700 (PDT) Received: from roadrunner.q.local ( [85.180.166.85]) by mx.google.com with ESMTP id v23sm5176489fkd.2007.07.14.02.28.48 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 14 Jul 2007 02:28:49 -0700 (PDT) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.14.1/8.14.1) with ESMTP id l6E9ScOT002857; Sat, 14 Jul 2007 11:28:38 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.q.local (8.14.1/8.14.1/Submit) id l6E9ScaZ002856; Sat, 14 Jul 2007 11:28:38 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Sat, 14 Jul 2007 11:28:38 +0200 From: Ulrich Spoerlein To: "M. Warner Losh" Message-ID: <20070714092838.GB1542@roadrunner.q.local> Mail-Followup-To: "M. Warner Losh" , usb@FreeBSD.org, sos@FreeBSD.org References: <20070705184309.GD2749@roadrunner.q.local> <20070705.211431.-233673940.imp@bsdimp.com> <20070706164202.GA1426@roadrunner.q.local> <20070706.164455.-1962671190.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070706.164455.-1962671190.imp@bsdimp.com> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: usb@FreeBSD.org, sos@FreeBSD.org Subject: Re: umass/cam headaches X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jul 2007 09:28:52 -0000 Sorry for the late reply ... On Fri, 06.07.2007 at 16:44:55 -0600, M. Warner Losh wrote: > Ulrich Spoerlein writes: > : Are there good OpenBSD or NetBSD Live CDs out there? I already confirmed > : that the drive is working fine under Windows and Linux, so testing under > : other BSDs would be the next step. > > Chances are good that it needs some kind of quirk to make it work > right. It's not so easy, I think. To recap: Attaching the device via umass(4)/cd(4) I can read CDs and burned DVDs just fine. Retail DVDs (both video and data) dont even support ioctl, even geom_label fails to read the device label. The same can be said about the sbp(4)/cd(4) combo. Burned DVDs and all kinds of CDs work fine. No retail DVDs however. Using atausb(4)/acd(4) I can successfully read retail _data_ DVDs but still have trouble reading video DVDs. But hey, even diskinfo(1) works on those media, so acd(4) is *way* better than cd(4) in that regard. Upon attaching I get some CSW errors though (data DVD): kernel: atausb0 on uhub3 kernel: atausb0: using ATAPI over Bulk-Only kernel: ata2: on atausb0 kernel: atausb0: cannot get CSW, STALLED, retry kernel: atausb0: clear endpoint 0x81 stall kernel: acd1: DEVICE_RESET unsupported kernel: atausb0: data read count 34 failed: STALLED kernel: atausb0: clear endpoint 0x81 stall kernel: atausb0: CSWSTATUS_FAILED kernel: acd1: DVDR at ata2-master USB2 kernel: GEOM_LABEL: Label for provider acd1 is iso9660/CHIP_DVD_0507. Trying to read a video DVD results in 0 bytes being read and lots of these errors flying by: kernel: atausb0: data read count 63488 failed: STALLED kernel: atausb0: clear endpoint 0x81 stall kernel: atausb0: CSWSTATUS_FAILED kernel: acd1: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 kernel: atausb0: data read count 4096 failed: STALLED kernel: atausb0: clear endpoint 0x81 stall kernel: atausb0: CSWSTATUS_FAILED kernel: acd1: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 kernel: atausb0: data read count 63488 failed: STALLED kernel: atausb0: clear endpoint 0x81 stall kernel: atausb0: CSWSTATUS_FAILED kernel: acd1: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 Using mplayer(1) to open the video DVD I only get this one, which looks suspicous (off-by-one bug?) kernel: atausb0: cannot get CSW, TIMEOUT, retry kernel: atausb0: clear endpoint 0x81 stall kernel: atausb0: cannot get CSW, TIMEOUT kernel: atausb0: Bulk Reset kernel: atausb0: clear endpoint 0x81 stall kernel: atausb0: clear endpoint 0x02 stall kernel: atausb0: bad CSW tag 72273 != 72274 kernel: atausb0: Bulk Reset kernel: atausb0: clear endpoint 0x81 stall kernel: atausb0: clear endpoint 0x02 stall Cheers, Ulrich Spoerlein -- "The trouble with the dictionary is you have to know how the word is spelled before you can look it up to see how it is spelled." -- Will Cuppy From owner-freebsd-usb@FreeBSD.ORG Sat Jul 14 11:28:21 2007 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D2BD316A403 for ; Sat, 14 Jul 2007 11:28:21 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id 3D33813C461 for ; Sat, 14 Jul 2007 11:28:21 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: by ug-out-1314.google.com with SMTP id o4so800055uge for ; Sat, 14 Jul 2007 04:28:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=TT+wKQ7iB/UUN0RN5c2Nu+hKS/noejygchs8FIin0dcKIqOYR/NoPcARdpGt4U4ecuL1p3plZRf6s3OPtGKjSh96UnZGJP/70sCVJcH21uqpYhio8Q1aQRXKVkefUhycLQojsu3qrttizZ0MZL1S0H/8zovicsGkFKP9kaHeOH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=oC54A/U9OeAaO0RyiiFB+bOGw8EdFYMe7E2k5qDys7vZGmEvyIHTgfV2J3jUhmtdqKL1CDjhR13vyiGlapdOnk0cNRQLQVMZG6TxiydbaMMuSCQMV8SPcLwGidfb7c/QuJ/DMtS8tn1T+8cP6eT9Flw9jZktAPD/IY9uS4TBVD0= Received: by 10.86.93.17 with SMTP id q17mr2037667fgb.1184412500009; Sat, 14 Jul 2007 04:28:20 -0700 (PDT) Received: from roadrunner.q.local ( [85.180.166.85]) by mx.google.com with ESMTP id i5sm66591530mue.2007.07.14.04.28.18 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 14 Jul 2007 04:28:18 -0700 (PDT) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.14.1/8.14.1) with ESMTP id l6EBSDmO004723; Sat, 14 Jul 2007 13:28:13 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.q.local (8.14.1/8.14.1/Submit) id l6EBSDmU004722; Sat, 14 Jul 2007 13:28:13 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Sat, 14 Jul 2007 13:28:12 +0200 From: Ulrich Spoerlein To: "M. Warner Losh" , usb@FreeBSD.org, sos@FreeBSD.org Message-ID: <20070714112812.GC1542@roadrunner.q.local> Mail-Followup-To: "M. Warner Losh" , usb@FreeBSD.org, sos@FreeBSD.org References: <20070705184309.GD2749@roadrunner.q.local> <20070705.211431.-233673940.imp@bsdimp.com> <20070706164202.GA1426@roadrunner.q.local> <20070706.164455.-1962671190.imp@bsdimp.com> <20070714092838.GB1542@roadrunner.q.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070714092838.GB1542@roadrunner.q.local> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: Subject: Re: umass/cam headaches X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jul 2007 11:28:21 -0000 I further played with lots of USB quirks and found something bizarr. When adding the NO_INQUIRY quirk to this device, da(4) will attach instead of cd(4), and believe it or not, geom_label and diskinfo(1) suddenly start working: kernel: umass0 on uhub3 kernel: umass0: SCSI over Bulk-Only; quirks = 0x0400 kernel: umass0:1:0:-1: Attached to scbus1 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 kernel: da0: < > Removable Direct Access SCSI-2 device kernel: da0: 40.000MB/s transfers kernel: da0: 4482MB (2294912 2048 byte sectors: 255H 63S/T 142C) kernel: GEOM_LABEL: Label for provider da0 is iso9660/DVD_VIDEO. root@roadrunner: /data# diskinfo -v /dev/da0 /dev/da0 2048 # sectorsize 4699979776 # mediasize in bytes (4.4G) 2294912 # mediasize in sectors 142 # Cylinders according to firmware. 255 # Heads according to firmware. 63 # Sectors according to firmware. I can even switch media and it's still working: root@roadrunner: /data# diskinfo -v /dev/da0 /dev/da0 2048 # sectorsize 7403274240 # mediasize in bytes (6.9G) 3614880 # mediasize in sectors 225 # Cylinders according to firmware. 255 # Heads according to firmware. 63 # Sectors according to firmware. Heck, even reading from the media works. Why won't cd(4) just work? Cheers, Ulrich Spoerlein -- "The trouble with the dictionary is you have to know how the word is spelled before you can look it up to see how it is spelled." -- Will Cuppy