Thread (4 messages) flat view 4 messages, 4 authors, 2012-09-24

Re: [RFC PATCH 0/3] usbnet: support runtime PM triggered by link change

From: Ming Lei <hidden>
Date: 2012-09-17 08:25:59

On Mon, Sep 17, 2012 at 4:04 PM, Oliver Neukum [off-list ref] wrote:
On Sunday 16 September 2012 01:48:16 Ming Lei wrote:

Hi,
quoted
Currently only very few usbnet devices support the traffic based
runtime PM, eg. wake up devices if there are packets to be transmitted.

For the below situation, it should make sense to runtime suspend usbnet
device to save power:

        - after network link becomes down
Basically cool design, but it raises two fundamental questions
and some detail questions.
quoted
This patch implements the runtime PM triggered by network link change
event, and it works basically on asix usbnet device after a simple
runtime PM test.
1) Does it actually save power? You are constantly waking up a CPU.
Of course, it does. I don't know it will save how much power just on
usbnet device, but it may save power from usb hub and usb host
controller in the bus at least.

Anyway we don't need to waste power if the link of usbnet is down.

It just wake up CPU one time each 3sec. In modern linux distribution,
the CPU will be wakup tens times per second, so it shouldn't be a
big problem.
From that perspective it is possible that leaving on the ethernet is actually
better in terms of power. Only measurements can answer that question.
You know it is a bit difficult to test power save for this situation. And
most of runtime PM patches didn't provide power save data. In fact,
I'd like to do it, but I have not some equipment to measure it, :-(.
2) Do we have many devices that would be serviced with this approach?
At least I found asix can be serviced by this approach. Considered asix
is quite popular, it is worthy of the effort. Also the below devices can be
serviced by the patch in theory:

                   dm9601.c / mcs7830.c / sierra_net.c

In fact, it might be used by other non-usbnet devices too.

Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help