]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: intel: x86_pkg_temp_thermal: Fix bogus trip temperature
authorZhang Rui <rui.zhang@intel.com>
Mon, 19 May 2025 07:09:01 +0000 (15:09 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 19 May 2025 19:08:39 +0000 (21:08 +0200)
commitcf948c8e274e8b406e846cdf6cc48fe47f98cf57
tree4dd6562911d0f3871ede34b5299ea4cefdaf08d0
parenta5806cd506af5a7c19bcd596e4708b5c464bfd21
thermal: intel: x86_pkg_temp_thermal: Fix bogus trip temperature

The tj_max value obtained from the Intel TCC library are in Celsius,
whereas the thermal subsystem operates in milli-Celsius.

This discrepancy leads to incorrect trip temperature calculations.

Fix bogus trip temperature by converting tj_max to milli-Celsius Unit.

Fixes: 8ef0ca4a177d ("Merge back other thermal control material for 6.3.")
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Reported-by: zhang ning <zhangn1985@outlook.com>
Closes: https://lore.kernel.org/all/TY2PR01MB3786EF0FE24353026293F5ACCD97A@TY2PR01MB3786.jpnprd01.prod.outlook.com/
Tested-by: zhang ning <zhangn1985@outlook.com>
Cc: 6.3+ <stable@vger.kernel.org> # 6.3+
Link: https://patch.msgid.link/20250519070901.1031233-1-rui.zhang@intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/x86_pkg_temp_thermal.c