Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2014 12:08:57 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Daniel O'Connor <doconnor@gsoft.com.au>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: USB 3 devices not reliably connecting at 5Gbps
Message-ID:  <5347BF39.2000704@selasky.org>
In-Reply-To: <ACC91511-A630-4262-AFE4-441AA154E405@gsoft.com.au>
References:  <A9616810-7BD9-49FC-BFA7-44206E4CCAC1@gsoft.com.au> <53478D5B.3090205@selasky.org> <ACC91511-A630-4262-AFE4-441AA154E405@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/11/14 09:29, Daniel O'Connor wrote:
> 	    usb_xf[i].xf = libusb_alloc_transfer(0);
> 	    usb_xf[i].idx = i;
> 	    usb_xf[i].done = 0;
> 	    usb_xf[i].submitted = 0;

I think you can get more speed in libusb:

                 x |= 1;
         }
         speed = libusb20_dev_get_speed(pdev);

         /* select a sensible buffer size */
         if (speed == LIBUSB20_SPEED_LOW) {
                 bufsize = 256;
         } else if (speed == LIBUSB20_SPEED_FULL) {
                 bufsize = 4096;
         } else {
                 bufsize = 16384;

^^^ add a clause for super-speed to use 32K/64K here:
         }

         xfer = libusb20_tr_get_pointer(pdev, x);

         if (xfer == NULL)
                 return (xfer);


See: src/lib/libusb

You can simply type "make all install" there.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5347BF39.2000704>