From owner-freebsd-current Tue Aug 27 13:46:32 2002 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 8213837B400 for ; Tue, 27 Aug 2002 13:46:26 -0700 (PDT) Received: from scl8owa02.int.exodus.net (scl8out02.exodus.net [66.35.230.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02B5C43E6E for ; Tue, 27 Aug 2002 13:46:26 -0700 (PDT) (envelope-from Maksim.Yevmenkin@exodus.net) Received: from scl8owa01.int.exodus.net ([66.35.230.241]) by scl8owa02.int.exodus.net with Microsoft SMTPSVC(5.0.2195.4905); Tue, 27 Aug 2002 13:48:11 -0700 Received: from exodus.net ([206.220.227.147]) by scl8owa01.int.exodus.net over TLS secured channel with Microsoft SMTPSVC(5.0.2195.4905); Tue, 27 Aug 2002 13:48:11 -0700 Message-ID: <3D6BE521.937373AE@exodus.net> Date: Tue, 27 Aug 2002 13:46:25 -0700 From: Maksim Yevmenkin X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Julian Elischer , current@freebsd.org Subject: Re: USB slowdown on recent -current References: <3D6BCEFB.4B40833A@exodus.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Aug 2002 20:48:11.0202 (UTC) FILETIME=[0E578A20:01C24E0B] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hackers, Replying to myself and -current. Strange, but commenting out #define USB_USE_SOFTINTR in /sys/dev/usb_ports.h fixed my problem. USB device back to full speed and now i'm getting solid ~60 KBytes/sec. Note: this is _the_only_ change i made. the rest of the code has not been changed. Hmmm.... Anyone care to comment? Maksim Yevmenkin wrote: > > Julian Elischer wrote: > > > > make sure you have all the debugging turned off. > > there is a LOT of debugging.. > > at the moment. > > well, this was my first attempt. it did not work. even if i > disable INVARIANTS, WITNESS and USB_DEBUG completely it is > still slow as hell :( > > PC-CARD driver works just fine and get 50-60 KBytes/sec even > with all debug stuff enabled. so there should be another > explanation. > > > > On Tue, 27 Aug 2002, Maksim Yevmenkin wrote: > > > > > Hackers, > > > > > > I'm currently testing my Bluetooth code for FreeBSD on recent > > > -current. After i upgraded to recent current from current-DP1 > > > i'm experiencing a major slowdown in USB device speed. > > > > > > On current-DP1 the USB device was able to handle about 50-60 > > > KBytes/sec. On recent -current _the_same_ device driver can > > > only do 11-12 KBytes/sec :( > > > > > > Another driver (PC-CARD) connected to my Bluetooth stack > > > can do 50-60 KBytes/sec (sending/receiving) - so it is > > > not a Bluetooth stack itself. Also the same USB device > > > connected to Linux box can do 50-60 KBytes/sec - so it is not > > > a USB device itself. > > > > > > The problem only exists when i connect USB device to -current > > > FreeBSD box. I suspect that problem could be in: > > > > > > a) USB device driver > > > b) USB stack itself > > > c) someplace else? > > > > > > Does anyone have a similar problems? I'm slowly going though > > > the diff's between DP1 USB code and -current USB code, but > > > may be someone can give me a clue. thanks, max To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message