From owner-freebsd-usb@FreeBSD.ORG Tue Mar 3 14:13:33 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 A406A1065673 for ; Tue, 3 Mar 2009 14:13:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 3AF858FC17 for ; Tue, 3 Mar 2009 14:13:32 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=Ma5krZdYoiIA:10 a=-DXRHlJb_54A:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=68ZaoHg-GwWA-XmukBcA:9 a=bZBcqVfo7pvtAtxFN0IA:7 a=TKRs1HT6k38StQ7Z3kCiEyvRqaIA:4 a=LY0hPdMaydYA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1204974697; Tue, 03 Mar 2009 15:13:31 +0100 From: Hans Petter Selasky To: Artyom Mirgorodsky Date: Tue, 3 Mar 2009 15:16:02 +0100 User-Agent: KMail/1.9.7 References: <200903010045.44904.man@email.com.ua> <200903030850.01866.hselasky@c2i.net> <200903031130.35613.man@email.com.ua> In-Reply-To: <200903031130.35613.man@email.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903031516.02744.hselasky@c2i.net> 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: Tue, 03 Mar 2009 14:13:33 -0000 On Tuesday 03 March 2009, Artyom Mirgorodsky wrote: > >I know that certain AMD USB controllers perform less with the new USB > > stack, but I've not been able to track down the issue. > > Yes, I have AMD platform (motherboard ASUS A8N-VM-CSM) > > >Can you try another PC having another CPU brand? > > Yes, I have already posted the result - 22 Mb/sec, much better than on my > computer. > > >There might be some minor things that needs tuning like the NAK retry > > counter. I suspect you have run into a timing issue with the hardware. > > Can I do anything to solve this problem or at least help you to track it > down? Edit: src/sys/dev/usb/controller/ehci.c if (usb2_get_speed(xfer->xroot->udev) == USB_SPEED_HIGH) { qh_endp |= (EHCI_QH_SET_EPS(EHCI_QH_SPEED_HIGH) | EHCI_QH_DTC); if (methods != &ehci_device_intr_methods) qh_endp |= EHCI_QH_SET_NRL(8); } else { And tune to NRL value to 15. Recompile kernel and modules. --HPS