Re: [PATCH] Export URB statistics for powertop.

David Brownell <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <20071003223725.2E01C22A775@adsl-69-226-248-13.dsl.pltn13.pacbell.net>
> powertop currently tracks interrupts generated by uhci and ehci,

OHCI too I'd hope...


> but it has no way of telling which USB device to blame interrupts on.
> This patch exports the number of URBs that complete for a given device.

Note that there's not a one-to-one correspondence between URBs
and interrupts...

Plus, both OHCI and EHCI drivers include logic to reduce the number
of interrupts issued per URB.  So for example usb-storage will probably
get an IRQ every two or three URBs with OHCI, and once per scatterlist
request (I've seen several dozen URBs per scatterlist) with EHCI.

So, powertop shouldn't assume one URB per IRQ ...

- Dave


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.