From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 22:31:03 2004 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 D319516A4CE for ; Fri, 3 Dec 2004 22:31:03 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A311C43D46 for ; Fri, 3 Dec 2004 22:31:03 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 7AC057A452; Fri, 3 Dec 2004 14:31:03 -0800 (PST) Message-ID: <41B0E927.5020904@elischer.org> Date: Fri, 03 Dec 2004 14:31:03 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: "M. Warner Losh" References: <41B0DD18.9080300@elischer.org> <20041203.144432.89673091.imp@bsdimp.com> <41B0E3E0.4030207@elischer.org> <20041203.151630.29463265.imp@bsdimp.com> In-Reply-To: <20041203.151630.29463265.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@FreeBSD.ORG Subject: Re: Question about pipes and ugen 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: Fri, 03 Dec 2004 22:31:03 -0000 M. Warner Losh wrote: >In message: <41B0E3E0.4030207@elischer.org> > Julian Elischer writes: >: When the device times out on endpoint 3, Linux (thorugh libusb) issues a >: ClearFeature(Halt) >: which seems to get everything going again. FreeBSD doesn't, so we have >: to power teh device >: down and re-power it (!yuk!). > >I have a device that times out. I'll note that FreeBSD does send a >ClearFeature(Halt) to that device's endpoint in that case, as I've >verified with my usb sniffer. However, we didn't always do that, and >some older 4.x versions of FreeBSD definitely don't do it right and >sends nothing. > Have you seen crashed resulting from EHCI timeouts? the EHCI driver releases teh xfer and buffers before teh hardware has finished with them and if the command then completes, teh data is DMA's into the now "free" buffer, currupting th elinked list pointers for the free list. (verified on 4.x and -current). > >I'm having a hard time understanding when this is needed and not >actually done by our -current stack. > Well, I'll check again because I'm runnig 4-stable at the USB sniffer.. I have however confirmed that the same behaviour is seen on a 6-current machine but I didn't have the sniffer on that (too far away). I'll go check that it actually looks the same on the wire.. (requires hauling the sniffer machine..) > >Warner > >