Re: [PATCH] Slight optimisation of the uhci-hcd init code

From: eric . piel
Date: Wed Feb 11 2004 - 05:41:12 EST


Quoting Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>:

> It's a nice idea. I was planning to alter the logic behind that nested
> "if" anyway, and I'll keep your recommendation in mind when I do it.
Great

> > PS: still, I'm not sure it's normal to see ffffffff as "bus master
> activity" in
> > /proc/acpi/processor/CPU0/power as soon as uhci-hcd is loaded. In
> particular, it
> > prevents the processor to go to C3 state. Could you give me your pint of
> view?
>
> I'm not sure exactly what the ffffffff value means -- maximum utilization?
Yes, more exactly it means that the last 64 times the idle task was called the
bus master was detected as being used.


> Anyway, a UHCI host controller is a bus master and it can generate a lot
> of activity depending on what USB devices are plugged in. If no USB
> devices are plugged, the controller will be suspended after 1 second.
> Of course then it shouldn't be accessing the PCI bus at all.
>
> There is one exception to this. Some manufacturers try to disable unused
> USB ports on their motherboards by tying the overcurrent input permanently
> high. (This seems to be particularly common among laptops.) With some
> Intel controllers this strategy generates "device-connected" interrupts,
> so the driver doesn't try to suspend the controller. There's a patch to
> fix this behavior currently being tested.
Well, my laptop seems fine. When I unplug the mouse the bus master activity goes
to 0000000. I've very little idea about how the bus master has to be used and
even less about the uhci host controller. However, at a first glance I thought
it was weird to see full bus master activity when all that is connected is a
mouse not being used. Do you think it's normal?

Eric

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/