From: Sayali Lokhande <sayalil@codeaurora.org>
To: adrian.hunter@intel.com, ulf.hansson@linaro.org,
robh+dt@kernel.org, mark.rutland@arm.com
Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
shawn.lin@rock-chips.com, linux-arm-msm@vger.kernel.org,
georgi.djakov@linaro.org, devicetree@vger.kernel.org,
asutoshd@codeaurora.org, stummala@codeaurora.org,
venkatg@codeaurora.org, vviswana@codeaurora.org,
bjorn.andersson@linaro.org, riteshh@codeaurora.org,
vbadigan@codeaurora.org, sayalil@codeaurora.org
Subject: [PATCH RFC 0/7] Add devfreq based clock scaling support for mmc
Date: Fri, 13 Jul 2018 15:22:56 +0530 [thread overview]
Message-ID: <1531475583-7050-1-git-send-email-sayalil@codeaurora.org> (raw)
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(-)
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
next reply other threads:[~2018-07-13 9:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-13 9:52 Sayali Lokhande [this message]
2018-07-13 9:52 ` [PATCH RFC 1/7] devfreq: Add new flag to do simple clock scaling Sayali Lokhande
2018-07-13 9:52 ` [PATCH RFC 2/7] mmc: core: devfreq: Add devfreq based clock scaling support Sayali Lokhande
2018-07-20 15:24 ` Rob Herring
2018-10-04 12:43 ` Sayali Lokhande
2018-07-23 10:01 ` Vijay Viswanath
2018-10-01 14:16 ` Sayali Lokhande
2019-12-17 1:36 ` Chanwoo Choi
2019-12-17 1:39 ` Chanwoo Choi
2018-07-13 9:52 ` [PATCH RFC 3/7] mmc: core: Add sysfs entries for dynamic control of clock scaling Sayali Lokhande
2018-07-13 9:53 ` [PATCH RFC 4/7] mmc: core: add support for devfreq suspend/resume Sayali Lokhande
2018-07-13 9:53 ` [PATCH RFC 5/7] mmc: sdhci-msm: Kconfig: select devfreq ondemand for sdhci-msm Sayali Lokhande
2018-07-13 9:53 ` [PATCH RFC 6/7] mmc: sdhci-msm: Enable clock scaling property Sayali Lokhande
2018-07-13 9:53 ` [PATCH RFC 7/7] mmc: core: Add a debugfs entry to set max clock rate Sayali Lokhande
2018-07-16 10:11 ` [PATCH RFC 0/7] Add devfreq based clock scaling support for mmc Ulf Hansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1531475583-7050-1-git-send-email-sayalil@codeaurora.org \
--to=sayalil@codeaurora.org \
--cc=adrian.hunter@intel.com \
--cc=asutoshd@codeaurora.org \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=georgi.djakov@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=riteshh@codeaurora.org \
--cc=robh+dt@kernel.org \
--cc=shawn.lin@rock-chips.com \
--cc=stummala@codeaurora.org \
--cc=ulf.hansson@linaro.org \
--cc=vbadigan@codeaurora.org \
--cc=venkatg@codeaurora.org \
--cc=vviswana@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).