Skip to content

Power down serdes lanes and CMUs initially

Daniel Machon linux-arm-kernel linux-phy lkml 1 version Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7phy: sparx5-serdes: add registers required for SD/CMU power downdrivers/phy/microchip/sparx5_serdes_regs.h+106 -00 replies
2/7phy: sparx5-serdes: configure optimal quiet mode for serdes lanesdrivers/phy/microchip/sparx5_serdes.c+31 -10 replies
3/7phy: sparx5-serdes: reorder CMU functionsdrivers/phy/microchip/sparx5_serdes.c+153 -1530 replies
4/7phy: sparx5-serdes: power down all CMUs by defaultdrivers/phy/microchip/sparx5_serdes.c+51 -00 replies
5/7phy: sparx5-serdes: power on CMUs individuallydrivers/phy/microchip/sparx5_serdes.c+42 -10 replies
6/7phy: sparx5-serdes: remove power up of all CMUsdrivers/phy/microchip/sparx5_serdes.c drivers/phy/microchip/sparx5_serdes.h+0 -260 replies
7/7phy: sparx5-serdes: add skip_cmu_cfg check when configuring lanesdrivers/phy/microchip/sparx5_serdes.c+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] Power down serdes lanes and CMUs initially

This patch series aims to lower the power consumption of the Sparx5 switch chip, by configuring optimal quiet mode for serdes lanes, as well as powering down unused CMUs (Clock Multiplier Unit). Before this series, serdes lane quiet mode were not optimally configured, and all the CMUs were powered on by default. This uses needless power.

Each serdes lane is provided a CMU clock, depending on the serdes mode and the serdes index. CMUs will now be powered on individually, when needed. The amount of power saved varies, depending on the port configuration. As a reference, this change saves about 1W on sparx5_pcb135 and 2W on sparx5_pcb134.

Patch #1: Adds the required registers.
Patch #2: Configures optimal quiet mode for all serdes lanes. Patch #3: Reorders CMU functions.
Patch #4: Configures CMUs to be powered down by default.

Patch #5: Adds the serdes mode and index to CMU index map, and configures the
individual CMU when the corresponding serdes lane is configured.

Patch #6: Removes the code that unconditionally powered on all CMUs Patch #7: Adds a check that serdesmode is not unset when a CMU is configured.

Daniel Machon (7):
phy: sparx5-serdes: add registers required for SD/CMU power down
phy: sparx5-serdes: configure optimal qiet mode for serdes lanes
phy: sparx5-serdes: reorder CMU functions
phy: sparx5-serdes: power down all CMUs by default
phy: sparx5-serdes: power on CMUs individually
phy: sparx5-serdes: remove power up of all CMUs
phy: sparx5-serdes: do not reconfigure serdes if serdesmode is unset

 drivers/phy/microchip/sparx5_serdes.c      | 426 +++++++++++++--------
 drivers/phy/microchip/sparx5_serdes.h      |   1 -
 drivers/phy/microchip/sparx5_serdes_regs.h | 106 +++++
 3 files changed, 370 insertions(+), 163 deletions(-)

--
2.34.1

Signature · 3 lines
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy