From owner-freebsd-current@FreeBSD.ORG Tue May 4 03:18:10 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4437916A4CE for ; Tue, 4 May 2004 03:18:10 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E96743D2D for ; Tue, 4 May 2004 03:18:09 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0)i44AHsDv032480 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 4 May 2004 12:17:57 +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 i44AHjUi092092 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 May 2004 12:17:46 +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 i44AHjf2048868; Tue, 4 May 2004 12:17:45 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i44AHidg048867; Tue, 4 May 2004 12:17:44 +0200 (CEST) (envelope-from ticso) Date: Tue, 4 May 2004 12:17:43 +0200 From: Bernd Walter To: John Birrell Message-ID: <20040504101742.GO38488@cicely12.cicely.de> References: <20040504001029.GG58608@freebsd3.cimlogic.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040504001029.GG58608@freebsd3.cimlogic.com.au> 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=ham version=2.63 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on cicely12.cicely.de cc: current@freebsd.org Subject: Re: USB isochronous transfers X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 10:18:10 -0000 On Tue, May 04, 2004 at 10:10:29AM +1000, John Birrell wrote: > Are there any USB experts here? > > The ugen driver in current has code that treats an isochronous endpoint > which has a wMaxPacketSize of zero as invalid and won't open it. Understandable - isochronous transfers are all sized with wMaxPacketSize, but with beeing zero it's just regular transfering nothing. 1 is the (useable) minimun - depending on the bit 12 and 11 in the field. See Page 273 Table 9-14. > I have a board here that reports it's isochronous endpoint like that. > > On page 47 of the USB Specification 2.0, I see this: > > "All device default interface settings must not include any isochronous > endpoints with non-zero data payload sizes (specified via wMaxPacketSize > in the endpoint descriptor). Alternate interface settings may specify > non-zero data payload sizes for isochronous operation." That's correct - you are not intendend to use it. > My board is supposed to be a reference implementation from Philips > for their 1581 USB chip and their MPEG2 chips. It only has the default > interface. The 1581 is high speed - I think you are using full speed as we don't support high speed isochronous transfers yet. How does it report at high speed? Maybe you are not seeing alternative settings because of this. > The board seems to behave like the specification says it should. FreeBSD's > ugen implementation seems to be the odd one out. > > Does anyone know what to expect from a device with wMaxPacketSize = 0? Don't use it - it's idle setting to not allocate bandwidth for idle devices. It's up to the driver to select a useable alternative setting. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de