Skip to content

thermal: int340x: fix tcc offset on resume

Antoine Tenart linux-pm stable 2 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 8 repliesApplied
  2. v11 patch 5 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2thermal: int340x: do not set a wrong tcc offset on resumedrivers/thermal/intel/int340x_thermal/processor_thermal_device.c+3 -26 replies
2/2thermal: int340x: improve the tcc offset saving for suspend/resumedrivers/thermal/intel/int340x_thermal/int3401_thermal.c drivers/thermal/intel/int340x_thermal/processor_thermal_device.c drivers/thermal/intel/int340x_thermal/processor_thermal_device.h +2 more+60 -110 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSrinivas Pandruvada
SeriesR-b T-b
1/2
2/2

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

Read the v2 thread

Cover letter [PATCH v2 0/2] thermal: int340x: fix tcc offset on resume

Hi,

This is a follow-up of [1]. As discussed in the initial thread, the fix is now split into two commits: the two commits combined are fixing the issue in a nice way for 5.15, but only the first one is meant to be applied on stable kernels (to avoid conflicts).

The issue this is fixing is described in patch 1. Tl;dr: a suspend/resume cycle can end-up in setting a wrong tcc offset value, which can lead to machines shutting down because of overheating (when they should not).

I've stripped the Acked-by/Tested-by flags from v1 as the patch was split. But the end result for 5.15+ kernels should be the same.

Thanks,
Antoine

[1] https://lore.kernel.org/linux-pm/[email protected]/T/

Antoine Tenart (2):
thermal: int340x: do not set a wrong tcc offset on resume
thermal: int340x: improve the tcc offset saving for suspend/resume

 .../intel/int340x_thermal/int3401_thermal.c   |  8 +++-
 .../processor_thermal_device.c                | 39 ++++++++++++++-----
 .../processor_thermal_device.h                |  1 +
 .../processor_thermal_device_pci.c            | 18 ++++++++-
 .../processor_thermal_device_pci_legacy.c     |  8 +++-
 5 files changed, 62 insertions(+), 12 deletions(-)
Signature · 1 line
2.31.1