Skip to content

Support CPR on MSM8916

Stephen Boyd linux-arm-kernel linux-arm-msm linux-devicetree linux-pm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 9 repliesIn review
  2. v16 patches 9 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5regulator: smd: Add floor and corner operationsdrivers/regulator/qcom_smd-regulator.c include/linux/regulator/qcom_smd-regulator.h+82 -02 replies
2/5PM / OPP: Support adjusting OPP voltages at runtimedrivers/base/power/opp.c include/linux/pm_opp.h+88 -02 replies
3/5OPP: Allow notifiers to call dev_pm_opp_get_{voltage,freq} RCU-freedrivers/base/power/opp.c+11 -81 reply
4/5cpufreq-dt: Handle OPP voltage adjust eventsdrivers/cpufreq/cpufreq-dt.c+57 -61 reply
5/5power: avs: Add support for CPR (Core Power Reduction)Documentation/devicetree/bindings/power/avs/qcom,cpr.txt drivers/power/avs/Kconfig drivers/power/avs/Makefile +1 more+2140 -00 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchViresh Kumar
1/5
2/5A-b A-b
3/5A-b
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] Support CPR on MSM8916

This patch series adds support for CPR on MSM8916. The first patch exposes a corner voting API to the CPR driver so that we can change the corner for the MX regulator. If possible I would like to make this patch prettier, but I don't have any great ideas right now. The next patch adds support to adjust voltages in the OPP layer, and then hooks that up to cpufreq-dt so that we can adjust the voltage in response to what CPR tells us to do. I've also thrown in a patch to make RCU lockdep warnings go away, but I'm not sure if it's right. There's still work to do.

The final patch adds the CPR driver. This still has some rough edges. With the OPPv2 bindings I'm thinking of moving the frequency tables into DT and adding a custom vendor property to describe which fuse corner to use for each frequency.

Once you have these patches in place along with a CPU clock driver you can eanble enable cpufreq-dt and add the cpufreq-dt device (maybe the CPR driver should add the cpufreq-dt device?) and you'll see interrupts for CPR and OPP voltage adjustments triggering CPUfreq to modify voltages.

Andy Gross (1):
regulator: smd: Add floor and corner operations

Stephen Boyd (4):
PM / OPP: Support adjusting OPP voltages at runtime
OPP: Allow notifiers to call dev_pm_opp_get_{voltage,freq} RCU-free
cpufreq-dt: Handle OPP voltage adjust events
power: avs: Add support for CPR (Core Power Reduction)

 .../devicetree/bindings/power/avs/qcom,cpr.txt     |  125 ++
 drivers/base/power/opp.c                           |   96 +-
 drivers/cpufreq/cpufreq-dt.c                       |   63 +-
 drivers/power/avs/Kconfig                          |   15 +
 drivers/power/avs/Makefile                         |    1 +
 drivers/power/avs/qcom-cpr.c                       | 1999 ++++++++++++++++++++
 drivers/regulator/qcom_smd-regulator.c             |   52 +
 include/linux/pm_opp.h                             |   11 +
 include/linux/regulator/qcom_smd-regulator.h       |   30 +
 9 files changed, 2378 insertions(+), 14 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/power/avs/qcom,cpr.txt
 create mode 100644 drivers/power/avs/qcom-cpr.c
 create mode 100644 include/linux/regulator/qcom_smd-regulator.h
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project