Re: questions about give back urb in tasklet

2014-03-22 Thread Ming Lei
On Wed, Mar 19, 2014 at 11:05 PM, vichy wrote: > hi Ming: One approach I like to use is trace event. >>> Would you please let us how to to use trace event for calculate >>> max/average usb irq time? >> >> You can enable irq_handler_entry and irq_handler_exit event, then >> write a script easi

Re: questions about give back urb in tasklet

2014-03-19 Thread vichy
hi Ming: >>> One approach I like to use is trace event. >> Would you please let us how to to use trace event for calculate >> max/average usb irq time? > > You can enable irq_handler_entry and irq_handler_exit event, then > write a script easily to figure out the time consumed in ehci irq handler,

Re: questions about give back urb in tasklet

2014-03-19 Thread Alan Stern
On Wed, 19 Mar 2014, Ming Lei wrote: > But actually the local interrupt is still disabled during completion > because we need to convert spin_lock in all current usb drivers > to spin_lock_irqsave() first. > > I posted lot of patches to do the conversion, but unfortunately > most of them aren't m

Re: questions about give back urb in tasklet

2014-03-19 Thread Ming Lei
On Wed, Mar 19, 2014 at 9:34 PM, vichy wrote: > hi Ming >>> >>> in http://permalink.gmane.org/gmane.linux.usb.general/89363 >>> >>> I have some questions about this patch. >>> 1. is there patch or kernel config I can use to measure man/avage usb >>> irq time consuming like the above link show >> >

Re: questions about give back urb in tasklet

2014-03-19 Thread vichy
hi Ming >> >> in http://permalink.gmane.org/gmane.linux.usb.general/89363 >> >> I have some questions about this patch. >> 1. is there patch or kernel config I can use to measure man/avage usb >> irq time consuming like the above link show > > One approach I like to use is trace event. Would you pl

Re: questions about give back urb in tasklet

2014-03-19 Thread Ming Lei
On Wed, Mar 19, 2014 at 5:57 PM, vichy wrote: > hi Ming.lei: > 2014-03-17 22:01 GMT+08:00 Alan Stern : >> On Sun, 16 Mar 2014, vichy wrote: >> >>> hi all: >>> recently we bump to system performance issue when usb irq take quite long. >>> I found below link for discussing how to short >>> > > in h

Re: questions about give back urb in tasklet

2014-03-19 Thread vichy
hi all: 2014-03-19 17:57 GMT+08:00 vichy : > hi Ming.lei: > 2014-03-17 22:01 GMT+08:00 Alan Stern : >> On Sun, 16 Mar 2014, vichy wrote: >> >>> hi all: >>> recently we bump to system performance issue when usb irq take quite long. >>> I found below link for discussing how to short >>> > > in http

Re: questions about give back urb in tasklet

2014-03-19 Thread vichy
hi Ming.lei: 2014-03-17 22:01 GMT+08:00 Alan Stern : > On Sun, 16 Mar 2014, vichy wrote: > >> hi all: >> recently we bump to system performance issue when usb irq take quite long. >> I found below link for discussing how to short >> in http://permalink.gmane.org/gmane.linux.usb.general/89363 I h

Re: questions about give back urb in tasklet

2014-03-17 Thread Alan Stern
On Sun, 16 Mar 2014, vichy wrote: > hi all: > recently we bump to system performance issue when usb irq take quite long. > I found below link for discussing how to short > > http://permalink.gmane.org/gmane.linux.usb.general/89363 > > I have some questions about this patch. Instead of just post

questions about give back urb in tasklet

2014-03-16 Thread vichy
hi all: recently we bump to system performance issue when usb irq take quite long. I found below link for discussing how to short http://permalink.gmane.org/gmane.linux.usb.general/89363 I have some questions about this patch. 1. is there patch or kernel config I can use to measure man/avage usb