Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Aug 2002 13:46:25 -0700
From:      Maksim Yevmenkin <myevmenk@exodus.net>
To:        Julian Elischer <julian@elischer.org>, current@freebsd.org
Subject:   Re: USB slowdown on recent -current
Message-ID:  <3D6BE521.937373AE@exodus.net>
References:  <Pine.BSF.4.21.0208271150540.88192-100000@InterJet.elischer.org> <3D6BCEFB.4B40833A@exodus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D6BE521.937373AE>