From owner-freebsd-usb@FreeBSD.ORG Wed Mar 4 22:37:59 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 553E9106564A for ; Wed, 4 Mar 2009 22:37:59 +0000 (UTC) (envelope-from stevecalfee@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id 281F48FC24 for ; Wed, 4 Mar 2009 22:37:58 +0000 (UTC) (envelope-from stevecalfee@gmail.com) Received: by wa-out-1112.google.com with SMTP id k34so1952803wah.27 for ; Wed, 04 Mar 2009 14:37:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ud0hFRBBc4UghhVUUXilqlsQ0Dg09n//cZZuUrn6DdU=; b=uCmSKO9j+PMtwViHNe0m4r89R/ILnxw0XIbcFQnBztD11Z1UV7AtAt6eOn1WRfSfcl Zpr1WytLt1ZqChS7p8kbYxWDE9McKOmJbf9lg7N1XIhDxyEYQwnHO5tAvXvVfdPWRRh8 SrY/L7f2K+twEaLkqg2Dvdykh8GqVjxKQrlgE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ejON/HZAOwZNIjbVsjd61Cz7reCUz0hoQjGZ1C+yzgfjRDUPVrDyKmyDQ4ze4wFfli YrEPr08xRNDiY5ko5w2m9oevuckp7IZoHtZSk+M4XSyk2tD7twgSGTEbAN6yl3XFIvNv LY+Yr1VHjcdFtHgUybWbio+L9Km1CJj8dtvR0= MIME-Version: 1.0 Received: by 10.115.58.1 with SMTP id l1mr206684wak.191.1236206278643; Wed, 04 Mar 2009 14:37:58 -0800 (PST) In-Reply-To: <200903042311.00403.hselasky@c2i.net> References: <200903010045.44904.man@email.com.ua> <200903030850.01866.hselasky@c2i.net> <200903041047.57385.man@email.com.ua> <200903042311.00403.hselasky@c2i.net> Date: Wed, 4 Mar 2009 14:37:58 -0800 Message-ID: <4a5ff6bc0903041437l52a58387v1735e34ebc383847@mail.gmail.com> From: Steve Calfee To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: Low perfomance when read from usb flash drive 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: Wed, 04 Mar 2009 22:37:59 -0000 On Wed, Mar 4, 2009 at 2:10 PM, Hans Petter Selasky wrote: > On Wednesday 04 March 2009, Artyom Mirgorodsky wrote: >> I forgot to write, that a similar problem was observed in FreeBSD 7 with >> usb4bsd patches. > > Here is a patch which I think will address your problem. It is EHCI hardware > related. Different models behave differently. Try this: > > http://perforce.freebsd.org/chv.cgi?CH=158692 > Wow, that is bizarre. The "doorbell" is usually used so the software knows that the cpu vs dma race is complete when moving qtds off the qh - ie dequeueing requests. What you have done is asked the guy doing the photo finish at the end of a horse race to press the shutter a little before the horse crosses the line - so the shutter latency will allow a picture right as the horse crosses the line. Unfortunately, this (like all races) is affected by the object doing the racing - horse speed and camera speed are variable! I believe something else must be wrong. Regards, Steve