Skip to content

Initialise thermal framework and cpufreq earlier during boot

Amit Kucheria linux-arm-msm linux-clk linux-doc linux-pm lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 3 repliesIn review
  2. v46 patches 6 repliesSuperseded
  3. v36 patches 9 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v25 patches2 repliesSuperseded
v15 patches17 repliesSuperseded

Changes in v5 from the cover letter

- Collect Acks
- Pick the US spelling for 'initialis^Hze' consistently.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6thermal: Remove netlink supportDocumentation/driver-api/thermal/sysfs-api.rst drivers/thermal/thermal_core.c include/linux/thermal.h+7 -1310 replies
2/6thermal: Initialize thermal subsystem earlierdrivers/thermal/thermal_core.c+1 -10 replies
3/6cpufreq: Initialize the governors in core_initcalldrivers/cpufreq/cpufreq_conservative.c drivers/cpufreq/cpufreq_ondemand.c drivers/cpufreq/cpufreq_performance.c +3 more+6 -60 replies
4/6cpufreq: Initialize cpufreq-dt driver earlierdrivers/cpufreq/cpufreq-dt-platdev.c+1 -10 replies
5/6clk: qcom: Initialize clock drivers earlierdrivers/clk/qcom/clk-rpmh.c drivers/clk/qcom/gcc-qcs404.c drivers/clk/qcom/gcc-sdm845.c+3 -30 replies
6/6cpufreq: qcom-hw: Move driver initialization earlierdrivers/cpufreq/qcom-cpufreq-hw.c+1 -10 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchViresh KumarRafael J. WysockiStephen BoydDaniel LezcanoTaniya Das
1/6A-b
2/6A-b
3/6A-b R-b
4/6A-b
5/6A-b A-b
6/6A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/6] Initialise thermal framework and cpufreq earlier during boot

Changes since v4:
- Collect Acks
- Pick the US spelling for 'initialis^Hze' consistently.

Changes since v3:
- Init schedutil governor earlier too
- Simplified changes to thermal_init() error path
- Collects Acks

Changes since v2:
- Missed one patch when posting v2. Respinning.

Changes since v1:
- Completely get rid of netlink support in the thermal framework.
- This changes the early init patch to a single line - change to core_initcall. Changed authorship of patch since it is nothing like the original. Lina, let me know if you feel otherwise.
- I've tested to make sure that the qcom-cpufreq-hw driver continues to work correctly as a module so this won't impact Android's GKI plans.
- Collected Acks

Device boot needs to be as fast as possible while keeping under the thermal envelope. Now that thermal framework is built-in to the kernel, we can initialize it earlier to enable thermal mitigation during boot.

We also need the cpufreq HW drivers to be initialised earlier to act as the cooling devices. This series only converts over the qcom-hw driver to initialize earlier but can be extended to other platforms as well.

Amit Kucheria (6):
thermal: Remove netlink support
thermal: Initialize thermal subsystem earlier
cpufreq: Initialize the governors in core_initcall
cpufreq: Initialize cpufreq-dt driver earlier
clk: qcom: Initialize clock drivers earlier
cpufreq: qcom-hw: Move driver initialization earlier

 .../driver-api/thermal/sysfs-api.rst          |  26 +----
 drivers/clk/qcom/clk-rpmh.c                   |   2 +-
 drivers/clk/qcom/gcc-qcs404.c                 |   2 +-
 drivers/clk/qcom/gcc-sdm845.c                 |   2 +-
 drivers/cpufreq/cpufreq-dt-platdev.c          |   2 +-
 drivers/cpufreq/cpufreq_conservative.c        |   2 +-
 drivers/cpufreq/cpufreq_ondemand.c            |   2 +-
 drivers/cpufreq/cpufreq_performance.c         |   2 +-
 drivers/cpufreq/cpufreq_powersave.c           |   2 +-
 drivers/cpufreq/cpufreq_userspace.c           |   2 +-
 drivers/cpufreq/qcom-cpufreq-hw.c             |   2 +-
 drivers/thermal/thermal_core.c                | 103 +-----------------
 include/linux/thermal.h                       |  11 --
 kernel/sched/cpufreq_schedutil.c              |   2 +-
 14 files changed, 19 insertions(+), 143 deletions(-)
Signature · 1 line
2.17.1