From owner-freebsd-current Wed Aug 28 18:17:15 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 3EA9E37B400 for ; Wed, 28 Aug 2002 18:17:10 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC17143E72 for ; Wed, 28 Aug 2002 18:17:06 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 69CE32A88D; Wed, 28 Aug 2002 18:17:06 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Maksim Yevmenkin Cc: Julian Elischer , current@freebsd.org Subject: Re: USB slowdown on recent -current In-Reply-To: <3D6BE521.937373AE@exodus.net> Date: Wed, 28 Aug 2002 18:17:06 -0700 From: Peter Wemm Message-Id: <20020829011706.69CE32A88D@canning.wemm.org> 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 Maksim Yevmenkin wrote: > 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? Hmm. USB_USE_SOFTINTR is no longer necessary and would cause extra context switches. It should be removed now because the reasons for it existing are long gone in -current. > > 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 > Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message