From owner-freebsd-usb@FreeBSD.ORG Sun Jan 23 06:49:04 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3EE016A4CE; Sun, 23 Jan 2005 06:49:04 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA6A943D2D; Sun, 23 Jan 2005 06:49:04 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0N6n4eK073766; Sun, 23 Jan 2005 06:49:04 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0N6n4mx073762; Sun, 23 Jan 2005 06:49:04 GMT (envelope-from julian) Date: Sun, 23 Jan 2005 06:49:04 GMT From: Julian Elischer Message-Id: <200501230649.j0N6n4mx073762@freefall.freebsd.org> To: marko@FreeBSD.org, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/76240: USB camera panics kernel X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 06:49:05 -0000 Synopsis: USB camera panics kernel State-Changed-From-To: open->closed State-Changed-By: julian State-Changed-When: Sun Jan 23 06:48:21 GMT 2005 State-Changed-Why: Applied MFC to stop kernel panic http://www.freebsd.org/cgi/query-pr.cgi?pr=76240 From owner-freebsd-usb@FreeBSD.ORG Sun Jan 23 10:38:46 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC13316A4CE for ; Sun, 23 Jan 2005 10:38:46 +0000 (GMT) Received: from postfix4-1.free.fr (postfix4-1.free.fr [213.228.0.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B44843D1F for ; Sun, 23 Jan 2005 10:38:46 +0000 (GMT) (envelope-from irchat@free.fr) Received: from imp3-q.free.fr (imp3-q.free.fr [212.27.42.3]) by postfix4-1.free.fr (Postfix) with ESMTP id BD022271384; Sun, 23 Jan 2005 11:38:45 +0100 (CET) Received: by imp3-q.free.fr (Postfix, from userid 33) id 6E3FD29D7A; Sun, 23 Jan 2005 11:38:45 +0100 (MET) Received: from AAmiens-152-1-50-118.w83-198.abo.wanadoo.fr (AAmiens-152-1-50-118.w83-198.abo.wanadoo.fr [83.198.40.118]) by imp3-q.free.fr (IMP) with HTTP for ; Sun, 23 Jan 2005 11:38:45 +0100 Message-ID: <1106476725.41f37eb55726f@imp3-q.free.fr> Date: Sun, 23 Jan 2005 11:38:45 +0100 From: irchat@free.fr To: Ian Dowse , freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 83.198.40.118 Subject: Re: Prism54 USB Wireless Adapters X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 10:38:47 -0000 > The only thing unusual I could see about the Prism54 driver > is that it does a lot of opening and closing of pipes Yeah, Prism54 devices are actually a pain :( > so maybe something like that is tickling EHCI bugs. > >Testing my driver with or without USBD_NO_COPY and the EHCI makes the > > interrupt callback never called. With UHCI and without USBD_NO_COPY, my > > code fails when the xfers using the buffers that don't support DMA are > > submitted. > > Are you saying that something doesn't work with UHCI too? If you > avoid the USBD_NO_COPY flag you shouldn't have to worry about DMA > buffers, since the USB code will handle them itself. Or do you mean > something different? No, I meant that UHCI worked fine as it reports the error if I try to use non-DMA-capable buffers with DMA, unlike EHCI which doesn't report anything wrong and behaves improperly then. I have worked a lot on the driver lately, see http://yoshiyo.ath.cx/seb/prism54_freebsd.html The DMA problems are fixed, I now use usbd_alloc_buffer(). Sebastien From owner-freebsd-usb@FreeBSD.ORG Mon Jan 24 11:02:19 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0148516A51A for ; Mon, 24 Jan 2005 11:02:18 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3C2B43D1F for ; Mon, 24 Jan 2005 11:02:18 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0OB2IjP019064 for ; Mon, 24 Jan 2005 11:02:18 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0OB2H3f019059 for freebsd-usb@freebsd.org; Mon, 24 Jan 2005 11:02:17 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 24 Jan 2005 11:02:17 GMT Message-Id: <200501241102.j0OB2H3f019059@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 11:02:19 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2001/12/12] kern/32713 usb [usb] mouse detaches from hub and doesnt f [2002/01/13] kern/33839 usb usb0: host controller halted (involving A f [2002/04/07] i386/36850 usb Page Fault using ppp with USB Modem [4.9] f [2002/06/24] kern/39805 usb 4.6R install panics with umass0 device co o [2002/07/19] kern/40792 usb signals lead to data loss on device ugen o [2002/12/10] kern/46176 usb umass causes kernel panic if device remov o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I o [2002/12/29] kern/46618 usb USB (UHCI/ICH3) PALM connect/disconnect/c o [2003/02/17] kern/48359 usb SiS 5597/8 USB + uscanner breakage a [2003/03/02] kern/48849 usb Maxtor XT5000 causes panic in boot o [2003/03/05] kern/48952 usb uscanner0 hangs a [2003/03/20] kern/50149 usb Using Alcatel SpeedTouch results in "usb0 a [2003/08/14] kern/55587 usb null dereference in usbdi.c: usb_transfer o [2003/09/26] bin/57255 usb usbd and multi-function devices f [2003/12/11] kern/60131 usb [usb] Page fault on disconnect of USB dev s [2003/12/15] kern/60276 usb [usb] Kernel panic when plugging in USB ( o [2004/01/11] kern/61191 usb [usb] panic: USB vs. Serial problems o [2004/01/15] kern/61377 usb [kbd] usb keyboard not functional after b o [2004/01/20] kern/61627 usb [usb] [patch] New USB printer not support f [2004/01/23] kern/61804 usb [panic] panic with hitachi travelstar USB o [2004/01/24] kern/61841 usb [boot] 5.2 Boot freeze if memorybird (USB f [2004/01/30] kern/62088 usb [usb] Logitech Cordless/Optical Mouse not o [2004/01/30] kern/62123 usb [usb] LaCie 160GB USB drive umass: BBB re o [2004/02/23] i386/63251 usb [usb] USB stops working after 2nd APM sus o [2004/02/26] kern/63375 usb [patch] panic: unplugging USB devices pan o [2004/03/01] kern/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/04/07] kern/65292 usb [panic] random page faults (usb-related?) o [2004/04/19] i386/65783 usb [panic] Panic when attaching card reader o [2004/07/13] kern/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] kern/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/09/27] kern/72119 usb Detaching USB Memory Stick w/o umount cau f [2004/10/11] i386/72497 usb WD USB Disk Panics -stable and 5.2.1 o [2004/10/29] kern/73295 usb Lock order reversal in USB code. o [2004/10/30] kern/73307 usb Kernel panics on USB disconnect o [2004/11/18] kern/74088 usb ohci ehci uhub: port disabled on connecti o [2005/01/08] usb/75941 usb system halted during booting due to ehci o [2005/01/13] usb/76204 usb panic while using usb attached modem o [2005/01/18] usb/76395 usb USB printer does not work, usbdevs says " o [2005/01/21] usb/76554 usb Panram "yoyo" USB MP3 player causes panic o [2005/01/21] usb/76555 usb PNY USB DISK 2.0 USB thumbdrive causes wo 40 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/09/30] conf/30929 usb [patch] use usbd to initialize USB ADSL m o [2001/12/09] kern/32652 usb [patch] A new ioctl to uscanner s [2001/12/09] ports/32653 usb Added patches to improve USB scanner supp f [2002/04/23] kern/37374 usb [PATCH] closing ums0 blocks with wmesg uh f [2002/05/04] conf/37732 usb usbd start in wrong place in /etc/rc in 4 o [2002/05/23] kern/38452 usb [usb] Logitech USB iFeel: device_probe_an o [2002/07/16] kern/40657 usb [usb] Logitech iFeel usb mouse will not a o [2002/07/24] kern/40948 usb [usb] USB HP CDW8200 does not work o [2002/08/07] kern/41415 usb [usb] [patch] Some USB scanners cannot ta f [2002/08/30] bin/42213 usb moused(8) seems to delay some mouse event f [2002/10/25] kern/44450 usb USB support FAILURE for device that was s o [2003/01/18] kern/47200 usb USB port is disabled when Kodak DX4900 is o [2003/02/06] kern/48014 usb [usb] moused fails to correctly identify o [2003/02/16] bin/48342 usb [PATCH] usbd dynamic device list. o [2003/03/19] kern/50110 usb [usb] Astra 2100U scanner being detected o [2003/05/08] kern/51958 usb [usb] [patch] update for urio driver o [2003/05/10] kern/52026 usb [usb] feature request: umass driver suppo f [2003/05/19] bin/52432 usb [sysinstall] drivers.flp won't load with o [2003/06/08] kern/53025 usb [PATCH] ugen does not allow O_NONBLOCK fo f [2003/09/19] kern/56999 usb FreeCom USB CD/RW problem on FreeBSD 5.1 o [2003/11/10] i386/59147 usb [usb] USB active extension cable not reco o [2003/11/11] kern/59169 usb [patch] ulpt is missing read operation o [2003/12/15] kern/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] bin/61234 usb [usb] [patch] usbhidaction doesn't suppor o [2004/01/14] kern/61365 usb FreeBSD resets when I turn off monitor w/ o [2004/02/13] kern/62788 usb need quirks for Super Talent Flash USB 2. o [2004/03/04] kern/63779 usb [usb] USB-mass storage (USB to IDE Conver o [2004/03/06] kern/63837 usb [patch] USB: hid_is_collection() only loo o [2004/04/11] kern/65436 usb QUIRK: [patch] to add support for PNY Att o [2004/04/19] kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops o [2004/05/11] kern/66547 usb [usb] Palm Tungsten T USB does not initia o [2004/06/27] kern/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/07/06] i386/68719 usb [usb] USB 2.0 mobil rack+ fat32 performan o [2004/08/16] kern/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] kern/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] kern/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] kern/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] kern/71455 usb [usb] Slow USB umass performance of 5.3 o [2004/09/11] kern/71605 usb [usb] [patch] umass doesn't recognize mul o [2004/10/05] kern/72344 usb [usb] [patch] QUIRK: Dane-Elec zMate 512 f [2004/10/06] i386/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/23] i386/73056 usb [usb] Sun Microsystems Type 6 USB mouse n o [2004/11/02] i386/73421 usb [usb] USB not recgnized/working on Toshib o [2004/11/16] kern/73999 usb [usb] USB Freezes when a device is plugge o [2005/01/07] usb/75928 usb Cytronix SmartMedia card (SMC) reader has o [2005/01/19] usb/76461 usb disklabel of umass(4)-CAM(4)-da(4) not us 46 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Jan 25 23:30:17 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CC9B16A4CE for ; Tue, 25 Jan 2005 23:30:17 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1965843D2D for ; Tue, 25 Jan 2005 23:30:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0PNUGXs028966 for ; Tue, 25 Jan 2005 23:30:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0PNUGHL028958; Tue, 25 Jan 2005 23:30:16 GMT (envelope-from gnats) Resent-Date: Tue, 25 Jan 2005 23:30:16 GMT Resent-Message-Id: <200501252330.j0PNUGHL028958@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, Craig Rodrigues Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B25416A4CE for ; Tue, 25 Jan 2005 23:21:59 +0000 (GMT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35CC643D1F for ; Tue, 25 Jan 2005 23:21:59 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.30.114.143]) by comcast.net (rwcrmhc13) with ESMTP id <20050125232158015009jb5ce>; Tue, 25 Jan 2005 23:21:58 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) j0PNLrZ8001112 for ; Tue, 25 Jan 2005 18:21:53 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)j0PNLruf001111; Tue, 25 Jan 2005 18:21:53 -0500 (EST) (envelope-from rodrigc) Message-Id: <200501252321.j0PNLruf001111@h00609772adf0.ne.client2.attbi.com> Date: Tue, 25 Jan 2005 18:21:53 -0500 (EST) From: Craig Rodrigues To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: usb/76684: Toshiba PDR-M4 camera connected via USB hangs system X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Craig Rodrigues List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 23:30:17 -0000 >Number: 76684 >Category: usb >Synopsis: Toshiba PDR-M4 camera connected via USB hangs system >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 25 23:30:16 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Craig Rodrigues >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD dibbler.crodrigues.org 6.0-CURRENT FreeBSD 6.0-CURRENT #52: Tue Jan 25 11:25:13 EST 2005 rodrigc@dibbler.crodrigues.org:/usr/obj/usr/src/sys/MYKERNEL1 i386 >Description: Connecting my Toshiba PDR-M4 camera via USB causes FreeBSD to lock up hard. Keyboard and mouse are unresponsive, and I cannot break into the kernel debugger via keyboard to get a stack trace. I get the following messages in dmesg: umass0: Toshiba PDR-M, rev 1.00/1.00 addr 2 umass0: SCSI over Bulk-Only; quirks = 0x0000 See the following messages for further info: http://lists.freebsd.org/mailman/htdig/freebsd-usb/2004-November/000245.html http://lists.freebsd.org/mailman/htdig/freebsd-usb/2004-November/000246.html Help on how to debug and solve this problem would be appreciated. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Jan 25 23:50:18 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F9A716A4CF for ; Tue, 25 Jan 2005 23:50:18 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C383543D48 for ; Tue, 25 Jan 2005 23:50:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0PNoHWO030281 for ; Tue, 25 Jan 2005 23:50:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0PNoHAj030280; Tue, 25 Jan 2005 23:50:17 GMT (envelope-from gnats) Resent-Date: Tue, 25 Jan 2005 23:50:17 GMT Resent-Message-Id: <200501252350.j0PNoHAj030280@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, Adam Kropelin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E926316A4CE for ; Tue, 25 Jan 2005 23:42:53 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF71C43D39 for ; Tue, 25 Jan 2005 23:42:53 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j0PNgr1p069493 for ; Tue, 25 Jan 2005 23:42:53 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j0PNgra5069492; Tue, 25 Jan 2005 23:42:53 GMT (envelope-from nobody) Message-Id: <200501252342.j0PNgra5069492@www.freebsd.org> Date: Tue, 25 Jan 2005 23:42:53 GMT From: Adam Kropelin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/76687: ugen USB_SET_TIMEOUT panics kernel when timeout ocurrs X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 23:50:18 -0000 >Number: 76687 >Category: usb >Synopsis: ugen USB_SET_TIMEOUT panics kernel when timeout ocurrs >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 25 23:50:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Adam Kropelin >Release: 6.0-CURRENT >Organization: >Environment: FreeBSD freebsd53.kroptech.com 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Mon Jan 24 22:19:49 EST 2005 root@freebsd53.kroptech.com:/usr/src/sys/i386/compile/GENERIC.adk i386 >Description: My userspace device driver (apcupsd bsd-usb) makes extensive use of ugen ioctls. Occasionally the USB_DO_REQUEST ioctl hangs (seemingly forever) and as a workaround I am attempting to implement timeouts via USB_SET_TIMEOUT. In doing so I am finding that if a request times out and the device still responds afterward, the kernel panics. The backtrace is... usb_transfer_complete+0xcd uhci_abort_xfer+0xcf uhci_timeout_task+0xd usb_task_thread+0x7d fork_exit+0xa4 fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xcc744d7c, ebp = 0 --- ..which corresponds to this code... /* if we allocated the buffer in usbd_transfer() we free it here. */ if (xfer->rqflags & URQ_AUTO_DMABUF) { c059e6d4 testb $0x10,0x48(%ebx) c059e6d8 je c059e6f8 if (!repeat) { c059e6da cmpl $0x0,0xffffffe8(%ebp) c059e6de jne c059e714 struct usbd_bus *bus = pipe->device->bus; c059e6e0 mov 0x4(%esi),%eax c059e6e3 mov (%eax),%eax bus->methods->freem(bus, dmap); c059e6e5 mov 0x4(%eax),%edx c059e6e8 pushl 0xfffffff0(%ebp) c059e6eb push %eax c059e6ec call *0x10(%edx) xfer->rqflags &= ~URQ_AUTO_DMABUF; c059e6ef andl $0xffffffef,0x48(%ebx) c059e6f3 add $0x8,%esp c059e6f6 mov %esi,%esi } } if (!repeat) { c059e6f8 cmpl $0x0,0xffffffe8(%ebp) c059e6fc jne c059e714 /* Remove request from queue. */ #ifdef DIAGNOSTIC if (xfer != SIMPLEQ_FIRST(&pipe->queue)) printf("usb_transfer_complete: bad dequeue %p != %p\n", xfer, SIMPLEQ_FIRST(&pipe->queue)); xfer->busy_free = XFER_BUSY; #endif SIMPLEQ_REMOVE_HEAD(&pipe->queue, next); c059e6fe mov 0x14(%esi),%eax c059e701 mov 0x4c(%eax),%eax c059e704 mov %eax,0x14(%esi) c059e707 test %eax,%eax c059e709 jne c059e714 c059e70b lea 0x14(%esi),%eax c059e70e mov %eax,0x18(%esi) c059e711 lea 0x0(%esi),%esi } >How-To-Repeat: Open a ugen control endpoint, set a very short timeout (say, 1 msec) using USB_SET_TIMEOUT ioctl, and issue a valid USB_DO_REQUEST ioctl. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Jan 26 14:24:18 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C74BD16A4CE for ; Wed, 26 Jan 2005 14:24:18 +0000 (GMT) Received: from web61007.mail.yahoo.com (web61007.mail.yahoo.com [216.155.196.96]) by mx1.FreeBSD.org (Postfix) with SMTP id 4F46C43D3F for ; Wed, 26 Jan 2005 14:24:18 +0000 (GMT) (envelope-from federicogalvezdurand@yahoo.com) Received: (qmail 92124 invoked by uid 60001); 26 Jan 2005 14:24:17 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Al5fHxIvJr88goavmcR8su+PM01aEcIeEIYp5UHB19QCprrLdAhFT1YLyv2tiELNx6UtjaZifiyLrC/yxLt2rT31qBWrOrrs2d2VWmxZsTm2WuQ8hX+8zkAPdW2b0gYAX5VLHMtPUs1RmYbRo70QC8hBYio+mRa6SOA/yUom/rQ= ; Message-ID: <20050126142417.92122.qmail@web61007.mail.yahoo.com> Received: from [195.186.254.135] by web61007.mail.yahoo.com via HTTP; Wed, 26 Jan 2005 06:24:17 PST Date: Wed, 26 Jan 2005 06:24:17 -0800 (PST) From: Federico Galvez-Durand To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 14:24:18 -0000 Hi Barry, I posted this sometime ago: http://lists.freebsd.org/mailman/htdig/freebsd-usb/2004-December/000318.html I have a ScanLogic SL11R based device. I also hacked umass.c to solve CSWtag != CBWtag. http://www.del.ufrj.br/~fico/FreeBSD/hack/umass_c_200501261510.diff Sorry I didn't submit my hack to this list before... looking for a better solution that never came. Anyway, my Scanlogic USBIDE mounts and reads well (I can play mpg video files). But I *cannot write* to this CDRW. So far: cdrecord -dummy -data -v -speed=2 -dev:0,0,0 test.iso fails logging to console: kernel: umass0: Unsupported ATAPI command 0x46 Just in case it is interesting for somebody else but me. Thank you for your commitment to support USB. Fico p.s.: uname -a FreeBSD HERE.org 5.3-STABLE FreeBSD 5.3-STABLE #25: Tue Jan 25 11:12:09 GMT-1 2005 ME@HERE.org:/home/hacks/kernel/obj/usr/src/sys/HERE i386 On Tue, 11 Jan 2005 11:46:16 -0800, Julian Elischer wrote: > >| a [2003/03/02] kern/48849 usb Maxtor XT5000 causes panic in boot > >I have such a device, and the only problem I've had (4.x) is minor, > >for which I added the NO_GETMAXLUN quirk. I use it all the time. > got a patch? Yes, but it doesn't address the problem -- if it exists -- that prompted the PR. -- cut'n'paste part of diff - tab damage -- danger -- --- /stand/FreeBSD4-src/source-hacks/sys/dev/usb/umass.c-NEWER-current Mon Dec 27 19:28:28 2004 +++ /stand/FreeBSD4-src/source-hacks/sys/dev/usb/umass.c Tue Dec 28 21:07 :39 2004 @@ -369,6 +384,12 @@ UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_QUIRKS }, +/* XXX HACK */ + { USB_VENDOR_MAXTOR, USB_PRODUCT_MAXTOR_5000, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_GETMAXLUN + }, +/* XXX HACK */ { USB_VENDOR_MELCO, USB_PRODUCT_MELCO_DUBPXXG, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, FORCE_SHORT_INQUIRY | NO_START_STOP | IGNORE_RESIDUE @@ -1084,7 +1106,8 @@ /* Get the maximum LUN supported by the device. */ - if ((sc->proto & UMASS_PROTO_WIRE) == UMASS_PROTO_BBB) + if ((sc->proto & UMASS_PROTO_WIRE) == UMASS_PROTO_BBB && /* XXX HACK */ + !(sc->quirks & NO_GETMAXLUN)) sc->maxlun = umass_bbb_get_max_lun(sc); else sc->maxlun = 0; > I'll add it and close the PR. You'll also need to add a couple vendor IDs to usbdevs, or the build will fail again. That's part of the giant diff I have, and as imp@ has been active on that front, I'm not sure how that is progressing. My line to add the vendor ID is surrounded by some 50 lines worth of diff, and the section of diff which adds the product is next to another vendor/product new entry that could potentially break the build. Also, the above cut-n-paste diff is part of a larger diff that makes current's umass.c a plug-in replacement for 4.x If a grep for `MAXTOR' in usbdevs returns the above added definitions, you're in luck; else it's probably easiest to apply them by hand to usbdevs from my latest diffs. All this does is (for me) to speed up boot by a good deal of time. Whether the Original Poster would still see the Original Problem, I cannot say -- perhaps it's also an interaction with the particular chipset in use. You'll need to get a followup from the OP before safely closing the PR. (There have been enough changes since that time that whatever it was could have been solved elsewhere, anyway) Also, if you're wanting to update quirk entries in umass.c, I needed to do the following to get one USB-IDE device to cooperate (in 4.x, based on -current code, not tested on other than 4.x; not sure if the original quirk entry was adequate for all devices, or if this particular adapter is more broken than normal, or if -current doesn't have this problem to start with)... (tab damage) @ -312,6 +321,9 @@ # define NO_INQUIRY 0x0400 /* Device cannot handle INQUIRY EVPD, return CHECK CONDITION */ # define NO_INQUIRY_EVPD 0x0800 +/* XXX */ + /* The device uses a weird CSW TAG. */ +# define WRONG_CSWTAG 0x1000 }; Static struct umass_devdescr_t umass_devdescrs[] = { @@ -419,7 +437,8 @@ }, { USB_VENDOR_SCANLOGIC, USB_PRODUCT_SCANLOGIC_SL11R, RID_WILDCARD, UMASS_PROTO_ATAPI | UMASS_PROTO_BBB, - NO_INQUIRY +/* XXX */ + NO_INQUIRY | WRONG_CSWTAG }, { USB_VENDOR_SHUTTLE, USB_PRODUCT_SHUTTLE_EUSB, RID_WILDCARD, UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I, @@ -1422,6 +1444,8 @@ { struct umass_softc *sc = (struct umass_softc *) priv; usbd_xfer_handle next_xfer; +/* XXX HACK */ + int Residue; KASSERT(sc->proto & UMASS_PROTO_BBB, ("%s: umass_bbb_state: wrong sc->proto 0x%02x\n", @@ -1595,7 +1619,12 @@ UGETDW(sc->csw.dCSWSignature) == CSWSIGNATURE_OLYMPUS_C1) USETDW(sc->csw.dCSWSignature, CSWSIGNATURE); - int Residue; +/* XXX HACK */ + /* Translate invalid command-status tags */ + if (sc->quirks & WRONG_CSWTAG) + USETDW(sc->csw.dCSWTag, UGETDW(sc->cbw.dCBWTag)); +/* XXX */ + Residue = UGETDW(sc->csw.dCSWDataResidue); if (Residue == 0 && sc->transfer_datalen - sc->transfer_actlen != 0) (relocation of Residue needed to quiet the 4.x compiler) Stupid adapter won't see more than 131GB-ish worth of disk, however; code for this quirk taken from NetBSD Again, no guarantee that I haven't failed to include all relevant parts of the diff needed to get a successful build. > >(I don't use EHCI due to eventual problems with it after some time; I need > >the stability, as of a few months ago) > ehci is improving.. transacions can now time out without crashing the > system.. My bad ehci/umass experience was also with NetBSD, after most of the commits from Charles Hannum that were supposed to fix the problem. I'll try again when I don't risk losing several days of work that I've been trying to complete uninterrupted for the last weeks without success. (Normal people would have thrown in the towel by now) thansk barry bouwsma * Previous message: Current problem reports assigned to you * Next message: Latest uaudio commits break Logitech USB Headset * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the freebsd-usb mailing list __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From owner-freebsd-usb@FreeBSD.ORG Wed Jan 26 20:50:23 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B402416A4CE for ; Wed, 26 Jan 2005 20:50:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C70F43D1F for ; Wed, 26 Jan 2005 20:50:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0QKoNa7021339 for ; Wed, 26 Jan 2005 20:50:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0QKoNp4021338; Wed, 26 Jan 2005 20:50:23 GMT (envelope-from gnats) Resent-Date: Wed, 26 Jan 2005 20:50:23 GMT Resent-Message-Id: <200501262050.j0QKoNp4021338@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, David Bremner Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CBA416A4CE for ; Wed, 26 Jan 2005 20:49:15 +0000 (GMT) Received: from convex.cs.unb.ca (convex.cs.unb.ca [131.202.244.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1102B43D1F for ; Wed, 26 Jan 2005 20:49:15 +0000 (GMT) (envelope-from bremner-dated-1107982154.778e05@unb.ca) Received: from bremner by convex.cs.unb.ca with local (Exim 4.43 (FreeBSD)) id 1Ctu6E-0000dg-7p for FreeBSD-gnats-submit@freebsd.org; Wed, 26 Jan 2005 16:49:14 -0400 Received: by convex.cs.unb.ca (tmda-sendmail, from uid 1266); Wed, 26 Jan 2005 16:49:14 -0400 (AST) Received: from bremner by convex.cs.unb.ca with local (Exim 4.43 (FreeBSD)) id 1Ctu6D-0000dW-O5 for FreeBSD-gnats-submit@freebsd.org; Wed, 26 Jan 2005 16:49:13 -0400 Message-Id: Date: Wed, 26 Jan 2005 16:49:13 -0400 From: David Bremner Sender: David Bremner To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: usb/76727: usb printing locks machine X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David Bremner List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 20:50:23 -0000 >Number: 76727 >Category: usb >Synopsis: usb printing locks machine >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 26 20:50:22 GMT 2005 >Closed-Date: >Last-Modified: >Originator: David Bremner >Release: FreeBSD 5.3-STABLE i386 >Organization: University of New Brunswick >Environment: System: FreeBSD convex.cs.unb.ca 5.3-STABLE FreeBSD 5.3-STABLE #21: Tue Jan 25 14:51:02 AST 2005 bremner@convex.cs.unb.ca:/usr/obj/usr/src/sys/CONVEX2 i386 >Description: Intermittently, printing postscript files to a Lexmark E323 via ulpt0 or unlpt0 will lock the machine. The X session on the console is frozen, and the machine is unresponsive to the network. I have WITNESS and usb debugging compiled into the kernel. I don't have crash dumps setup, but it does not seem to crash per se. >How-To-Repeat: Tricky. The same file when printed repeatedly will sometimes freeze, sometimes not. It happens often enough to be annoying. >Fix: At home, I switched my lexmark E321 to parallel port, and no crashes since then. At work I do not have that option. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Jan 26 22:00:41 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 844F616A4CE for ; Wed, 26 Jan 2005 22:00:41 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55F7B43D2D for ; Wed, 26 Jan 2005 22:00:41 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0QM0fxh028440 for ; Wed, 26 Jan 2005 22:00:41 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0QM0ffE028439; Wed, 26 Jan 2005 22:00:41 GMT (envelope-from gnats) Date: Wed, 26 Jan 2005 22:00:41 GMT Message-Id: <200501262200.j0QM0ffE028439@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: David Bremner Subject: Re: usb/76727: usb printing locks machine X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David Bremner List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 22:00:41 -0000 The following reply was made to PR usb/76727; it has been noted by GNATS. From: David Bremner To: freebsd-gnats-submit@FreeBSD.org, bremner@unb.ca Cc: Subject: Re: usb/76727: usb printing locks machine Date: Wed, 26 Jan 2005 17:59:46 -0400 Send in haste regret at leisure. Some more details. The lockup is sometimes after the job prints, sometimes before. I have the same experience with LPRng and the standard FreeBSD lpd. I guess I could try CUPS, but I am pretty skeptical... David From owner-freebsd-usb@FreeBSD.ORG Thu Jan 27 00:30:16 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9882116A4CE for ; Thu, 27 Jan 2005 00:30:16 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 537FB43D55 for ; Thu, 27 Jan 2005 00:30:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0R0UGtI047026 for ; Thu, 27 Jan 2005 00:30:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0R0UGts047025; Thu, 27 Jan 2005 00:30:16 GMT (envelope-from gnats) Resent-Date: Thu, 27 Jan 2005 00:30:16 GMT Resent-Message-Id: <200501270030.j0R0UGts047025@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, Han Hwei Woo Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C687416A4CE for ; Thu, 27 Jan 2005 00:24:45 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACEF843D1D for ; Thu, 27 Jan 2005 00:24:45 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j0R0OjAk028459 for ; Thu, 27 Jan 2005 00:24:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j0R0OjIb028458; Thu, 27 Jan 2005 00:24:45 GMT (envelope-from nobody) Message-Id: <200501270024.j0R0OjIb028458@www.freebsd.org> Date: Thu, 27 Jan 2005 00:24:45 GMT From: Han Hwei Woo To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/76732: Mouse problems with USB KVM Switch X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 00:30:16 -0000 >Number: 76732 >Category: usb >Synopsis: Mouse problems with USB KVM Switch >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: Thu Jan 27 00:30:15 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Han Hwei Woo >Release: 4.11-STABLE >Organization: >Environment: FreeBSD Sackserve.hh.net 4.11-STABLE FreeBSD 4.11-STABLE #10: Wed Jan 19 00:11:37 PST 2005 hhw@Sackserve.hh.net:/usr/obj/usr/src/sys/CUSTOM i386 >Description: When using a USB KVM switch, after switching back and forth from another machine a few times, mouse behaviour functions erroneously in Xorg (tested with both fluxbox and gnome 2.8). The mouse seems to focus on the previous location instead of the current position. For example, if having last used the mouse in a window, even if you switch to another window, the mouse will behave as if it was still positioned over the previous window (right click results in menu for previous window, etc.). >How-To-Repeat: As above >Fix: By unplugging the USB mouse and plugging it into the PS/2 port through an adapter and running moused, then plugging it back into the USB port, correct behaviour resumes. Could the problem be with some kind of loop or leftover queues when the USB mouse is detached? >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Jan 27 06:54:19 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96B5616A4CE for ; Thu, 27 Jan 2005 06:54:19 +0000 (GMT) Received: from gw-opfr.ulntc.ru (gw-opfr.ulntc.ru [83.217.1.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id E64CF43D39 for ; Thu, 27 Jan 2005 06:54:17 +0000 (GMT) (envelope-from 1801@083.pfr.ru) Received: from s083.083.pfr.ru (s083.opfr [10.83.0.11]) by gw-opfr.ulntc.ru (8.13.1/8.13.1) with ESMTP id j0R6sFEh028085 for ; Thu, 27 Jan 2005 09:54:15 +0300 Received: from w1801.opfr ([10.83.0.40]) by s083.083.pfr.ru (Lotus Domino Release 5.0.9a) with ESMTP id 2005012709541553:85 ; Thu, 27 Jan 2005 09:54:15 +0300 To: freebsd-usb@freebsd.org Date: Thu, 27 Jan 2005 09:54:14 +0300 From: 1801 <1801@083.pfr.ru> Organization: opfr MIME-Version: 1.0 Message-ID: User-Agent: Opera M2/7.50 (Win32, build 3778) X-MIMETrack: Itemize by SMTP Server on s083/083/PFR/RU(Release 5.0.9a |January 7, 2002) at 27.01.2005 09:54:15,2002) at 27.01.2005 09:54:17, Serialize complete at 27.01.2005 09:54:17 Content-Transfer-Encoding: 8bit Content-Type: text/plain; format=flowed; delsp=yes; charset=windows-1251 Subject: problem with udbp and netgraph in the usb LAN X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 06:54:19 -0000 Hi, all I have usb2usb link cable (no name)and try make usb network on two hosts (FreeBSD 5.3). I do everything as written in man 4 udbp: kldload netgraph kldload udbp Result : udbp0: Prolific Technology Inc. PL2302 Host-Host interface, rev 1.00/0.01, addr2, iclass 255/0. Then make: ngctl mkpeer udbp0: iface data inet, ifconfig ng0 10.0.0.1 10.0.0.2 on both hosts. Ping from 10.0.0.1 to 10.0.0.2 disappear through 1 minutes. How to make steady connection? Thanks in advance, Yuri. From owner-freebsd-usb@FreeBSD.ORG Thu Jan 27 11:50:28 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C789416A4D7 for ; Thu, 27 Jan 2005 11:50:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1F8843D2D for ; Thu, 27 Jan 2005 11:50:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0RBoPmZ054269 for ; Thu, 27 Jan 2005 11:50:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0RBoP6r054268; Thu, 27 Jan 2005 11:50:25 GMT (envelope-from gnats) Date: Thu, 27 Jan 2005 11:50:25 GMT Message-Id: <200501271150.j0RBoP6r054268@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Mikhail Teterin Subject: Re: kern/71155: [usb] misbehaving usb-printer hangs processes, causes panics X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mikhail Teterin List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 11:50:29 -0000 The following reply was made to PR kern/71155; it has been noted by GNATS. From: Mikhail Teterin To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: kern/71155: [usb] misbehaving usb-printer hangs processes, causes panics Date: Thu, 27 Jan 2005 06:41:41 -0500 I'm seeing the same thing with a different system running 5.3-stable and a different HP printer. A freshly booted system prints fine, but after some uptime an attempt to print results in some commotion on the printer and a flood of messages like: Jan 26 12:19:32 aldan hpijs: unable to write to output, fd=6, count=4096: m Jan 26 12:19:32 aldan hpijs: unable to send DeviceStatus: m Jan 26 12:19:32 aldan hpijs: unable to write to output, fd=6, count=4096: m Jan 26 12:19:32 aldan hpijs: unable to write to output, fd=6, count=4096: m Jan 26 12:19:32 aldan hpijs: unable to send DeviceStatus: m (Indeed, hpijs is programmed to keep trying after a write(2) fails.) After some time, the whole machine panics -- even if I manage to kill the "offending" hpijs process. Could it be, that after some time it is harder for the driver to get memory and the shortage-handling code is broken? This is quite embarassing, actually. A simple print job to panic a server? -mi From owner-freebsd-usb@FreeBSD.ORG Thu Jan 27 17:38:29 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18C4C16A4CE for ; Thu, 27 Jan 2005 17:38:29 +0000 (GMT) Received: from mailfe06.swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD3CB43D2F for ; Thu, 27 Jan 2005 17:38:27 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from [193.216.43.106] (HELO curly.tele2.no) by mailfe06.swip.net (CommuniGate Pro SMTP 4.2.7) with ESMTP id 276188475; Thu, 27 Jan 2005 18:38:26 +0100 Received: (from root@localhost) by curly.tele2.no (8.12.5/8.12.3) id j0RHjrZ3001031; Thu, 27 Jan 2005 18:45:53 +0100 (CET) (envelope-from hselasky@c2i.net) Date: Thu, 27 Jan 2005 18:45:51 +0100 From: Hans Petter Selasky To: 1801 <1801@083.pfr.ru> Message-ID: <20050127184551.B818@curly.tele2.no> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from 1801@083.pfr.ru on Thu, Jan 27, 2005 at 09:54:14AM +0300 cc: freebsd-usb@freebsd.org Subject: Re: problem with udbp and netgraph in the usb LAN X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 17:38:29 -0000 On Thu, Jan 27, 2005 at 09:54:14AM +0300, 1801 wrote: > Hi, all > I have usb2usb link cable (no name)and try make usb network on two hosts > (FreeBSD 5.3). > I do everything as written in man 4 udbp: > kldload netgraph > kldload udbp > Result : > udbp0: Prolific Technology Inc. PL2302 Host-Host interface, rev 1.00/0.01, > addr2, iclass 255/0. > Then make: > ngctl mkpeer udbp0: iface data inet, ifconfig ng0 10.0.0.1 10.0.0.2 on > both hosts. > Ping from 10.0.0.1 to 10.0.0.2 disappear through 1 minutes. > How to make steady connection? > Thanks in advance, Yuri. What kind of USB controller do you have? Looking through the code I found this problem: If a transmitted packet has a length that is divisible by "MaxPacketLength" then udbp_in_transfer_cb() will not be called. In other words the transmission will stop. So when udbp is sending packets, the flag USBD_FORCE_SHORT_XFER must be set? -- HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 29 02:11:48 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C313716A4CF; Sat, 29 Jan 2005 02:11:48 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-24-62.dclient.hispeed.ch [84.72.24.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27E0343D39; Sat, 29 Jan 2005 02:11:45 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [IPv6:2002:5448:183e:0:206:28ff:fed8:8dcf]) (8.13.2/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id j0T29OJq002277NO); Sat, 29 Jan 2005 03:09:32 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.13.2/FNORD) id j0T29N5F002276; Sat, 29 Jan 2005 03:09:23 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Sat, 29 Jan 2005 03:09:23 +0100 (CET) Message-Id: <200501290209.j0T29N5F002276@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL From: Barry Bouwsma References: <20050103205820.GA74545@users.altadena.net> <20050103214607.GB64429@cicely12.cicely.de> To: Pete Carah Mail-Followup-To: freebsd-usb@freebsd.org, hardware@freebsd.org, Pete@FreeBSD.ORG, Carah@FreeBSD.ORG cc: hardware@freebsd.org cc: freebsd-usb@freebsd.org cc: Bernd Walter Subject: X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barry Bouwsma List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2005 02:11:49 -0000 Subject: Re: Adaptec USB2Xchange [moved from current@ over to usb@ which seems more appropriate, left in hardware@ also ] > > I have reason to use a USB to SCSI adapter under FBSD. I have a USB2Xchange > > from Adaptec, but (as usual for adaptec) it requires a firmware load, which > > appears harder in usb than in PCI. Does anyone know how to do this? (Should > > Kernel attach message is: > > ugen0: Adaptec product 0x2002, rev 2.00/1.00, addr 2 > As far as I know the Adaptec parts can do multiple addreses, which is > not part of umass specification. > They may use a vendor extended umass or completely different protocol. > Whatever it is - the device doesn't offer itself as beeing umass. > With vendor specs it should be simple to teach our umass driver about > this special device, even if it really isn't umass. > Also firmware uploading in USB is very simple if you have vendor specs. Has anyone gotten any further with this? If not, I'll tell you what I've managed to do so far: Thanks to that post made to a Linux list which I referred to some weeks ago, and to the NetBSD uyap driver, I was able to get somewhere. First, from the posted message, I took the firmware includes file and hacked it to match the format of the ezload.c utility used by NetBSD's uyap. (No guarantee I got that right.) Then I modified NetBSD's uyap.c and called it uadaptec.c, to port it to FreeBSD 4.x and change a few things to match with the mailing list posting. I also ported ezload.c for FBSD 4.x. The list posting indicated that a special sequence needed to be sent after firmware load, or something. I tried adding that to ezload or uadaptec.c, but it wasn't quite successful. I suspect I need to send those as part of a umass.c quirk. Anyway, in my latest tests, building uadaptec.c as a module, I'm able to download the firmware, whereupon the device detaches from the bus, and then gets snagged again by ugen.ko, as it's not as pure a umass device as the code expects. When I add an entry to umass to grab the device (its product ID changes from 0x2002 before firmware load, to 0x2003 after), then it attaches to umass, and creates luns up to pass7, all of which have oddball zero-size geometry. The following two times I tried this, I got panics (divide by zero), so maybe I was lucky the first time, or else what I'm seeing is a result of not sending those missing commands. After the firmware load, here's what the device shows with `usbctl': DEVICE addr 3 DEVICE descriptor: bLength=18 bDescriptorType=device(1) bcdUSB=2.00 bDeviceClass=0 bDeviceSubClass=0 bDeviceProtocol=0 bMaxPacketSize=64 idVendor=0x03f3 idProduct=0x2003 bcdDevice=100 iManufacturer=1(Adaptec, Inc.) iProduct=2(Adaptec USB2-Xchange Adapter) iSerialNumber=3(020000008348) bNumConfigurations=1 CONFIGURATION descriptor 0: bLength=9 bDescriptorType=config(2) wTotalLength=32 bNumInterface=1 bConfigurationValue=1 iConfiguration=4(USB2.0 to SCSI) bmAttributes=80 bMaxPower=500 mA INTERFACE descriptor 0: bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 bAlternateSetting=0 bNumEndpoints=2 bInterfaceClass=255 bInterfaceSubClass=0 bInterfaceProtocol=255 iInterface=5(USB Mass Storage, Bulk Only) ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=2-out bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=6-in bmAttributes=bulk wMaxPacketSize=64 bInterval=0 current configuration 1 ---------- This is quite different from its power-up state, which hasn't been posted yet. I don't have any devices to attach to this adapter to see if that makes a difference. According to the Linux list post, the device is a well-behaved umass device after firmware load. Seeing that I have no idea what I'm doing, it's possible that I've botched the firmware include file. Or I could have maybe botched the ezload.c or uadaptec.c file, getting an address wrong or something. Or it could be that I need to add those missing resets to umass.c -- or that I wasn't doing them right in uadaptec.c. Or plenty of other things I could have screwed up. I've done all this for my hacked FreeBSD 4.x USB stack, but it should be pretty trivial to get this working with 5.x and -current for anyone who wants to give it a try. My umass.c is snarfed from an older -current, to get functioning multi-card-readers, which may be related to the problems with the luns of the adapter. The files I hacked upon can be found at https://NOSPAM.dyndns.dk/hacks/adaptec/ and you should be able to build from these just like most other modules. At the moment I'm missing a umass.c hack, and I'll put that up after sleeping on it or something. Without this hack, you probably won't panic your machine the way I did, but after uadaptec.ko grabs the adapter and stuffs it with code, it should then appear with the different product ID and different appearance with `usbctl' and such. If you snag it with umass.ko, the LED on the adapter will come on as well. These aren't the files I built, but after trying to clean them up (my hacks are easy to find searching XXX and/or HACK), so I may have broken them, but I'll sleep on it first before needing to think clearly. Feel free to take my work, erm, hacks, and do as you see fit with them, or make them work properly, or if you know more than I do, fix ezload.c to be a general-purpose loader handling both this adapter as well as the uyap for which it was written, and anything else that may need to use EZ-USB. So close, but yet so far... thanks barry bouwsma From owner-freebsd-usb@FreeBSD.ORG Sat Jan 29 09:09:52 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F4CF16A4CE for ; Sat, 29 Jan 2005 09:09:52 +0000 (GMT) Received: from zed.bpsw.biz (zed.bpsw.biz [67.18.135.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id E605243D1D for ; Sat, 29 Jan 2005 09:09:51 +0000 (GMT) (envelope-from lists@bridgeportsoftware.com) Received: from localhost (localhost [127.0.0.1]) by zed.bpsw.biz (Postfix) with ESMTP id 6328B595A; Sat, 29 Jan 2005 01:09:51 -0800 (PST) Received: from zed.bpsw.biz ([127.0.0.1]) by localhost (zed.bpsw.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 44556-07; Sat, 29 Jan 2005 01:09:49 -0800 (PST) Received: from fez.bpsw.biz (unknown [10.0.1.3]) by zed.bpsw.biz (Postfix) with ESMTP id B162C599C; Sat, 29 Jan 2005 01:09:49 -0800 (PST) Received: from [10.0.1.53] (unknown [10.0.1.53]) by fez.bpsw.biz (Postfix) with ESMTP id 5C41A3E8910; Sat, 29 Jan 2005 01:09:52 -0800 (PST) In-Reply-To: <200501290209.j0T29N5F002276@Mail.NOSPAM.DynDNS.dK> References: <20050103205820.GA74545@users.altadena.net> <20050103214607.GB64429@cicely12.cicely.de> <200501290209.j0T29N5F002276@Mail.NOSPAM.DynDNS.dK> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <727e1fefed711b5ee555b0a12cef4b9a@bridgeportsoftware.com> Content-Transfer-Encoding: 7bit From: Max Campos Date: Sat, 29 Jan 2005 01:09:48 -0800 To: Barry Bouwsma X-Mailer: Apple Mail (2.619.2) X-Virus-Scanned: amavisd-new at bpsw.biz cc: freebsd-usb@freebsd.org Subject: Re: Adaptec USB2Xchange X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2005 09:09:52 -0000 > Feel free to take my work, erm, hacks, and do as you see fit with > them, or make them work properly, or if you know more than I do, > fix ezload.c to be a general-purpose loader handling both this > adapter as well as the uyap for which it was written, and anything > else that may need to use EZ-USB. This was done eons ago in the form of a command-line utility; see the misc/ezload port. I have also made a few changes as well. If you have questions as to how it works / etc, let me know. I personally prefer to do the firmware load & renumeration (the reboot onto the loaded firmware) in userspace. Just add an entry like this in /etc/usb.conf: device "Some Device" vendor 0xaaaa product 0xbbbb release 0xcccc attach "/usr/local/bin/ezdownload -v /dev/${DEVNAME}" The device will attach as a ugen, then the firmware will be downloaded, the device reset, and then it will reattach as whatever it renumerates as. Put the firmware file in /usr/local/share/usb/firmware. - Max From owner-freebsd-usb@FreeBSD.ORG Sat Jan 29 15:24:10 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7184C16A4CF for ; Sat, 29 Jan 2005 15:24:10 +0000 (GMT) Received: from gw-opfr.ulntc.ru (gw-opfr.ulntc.ru [83.217.1.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EC0743D41 for ; Sat, 29 Jan 2005 15:24:08 +0000 (GMT) (envelope-from 1801@083.pfr.ru) Received: from s083.083.pfr.ru (s083.opfr [10.83.0.11]) by gw-opfr.ulntc.ru (8.13.1/8.13.1) with ESMTP id j0TFO6av028647 for ; Sat, 29 Jan 2005 18:24:06 +0300 Received: from Winlamer ([10.83.0.20]) by s083.083.pfr.ru (Lotus Domino Release 5.0.9a) with ESMTP id 2005012918240614:184 ; Sat, 29 Jan 2005 18:24:06 +0300 To: freebsd-usb@freebsd.org From: Kiselev <1801@083.pfr.ru> Organization: opfr MIME-Version: 1.0 Date: Sat, 29 Jan 2005 18:23:45 +0300 Message-ID: User-Agent: Opera7.21/Win32 M2 build 3218 X-MIMETrack: Itemize by SMTP Server on s083/083/PFR/RU(Release 5.0.9a |January 7, 2002) at 29.01.2005 18:24:06,2002) at 29.01.2005 18:24:08, Serialize complete at 29.01.2005 18:24:08 Content-Transfer-Encoding: 8bit Content-Type: text/plain; format=flowed; charset=windows-1251 Subject: Re: Re: problem with udbp and netgraph in the usb LAN X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2005 15:24:10 -0000 On Thu, Jan 27, 2005 at 09:54:14AM +0300, 1801 wrote: > Hi, all > I have usb2usb link cable (no name)and try make usb network on two > hosts (FreeBSD 5.3). > I do everything as written in man 4 udbp: > kldload netgraph > kldload udbp > Result : > udbp0: Prolific Technology Inc. PL2302 Host-Host interface, rev > 1.00/0.01, addr2, iclass 255/0. > Then make: > ngctl mkpeer udbp0: iface data inet, ifconfig ng0 10.0.0.1 10.0.0.2 on > both hosts. > Ping from 10.0.0.1 to 10.0.0.2 disappear through 1 minutes. > How to make steady connection? > Thanks in advance, Yuri. >> What kind of USB controller do you have? >> Looking through the code I found this problem: >> If a transmitted packet has a length that is divisible by >> "MaxPacketLength" then udbp_in_transfer_cb() will not be called. In >> other words the transmission will stop. So when udbp is sending >> packets, the flag USBD_FORCE_SHORT_XFER must be set? >> >> -- >> HPS My USB controller is: ohci0: mem 0xee000000-0xee000fff irq 20 at device 2.2 on pci0 ohci0: [GIANT-LOCKED] usb0: on ohci0 ohci1: mem 0xee001000-0xee001fff irq 23 at device 2.3 on pci0 ohci1: [GIANT-LOCKED] usb1: on ohci1. How to execute the idea set the flag USBD_FORCE_SHORT_XFER? I do not found anything in the(sysctl, rc.conf, GENERIC), and what to correct in the /usr/src/sys/dev/usb/ohci.c: if ((flags & USBD_FORCE_SHORT_XFER) && i don't know. Thanks in advance, Yuri From owner-freebsd-usb@FreeBSD.ORG Sat Jan 29 18:00:43 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C83216A55A for ; Sat, 29 Jan 2005 18:00:43 +0000 (GMT) Received: from mailfe10.swip.net (mailfe10.swipnet.se [212.247.155.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 020D743D46 for ; Sat, 29 Jan 2005 18:00:23 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from [193.217.202.190] (HELO curly.tele2.no) by mailfe10.swip.net (CommuniGate Pro SMTP 4.2.7) with ESMTP id 75970707; Sat, 29 Jan 2005 19:00:20 +0100 Received: (from root@localhost) by curly.tele2.no (8.12.5/8.12.3) id j0TI7sNs000623; Sat, 29 Jan 2005 19:07:54 +0100 (CET) (envelope-from hselasky@c2i.net) Date: Sat, 29 Jan 2005 19:07:52 +0100 From: Hans Petter Selasky To: Kiselev <1801@083.pfr.ru>, freebsd-usb@freebsd.org Message-ID: <20050129190752.A347@curly.tele2.no> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from 1801@083.pfr.ru on Sat, Jan 29, 2005 at 06:23:45PM +0300 Subject: Re: Re: problem with udbp and netgraph in the usb LAN X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2005 18:00:44 -0000 On Sat, Jan 29, 2005 at 06:23:45PM +0300, Kiselev wrote: > On Thu, Jan 27, 2005 at 09:54:14AM +0300, 1801 wrote: > > Hi, all > > I have usb2usb link cable (no name)and try make usb network on two > > hosts (FreeBSD 5.3). > > I do everything as written in man 4 udbp: > > kldload netgraph > > kldload udbp > > Result : > > udbp0: Prolific Technology Inc. PL2302 Host-Host interface, rev > > 1.00/0.01, addr2, iclass 255/0. > > Then make: > > ngctl mkpeer udbp0: iface data inet, ifconfig ng0 10.0.0.1 10.0.0.2 on > > both hosts. I assume that you use ifconfig ng0 10.0.0.2 10.0.0.1 on the remote host. > > How to make steady connection? > > Thanks in advance, Yuri. > > >> What kind of USB controller do you have? > >> Looking through the code I found this problem: > >> If a transmitted packet has a length that is divisible by > >> "MaxPacketLength" then udbp_in_transfer_cb() will not be called. In > >> other words the transmission will stop. So when udbp is sending > >> packets, the flag USBD_FORCE_SHORT_XFER must be set? > >> > >> -- > >> HPS > > My USB controller is: > ohci0: mem 0xee000000-0xee000fff irq 20 at > device 2.2 > on pci0 > ohci0: [GIANT-LOCKED] > usb0: on ohci0 > ohci1: mem 0xee001000-0xee001fff irq 23 at > device 2.3 > on pci0 > ohci1: [GIANT-LOCKED] > usb1: on ohci1. > How to execute the idea set the flag USBD_FORCE_SHORT_XFER? > I do not found anything in the(sysctl, rc.conf, GENERIC), and what to > correct in > the /usr/src/sys/dev/usb/ohci.c: if ((flags & USBD_FORCE_SHORT_XFER) && > i don't know. > Thanks in advance, Yuri > In the file /usr/src/sys/dev/usb/udbp.c: Add "#define USB_DEBUG" at the beginning. In the function udbp_setup_out_transfer() change: (void) usbd_setup_xfer( sc->sc_bulkout_xfer, sc->sc_bulkout_pipe, priv, sc->sc_bulkout_buffer, pktlen, USBD_SHORT_XFER_OK, UDBP_TIMEOUT, udbp_out_transfer_cb); into: (void) usbd_setup_xfer( sc->sc_bulkout_xfer, sc->sc_bulkout_pipe, priv, sc->sc_bulkout_buffer, pktlen, USBD_SHORT_XFER_OK|USBD_FORCE_SHORT_XFER, UDBP_TIMEOUT, udbp_out_transfer_cb); Then "cd /usr/src/sys/modules/udbp" and "make clean" and "make all install clean" Unplug your device. Reload the udbp module or reboot the computer. Run "sysctl hw.usb.udbp.debug=15", plug your device and try again. -- HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 29 18:04:42 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EA2F16A4CE for ; Sat, 29 Jan 2005 18:04:42 +0000 (GMT) Received: from bsd.ultra-secure.de (bsd.ultra-secure.de [62.146.20.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42BC543D31 for ; Sat, 29 Jan 2005 18:04:41 +0000 (GMT) (envelope-from rainer@ultra-secure.de) Received: (qmail 94737 invoked by uid 1005); 29 Jan 2005 18:04:39 -0000 Received: from rainer@ultra-secure.de by bsd.ultra-secure.de by uid 89 with qmail-scanner-1.22 Clear:RC:1(217.232.231.140):. Processed in 0.834874 secs); 29 Jan 2005 18:04:39 -0000 Received: from unknown (HELO ?192.168.1.224?) (rainer@ultra-secure.de@217.232.231.140) by bsd.ultra-secure.de with (DHE-RSA-AES256-SHA encrypted) SMTP; 29 Jan 2005 18:04:38 -0000 Message-ID: <41FBDD1E.2040308@ultra-secure.de> Date: Sat, 29 Jan 2005 19:59:42 +0100 From: Rainer Duffner User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en 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 external CD-burner X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2005 18:04:42 -0000 Hi, I bought an internal Pioneer DVR-107D DVD+/-RW writer and it works when I connect it via it's ATA interface. However, I also bought a external USB 2.0 case. When I try to burn with K3B via USB, I get the following error: "unable to GET CONFIGURATION: input/output error" "non MMC-unit?" In /var/log/messages I get things like these: Jan 29 18:55:18 freebsd5 kernel: umass0: Unsupported ATAPI command 0x46 Jan 29 18:55:19 freebsd5 last message repeated 2 times Jan 29 18:55:19 freebsd5 kernel: umass0: Unsupported ATAPI command 0xac Jan 29 18:55:19 freebsd5 kernel: umass0: Unsupported ATAPI command 0x46 Is there a way to get the writer work with FreeBSD ? It works with SuSE 9.2 (USB) on my laptop, so I guess it is not a general problem with the external case. cheers, Rainer -- =================================================== ~ Rainer Duffner - rainer@ultra-secure.de ~ ~ Freising - Munich - Germany ~ ~ Unix - Linux - BSD - OpenSource - Security ~ ~ http://www.ultra-secure.de/~rainer/pubkey.pgp ~ ===================================================