Skip to content

Thermal: thermal enhancements for boot and system sleep

Zhang Rui linux-pm 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 10 repliesIn review
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches10 repliesSuperseded

Changes in v4 from the cover letter

reset THERMAL_TEMP_INVALID to -274000, which means < 0K

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Thermal: initialize thermal zone device correctlydrivers/thermal/step_wise.c drivers/thermal/thermal_core.c drivers/thermal/thermal_core.h +1 more+34 -48 replies
2/3Thermal: handle thermal zone device properly during system sleepdrivers/thermal/thermal_core.c+39 -00 replies
3/3Thermal: do thermal zone update after a cooling device registereddrivers/thermal/thermal_core.c+10 -02 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchManuel KrauseszegadprashamishMatthias
1/3T-b T-b T-b T-b T-b
2/3T-b T-b T-b T-b T-b
3/3T-b T-b T-b T-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 v4 thread

Cover letter [PATCH V4 0/3] Thermal: thermal enhancements for boot and system sleep

Currently, there are a couple of problems in thermal core framework after boot and resume from system sleep state, because the thermal zone devices are not put into a proper state in these cases.

Details of the problems are described in the patch change logs.

In general, altogether they fix three bugs
https://bugzilla.kernel.org/show_bug.cgi?id=78201
https://bugzilla.kernel.org/show_bug.cgi?id=91411
https://bugzilla.kernel.org/show_bug.cgi?id=92431

Bug 78201 needs patch 1/3 and 2/3.
Bug 91411 and 92431 are regressions caused by
commit 19593a1fb1f6718406afca5b867dab184289d406

Author: Aaron Lu <[email protected]>
Date:   Tue Nov 19 16:59:20 2013 +0800

ACPI / fan: convert to platform driver

Convert ACPI fan driver to a platform driver for the purpose of phasing out ACPI bus.

which is shipped in 3.18.

Bug 91411 needs patch 1/3, 2/3 to fix, while 92431 needs all three patches.

If possible, I'd like to push these patches into 4.0-rc and 3.18/3.19 stable kernel as it actually fixes a regression in 3.18.

Any comments are welcome.

thanks,
rui
-----
Changes in V4:
reset THERMAL_TEMP_INVALID to -274000, which means < 0K
Changes in V3:
accessing in_suspend with locking.
Changes in V2:
rename no_thermal_update to in_suspend
rename thermal_notify to thermal_pm_notify declare thermal_pm_nb with callback initialized unregister thermal_pm_nb in thermal_exit()