Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-11-04 Thread Alan Stern
On Mon, 4 Nov 2013, Alan Stern wrote: > On Mon, 4 Nov 2013, Prasad Koya wrote: > > > Hi > > > > I'm attaching dmesg with old_scheme_first=1 and > > CONFIG_USB_STORAGE_DEBUG enabled. I compiled code with > > old_scheme_first set to 1. I see that it doesn't do get descriptor > > early in the loop

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-11-04 Thread Alan Stern
On Mon, 4 Nov 2013, Prasad Koya wrote: > Hi > > I'm attaching dmesg with old_scheme_first=1 and > CONFIG_USB_STORAGE_DEBUG enabled. I compiled code with > old_scheme_first set to 1. I see that it doesn't do get descriptor > early in the loop so it doesn't run into khubd time out. But as I > menti

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-11-04 Thread Prasad Koya
Hi I'm attaching dmesg with old_scheme_first=1 and CONFIG_USB_STORAGE_DEBUG enabled. I compiled code with old_scheme_first set to 1. I see that it doesn't do get descriptor early in the loop so it doesn't run into khubd time out. But as I mentioned earlier usb-storage runs into some sort of error

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-11-03 Thread Alan Stern
On Sat, 2 Nov 2013, Prasad Koya wrote: > Hi > > I didn't have luck reproducing with both CONFIG_USB_DEBUG and > CONFIG_USB_STORAGE_DEBUG. I could reproduce with each of them enabled > separately. Am attaching the whole dmesg of both as zip files. If I > should send them in different format, pleas

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-11-02 Thread Prasad Koya
Hi I didn't have luck reproducing with both CONFIG_USB_DEBUG and CONFIG_USB_STORAGE_DEBUG. I could reproduce with each of them enabled separately. Am attaching the whole dmesg of both as zip files. If I should send them in different format, please let me know. I didn't see anything warnings or err

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-10-31 Thread Alan Stern
On Thu, 31 Oct 2013, Prasad Koya wrote: > I tried usbmon before forcing crash: > As this USB is on bus 1, I tried below: > > cat /sys/kernel/debug/usb/usbmon/1u > > I didn't see anything till I copied a file or did some activity on it. > While cat'ing above, I copied a file to that flash with d

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-10-31 Thread Prasad Koya
I tried usbmon before forcing crash: T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 5 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1d6b ProdID=0002 Rev= 2.06 S: Manufacturer=Linux 2.6.32.28 ehci_hcd S: Pro

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-10-31 Thread Alan Stern
On Wed, 30 Oct 2013, Prasad Koya wrote: > Hi > > Here are dmesg's with old_scheme_first=1 and where it took about 20s > for usb-storage to start using this device. Is there a way I can > enable debugs from usb-storage to see what it is doing in that 20s > gap. The device in question is at usb1-3

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-10-30 Thread Prasad Koya
Hi Here are dmesg's with old_scheme_first=1 and where it took about 20s for usb-storage to start using this device. Is there a way I can enable debugs from usb-storage to see what it is doing in that 20s gap. The device in question is at usb1-3 (sdb), manufactured by SMART. Thank you. [1.62

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-10-30 Thread Prasad Koya
Hi Thanks for suggesting the alternatives. With CONFIG_USB_DEBUG and CONFIG_USB_MON enabled I see below messages related to the USB device in question. This is not reproducible easily. I'll try the old_scheme_first. We are seeing this issue with flash that is internal to our box and not accessibl

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-10-30 Thread Alan Stern
On Tue, 29 Oct 2013, Prasad Koya wrote: > Thanks for looking into the patch. Am fairly new to the USB subsystem. > You are right. There is a possibility of going into infinite loop with > hub_port_init -> usb_reset_device -> usb_reset_and_verify_device -> > hub_port_init. > > We are trying to ach

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-10-29 Thread Alan Stern
On Mon, 28 Oct 2013, Prasad Koya wrote: > Hi > > I tried resetting usb device when it gets ETIMEDOUT during get > descriptor. On second retry, I don't see timeout. Please see this > patch: > > Index: linux-3.4/drivers/usb/core/hub.c > =

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-10-28 Thread Prasad Koya
Hi I tried resetting usb device when it gets ETIMEDOUT during get descriptor. On second retry, I don't see timeout. Please see this patch: Index: linux-3.4/drivers/usb/core/hub.c === --- linux-3.4.orig/drivers/usb/core/hub.c +++ linu

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-10-25 Thread Alan Stern
On Fri, 25 Oct 2013, Prasad Koya wrote: > Resending in plain-text. > > On Thu, Oct 24, 2013 at 11:06 PM, Prasad Koya wrote: > > Hi > > > > I tried with even unmounting the USB before forcing panic and I see same > > time out while getting device descriptor. A better test would be to unbind usb-

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-10-25 Thread Prasad Koya
Resending in plain-text. On Thu, Oct 24, 2013 at 11:06 PM, Prasad Koya wrote: > Hi > > I tried with even unmounting the USB before forcing panic and I see same > time out while getting device descriptor. > > From debugs, I see that the portstatus is 0x501 to start with ie, > (high-speed attached,

Re: khubd timed out on ep0in len=0/64 with 3.4 kernel

2013-10-23 Thread Alan Stern
On Tue, 22 Oct 2013, Prasad Koya wrote: > Hi > > I have a USB subsystem question. If there is a specific mailing list for > USB queries I could post it there. The specific mailing list for USB queries is . It's listed in the kernel's MAINTAINERS file. > I'm seeing this problem with both 2.6.3