Skip to content

RFC Add devfreq based clock scaling support for mmc

Sayali Lokhande linux-arm-msm linux-devicetree linux-mmc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7devfreq: Add new flag to do simple clock scalingdrivers/devfreq/governor_simpleondemand.c include/linux/devfreq.h+23 -60 replies
2/7mmc: core: devfreq: Add devfreq based clock scaling supportDocumentation/devicetree/bindings/mmc/sdhci-msm.txt drivers/mmc/core/core.c drivers/mmc/core/core.h +10 more+1059 -26 replies
3/7mmc: core: Add sysfs entries for dynamic control of clock scalingDocumentation/mmc/mmc-dev-attrs.txt drivers/mmc/core/host.c+188 -10 replies
4/7mmc: core: add support for devfreq suspend/resumedrivers/mmc/core/core.c drivers/mmc/core/core.h drivers/mmc/core/host.c +2 more+160 -20 replies
5/7mmc: sdhci-msm: Kconfig: select devfreq ondemand for sdhci-msmdrivers/mmc/host/Kconfig+2 -00 replies
6/7mmc: sdhci-msm: Enable clock scaling propertydrivers/mmc/host/sdhci-msm.c+1 -00 replies
7/7mmc: core: Add a debugfs entry to set max clock ratedrivers/mmc/core/debugfs.c+44 -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 RFC 0/7] Add devfreq based clock scaling support for mmc

This change adds the use of devfreq based clock scaling to MMC. Both eMMC and SD card can use it.
For some workloads, such as video playback, it isn't necessary for these cards to run at high speed. Running at lower frequency, in such cases can still meet the deadlines for data transfers. Scaling down the clock frequency dynamically has power savings not only because the bus is running at lower frequency but also has an advantage of scaling down the system core voltage, if supported. Provide an ondemand clock scaling support similar to the cpufreq ondemand governor having two thresholds, up_threshold and down_threshold to decide whether to increase the frequency or scale it down respectively as per load.

Sahitya Tummala (1):
devfreq: Add new flag to do simple clock scaling

Sayali Lokhande (6):
mmc: core: devfreq: Add devfreq based clock scaling support
mmc: core: Add sysfs entries for dynamic control of clock scaling
mmc: core: add support for devfreq suspend/resume
mmc: sdhci-msm: Kconfig: select devfreq ondemand for sdhci-msm
mmc: sdhci-msm: Enable clock scaling property
mmc: core: Add a debugfs entry to set max clock rate

 .../devicetree/bindings/mmc/sdhci-msm.txt          |  10 +
 Documentation/mmc/mmc-dev-attrs.txt                |  38 ++
 drivers/devfreq/governor_simpleondemand.c          |  25 +-
 drivers/mmc/core/core.c                            | 672 +++++++++++++++++++++
 drivers/mmc/core/core.h                            |   9 +
 drivers/mmc/core/debugfs.c                         |  90 +++
 drivers/mmc/core/host.c                            | 163 ++++-
 drivers/mmc/core/mmc.c                             | 227 ++++++-
 drivers/mmc/core/sd.c                              |  85 ++-
 drivers/mmc/host/Kconfig                           |   2 +
 drivers/mmc/host/sdhci-msm.c                       |  38 ++
 drivers/mmc/host/sdhci-pltfm.c                     |  11 +
 drivers/mmc/host/sdhci.c                           |  27 +
 drivers/mmc/host/sdhci.h                           |   8 +
 include/linux/devfreq.h                            |   4 +
 include/linux/mmc/card.h                           |   5 +
 include/linux/mmc/host.h                           |  70 +++
 17 files changed, 1475 insertions(+), 9 deletions(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project