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 [EMAIL PROTECTED] > with "unsubscribe freebsd-current" in the body of the message > Cheers, -Peter -- Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message