Skip to content

thermal: mediatek: Add cpu dynamic power cooling model.

Dawei Chien linux-arm-kernel linux-devicetree linux-mediatek linux-pm lkml 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest posting 2/23 patches 9 repliesIn review
  2. v6 posting 1/23 patches 8 repliesSuperseded
  3. v53 patches 5 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v43 patches6 repliesSuperseded
v32 patches20 repliesSuperseded
v22 patches3 repliesSuperseded
v12 patches3 repliesSuperseded

Changes in v6 from the cover letter

1. Remove thermal sensor ID from phandles

Patches in v6 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3thermal: mediatek: Add cpu dynamic power cooling model.drivers/cpufreq/mt8173-cpufreq.c+9 -27 replies
2/3arm64: dts: mt8173: Add thermal zone node.arch/arm64/boot/dts/mediatek/mt8173.dtsi+43 -00 replies
3/3arm64: dts: mt8173: Add dynamic power node.arch/arm64/boot/dts/mediatek/mt8173.dtsi+4 -02 replies

Reviews trailers per patch

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

PatchViresh KumarEduardo Valentin
1/3A-b A-b
2/3
3/3

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

Read the v6 thread

Cover letter [RESEND][PATCH v6 0/3] thermal: mediatek: Add cpu dynamic power cooling model.

Use Intelligent Power Allocation (IPA) technical to add dynamic power model for binding CPU thermal zone. The power allocator governor allocates power budget to control CPU temperature.

Power Allocator governor is able to keep SOC temperature within a defined temperature range to avoid SOC overheat and keep it's performance.
mt8173-cpufreq.c need to register its' own power model with power allocator thermal governor, so that power allocator governor can allocates suitable power budget to control CPU temperature.

Binding document is refer to this patchset
https://lkml.org/lkml/2015/11/30/239

Change since V5:
1. Remove thermal sensor ID from phandles

Change since V4:
1. Remove unnecessary error-checking for mt8173-cpufreq.c 2. Initializing variable capacitance with 0

Change since V3:
1. Remove static power model
2. Split V3's device tree in two for thermal zones and dynamic power models respectively

Change since V2:
1. Move dynamic/static power model in device tree

Change since V1:
1. Include mt8171.h and sort header file for mt8173.dtsi

Dawei Chien (3):
thermal: mediatek: Add cpu dynamic power cooling model.
arm64: dts: mt8173: Add thermal zone node.
arm64: dts: mt8173: Add dynamic power node.

 arch/arm64/boot/dts/mediatek/mt8173.dtsi |   47 ++++++++++++++++++++++++++++++
 drivers/cpufreq/mt8173-cpufreq.c         |   12 ++++++--
 2 files changed, 57 insertions(+), 2 deletions(-)