PM policy, hotplug, power saving (was Re: [PATCH] b44: power down PHY when interface down)



Arjan van de Ven wrote:
Matthew Garrett wrote:
Do you still get link beat detection when the phy is powered down?

does that matter?
If the interface is down, nic drivers aren't expected to detect link... if userspace wants to find link status it should have the interface up.


Definitely matters. Switch renegotiation can take a while, and you must take into account the common case of interface bouncing (immediate down, then up).

Hoards actively complained the few times we experimented with this, because of e.g. DHCP's habit of bouncing the interface, which resulted in PHY power bouncing, which resulted in negotiation, which resulted in an excrutiating wait on various broken or stupid switches.

Overall, this may be classed with other problems of a similar sort: we can power down a PHY, but that removes hotplug capability and extends partner/link negotiation time.

Like SATA, we actually want to support BOTH -- active hotplug and PHY power-down -- and so this wanders into power management policy.

Give me a knob, and we can program plenty of ethernet|SATA|USB|... drivers to power down the PHY and save power.

Jeff


-
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/



Relevant Pages

  • Re: PM policy, hotplug, power saving (was Re: [PATCH] b44: power down PHY when interface down)
    ... If the interface is down, nic drivers aren't expected to detect link... ... can power down a PHY, but that removes hotplug capability and extends ...
    (Linux-Kernel)
  • Re: axe(4) (Belkin F5D5055) problems
    ... Basically the network connection works but when some more serious ... Another strange thing that I noticed is that, while the interface ... Because truephy(4) pokes some undocumented PHY ... Not sure where I can find required dsp code. ...
    (freebsd-current)
  • Re: axe(4) (Belkin F5D5055) problems
    ... I'm running -current from 23.03.09 and I'm experiencing some axe ... Basically the network connection works but when some more serious ... Another strange thing that I noticed is that, while the interface ... Because truephy(4) pokes some undocumented PHY ...
    (freebsd-current)
  • Re: [linux-pm] Power Management framework proposal
    ... to access the plugins and then the plugins do things behind the scenes? ... there power management tunning capacity, Then an ohm plugin would use ... Last consumer in power management food chain would be an user interface which ... power management to list of mode whose attribute are power consumption ...
    (Linux-Kernel)
  • Re: WAN Ethernet
    ... So the SDH compatibility is like between SDH interfaces. ... I used the word "compatible" because a direct connection can be made without any sort of encapsulation equipment, as would be required with any other PHY. ... I mean that, for the same speed, fiber type, and distance rating on the lasers, a WAN PHY interface will cost significantly more than a LAN PHY interface; i.e. 10GBase-W products will cost more than 10GBase-S products even though both are MMF for up to 400m. ...
    (comp.dcom.lans.ethernet)