From owner-freebsd-usb@FreeBSD.ORG Sun Apr 3 08:33:26 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 1398616A4CF; Sun, 3 Apr 2005 08:33:26 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67E3943D5A; Sun, 3 Apr 2005 08:33:25 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j338XPZI061422; Sun, 3 Apr 2005 08:33:25 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j338XPXP061418; Sun, 3 Apr 2005 08:33:25 GMT (envelope-from linimon) Date: Sun, 3 Apr 2005 08:33:25 GMT From: Mark Linimon Message-Id: <200504030833.j338XPXP061418@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/78543: [patch] Support for Trip-Lite USB 2 Serial adapter 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, 03 Apr 2005 08:33:26 -0000 Old Synopsis: Support for Trip-Lite USB 2 Serial adapter New Synopsis: [patch] Support for Trip-Lite USB 2 Serial adapter Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Sun Apr 3 08:33:00 GMT 2005 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=78543 From owner-freebsd-usb@FreeBSD.ORG Sun Apr 3 08:53:36 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 9789316A4CE; Sun, 3 Apr 2005 08:53:36 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FC5A43D3F; Sun, 3 Apr 2005 08:53:36 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j338ra05072717; Sun, 3 Apr 2005 08:53:36 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j338raLW072713; Sun, 3 Apr 2005 08:53:36 GMT (envelope-from linimon) Date: Sun, 3 Apr 2005 08:53:36 GMT From: Mark Linimon Message-Id: <200504030853.j338raLW072713@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/75578: [patch] QUIRK: PNY USB flash key 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, 03 Apr 2005 08:53:36 -0000 Synopsis: [patch] QUIRK: PNY USB flash key Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Sun Apr 3 08:53:25 GMT 2005 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=75578 From owner-freebsd-usb@FreeBSD.ORG Sun Apr 3 09:01:24 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 9C68516A4CF; Sun, 3 Apr 2005 09:01:24 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CBD443D3F; Sun, 3 Apr 2005 09:01:24 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3391O2Q077448; Sun, 3 Apr 2005 09:01:24 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3391OxE077444; Sun, 3 Apr 2005 09:01:24 GMT (envelope-from linimon) Date: Sun, 3 Apr 2005 09:01:24 GMT From: Mark Linimon Message-Id: <200504030901.j3391OxE077444@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. 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, 03 Apr 2005 09:01:24 -0000 Synopsis: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Sun Apr 3 09:00:48 GMT 2005 Responsible-Changed-Why: Reassign to appropriate mailing list. http://www.freebsd.org/cgi/query-pr.cgi?pr=74989 From owner-freebsd-usb@FreeBSD.ORG Sun Apr 3 09:05: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 6C4A716A4CE; Sun, 3 Apr 2005 09:05:18 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 443B343D2F; Sun, 3 Apr 2005 09:05:18 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3395I3m080180; Sun, 3 Apr 2005 09:05:18 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3395I2K080175; Sun, 3 Apr 2005 09:05:18 GMT (envelope-from linimon) Date: Sun, 3 Apr 2005 09:05:18 GMT From: Mark Linimon Message-Id: <200504030905.j3395I2K080175@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/74557: imation 500mb usb key can only be written halfway on freebsd 5.3 and 5.2.1 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, 03 Apr 2005 09:05:18 -0000 Synopsis: imation 500mb usb key can only be written halfway on freebsd 5.3 and 5.2.1 Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Sun Apr 3 09:04:58 GMT 2005 Responsible-Changed-Why: Reassign to appropriate mailing list. http://www.freebsd.org/cgi/query-pr.cgi?pr=74557 From owner-freebsd-usb@FreeBSD.ORG Sun Apr 3 15:05: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 D5C8116A4CE for ; Sun, 3 Apr 2005 15:05:46 +0000 (GMT) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6782843D2D for ; Sun, 3 Apr 2005 15:05:45 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-216-43-230.daxnet.no ([193.216.43.230] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 4.2.9) with ESMTP id 136568281; Sun, 03 Apr 2005 17:05:43 +0200 From: Hans Petter Selasky To: Sebastien B Date: Sun, 3 Apr 2005 17:06:38 +0200 User-Agent: KMail/1.7 References: <6.2.1.2.0.20050329222822.04f7c500@64.7.153.2> <200504021316.59434.hselasky@c2i.net> <200504022220.49835.sebastien.b@swissinfo.org> In-Reply-To: <200504022220.49835.sebastien.b@swissinfo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504031706.39252.hselasky@c2i.net> cc: freebsd-usb@freebsd.org Subject: Re: panic: uhci_abort_xfer: not in process context X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2005 15:05:46 -0000 On Saturday 02 April 2005 22:20, Sebastien B wrote: > > > > You can call usbd_transfer(), if the transfer is not > > > > synchronous. > > > > > > But it is. To send network packets, I must perform two USB transfers on > > > two different endpoints, and I must wait for the first one to complete > > > before initiating the second. > > > > What you need to do is to allocate two [non synchronous] transfers > > besides from the data transfer. The callback of the first transfer starts > > the second transfer. The callback of the second transfer starts the data > > transfer. Then you need to make a flag so that the first transfer is not > > started again, before the data transfer has been started. > > This requires a quite complex locking mechanism by comparison to scheduling > a software interrupt handler. The existing USB driver is all under Giant. So locking will not be very complex. Don't forget to lock/unlock Giant if you call USB functions from a software interrupt handler. > Why is using a software interrupt handler and synchronous transfers wrong ? There is nothing wrong with creating your own thread to do things from, except you get a little overhead releated to task switch and you need to handle race conditions related to deatch. Somehow you need to abort the transfers that might be active and your thread needs to exit. This is all much simpler if you "chain" the USB-transfers. Then you simply abort the pipes you are using, and there is nothing more to consider. > > I've disabled the timeout in usbd_bulk_transfer() and it does not panic > anymore. So this is indeed the timeout function which causes the panic when > it is called. > Yes, the timeout in the existing USB driver does not work. The timeout is called because the transfer does not complete. Add some printf's and you will find out that usbd_bulk_transfer() does not return! On Saturday 02 April 2005 17:32, Ian Dowse wrote: > > It would be possible to implement an asynchronous version of > usbd_abort_pipe() that invokes a callback on completion. That seems > like a good idea, as it would allow us to handle the cases where > we need to initiate the abort from a callback. > If one doesn't block when a transfer is aborted, one has to block when the transfer is started again, so the problem is not solved. But I don't understand: If usbd_abort_pipe() is called from a non-blocking context for example an USB-callback, and it is able to detect this, why does it not pass a flag to the hardware abort routine to use DELAY() instead of tsleep()? Even if it is not efficient, that is a driver design problem. Also if a synchronous transfer is started from an USB-callback, why does the existing driver not poll the hardware until the transfer has finished? Yours --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Apr 3 15:47:30 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 41AC016A4CE for ; Sun, 3 Apr 2005 15:47:30 +0000 (GMT) Received: from avscan1.sentex.ca (avscan1.sentex.ca [199.212.134.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7519543D3F for ; Sun, 3 Apr 2005 15:47:29 +0000 (GMT) (envelope-from mike@sentex.net) Received: from localhost (localhost.sentex.ca [127.0.0.1]) by avscan1.sentex.ca (8.12.11/8.12.11) with ESMTP id j33FlQJU018812; Sun, 3 Apr 2005 11:47:26 -0400 (EDT) (envelope-from mike@sentex.net) Received: from avscan1.sentex.ca ([127.0.0.1]) by localhost (avscan1.sentex.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18231-05; Sun, 3 Apr 2005 11:47:25 -0400 (EDT) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by avscan1.sentex.ca (8.12.11/8.12.11) with ESMTP id j33FlKY0018806; Sun, 3 Apr 2005 11:47:20 -0400 (EDT) (envelope-from mike@sentex.net) Received: from simian.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.12.11/8.12.11) with ESMTP id j33FlEkh037183; Sun, 3 Apr 2005 11:47:14 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <6.2.1.2.0.20050403112813.03f5d610@64.7.153.2> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Sun, 03 Apr 2005 11:46:19 -0400 To: Ian Dowse From: Mike Tancsa In-Reply-To: <200504021416.aa22417@salmon.maths.tcd.ie> References: <200504021416.aa22417@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at avscan1b cc: ticso@cicely.de cc: freebsd-usb@freebsd.org Subject: Re: panic: uhci_abort_xfer: not in process context (was Re: uplcom / ucom problems on RELENG_5) 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, 03 Apr 2005 15:47:30 -0000 At 09:16 AM 02/04/2005, Ian Dowse wrote: >In message <6.2.1.2.0.20050331074641.04f72eb8@64.7.153.2>, Mike Tancsa writes: > >panic: uhci_abort_xfer: not in process context >... > >#6 0xc04d2c1f in usbd_abort_pipe (pipe=0xc19c7e00) > >#7 0xc04c3cf5 in ucomstopread (sc=0x0) > >#8 0xc04c38ba in ucomstop (tp=0xc171c000, flag=1) > >#9 0xc054b393 in ttyflush (tp=0xc171c000, rw=1) > >#10 0xc054974d in ttyinput (c=26, tp=0xc171c000) > >In this case I wonder if the transfer needs to be aborted at all, >since it is just restarted immediately afterwards. Mike, maybe you >could try the following patch? Sorry, I haven't tested this, so I >may be missing something obvious. So far so good! I have been running with this patch for almost 24hrs and still no panic and also the modem attached to the serial device has not hung! I am however getting those putc to a clist with no reserved cblocks putc to a clist with no reserved cblocks putc to a clist with no reserved cblocks putc to a clist with no reserved cblocks putc to a clist with no reserved cblocks spews still. However, on the [hifn]% uname -a FreeBSD hifn.sentex.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Fri Apr 1 02:20:32 EST 2005 mdtancsa@hifn.sentex.net:/usr/obj/usr/src/sys/recycle i386 [hifn]% I am not getting any of those warning/error messages and it has not crashed either. But, its different hardware, and its just stock CURRENT. I am going to restart the test on RELENG_5 to try out some newer drivers and let it run for another 24hrs. ---Mike From owner-freebsd-usb@FreeBSD.ORG Sun Apr 3 15:53:06 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 B719B16A4CE for ; Sun, 3 Apr 2005 15:53:06 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD4C043D2D for ; Sun, 3 Apr 2005 15:53:05 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j33Fqxsf088466 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sun, 3 Apr 2005 17:53:02 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j33Fqchs038685 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 3 Apr 2005 17:52:39 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j33Fqc5j037763; Sun, 3 Apr 2005 17:52:38 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j33FqcSo037762; Sun, 3 Apr 2005 17:52:38 +0200 (CEST) (envelope-from ticso) Date: Sun, 3 Apr 2005 17:52:38 +0200 From: Bernd Walter To: Hans Petter Selasky Message-ID: <20050403155237.GC36141@cicely12.cicely.de> References: <6.2.1.2.0.20050329222822.04f7c500@64.7.153.2> <200504021316.59434.hselasky@c2i.net> <200504022220.49835.sebastien.b@swissinfo.org> <200504031706.39252.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504031706.39252.hselasky@c2i.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: Sebastien B cc: freebsd-usb@freebsd.org Subject: Re: panic: uhci_abort_xfer: not in process context X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2005 15:53:06 -0000 On Sun, Apr 03, 2005 at 05:06:38PM +0200, Hans Petter Selasky wrote: > On Saturday 02 April 2005 17:32, Ian Dowse wrote: > > It would be possible to implement an asynchronous version of > > usbd_abort_pipe() that invokes a callback on completion. That seems > > like a good idea, as it would allow us to handle the cases where > > we need to initiate the abort from a callback. > > If one doesn't block when a transfer is aborted, one has to block when the > transfer is started again, so the problem is not solved. But I don't > understand: If usbd_abort_pipe() is called from a non-blocking context for > example an USB-callback, and it is able to detect this, why does it not pass > a flag to the hardware abort routine to use DELAY() instead of tsleep()? Even > if it is not efficient, that is a driver design problem. Also if a > synchronous transfer is started from an USB-callback, why does the existing > driver not poll the hardware until the transfer has finished? No - Ian is right - the panic has to be there. My original complains where not about the panic itself - I errously asumed it triggers in wrong cases. The panic is there to enforce proper driver design. While DELAY would allow the machine to run in principle it is that bad for system speed that you can't allow. Abort_pipe for currently supported host controller require a delay for a whole USB frame. If you block the interrupt routine for that long you can easily break performance to almost zero. And you loose two whole frames which break isochronous and interrupt pipe requirements. Not to speak about wasted CPU time. Overall it is nothing really new to driver programmers - it was never OK to waste time in upcalls. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Sun Apr 3 19:31:11 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 B66F716A4CE; Sun, 3 Apr 2005 19:31:11 +0000 (GMT) Received: from buitenpost.surfnet.nl (buitenpost.surfnet.nl [192.87.108.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5A8543D3F; Sun, 3 Apr 2005 19:31:10 +0000 (GMT) (envelope-from x+freebsd-gnats@surf.net) Received: from incoming-s.surfnet.nl ([192.87.108.21] helo=localhost) by buitenpost.surfnet.nl with esmtp (Exim 4.50 (FreeBSD)) id 1DIAo6-000KsB-0t; Sun, 03 Apr 2005 21:30:50 +0200 Date: Sun, 3 Apr 2005 21:31:05 +0200 (W. Europe Daylight Time) From: Xander Jansen To: Ian Dowse In-Reply-To: Message-ID: References: <200503271935.j2RJZcCN046327@freefall.freebsd.org> Organisation: SURFnet bv Address: "Radboudburcht, P.O. Box 19035, 3501 DA Utrecht, NL" Phone: +31 302 305 305 Telefax: +31 302 305 329 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-usb@FreeBSD.org Subject: Re: kern/59803: [usb] Wrong detection of/panic with Edimax USB 2.0 Cardbus host controller 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, 03 Apr 2005 19:31:11 -0000 On Sun, 27 Mar 2005, Xander Jansen wrote: + On Sun, 27 Mar 2005, Ian Dowse wrote: + + + Synopsis: [usb] Wrong detection of/panic with Edimax USB 2.0 Cardbus host controller + + + + Does this problem still occur in a more recent -STABLE? + + It disappeared somewhere between 5.2.1 and 5.3 (see the Sat, 11 Dec 2004 + entry in the PR). Should I try a recent -STABLE to see if it re-appeared? Finally got a 5.4-STABLE image and tested the card again. No regression. It even seems to be a bit better. When inserting a USB disk the 'transfers' is reported as 40 MB/s (was 1MB/s with 5.3) and writes seem to be a bit faster (no real benchmarking though). This PR definitely can be closed. Cheers, Xander ----- additinal datapoints with 5.4-STABLE [ GENERIC + ehci ] FreeBSD 5.4-STABLE #0: Sun Apr 3 16:04:17 CEST 2005 root@current.phaze-III.sec.nl:/usr/obj/usr/src/sys/EHCI [ insert card ] cardbus0: Resource not specified in CIS: id=10, size=1000 ohci0: mem 0xf8001000-0xf8001fff irq 11 at device 0.0 on cardbus0 usb4: OHCI version 1.0 usb4: on ohci0 usb4: USB revision 1.0 uhub4: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub4: 3 ports with 3 removable, self powered cardbus0: Resource not specified in CIS: id=10, size=1000 ohci1: mem 0xf8002000-0xf8002fff irq 11 at device 0.1 on cardbus0 usb5: OHCI version 1.0 usb5: on ohci1 usb5: USB revision 1.0 uhub5: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub5: 2 ports with 2 removable, self powered cardbus0: Resource not specified in CIS: id=10, size=100 ehci1: mem 0xf8003000-0xf80030ff irq 11 at device 0.2 on cardbus0 usb6: EHCI version 1.0 usb6: companion controllers, 3 ports each: usb4 usb5 usb6: on ehci1 usb6: USB revision 2.0 uhub6: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub6: 5 ports with 5 removable, self powered [ insert USB 2.0 disk ] umass0: Prolific Technology Inc. Mass Storage Device, rev 2.00/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 38154MB (78140161 512 byte sectors: 255H 63S/T 4864C) # dd if=/dev/zero of=ehcitest.dd bs=1024 count=1000000 1000000+0 records in 1000000+0 records out 1024000000 bytes transferred in 97.361956 secs (10517455 bytes/sec) [ http://www.freebsd.org/cgi/query-pr.cgi?pr=59803 ] -- New systems generate new problems. From owner-freebsd-usb@FreeBSD.ORG Mon Apr 4 01:45:55 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 DB1FD16A4CF; Mon, 4 Apr 2005 01:45:55 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B052E43D45; Mon, 4 Apr 2005 01:45:55 +0000 (GMT) (envelope-from iedowse@FreeBSD.org) Received: from freefall.freebsd.org (iedowse@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j341jtVK009264; Mon, 4 Apr 2005 01:45:55 GMT (envelope-from iedowse@freefall.freebsd.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j341jt92009260; Mon, 4 Apr 2005 01:45:55 GMT (envelope-from iedowse) Date: Mon, 4 Apr 2005 01:45:55 GMT From: Ian Dowse Message-Id: <200504040145.j341jt92009260@freefall.freebsd.org> To: x+freebsd-gnats@surf.net, iedowse@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/59803: [usb] Wrong detection of/panic with Edimax USB 2.0 Cardbus host controller 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, 04 Apr 2005 01:45:56 -0000 Synopsis: [usb] Wrong detection of/panic with Edimax USB 2.0 Cardbus host controller State-Changed-From-To: feedback->closed State-Changed-By: iedowse State-Changed-When: Mon Apr 4 01:43:53 GMT 2005 State-Changed-Why: Submitter confirms that this has been fixed. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=59803 From owner-freebsd-usb@FreeBSD.ORG Mon Apr 4 01:50:22 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 5896816A4CE; Mon, 4 Apr 2005 01:50:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DB3643D1D; Mon, 4 Apr 2005 01:50:22 +0000 (GMT) (envelope-from iedowse@FreeBSD.org) Received: from freefall.freebsd.org (iedowse@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j341oM8c009545; Mon, 4 Apr 2005 01:50:22 GMT (envelope-from iedowse@freefall.freebsd.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j341oLdU009540; Mon, 4 Apr 2005 01:50:21 GMT (envelope-from iedowse) Date: Mon, 4 Apr 2005 01:50:21 GMT From: Ian Dowse Message-Id: <200504040150.j341oLdU009540@freefall.freebsd.org> To: sergio.jorde@sportsystems.es, iedowse@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/75941: system halted during booting due to ehci 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, 04 Apr 2005 01:50:22 -0000 Synopsis: system halted during booting due to ehci State-Changed-From-To: feedback->closed State-Changed-By: iedowse State-Changed-When: Mon Apr 4 01:49:33 GMT 2005 State-Changed-Why: Submitter confirms that the problem is fixed. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=75941 From owner-freebsd-usb@FreeBSD.ORG Mon Apr 4 11:01:58 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 B363E16A4E8 for ; Mon, 4 Apr 2005 11:01:58 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CD9543D45 for ; Mon, 4 Apr 2005 11:01:58 +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.3/8.13.3) with ESMTP id j34B1wAb012311 for ; Mon, 4 Apr 2005 11:01:58 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j34B1vmf012305 for freebsd-usb@freebsd.org; Mon, 4 Apr 2005 11:01:57 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 4 Apr 2005 11:01:57 GMT Message-Id: <200504041101.j34B1vmf012305@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, 04 Apr 2005 11:01:58 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- 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 f [2003/02/17] kern/48359 usb SiS 5597/8 USB + uscanner breakage f [2003/03/05] kern/48952 usb uscanner0 hangs 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 ( f [2004/01/11] kern/61191 usb [usb] panic: USB vs. Serial problems o [2004/01/20] kern/61627 usb [usb] [patch] New USB printer not support 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 f [2004/01/30] kern/62123 usb [usb] LaCie 160GB USB drive umass: BBB re f [2004/02/23] i386/63251 usb [usb] USB stops working after 2nd APM sus f [2004/03/01] kern/63621 usb [usb] USB MemoryStick Reader stalls/crash f [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 f [2004/10/11] i386/72497 usb WD USB Disk Panics -stable and 5.2.1 o [2004/10/30] kern/73307 usb Kernel panics on USB disconnect f [2004/11/18] kern/74088 usb ohci ehci uhub: port disabled on connecti 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 f [2005/01/25] usb/76684 usb Toshiba PDR-M4 camera connected via USB h f [2005/01/26] usb/76727 usb usb printing locks machine f [2005/01/30] usb/76847 usb ukbd panics on boot o [2005/02/06] usb/77184 usb kernel panic on USB device disconnect o [2005/02/09] usb/77294 usb ucom + ulpcom panic o [2005/02/16] usb/77604 usb Sluggish Logitch LX700 USB Mouse o [2005/03/18] usb/78989 usb please add USB keyboard support to instal o [2005/03/22] usb/79140 usb WD Firewire/USB Combo hangs under load on o [2005/03/27] usb/79287 usb UHCI hang after interrupt transfer o [2005/04/02] usb/79436 usb Panic: ohci_abort_xfer: not in process co 36 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/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 o [2003/02/16] bin/48342 usb [PATCH] usbd dynamic device list. f [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 f [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 f [2004/02/13] kern/62788 usb need quirks for Super Talent Flash USB 2. f [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 f [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 f [2004/11/02] i386/73421 usb [usb] USB not recgnized/working on Toshib o [2004/11/30] usb/74557 usb imation 500mb usb key can only be written o [2004/12/12] usb/74989 usb (regression) Lost USB support between 5.2 o [2004/12/28] usb/75578 usb [patch] QUIRK: PNY USB flash key 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 o [2005/01/27] usb/76732 usb Mouse problems with USB KVM Switch o [2005/02/24] usb/78028 usb The system must tell users information of f [2005/03/03] usb/78371 usb Philips Wearable Audio Player (128) fails o [2005/03/07] usb/78543 usb [patch] Support for Trip-Lite USB 2 Seria o [2005/03/18] usb/78984 usb Creative MUVO umass failure o [2005/03/25] usb/79230 usb Add support for Sitecom USB to serial cab 45 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Apr 4 11:50:03 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 74FE416A4CE for ; Mon, 4 Apr 2005 11:50:03 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0503343D5F for ; Mon, 4 Apr 2005 11:50:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j34Bo24u021850 for ; Mon, 4 Apr 2005 11:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j34Bo27t021849; Mon, 4 Apr 2005 11:50:02 GMT (envelope-from gnats) Resent-Date: Mon, 4 Apr 2005 11:50:02 GMT Resent-Message-Id: <200504041150.j34Bo27t021849@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, Manuel Schiller Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 462BA16A4CE for ; Mon, 4 Apr 2005 11:43:23 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1643C43D5F for ; Mon, 4 Apr 2005 11:43:23 +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 j34BhMBO080765 for ; Mon, 4 Apr 2005 11:43:22 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j34BhMS2080764; Mon, 4 Apr 2005 11:43:22 GMT (envelope-from nobody) Message-Id: <200504041143.j34BhMS2080764@www.freebsd.org> Date: Mon, 4 Apr 2005 11:43:22 GMT From: Manuel Schiller To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/79524: printing to Minolta PagePro 1[23]xxW via USB fails with "device busy" 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, 04 Apr 2005 11:50:03 -0000 >Number: 79524 >Category: usb >Synopsis: printing to Minolta PagePro 1[23]xxW via USB fails with "device busy" >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 04 11:50:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Manuel Schiller >Release: FreeBSD 5.3 >Organization: >Environment: FreeBSD freebsd.hinter.bergen 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 This is a vmware box (Linux guest OS), but the problem is not related to that fact, other people experience it as well. >Description: When sending printer data to the USB port (both /dev/ulpt0 and /dev/unlpt0), the program used to transfer the data dies with "device busy" when the printer is in fact ready to take the data. I've verified that the printer driver output is valid (same input produces same output on both Linux and FreeBSD; I'm developing the driver that transforms pbmraw input to printer language). The printer is recognized correctly by the kernel, and it associated the ulpt driver with the device. So I think that printing ought to work. I've been alerted to the problem by Mr. Rogoza, who has already posted on the USB mailing list and apparently not recieved a reply. Having tried again to post to the USB mailing list, not getting an answer, I decided to try with a PR now. I know you'll probably need more information to track this issue down, but I don't feel familiar enough to the FreeBSD kernel to try and track things down myself. Unless you happen to have this kind of printer, you'll pro bably have difficulties to track this. So if you can, please mail me providing instructions on how to gather the neccessary information. >How-To-Repeat: Use cat and a pipe to send printer data to the printer. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Apr 5 02:15:34 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 7353716A4CE; Tue, 5 Apr 2005 02:15:34 +0000 (GMT) Received: from sccrmhc14.comcast.net (sccrmhc14.comcast.net [204.127.202.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE1FD43D1F; Tue, 5 Apr 2005 02:15:33 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.30.114.143]) by comcast.net (sccrmhc14) with ESMTP id <2005040502152901400duv8fe>; Tue, 5 Apr 2005 02:15:29 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost.127.in-addr.arpa [127.0.0.1])j352FK7G000862; Mon, 4 Apr 2005 22:15:21 -0400 (EDT) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)j352FKoT000861; Mon, 4 Apr 2005 22:15:20 -0400 (EDT) (envelope-from rodrigc) Date: Mon, 4 Apr 2005 22:15:19 -0400 From: Craig Rodrigues To: Ian Dowse Message-ID: <20050405021519.GA834@crodrigues.org> References: <200503250105.j2P150in093820@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200503250105.j2P150in093820@freefall.freebsd.org> User-Agent: Mutt/1.4.1i cc: freebsd-gnats-submit@FreeBSD.org cc: freebsd-usb@FreeBSD.org Subject: Re: 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 List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2005 02:15:34 -0000 On Fri, Mar 25, 2005 at 01:05:00AM +0000, Ian Dowse wrote: > Synopsis: Toshiba PDR-M4 camera connected via USB hangs system > > State-Changed-From-To: open->feedback > State-Changed-By: iedowse > State-Changed-When: Fri Mar 25 01:02:40 GMT 2005 > State-Changed-Why: > > Does this still happen with a more recent -CURRENT? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=76684 Yes, I tried a more recent -CURRENT, and I still hang hard, the same way. -- Craig Rodrigues rodrigc@crodrigues.org From owner-freebsd-usb@FreeBSD.ORG Tue Apr 5 02:20:06 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 D0FDA16A4CE for ; Tue, 5 Apr 2005 02:20:06 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7B4A43D1D for ; Tue, 5 Apr 2005 02:20:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j352K6tN082796 for ; Tue, 5 Apr 2005 02:20:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j352K6N4082795; Tue, 5 Apr 2005 02:20:06 GMT (envelope-from gnats) Date: Tue, 5 Apr 2005 02:20:06 GMT Message-Id: <200504050220.j352K6N4082795@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Craig Rodrigues Subject: Re: 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, 05 Apr 2005 02:20:06 -0000 The following reply was made to PR usb/76684; it has been noted by GNATS. From: Craig Rodrigues To: Ian Dowse Cc: freebsd-usb@FreeBSD.org, freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/76684: Toshiba PDR-M4 camera connected via USB hangs system Date: Mon, 4 Apr 2005 22:15:19 -0400 On Fri, Mar 25, 2005 at 01:05:00AM +0000, Ian Dowse wrote: > Synopsis: Toshiba PDR-M4 camera connected via USB hangs system > > State-Changed-From-To: open->feedback > State-Changed-By: iedowse > State-Changed-When: Fri Mar 25 01:02:40 GMT 2005 > State-Changed-Why: > > Does this still happen with a more recent -CURRENT? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=76684 Yes, I tried a more recent -CURRENT, and I still hang hard, the same way. -- Craig Rodrigues rodrigc@crodrigues.org From owner-freebsd-usb@FreeBSD.ORG Tue Apr 5 06:37:38 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 0F47616A4CE for ; Tue, 5 Apr 2005 06:37:38 +0000 (GMT) Received: from smtp05.web.de (smtp05.web.de [217.72.192.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id C310443D46 for ; Tue, 5 Apr 2005 06:37:37 +0000 (GMT) (envelope-from nakal@web.de) Received: from [217.225.226.15] (helo=localhost.localdomain) by smtp05.web.de with esmtp (TLSv1:RC4-MD5:128) (WEB.DE 4.104 #268) id 1DIhgu-0003Cc-00 for usb@freebsd.org; Tue, 05 Apr 2005 08:37:36 +0200 From: Martin To: usb@freebsd.org Content-Type: text/plain Date: Tue, 05 Apr 2005 08:37:31 +0200 Message-Id: <1112683051.792.8.camel@klotz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Sender: nakal@web.de X-Sender: nakal@web.de Subject: [FIXED] i386/65783: [panic] Panic when attaching card reader to USB port [5.2-CURRENT] 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, 05 Apr 2005 06:37:38 -0000 Hi, this problem report can be closed. Thank you for the fix. My card reader finally attaches and detaches without a panic. I will test mounting cards and data transfers as soon as possible. Martin From owner-freebsd-usb@FreeBSD.ORG Thu Apr 7 12:10:07 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 F149B16A4CE for ; Thu, 7 Apr 2005 12:10:07 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B17FE43D31 for ; Thu, 7 Apr 2005 12:10:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j37CA7TU064488 for ; Thu, 7 Apr 2005 12:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j37CA7SZ064487; Thu, 7 Apr 2005 12:10:07 GMT (envelope-from gnats) Resent-Date: Thu, 7 Apr 2005 12:10:07 GMT Resent-Message-Id: <200504071210.j37CA7SZ064487@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, hselasky@c2i.net Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A620616A4D1 for ; Thu, 7 Apr 2005 12:00:30 +0000 (GMT) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id D198143D49 for ; Thu, 7 Apr 2005 12:00:29 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from mp-217-229-169.daxnet.no ([193.217.229.169] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 4.2.9) with ESMTP id 337947143 for FreeBSD-gnats-submit@freebsd.org; Thu, 07 Apr 2005 14:00:28 +0200 Message-Id: <200504071401.30349.hselasky@c2i.net> Date: Thu, 7 Apr 2005 14:01:29 +0200 From: Hans Petter Selasky To: FreeBSD-gnats-submit@FreeBSD.org Subject: usb/79622: USB devices can be freed twice X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2005 12:10:08 -0000 >Number: 79622 >Category: usb >Synopsis: USB devices can be freed twice >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 07 12:10:07 GMT 2005 >Closed-Date: >Last-Modified: >Originator: HPS >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD 6.0-CURRENT FreeBSD 6.0-CURRENT #45: Mon Mar 21 15:40:17 CET 2005 root@:/usr/obj/usr/src/sys/custom i386 >Description: >How-To-Repeat: If one connects a USB-HUB with subdevices and unplugs the USB-HUB, the subdevices are freed twice! First from device_delete_child() and then from usb_disconnect_port(). >Fix: 1) usb_disconnect_port() must take another parameter "free_subdev". 2) When usb_disconnect_port() is called from any detach routine, it should only clear "dev->subdevs[..]" and not call config_detach()/device_delete_child(). The information from where this routine is called is passed via the "free_subdev" parameter. 3) at ehci/ohci/uhci_detach "usb_detach()" should be called. The pointer to the child device in devclass "usb" should be stored in the "usbd_bus" structure so that it can be cleared from "USB_DETACH(usb)". The ehci/ohci/uhci_detach routines should then check that the pointer to the child device has not been cleared before calling device_delete_child(). >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Apr 7 15:26: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 458BC16A4CE; Thu, 7 Apr 2005 15:26:16 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E39443D41; Thu, 7 Apr 2005 15:26:16 +0000 (GMT) (envelope-from imp@FreeBSD.org) Received: from freefall.freebsd.org (imp@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j37FQGnJ092402; Thu, 7 Apr 2005 15:26:16 GMT (envelope-from imp@freefall.freebsd.org) Received: (from imp@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j37FQFan092398; Thu, 7 Apr 2005 09:26:15 -0600 (MDT) (envelope-from imp) Date: Thu, 7 Apr 2005 09:26:15 -0600 (MDT) From: Warner Losh Message-Id: <200504071526.j37FQFan092398@freefall.freebsd.org> To: imp@FreeBSD.org, freebsd-usb@FreeBSD.org, imp@FreeBSD.org Subject: Re: usb/79622: USB devices can be freed twice 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, 07 Apr 2005 15:26:16 -0000 Synopsis: USB devices can be freed twice Responsible-Changed-From-To: freebsd-usb->imp Responsible-Changed-By: imp Responsible-Changed-When: Thu Apr 7 09:25:44 MDT 2005 Responsible-Changed-Why: I have patches for this, or very similar problems and will investigate. http://www.freebsd.org/cgi/query-pr.cgi?pr=79622 From owner-freebsd-usb@FreeBSD.ORG Thu Apr 7 17:10:08 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 17E2416A4CE for ; Thu, 7 Apr 2005 17:10:08 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB48043D1F for ; Thu, 7 Apr 2005 17:10:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j37HA7iu008370 for ; Thu, 7 Apr 2005 17:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j37HA7lW008369; Thu, 7 Apr 2005 17:10:07 GMT (envelope-from gnats) Date: Thu, 7 Apr 2005 17:10:07 GMT Message-Id: <200504071710.j37HA7lW008369@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Stefan 'Steve' Tell" Subject: Re: kern/66547: [usb] Palm Tungsten T USB does not initialize correctly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Stefan 'Steve' Tell List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2005 17:10:08 -0000 The following reply was made to PR kern/66547; it has been noted by GNATS. From: Stefan 'Steve' Tell To: freebsd-gnats-submit@FreeBSD.org, espen@tagestad.no Cc: Subject: Re: kern/66547: [usb] Palm Tungsten T USB does not initialize correctly Date: Thu, 07 Apr 2005 19:05:35 +0200 Hi, >> Then, after about 2-3 seconds, this error message follows: >> ucom0: init failed, TIMEOUT >> device_probe_and_attach: ucom0 attach returned 6 >> uhub0: port 2, set config at addr 3 failed >> uhub0: device problem, disabling port 2 >> I guess the device should be connected to ucom0, or ugen0. I can't find >> any good documentation on how to do this but I suppose that device >> should come up as ucom0, which then could be used from pilot-link, or >> some of the other sync utilities. > http://www.freebsd.org/cgi/query-pr.cgi?pr=66547 > State-Changed-From-To: open->feedback > State-Changed-By: iedowse > State-Changed-When: Fri Mar 25 00:18:03 GMT 2005 > State-Changed-Why: > Does this problem still occur in FreeBSD 4.11 or 5.x? Same problem here with FreeBSD 5.4-BETA1. ,---- | Apr 7 18:40:25 pandora kernel: ucom0: Palm, Inc. Palm-Handheld, rev 1.10/1.00, addr 3 | Apr 7 18:40:25 pandora kernel: ucom0: Palm, Inc. Palm-Handheld, rev 1.10/1.00, addr 3 | Apr 7 18:40:30 pandora kernel: ucom0: init failed, TIMEOUT | Apr 7 18:40:30 pandora kernel: device_attach: ucom0 attach returned 6 | Apr 7 18:40:30 pandora kernel: uhub1: port 1, set config at addr 3 failed | Apr 7 18:40:30 pandora kernel: uhub1: device problem (STALLED), disabling port 1 `---- -- By(t)e, Steve /\ http://www.crashmail.de GnuPG/PGP: 0X9B6C7E15, encrypted mail prefered, see header From owner-freebsd-usb@FreeBSD.ORG Thu Apr 7 21:41:36 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 9882416A4CE; Thu, 7 Apr 2005 21:41:36 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 561BF43D3F; Thu, 7 Apr 2005 21:41:36 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j37Lfa4V045616; Thu, 7 Apr 2005 21:41:36 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j37Lfa4s045612; Thu, 7 Apr 2005 21:41:36 GMT (envelope-from linimon) Date: Thu, 7 Apr 2005 21:41:36 GMT From: Mark Linimon Message-Id: <200504072141.j37Lfa4s045612@freefall.freebsd.org> To: linimon@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/79656: [usb] RHSC interrupts lost 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, 07 Apr 2005 21:41:36 -0000 Old Synopsis: =A0 =A0 =A0RHSC interrupts lost New Synopsis: [usb] RHSC interrupts lost Responsible-Changed-From-To: gnats-admin->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Thu Apr 7 21:38:21 GMT 2005 Responsible-Changed-Why: Rescue this PR from the 'pending' category. To submitter: your email program badly misformatted this submission (inserting strange line- breaks and escaping CR characters). http://www.freebsd.org/cgi/query-pr.cgi?pr=79656 From owner-freebsd-usb@FreeBSD.ORG Fri Apr 8 12:11:38 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 99DA116A4CE for ; Fri, 8 Apr 2005 12:11:38 +0000 (GMT) Received: from mail.emu.edu.tr (mail.emu.edu.tr [193.140.41.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 886CB43D2F for ; Fri, 8 Apr 2005 12:11:35 +0000 (GMT) (envelope-from onur.soyugur@mail.emu.edu.tr) content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Fri, 8 Apr 2005 15:11:33 +0300 Message-ID: <1D773859F73DD84696CCADD700C6F0CD02A6C9BE@mail.emu.edu.tr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: USB disk automation Thread-Index: AcU8NBommt3uDbHdR0Cg9NAKS0S8fg== From: "Onur Soyugur" To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: USB disk automation 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, 08 Apr 2005 12:11:38 -0000 R29vZCBtb3JuaW5nLCBHb29kIGFmdGVybm9vbiBhbmQgZ29vZCBldmVuaW5nIHRvIGFsbA0KSSdt IGluIG5lZWQgb2YgYSBzaW1wbGUgYXBwbGljYXRpb24gb3Igc2NyaXB0IHdoYXQgZXZlciBjb21l cyBlYXN5IGZvciBkZXRlY3RpbmcgYW5kIG1vdW50aW5nIHRoZSBVU0IgZGlza3MuDQpJIGhlYXJk IHNvbWUgYWJvdXQgImFtZCIgd2hpY2ggYXV0b21hdGljYWxseSBtb3VudHMgcGx1Z2dlZCBkaXNr cy4gQnV0IGkgZG9udCBrbm93IHdoZXRoZXIgaXQgc3VwcG9ydHMgb3Igbm90IHRoZSBkaXNrcyB3 aGljaCBhcmUgcGx1Z2dlZCBpbiBmcm9tIFVTQiBwb3J0cy4NCiANCkFkZGl0aW9uYWxseSB0aGUg ZGlzayB0aGF0IGkgY29ubmVjdCBmcm9tIHVzYiBwb3J0IGlzIGZpbGUgc3lzdGVtIG9mIE5URlMg YW5kIHRoZSBzY3JpcHQgb3IgcHJvZ3JhbSBzaG91bGQgY29weSBzb21lIGZpbGVzIGZyb20gdGhl IHBsdWdnZWQgZGlzayB0byB0aGUgZnJlZUJTRCBzeXN0ZW0uDQogDQpBcmUgdGhlcmUgYW55IHN1 Z2dlc3Npb25zIG9yIHdhbGt0aHJvdWdocyB0aGF0IGNhbiBiZSBzdWdnZXN0ZWQgdG8gbWUgPw0K IA0KSSdsbCBiZSB0aGFua2Z1bGwgaWYgYW55b25lIGhlbHAuDQpUaGFuayB5b3UgYWxsLg0KIA0K T251ciBTb3l1Z3VyDQo= From owner-freebsd-usb@FreeBSD.ORG Fri Apr 8 12:49:27 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 6F5C516A4CE; Fri, 8 Apr 2005 12:49:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43B3743D1F; Fri, 8 Apr 2005 12:49:27 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from freefall.freebsd.org (le@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j38CnROf003620; Fri, 8 Apr 2005 12:49:27 GMT (envelope-from le@freefall.freebsd.org) Received: (from le@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j38CnMEn003616; Fri, 8 Apr 2005 12:49:22 GMT (envelope-from le) Date: Fri, 8 Apr 2005 12:49:22 GMT From: Lukas Ertl Message-Id: <200504081249.j38CnMEn003616@freefall.freebsd.org> To: rick@wzoeterwoude.net, le@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/79230: Add support for Sitecom USB to serial cable (v2) 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, 08 Apr 2005 12:49:27 -0000 Synopsis: Add support for Sitecom USB to serial cable (v2) State-Changed-From-To: open->closed State-Changed-By: le State-Changed-When: Fri Apr 8 12:49:15 GMT 2005 State-Changed-Why: Thank you, patch committed. http://www.freebsd.org/cgi/query-pr.cgi?pr=79230 From owner-freebsd-usb@FreeBSD.ORG Fri Apr 8 13:48: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 2A5C716A4CE for ; Fri, 8 Apr 2005 13:48:19 +0000 (GMT) Received: from f17.mail.ru (f17.mail.ru [194.67.57.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9F5F43D1F for ; Fri, 8 Apr 2005 13:48:18 +0000 (GMT) (envelope-from bofh@mail.ru) Received: from mail by f17.mail.ru with local id 1DJtqL-0009m0-00 for freebsd-usb@freebsd.org; Fri, 08 Apr 2005 17:48:17 +0400 Received: from [195.149.104.100] by mac.mail.ru with HTTP; Fri, 08 Apr 2005 17:48:17 +0400 From: Alexander Zhouravlev To: freebsd-usb@freebsd.org Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [195.149.104.100] Date: Fri, 08 Apr 2005 17:48:17 +0400 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Subject: USB audio input, how to? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alexander Zhouravlev List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 13:48:19 -0000 Hello, I need to have audio input from USB device under FreeBSD 5.4. Patches from kern/75274 massively fails. Are there more recent patches? From owner-freebsd-usb@FreeBSD.ORG Fri Apr 8 19:34: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 5B61616A4CE for ; Fri, 8 Apr 2005 19:34:18 +0000 (GMT) Received: from smtp.housing.ufl.edu (smtp.housing.ufl.edu [128.227.47.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99AA243D48 for ; Fri, 8 Apr 2005 19:34:17 +0000 (GMT) (envelope-from WillS@housing.ufl.edu) Received: (qmail 59466 invoked by uid 98); 8 Apr 2005 15:34:16 -0400 Received: from WillS@housing.ufl.edu by smtp.housing.ufl.edu by uid 1003 with qmail-scanner-1.20 (spamassassin: 3.0.2. Clear:RC:1(128.227.47.18):. Processed in 0.026133 secs); 08 Apr 2005 19:34:16 -0000 X-Qmail-Scanner-Mail-From: WillS@housing.ufl.edu via smtp.housing.ufl.edu X-Qmail-Scanner: 1.20 (Clear:RC:1(128.227.47.18):. Processed in 0.026133 secs) Received: from bragi.housing.ufl.edu (128.227.47.18) by smtp.housing.ufl.edu with (RC4-MD5 encrypted) SMTP; 8 Apr 2005 15:34:16 -0400 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 Date: Fri, 8 Apr 2005 15:34:14 -0400 Message-ID: <0E972CEE334BFE4291CD07E056C76ED8062D2491@bragi.housing.ufl.edu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Please commit fix outlined in PR/63837 Thread-Index: AcU8cfJwN4O1aVU0TQu8rJmfCjPabQ== From: "Will Saxon" To: Subject: Please commit fix outlined in PR/63837 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, 08 Apr 2005 19:34:18 -0000 Is it possible to get the 1 line fix posted in PR/63837 added=20 before 5.4? This has been a problem since before 5.3, the fix is=20 trivial and it works fine. It is kind of annoying to have to edit hid.c every time I cvsup. This has been asked about before by myself and others... Is there a stylistic problem or a planned cleanup that has held this back? --- /usr/src/sys/dev/usb/hid.c.orig Fri Apr 8 15:26:46 2005 +++ /usr/src/sys/dev/usb/hid.c Fri Apr 8 14:55:01 2005 @@ -375,7 +375,7 @@ id =3D 0; for (d =3D hid_start_parse(buf, len, 1< 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 77D5316A4CE for ; Fri, 8 Apr 2005 19:38:24 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40EEC43D53 for ; Fri, 8 Apr 2005 19:38:24 +0000 (GMT) (envelope-from julian@vicor.com) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 09B3F7A424 for ; Fri, 8 Apr 2005 12:38:24 -0700 (PDT) Message-ID: <4256DDAF.7020508@vicor.com> Date: Fri, 08 Apr 2005 12:38:23 -0700 From: Julian Elischer Organization: VICOR User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en, hu MIME-Version: 1.0 To: usb@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: possible uaudio change? 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, 08 Apr 2005 19:38:24 -0000 anyone with uaudio that has problems that are fixed by changing > > -#define UAUDIO_PCM_BUFF_SIZE 16*1024 > > +#define UAUDIO_PCM_BUFF_SIZE (16*1024-1) > > > > could you try this one instead? Index: uaudio_pcm.c =================================================================== RCS file: /home/ncvs/src/sys/dev/sound/usb/uaudio_pcm.c,v retrieving revision 1.10 diff -r1.10 uaudio_pcm.c 317c317 < /*maxsegz*/0x3fff, /*flags*/0, --- > /*maxsegz*/0x4000, /*flags*/0, in fact if yuo have uaudio, can you see if it still works with this change? From owner-freebsd-usb@FreeBSD.ORG Fri Apr 8 19:42:33 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 0950916A4CE for ; Fri, 8 Apr 2005 19:42:33 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90B7A43D41 for ; Fri, 8 Apr 2005 19:42:32 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j38Je1F2000112; Fri, 8 Apr 2005 13:40:01 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 08 Apr 2005 13:40:01 -0600 (MDT) Message-Id: <20050408.134001.71185996.imp@bsdimp.com> To: WillS@housing.ufl.edu From: Warner Losh In-Reply-To: <0E972CEE334BFE4291CD07E056C76ED8062D2491@bragi.housing.ufl.edu> References: <0E972CEE334BFE4291CD07E056C76ED8062D2491@bragi.housing.ufl.edu> 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 cc: usb@FreeBSD.org Subject: Re: Please commit fix outlined in PR/63837 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, 08 Apr 2005 19:42:33 -0000 From: "Will Saxon" Subject: Please commit fix outlined in PR/63837 Date: Fri, 8 Apr 2005 15:34:14 -0400 > Is it possible to get the 1 line fix posted in PR/63837 added > before 5.4? This has been a problem since before 5.3, the fix is > trivial and it works fine. > > It is kind of annoying to have to edit hid.c every time I cvsup. > > This has been asked about before by myself and others... Is there > a stylistic problem or a planned cleanup that has held this back? > > --- /usr/src/sys/dev/usb/hid.c.orig Fri Apr 8 15:26:46 2005 > +++ /usr/src/sys/dev/usb/hid.c Fri Apr 8 14:55:01 2005 > @@ -375,7 +375,7 @@ > > id = 0; > for (d = hid_start_parse(buf, len, 1< - if (h.report_ID != 0) > + if (h.report_ID != 0 && !id) > id = h.report_ID; > hid_end_parse(d); > size = h.loc.pos; So this patch just makes report_ID the FIRST id in the item list, right? Warner From owner-freebsd-usb@FreeBSD.ORG Fri Apr 8 19:58: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 EA06016A4CE for ; Fri, 8 Apr 2005 19:58:29 +0000 (GMT) Received: from smtp.housing.ufl.edu (smtp.housing.ufl.edu [128.227.47.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 103C043D49 for ; Fri, 8 Apr 2005 19:58:29 +0000 (GMT) (envelope-from WillS@housing.ufl.edu) Received: (qmail 61946 invoked by uid 98); 8 Apr 2005 15:58:28 -0400 Received: from WillS@housing.ufl.edu by smtp.housing.ufl.edu by uid 1003 with qmail-scanner-1.20 (spamassassin: 3.0.2. Clear:RC:1(128.227.47.18):. Processed in 0.01462 secs); 08 Apr 2005 19:58:28 -0000 X-Qmail-Scanner-Mail-From: WillS@housing.ufl.edu via smtp.housing.ufl.edu X-Qmail-Scanner: 1.20 (Clear:RC:1(128.227.47.18):. Processed in 0.01462 secs) Received: from bragi.housing.ufl.edu (128.227.47.18) by smtp.housing.ufl.edu with (RC4-MD5 encrypted) SMTP; 8 Apr 2005 15:58:28 -0400 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 Date: Fri, 8 Apr 2005 15:58:28 -0400 Message-ID: <0E972CEE334BFE4291CD07E056C76ED805A2C657@bragi.housing.ufl.edu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Please commit fix outlined in PR/63837 Thread-Index: AcU8cx6tM9OG6NemQ8ancN0HgNrxFAAAJEyQ From: "Will Saxon" To: "Warner Losh" cc: usb@FreeBSD.org Subject: RE: Please commit fix outlined in PR/63837 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, 08 Apr 2005 19:58:30 -0000 > -----Original Message----- > From: Warner Losh [mailto:imp@bsdimp.com] > Sent: Friday, April 08, 2005 3:40 PM > To: Will Saxon > Cc: usb@FreeBSD.org > Subject: Re: Please commit fix outlined in PR/63837 >=20 >=20 > From: "Will Saxon" > Subject: Please commit fix outlined in PR/63837 > Date: Fri, 8 Apr 2005 15:34:14 -0400 >=20 > > Is it possible to get the 1 line fix posted in PR/63837 added=20 > > before 5.4? This has been a problem since before 5.3, the fix is=20 > > trivial and it works fine. > >=20 > > It is kind of annoying to have to edit hid.c every time I cvsup. > >=20 > > This has been asked about before by myself and others... Is there > > a stylistic problem or a planned cleanup that has held this back? > >=20 > > --- /usr/src/sys/dev/usb/hid.c.orig Fri Apr 8 15:26:46 2005 > > +++ /usr/src/sys/dev/usb/hid.c Fri Apr 8 14:55:01 2005 > > @@ -375,7 +375,7 @@ > >=20 > > id =3D 0; > > for (d =3D hid_start_parse(buf, len, 1< > - if (h.report_ID !=3D 0) > > + if (h.report_ID !=3D 0 && !id) > > id =3D h.report_ID; > > hid_end_parse(d); > > size =3D h.loc.pos; >=20 > So this patch just makes report_ID the FIRST id in the item list, > right? Looks like it, although really I haven't the foggiest. I do know that=20 without the patch, the mouse included with my MX Duo doesn't work.=20 With it, the mouse works.=20 Reading through the PR notes, it appears that a) the answer to=20 your question is yes and b) the below patch is more of a hack=20 that makes things work and that 'this seems to be a horrible=20 interface.' That's fine, but the last message on the PR that was NOT a 'hey this=20 works for me too' was mid November. The assertion was that we should=20 try to adopt the solution(s) NetBSD has to fix this and other things,=20 however I don't think that has happened yet. It would just be nice to get an update, it would make editing hid.c less aggravating if I knew for sure it wasn't always going to be this way. I guess I just forget that I have to do it and then I get mad when I've built a new kernel and my mouse stops working :). -Will From owner-freebsd-usb@FreeBSD.ORG Fri Apr 8 20:03:28 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 D27C716A4CE for ; Fri, 8 Apr 2005 20:03:28 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3569043D45 for ; Fri, 8 Apr 2005 20:03:28 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j38K2wgg000317; Fri, 8 Apr 2005 14:02:58 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 08 Apr 2005 14:02:58 -0600 (MDT) Message-Id: <20050408.140258.78806042.imp@bsdimp.com> To: WillS@housing.ufl.edu From: Warner Losh In-Reply-To: <0E972CEE334BFE4291CD07E056C76ED805A2C657@bragi.housing.ufl.edu> References: <0E972CEE334BFE4291CD07E056C76ED805A2C657@bragi.housing.ufl.edu> 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 cc: usb@FreeBSD.ORG Subject: Re: Please commit fix outlined in PR/63837 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, 08 Apr 2005 20:03:28 -0000 Sounds then like it should be committed, but that the bug shouldn't be closed, since the real solution is to use NetBSD's newer uhid. Warner From owner-freebsd-usb@FreeBSD.ORG Sat Apr 9 11:19:51 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 B709E16A4CE for ; Sat, 9 Apr 2005 11:19:51 +0000 (GMT) Received: from mailout11.sul.t-online.com (mailout11.sul.t-online.com [194.25.134.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1278D43D31 for ; Sat, 9 Apr 2005 11:19:51 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd34.aul.t-online.de by mailout11.sul.t-online.com with smtp id 1DKE0D-0002L5-00; Sat, 09 Apr 2005 13:19:49 +0200 Received: from Andro-Beta.Leidinger.net (E2+DVoZpQeEvEu-fa7uCI97Sy3D-HuOquh4PKat8gVZR840B0-53gB@[84.128.197.97]) by fwd34.sul.t-online.de with esmtp id 1DKE01-0yVrI80; Sat, 9 Apr 2005 13:19:37 +0200 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) j39BJXrg071581; Sat, 9 Apr 2005 13:19:33 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sat, 9 Apr 2005 13:19:45 +0200 From: Alexander Leidinger To: Julian Elischer Message-ID: <20050409131945.189f0922@Magellan.Leidinger.net> In-Reply-To: <4256DDAF.7020508@vicor.com> References: <4256DDAF.7020508@vicor.com> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ID: E2+DVoZpQeEvEu-fa7uCI97Sy3D-HuOquh4PKat8gVZR840B0-53gB@t-dialin.net X-TOI-MSGID: 1555482a-28f5-47d9-8839-c22d70624b70 cc: usb@freebsd.org Subject: Re: possible uaudio change? 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, 09 Apr 2005 11:19:51 -0000 On Fri, 08 Apr 2005 12:38:23 -0700 Julian Elischer wrote: > > anyone with uaudio that has problems > that are fixed by changing > > > > -#define UAUDIO_PCM_BUFF_SIZE 16*1024 > > > +#define UAUDIO_PCM_BUFF_SIZE (16*1024-1) > > > > > > > > could you try this one instead? > > Index: uaudio_pcm.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/sound/usb/uaudio_pcm.c,v > retrieving revision 1.10 > diff -r1.10 uaudio_pcm.c > 317c317 > < /*maxsegz*/0x3fff, /*flags*/0, > --- > > /*maxsegz*/0x4000, /*flags*/0, > > > in fact if yuo have uaudio, can you see if it still works with this change? FWIW: I'm running with 0x3ffff since a while, without the PCM_BUFF_SIZE change. Bye, Alexander. -- ...and that is how we know the Earth to be banana-shaped. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-usb@FreeBSD.ORG Sat Apr 9 18:41:39 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 E094616A4CF for ; Sat, 9 Apr 2005 18:41:39 +0000 (GMT) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1949143D45 for ; Sat, 9 Apr 2005 18:41:39 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-204-131.daxnet.no ([193.217.204.131] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 4.2.9) with ESMTP id 339500947 for freebsd-usb@freebsd.org; Sat, 09 Apr 2005 20:41:37 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 9 Apr 2005 20:42:38 +0200 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504092042.39741.hselasky@c2i.net> Subject: USB driver X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Apr 2005 18:41:40 -0000 Hi, I've just updated my USB driver. A handfull of bugs have been fixed. Some news: Full support for EHCI split transactions (ISOC/INTERRUPT/BULK) Full support for EHCI high speed isochronous transfers (please be aware that high speed isochronous transfers consume 8 frames per millisecond, and consequently one can allocate 8 times more frames. Currently the maximum number of frames per transfer is 128*8, but 64*8 is recommended.) If anyone needs it, here is it: Download the three files below into a new directory and type "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 Yours --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Apr 9 18:50:11 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 79F6916A4CE for ; Sat, 9 Apr 2005 18:50:11 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54EF043D1F for ; Sat, 9 Apr 2005 18:50:11 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j39IoBTJ086817 for ; Sat, 9 Apr 2005 18:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j39IoBPF086792; Sat, 9 Apr 2005 18:50:11 GMT (envelope-from gnats) Resent-Date: Sat, 9 Apr 2005 18:50:11 GMT Resent-Message-Id: <200504091850.j39IoBPF086792@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, hselasky@c2i.net Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5343116A4CE for ; Sat, 9 Apr 2005 18:42:04 +0000 (GMT) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id B012F43D46 for ; Sat, 9 Apr 2005 18:42:03 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from mp-217-204-131.daxnet.no ([193.217.204.131] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 4.2.9) with ESMTP id 339501124 for FreeBSD-gnats-submit@freebsd.org; Sat, 09 Apr 2005 20:42:02 +0200 Message-Id: <200504092043.05488.hselasky@c2i.net> Date: Sat, 9 Apr 2005 20:43:04 +0200 From: Hans Petter Selasky To: FreeBSD-gnats-submit@FreeBSD.org Subject: usb/79722: wrong alignments in ehci.h X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Apr 2005 18:50:11 -0000 >Number: 79722 >Category: usb >Synopsis: wrong alignments in ehci.h >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 09 18:50:10 GMT 2005 >Closed-Date: >Last-Modified: >Originator: HPS >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD 6.0-CURRENT FreeBSD 6.0-CURRENT #45: Mon Mar 21 15:40:17 CET 2005 root@:/usr/obj/usr/src/sys/custom i386 >Description: >How-To-Repeat: The EHCI driver currently uses 32-byte alignment for all QH's and TD's. This is what the manual says, but the hardware will malfunction if the structures are not aligned so that it can index without performing addition. For example ITD must be aligned to 128-bytes (including 64-bit extensions) and not 32-bytes. #define EHCI_ITD_ALIGN 128 /* bytes */ #define EHCI_SITD_ALIGN 64 /* bytes */ #define EHCI_QTD_ALIGN 64 /* bytes */ #define EHCI_QH_ALIGN 128 /* bytes */ #define EHCI_FSTN_ALIGN 32 /* bytes */ >Fix: >Release-Note: >Audit-Trail: >Unformatted: