Skip to content

thermal: tegra: Do not register cooling device

Thierry Reding linux-devicetree linux-pm linux-tegra 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 14 repliesIn review
  2. v110 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- rework the device tree bindings:
- add nvidia,thermal-zones property to attach throttling to zones
- use -millicelsius suffix and add hysteresis
- add patch to store thermal zone device tree node for later use
- add patch to enforce self-encapsulation of the thermal core now that no drivers need to reach into it anymore

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13thermal: Store device tree node for thermal zone devicesdrivers/thermal/thermal_of.c+3 -00 replies
2/13dt-bindings: thermal: tegra: Document throttle temperatureDocumentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.yaml+14 -02 replies
3/13dt-bindings: thermal: tegra: Add nvidia,thermal-zones propertyDocumentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.yaml+5 -01 reply
4/13thermal: tegra: Use driver-private data consistentlydrivers/thermal/tegra/soctherm.c+95 -1182 replies
5/13thermal: tegra: Constify SoC-specific datadrivers/thermal/tegra/soctherm.c+4 -80 replies
6/13thermal: tegra: Do not register cooling devicedrivers/thermal/tegra/soctherm.c drivers/thermal/tegra/soctherm.h drivers/thermal/tegra/tegra124-soctherm.c +2 more+132 -1683 replies
7/13thermal: tegra: Use unsigned int where appropriatedrivers/thermal/tegra/soctherm.c+15 -130 replies
8/13thermal: tegra: Avoid over-allocation of temporary arraydrivers/thermal/tegra/soctherm.c+3 -20 replies
9/13thermal: tegra: Remove gratuitous error assignmentdrivers/thermal/tegra/soctherm.c+1 -20 replies
10/13thermal: tegra: Minor stylistic cleanupsdrivers/thermal/tegra/soctherm.c+7 -40 replies
11/13ARM: tegra: Rework SOCTHERM on Tegra124arch/arm/boot/dts/nvidia/tegra124.dtsi+21 -470 replies
11/13arm64: tegra: Rework SOCTHERM on Tegra132 and Tegra210arch/arm64/boot/dts/nvidia/tegra132.dtsi arch/arm64/boot/dts/nvidia/tegra210.dtsi+45 -1070 replies
12/13arm64: tegra: Rework SOCTHERM on Tegra132 and Tegra210arch/arm64/boot/dts/nvidia/tegra132.dtsi arch/arm64/boot/dts/nvidia/tegra210.dtsi+45 -1070 replies
12/13ARM: tegra: Rework SOCTHERM on Tegra124arch/arm/boot/dts/nvidia/tegra124.dtsi+18 -470 replies
13/13thermal: Enforce self-encapsulationdrivers/thermal/thermal_core.h+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/13] thermal: tegra: Do not register cooling device

From: Thierry Reding <[email protected]>

Hi,

this set of patches removes the registration of the SOCTHERM internal throttling mechanism as cooling device. Since this throttling starts automatically once a certain temperature threshold is crossed, it doesn't make sense to represent it as a cooling device, which are typically "manually" activated by the thermal framework when thermal sensors report temperature thresholds being crossed.

Instead of using the cooling device mechanism, this statically programs the throttling mechanism when it is configured in device tree. In order to do this, an additional device tree property is needed to replace the information that was previously contained in trip points.

There's a few preparatory patches to make the removal a bit simpler and also some follow up cleanups included as well.

Changes in v2:
- rework the device tree bindings:
- add nvidia,thermal-zones property to attach throttling to zones
- use -millicelsius suffix and add hysteresis
- add patch to store thermal zone device tree node for later use
- add patch to enforce self-encapsulation of the thermal core now that no drivers need to reach into it anymore

This applies on top of Daniel's self-encapsulation hardening series:

	https://lore.kernel.org/all/[email protected]/

Thierry

Thierry Reding (13):
thermal: Store device tree node for thermal zone devices
dt-bindings: thermal: tegra: Document throttle temperature
dt-bindings: thermal: tegra: Add nvidia,thermal-zones property
thermal: tegra: Use driver-private data consistently
thermal: tegra: Constify SoC-specific data
thermal: tegra: Do not register cooling device
thermal: tegra: Use unsigned int where appropriate
thermal: tegra: Avoid over-allocation of temporary array
thermal: tegra: Remove gratuitous error assignment
thermal: tegra: Minor stylistic cleanups
ARM: tegra: Rework SOCTHERM on Tegra124
arm64: tegra: Rework SOCTHERM on Tegra132 and Tegra210
thermal: Enforce self-encapsulation

 .../thermal/nvidia,tegra124-soctherm.yaml     |  19 +
 arch/arm/boot/dts/nvidia/tegra124.dtsi        |  68 +--
 arch/arm64/boot/dts/nvidia/tegra132.dtsi      |  66 +--
 arch/arm64/boot/dts/nvidia/tegra210.dtsi      |  86 +--
 drivers/thermal/tegra/soctherm.c              | 525 ++++++++----------
 drivers/thermal/tegra/soctherm.h              |   1 +
 drivers/thermal/tegra/tegra124-soctherm.c     |   4 +
 drivers/thermal/tegra/tegra132-soctherm.c     |   4 +
 drivers/thermal/tegra/tegra210-soctherm.c     |   4 +
 drivers/thermal/thermal_core.h                |   2 +-
 drivers/thermal/thermal_of.c                  |   3 +
 11 files changed, 329 insertions(+), 453 deletions(-)
Signature · 1 line
2.42.0