RE: Not enough resource for old configuration after USB bus reset

2013-03-03 Thread Soar Hung
Hi, >> >> I try two experiment, >> >> 1. Test it on general desktop, the device will enum as CDC_ECM( 1 >> control, 2 bulk, 1 interrupt), and CDC_ECM driver will use > interupt to polling link status. >> >> 2. Test it on embedded system, the device will controlled > by a custom driver ( 1 cont

Re: Not enough resource for old configuration after USB bus reset

2013-02-27 Thread Sarah Sharp
On Wed, Feb 27, 2013 at 07:46:35PM +0800, Soar Hung wrote: > >> Maybe I can try this with the mouse. > >> As far as I know, most HDD and pendrive do not use periodic tranfer. > >> So they can not produce the issue. > > > > few emails back you said it had nothing to do with periodic > > transfers.

RE: Not enough resource for old configuration after USB bus reset

2013-02-27 Thread Soar Hung
>> Maybe I can try this with the mouse. >> As far as I know, most HDD and pendrive do not use periodic tranfer. >> So they can not produce the issue. > > few emails back you said it had nothing to do with periodic > transfers. -ECONFUSED > I try two experiment, 1. Test it on general desktop, t

Re: Not enough resource for old configuration after USB bus reset

2013-02-26 Thread Felipe Balbi
Hi, On Tue, Feb 26, 2013 at 01:04:50PM +0800, Soar Hung wrote: > Hi all, thanks for your help. > > > I just ran 10K resets with each of 3 different devices (USB3 > > HDD, USB2 pendrive and a mouse) and I didn't see the problem you're > > saying here. > > > > Tested with TUSB7340EVM on v3.8.0. >

RE: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Soar Hung
> I try the same operation to produce the issue, and it >> also fails. Please attach the output of dmesg with CONFIG_USB_DEBUG and XHCI_DEBUG. >>> >>> With these two debug config on, the dmesg buffer even can not log >>> one reset operation. >> >> You can increase your buffer size

RE: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Soar Hung
linux-usb-ow...@vger.kernel.org wrote: > On Mon, Feb 25, 2013 at 01:42:44PM +0200, Felipe Balbi wrote: >> HI, >> >> On Mon, Feb 25, 2013 at 07:33:23PM +0800, Soar Hung wrote: What's the actual issue here ? Can you explain to me Sarah ? This may be a known issue regarding this particular

RE: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Soar Hung
> Can you send me the output of `sudo lspci -vvv` and `sudo > lspci -vvv -n` when the TI host is attached to your system? > I'll send you a patch with the workaround fix to test. We > can also add a quirk for your host, if your host controller > is already available with this issue, and you're pl

RE: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Soar Hung
I try the same operation to produce the issue, and it > also fails. >>> Please attach the output of dmesg with CONFIG_USB_DEBUG and >>> XHCI_DEBUG. >> >> With these two debug config on, the dmesg buffer even can not log >> one reset operation. > > You can increase your buffer size by setti

RE: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Soar Hung
Hi all, thanks for your help. > I just ran 10K resets with each of 3 different devices (USB3 > HDD, USB2 pendrive and a mouse) and I didn't see the problem you're > saying here. > > Tested with TUSB7340EVM on v3.8.0. Maybe I can try this with the mouse. As far as I know, most HDD and pendrive

Re: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Sarah Sharp
r.kernel.org > > Subject: Re: Not enough resource for old configuration after > > USB bus reset > > > > 2013/2/19 Soar Hung : > > > Hi all, > > > > > > I checkout the usb-next branch (on 2/18) and following the > > https://wiki.ubuntu.com/Kerne

Re: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Felipe Balbi
Hi, On Mon, Feb 25, 2013 at 09:32:51AM -0800, Sarah Sharp wrote: > > > > If the problem is related only to device reset, then it would > > > > have failed USB30CV Device Reset test which drives 500 Device > > > > Resets and checks that device reenumerates. I doubt that's > > > > the case though, s

Re: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Sarah Sharp
On Mon, Feb 25, 2013 at 01:42:44PM +0200, Felipe Balbi wrote: > HI, > > On Mon, Feb 25, 2013 at 07:33:23PM +0800, Soar Hung wrote: > > > What's the actual issue here ? Can you explain to me Sarah ? > > > This may be a known issue regarding this particular host > > > controller and if it is, there

Re: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Felipe Balbi
Hi, On Mon, Feb 25, 2013 at 02:03:56PM +0200, Felipe Balbi wrote: > On Mon, Feb 25, 2013 at 07:56:49PM +0800, Soar Hung wrote: > > >> Then add_endpoint to enable these endpoints. > > >> After all drop add flag are set, HCD sends a configure endpoint > > >> command to complete the change. > > > >

Re: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Felipe Balbi
Hi, On Mon, Feb 25, 2013 at 07:56:49PM +0800, Soar Hung wrote: > >> Then add_endpoint to enable these endpoints. > >> After all drop add flag are set, HCD sends a configure endpoint > >> command to complete the change. > > > > right. > > > >> Before the priodic bandiwdth is used up, the configur

RE: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Soar Hung
Felipe Balbi wrote: > HI, > > On Mon, Feb 25, 2013 at 07:33:23PM +0800, Soar Hung wrote: >>> What's the actual issue here ? Can you explain to me Sarah ? >>> This may be a known issue regarding this particular host controller >>> and if it is, there might already be workarounds available. >> >> I

Re: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Felipe Balbi
HI, On Mon, Feb 25, 2013 at 07:33:23PM +0800, Soar Hung wrote: > > What's the actual issue here ? Can you explain to me Sarah ? > > This may be a known issue regarding this particular host > > controller and if it is, there might already be workarounds available. > > I copy the previous content an

RE: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Soar Hung
> What's the actual issue here ? Can you explain to me Sarah ? > This may be a known issue regarding this particular host > controller and if it is, there might already be workarounds available. > I copy the previous content and try to make it more clear. When calling usb_reset_and_verify_de

Re: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Felipe Balbi
Hi, On Wed, Feb 20, 2013 at 11:53:26AM -0800, Sarah Sharp wrote: > On Wed, Feb 20, 2013 at 10:14:46AM -0800, Sarah Sharp wrote: > > Are you sure the TI host and your host isn't neglecting to drop endpoint > > resources when the Reset Device command is handled? > > I double checked your test file

RE: Not enough resource for old configuration after USB bus reset

2013-02-25 Thread Soar Hung
> -Original Message- > From: Lan Tianyu [mailto:lantianyu1...@gmail.com] > Sent: Wednesday, February 20, 2013 4:14 PM > To: Soar Hung > Cc: Alan Stern; Sarah Sharp; linux-usb@vger.kernel.org > Subject: Re: Not enough resource for old configuration after > USB bus

Re: Not enough resource for old configuration after USB bus reset

2013-02-20 Thread Sarah Sharp
On Wed, Feb 20, 2013 at 03:21:19PM -0500, Alan Stern wrote: > On Wed, 20 Feb 2013, Sarah Sharp wrote: > > > Basically, I think this is a host-specific bug. We can certainly work > > around it in the xHCI driver with a quirk for all hosts that have this > > resource tracking problem. We would iss

Re: Not enough resource for old configuration after USB bus reset

2013-02-20 Thread Alan Stern
On Wed, 20 Feb 2013, Sarah Sharp wrote: > Basically, I think this is a host-specific bug. We can certainly work > around it in the xHCI driver with a quirk for all hosts that have this > resource tracking problem. We would issue a Configure Endpoint command > to drop all endpoints before the Res

Re: Not enough resource for old configuration after USB bus reset

2013-02-20 Thread Sarah Sharp
On Wed, Feb 20, 2013 at 10:14:46AM -0800, Sarah Sharp wrote: > Are you sure the TI host and your host isn't neglecting to drop endpoint > resources when the Reset Device command is handled? I double checked your test file on the latest Intel xHCI host, and it's up to over 4,000 successful resets o

Re: Not enough resource for old configuration after USB bus reset

2013-02-20 Thread Sarah Sharp
, 2013 12:22 AM > To: 洪崇耕 > Cc: linux-usb@vger.kernel.org > Subject: RE: Not enough resource for old configuration after USB bus reset > > On Wed, 30 Jan 2013, [big5] x R wrote: > > > Hi all, > > > > We try to reproduce the problem on general desktop with ubuntu

Re: Not enough resource for old configuration after USB bus reset

2013-02-20 Thread Lan Tianyu
t; Sent: Friday, February 08, 2013 12:57 AM > To: Soar Hung > Cc: Alan Stern; Sarah Sharp; linux-usb@vger.kernel.org > Subject: Re: Not enough resource for old configuration after USB bus reset > > 于 2013/2/7 16:59, Soar Hung 写道: >> Hi Tianyu, >> >> I can produce the

RE: Not enough resource for old configuration after USB bus reset

2013-02-18 Thread Soar Hung
ginal Message- > From: Lan Tianyu [mailto:lantianyu1...@gmail.com] > Sent: Thursday, February 07, 2013 4:18 PM > To: Soar Hung > Cc: Alan Stern; Sarah Sharp; linux-usb@vger.kernel.org > Subject: Re: Not enough resource for old configuration after USB bus > reset > > 2013/2/4

Re: Not enough resource for old configuration after USB bus reset

2013-02-07 Thread Lan Tianyu
ursday, February 07, 2013 4:18 PM To: Soar Hung Cc: Alan Stern; Sarah Sharp; linux-usb@vger.kernel.org Subject: Re: Not enough resource for old configuration after USB bus reset 2013/2/4 Soar Hung : Hi Alan, Sarah, Thank you for your kindly help. Can I do something to provide some help? You

RE: Not enough resource for old configuration after USB bus reset

2013-02-07 Thread Soar Hung
ards, Soar -Original Message- From: Lan Tianyu [mailto:lantianyu1...@gmail.com] Sent: Thursday, February 07, 2013 4:18 PM To: Soar Hung Cc: Alan Stern; Sarah Sharp; linux-usb@vger.kernel.org Subject: Re: Not enough resource for old configuration after USB bus reset 2013/2/4 Soar Hung :

Re: Not enough resource for old configuration after USB bus reset

2013-02-07 Thread Lan Tianyu
Best regards, > Soar > > -Original Message- > From: Alan Stern [mailto:st...@rowland.harvard.edu] > Sent: Friday, February 01, 2013 11:36 PM > To: Soar Hung > Cc: Sarah Sharp; linux-usb@vger.kernel.org > Subject: RE: Not enough resource for old configuration after USB bus rese

RE: Not enough resource for old configuration after USB bus reset

2013-02-03 Thread Alan Stern
On Mon, 4 Feb 2013, Soar Hung wrote: > Hi Alan, Sarah, > > Thank you for your kindly help. > > Can I do something to provide some help? For now, I think you may just have to wait until Sarah gets back from LinuxConf Australia. Alan Stern -- To unsubscribe from this list: send the line "unsub

RE: Not enough resource for old configuration after USB bus reset

2013-02-03 Thread Soar Hung
: RE: Not enough resource for old configuration after USB bus reset On Fri, 1 Feb 2013, [big5] x R wrote: > Hi, > > According to xHCI spec Rev1 page 125, Endpoint context state diagram. > > When reset device, the endpoint state transit to disabled state. > > Do I make som

RE: Not enough resource for old configuration after USB bus reset

2013-02-01 Thread Alan Stern
On Fri, 1 Feb 2013, [big5] �x�R�� wrote: > Hi, > > According to xHCI spec Rev1 page 125, Endpoint context state diagram. > > When reset device, the endpoint state transit to disabled state. > > Do I make some mistake? > > I'll try to figure out the endopint state transitions during the reset

RE: Not enough resource for old configuration after USB bus reset

2013-01-31 Thread 洪崇耕
r the direction. Soar From: Alan Stern [mailto:st...@rowland.harvard.edu] Sent: Thursday, January 31, 2013 12:22 AM To: 洪崇耕 Cc: linux-usb@vger.kernel.org Subject: RE: Not enough resource for old configuration after USB bus reset On Wed, 30 Jan 2013, [big5] x R wrote: > Hi all, > > We tr

RE: Not enough resource for old configuration after USB bus reset

2013-01-30 Thread Alan Stern
On Wed, 30 Jan 2013, [big5] �x�R�� wrote: > Hi all, > > We try to reproduce the problem on general desktop with ubuntu 12.04.1 and > 12.10, and got some information below: > > 1. If we use xHci with Ti TUSB7340 chip, do bus reset or plug/unplug 1000+ > times, the host fail to configure the de

RE: Not enough resource for old configuration after USB bus reset

2013-01-30 Thread 洪崇耕
return 0; } $ gcc usbreset.c -o usbreset $ sudo ./usbreset /dev/bus/usb// Best regards, Soar -Original Message- From: Peter Stuge [mailto:pe...@stuge.se] Sent: Monday, January 21, 2013 12:27 PM To: 洪崇耕 Cc: linux-usb@vger.kernel.org Subject: Re: Not enough resource for old configurati

Re: Not enough resource for old configuration after USB bus reset

2013-01-20 Thread Peter Stuge
Soar Hung wrote: > We ported the Linux and related drivers to our embedded > system(a customized board), and using TUSB7340 as our > host controller. > > We also write a usb interface driver for the tested device, > the enumeration and bulk in/out transfers work fine. > > But we encounter prob

Not enough resource for old configuration after USB bus reset

2013-01-20 Thread Soar Hung
Hi everybody, We ported the Linux and related drivers to our embedded system(a customized board), and using TUSB7340 as our host controller. We also write a usb interface driver for the tested device, the enumeration and bulk in/out transfers work fine. But we encounter problem when we keep d