Skip to content

Devfreq cooling device

Javi Merino linux-pm lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 5 repliesIn review
  2. v55 patches 3 repliesSuperseded
  3. v45 patches 4 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v33 patches0 repliesSuperseded
v24 patches0 repliesSuperseded
v14 patches6 repliesSuperseded

Changes in v6 from the cover letter

- s/enable_disable_opps()/partition_enable_opps()
- Check the state in devfreq_cooling_state2power()
- Make the printing of the dynamic power table a dev_dbg printk
- Remove the warning of simple ondemand devfreq governor from the code and document it in the Kconfig entry.
- Change the name of the cooling device to thermal-devfreq-X
- s/EXPORT_SYMBOL/EXPORT_SYMBOL_GPL/
- Use a simple dynamic power model if no dynamic power model is supplied.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5PM / devfreq: cache the last call to get_dev_status()drivers/devfreq/governor_simpleondemand.c include/linux/devfreq.h+33 -150 replies
2/5PM / OPP: get the voltage for all OPPsdrivers/base/power/opp.c+2 -20 replies
3/5thermal: Add devfreq coolingdrivers/thermal/Kconfig drivers/thermal/Makefile drivers/thermal/devfreq_cooling.c +1 more+661 -00 replies
4/5devfreq_cooling: add trace informationdrivers/thermal/devfreq_cooling.c include/trace/events/thermal.h+59 -05 replies
5/5PM / devfreq: drop comment about thermal setting max_freqdrivers/devfreq/devfreq.c+3 -30 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

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

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

Read the v6 thread

Cover letter [PATCH v6 0/5] Devfreq cooling device

This series introduces a devfreq cooling device in the thermal framework. Devfreq is used for DVFS for devices other than the CPUs. With a devfreq cooling device, the thermal framework can throttle them to control temperature. The cooling device has the power extensions, so it can be used by all governors in the thermal framework, including the power allocator governor.

Changes since v5:
- s/enable_disable_opps()/partition_enable_opps()
- Check the state in devfreq_cooling_state2power()
- Make the printing of the dynamic power table a dev_dbg printk
- Remove the warning of simple ondemand devfreq governor from the code and document it in the Kconfig entry.
- Change the name of the cooling device to thermal-devfreq-X
- s/EXPORT_SYMBOL/EXPORT_SYMBOL_GPL/
- Use a simple dynamic power model if no dynamic power model is supplied.

Changes since v4:
- Don't introduce a new function in the OPP library and instead fix dev_pm_opp_get_voltage() as suggested by Viresh Kumar
- Don't allocate memory under RCU
- Don't call dev_pm_opp_enable/disable under RCU
- Generate the frequency table even if the power extensions were not provided

Changes since v3:
- Made devfreq_update_stats() a static inline function
- Add dev_pm_get_voltage_always() to get the voltage even for disabled OPPs
- Don't rely on freq_table from the devfreq->profile being present and create our own
- Don't use devm_k* to allocate memory
- Move struct devfreq_cooling_register to devfreq_cooling.c

Javi Merino (4):
PM / devfreq: cache the last call to get_dev_status() PM / OPP: get the voltage for all OPPs
devfreq_cooling: add trace information
PM / devfreq: drop comment about thermal setting max_freq

Ørjan Eide (1):
thermal: Add devfreq cooling

 drivers/base/power/opp.c                  |   4 +-
 drivers/devfreq/devfreq.c                 |   6 +-
 drivers/devfreq/governor_simpleondemand.c |  33 +-
 drivers/thermal/Kconfig                   |  14 +
 drivers/thermal/Makefile                  |   3 +
 drivers/thermal/devfreq_cooling.c         | 569 ++++++++++++++++++++++++++++++
 include/linux/devfreq.h                   |  15 +
 include/linux/devfreq_cooling.h           |  81 +++++
 include/trace/events/thermal.h            |  53 +++
 9 files changed, 758 insertions(+), 20 deletions(-)
 create mode 100644 drivers/thermal/devfreq_cooling.c
 create mode 100644 include/linux/devfreq_cooling.h
Signature · 1 line
1.9.1