uas: order 7 page allocation failure in init_tag_map()

2016-04-23 Thread Johannes Stezenbach
Hi, I bought a new backup disk which turned out to be UAS capable, but when I plugged it in I got an order 7 page allocation failure. My hunch is that the .can_queue = 65536 in drivers/usb/storage/uas.c is much too large. Maybe 256 would be a pratical value that matches the capabilities of existi

Re: musb AM335x: isoc out transfers to FS device via hub are broken

2015-03-30 Thread Johannes Stezenbach
On Mon, Mar 30, 2015 at 02:56:40PM -0400, Alan Stern wrote: > On Mon, 30 Mar 2015, Johannes Stezenbach wrote: > > > > Judging by your high-speed log, it looks like the host controller is > > > not sending out the Start SPLIT transactions the way it should. > > &g

Re: musb AM335x: isoc out transfers to FS device via hub are broken

2015-03-30 Thread Johannes Stezenbach
On Mon, Mar 30, 2015 at 01:41:29PM -0400, Alan Stern wrote: > On Mon, 30 Mar 2015, Johannes Stezenbach wrote: > > > The log between hub and soundcard shows this: > > > > SOF > > OUT > > DATA0 185 byte with CRC error > > OUT > > DATA0 4 by

Re: musb AM335x: isoc out transfers to FS device via hub are broken

2015-03-30 Thread Johannes Stezenbach
On Mon, Mar 30, 2015 at 11:58:55AM -0400, Alan Stern wrote: > On Mon, 30 Mar 2015, Johannes Stezenbach wrote: > > > > > Is it? I would expect a single 192 byte packet here, breaking > > it in two doesn't make sense even if the hub would be able > > to reasse

Re: musb AM335x: isoc out transfers to FS device via hub are broken

2015-03-30 Thread Johannes Stezenbach
On Mon, Mar 30, 2015 at 04:23:53PM +0200, Johannes Stezenbach wrote: > On Mon, Mar 30, 2015 at 10:07:35AM -0400, Alan Stern wrote: > > On Mon, 30 Mar 2015, Johannes Stezenbach wrote: > > > > > cases URBs with typically 5 isoc frames of 192 bytes > > > length are

Re: musb AM335x: isoc out transfers to FS device via hub are broken

2015-03-30 Thread Johannes Stezenbach
On Mon, Mar 30, 2015 at 10:07:35AM -0400, Alan Stern wrote: > On Mon, 30 Mar 2015, Johannes Stezenbach wrote: > > > a USB soundcard in fullspeed mode works correctly > > when directly connected to a musb OTG port in host mode > > on an AM335x SoC, but produces garbl

musb AM335x: isoc out transfers to FS device via hub are broken

2015-03-30 Thread Johannes Stezenbach
Hi Felipe, a USB soundcard in fullspeed mode works correctly when directly connected to a musb OTG port in host mode on an AM335x SoC, but produces garbled audio output when connected via a hub. usbmon shows that in both cases URBs with typically 5 isoc frames of 192 bytes length are queued. The

Re: Bug#733826: [PATCH] xhci: Set scatter-gather limit to avoid failed block writes.

2014-01-17 Thread Johannes Stezenbach
On Tue, Jan 07, 2014 at 02:40:39AM +, Ben Hutchings wrote: > On Tue, 2014-01-07 at 07:01 +0800, jida...@jidanni.org wrote: > > Don't worry, I'll trust you! Plus I'm 53. > > I don't think anyone else has reproduced this problem, so you are the > person in the best place to check that these chan

Re: xhci-hcd (millions of) "Too many fragments" error on LUKS-encrypted device

2014-01-16 Thread Johannes Stezenbach
Hi Sascha, On Wed, Jan 15, 2014 at 08:27:58PM +0800, Sascha Weaver wrote: > 2014/1/15 David Laight : > > Edit drivers/usb/host/xhci.h and change the definition of > > TRBS_PER_SEGMENT from 64 to 256. > > > Thanks David! I re-compiled my kernel after changing 64 to 256 and it works! > > No more

Re: xhci-hcd (millions of) "Too many fragments" error on LUKS-encrypted device

2014-01-15 Thread Johannes Stezenbach
On Wed, Jan 15, 2014 at 10:51:28AM +, David Laight wrote: > From: Sascha > > 2014/1/15 David Laight : > > > This is a known problem. > > > A side effect of trying to fix USB ethernet. > > > > > > There is a patch lurking to increase the ring size from 64 to 256. > > > > Thanks, but where coul

Re: gadget: should usb_ep_enable() clear EP STALL?

2013-11-01 Thread Johannes Stezenbach
Hi, On Thu, Oct 31, 2013 at 10:21:28AM -0500, Felipe Balbi wrote: > On Thu, Oct 31, 2013 at 04:02:20PM +0100, Johannes Stezenbach wrote: > > On Wed, Oct 30, 2013 at 10:44:30PM +0100, Johannes Stezenbach wrote: > > > On Wed, Oct 30, 2013 at 12:54:15PM -0500, Felipe Balbi wrote: &

Re: gadget: should usb_ep_enable() clear EP STALL?

2013-10-31 Thread Johannes Stezenbach
On Wed, Oct 30, 2013 at 10:44:30PM +0100, Johannes Stezenbach wrote: > On Wed, Oct 30, 2013 at 12:54:15PM -0500, Felipe Balbi wrote: > > On Wed, Oct 30, 2013 at 03:17:46PM +0100, Johannes Stezenbach wrote: > > > I'm testing dwc3 with g_zero and noticed that errors > &g

Re: gadget: should usb_ep_enable() clear EP STALL?

2013-10-30 Thread Johannes Stezenbach
Hi, On Wed, Oct 30, 2013 at 12:54:15PM -0500, Felipe Balbi wrote: > On Wed, Oct 30, 2013 at 03:17:46PM +0100, Johannes Stezenbach wrote: > > I'm testing dwc3 with g_zero and noticed that errors > > seem to stick even after SET_CONFIGURATION/SET_INTERFACE. > &

gadget: should usb_ep_enable() clear EP STALL?

2013-10-30 Thread Johannes Stezenbach
Hi, I'm testing dwc3 with g_zero and noticed that errors seem to stick even after SET_CONFIGURATION/SET_INTERFACE. In f_sourcesink.c, check_read_data() calls usb_ep_set_halt() if the data does not match the expected values, and sourcesink_set_alt() indirectly calls usb_ep_disable() and usb_ep_ena

Re: current version of http://www.linux-usb.org/usbtest/ testusb.c

2013-09-08 Thread Johannes Stezenbach
On Sun, Sep 08, 2013 at 01:58:38PM -0500, joe M wrote: > Hello Greg, > > Trying with the full path of the device helped. Sorry for the bother. > > smart_sudo ./testusb -D /dev/bus/usb/006/001 > Password: > ./testusb: /dev/bus/usb/006/001 may see only control tests > /dev/bus/usb/006/001 test 0 --

Re: Video corruption varies by system load

2013-07-11 Thread Johannes Stezenbach
On Thu, Jul 11, 2013 at 02:12:08PM -0400, Alan Stern wrote: > On Thu, 11 Jul 2013, Devin Heitmueller wrote: > > > Another strange thing: If I change the completion handler on the 8147 > > to comment out the actual processing of the URB (such that all the > > completion handler does is resubmit th

Re: Video corruption varies by system load

2013-07-11 Thread Johannes Stezenbach
On Thu, Jul 11, 2013 at 11:28:38AM -0400, Alan Stern wrote: > On Thu, 11 Jul 2013, Johannes Stezenbach wrote: > > > Can you confirm that in the error case there is no IN token at all? > > That's what the analyzer log showed. Of course, it's possible that the > an

Re: Video corruption varies by system load

2013-07-11 Thread Johannes Stezenbach
On Wed, Jul 10, 2013 at 09:13:09PM -0400, Alan Stern wrote: > On Wed, 10 Jul 2013, Devin Heitmueller wrote: > > > So one might ask: why is the em28xx device sending a microframe with > > corrupt bytes? One thing I've noticed is immediately prior to any > > microframe containing corruption, there