From owner-freebsd-usb@FreeBSD.ORG Thu Mar 29 15:19:13 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 E58B316A405 for ; Thu, 29 Mar 2007 15:19:13 +0000 (UTC) (envelope-from m.henschel@bally-wulff.de) Received: from mail2.bally-wulff-berlin.de (mail2.bally-wulff-berlin.de [212.144.118.9]) by mx1.freebsd.org (Postfix) with ESMTP id 143B813C45D for ; Thu, 29 Mar 2007 15:19:12 +0000 (UTC) (envelope-from m.henschel@bally-wulff.de) Message-ID: <460BD8EC.5060900@bally-wulff.de> Date: Thu, 29 Mar 2007 17:19:08 +0200 From: Markus Henschel MIME-Version: 1.0 To: Hans Petter Selasky References: <200703271940.l2RJe90x058558@freefall.freebsd.org> <200703281832.22527.hselasky@c2i.net> <460AB387.20304@bally-wulff.de> <200703290838.57458.hselasky@c2i.net> In-Reply-To: <200703290838.57458.hselasky@c2i.net> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Mar 2007 15:19:08.0183 (UTC) FILETIME=[98812A70:01C77215] Cc: freebsd-usb@freebsd.org Subject: Re: usb/110855: ugen: interrupt in msgs are truncated when buffer is full 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, 29 Mar 2007 15:19:14 -0000 Hans Petter Selasky schrieb: > > Does it hang as long as before ? > > If you try to increase the delay again, does that help? > > Edit sys/dev/usb/umass.c > > Then lookup: > > usbd_delay_ms(uaa->device, 1000); > > Change it into: > > usbd_delay_ms(uaa->device, 5000); > >> Thank you for your time. Let me know if you want me to try other >> changes. May be it would be easier if you could create a branch in svn >> with the changes needed? > > Maybe. > > --HPS > Hi, changing usbd_delay_ms(uaa->device, 1000); to usbd_delay_ms(uaa->device, 5000); increases the overall delay be 4 seconds :-). The value given there doesn't seem to be related to the problem. The first returned CCW is always invalid for that stick. I did some experiments with the other change you suggested. When I change: sc->sc_last_xfer_index = UMASS_T_BBB_COMMAND; to sc->sc_last_xfer_index = UMASS_T_BBB_STATUS; the first CCW is still invalid but the hanging is gone (overall detection time is still much longer than with the old usb stuff). I also tried to use the original umass.c together with the new usb stack. It seems to work. There result is similar to changing sc->sc_last_xfer_index = UMASS_T_BBB_STATUS. -- Regards, Markus Henschel Development BALLY WULFF Automaten GmbH Maybachufer 48-51 12045 Berlin Phone: +49(30)62002 161 FAX: +49(30)62002 230 http://www.ballywulff.de