Commit Graph

25 Commits

Author SHA1 Message Date
lijun.meng a09e7bc11d temp: support show temp by env. [1/1]
PD#SWPL-176366

Problem:
Debugging requirements

Solution:
show temp if enable by env

Verify:
T5w

Change-Id: I586a64bc4a24c0187c75fa37037358a7ef79019b
Signed-off-by: lijun.meng <lijun.meng@amlogic.com>
2024-07-31 01:52:14 -07:00
Xingxing Wang 1858f51645 thermal: t5w 18nm ddr coolingdevice err [1/1]
PD#SWPL-178969

Problem:
there are 2 ddr cooling device of t5w 18nm chip

Solution:
remove the 20nm ddr cooling device for 18nm chip

Verify:
t5w

Change-Id: I32d2d202bb86879725cf66f3f9525cdb96a8c7ca
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-07-25 20:34:17 -07:00
Xingxing Wang 562c6fc1b6 thermal: add indmc sensor driver to do thermal cooling [1/1]
PD#SWPL-166661

Problem:
DDR kernel refresh control patch list

Solution:
add indmc sensor driver to do ddr thermal cooling

Verify:
S7D

Change-Id: I5ba8d167f9ce83785f51af6d2809030147aaacde
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-06-05 04:00:52 -07:00
Xingxing Wang 46199b50cc thermal: ddr thermal param update of t5d&t5w [1/1]
PD#SWPL-169759

Problem:
align 20nm ddr thermal params to kernel5.4

Solution:
1. align 20nm ddr thermal params to kernel5.4
2. update ddr status when coolingdevice registerd

Verify:
t5d&t5w

Change-Id: Ib33b715e790a72f2969dc69c3dec159589ae0d3f
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-05-22 03:59:31 -07:00
Xingxing Wang 4f642fe5d0 thermal: rise sensor suspend/resume log print level [1/1]
PD#SWPL-158984

Problem:
tsensor suspend/resume time long

Solution:
remove warn log

Verify:
t3x

Change-Id: Ic6966ed457ba2737c5edf81a6cfc3d8aca874136
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-03-10 20:47:36 -08:00
Xingxing Wang f2c4eb49b3 thermal: update ts_coeff [1/1]
PD#SWPL-157595

Problem:
s7 tempsensor coefficient update

Solution:
calibrated chip(bit28~30==0) use old coeff<296 396 2757 8526>
while new chip(bit28~30!=0) use new coeff<296 396 2907 8739>

Verify:
S7

Change-Id: I236eb26b06e542508d8cd596de162dbaadc4bc8d
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-02-06 13:51:13 -07:00
Xingxing Wang 4a22c40987 thermal: thermal ddr parameters update [1/1]
PD#SWPL-145744

Problem:
t5d&t5w import new ddr chip, we need to modify ddr thermal parameter

Solution:
update new ddr parameter

Verify:
t5d&t5w

Change-Id: If6835048d2e6a192efa688e3aa62e06c58b3e86f
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-12-18 00:23:13 -07:00
Xingxing Wang 195a41ef95 thermal: add media cooling device on txhd2 [1/1]
PD#SWPL-141014

Problem:
txhd2 need to add media related thermal control

Solution:
1. add media cooling device. media module should call
media_cooling_register to register the cooling device.
and usually configure maxstate of the cooling device.
2. reconstruct cpucore cooling device.

Verify:
txhd2

Change-Id: I0576e0d91a3062b60f877a4e8577e4fe84e5f53b
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-10-30 20:03:42 -07:00
binbin.wang c368558297 T3X: The worker needs to be shutdown in reboot mode [1/1]
PD#SWPL-141971

Problem:
The shutdown/reboot mode will not freeze the threads.After the sensor
driver executes the shutdown callback, the thermal worker may still
operate the register to read the temperature.This is a risk.

Solution:
Unregister the thermal zone in the shutdown callback。

Verify:
T3X

Change-Id: I3ed988b98cc4c6e87d3cbe3cb3d66781d214717d
Signed-off-by: Binbin Wang <binbin.wang@amlogic.com>
2023-10-22 20:04:10 -07:00
Xingxing Wang ceb1bf8e86 thermal: add more registers control in ddr cooling [1/1]
PD#SWPL-139694

Problem:
add more regs control in ddr cooling device

Solution:
add more regs control in ddr cooling device

Verify:
txhd2

Change-Id: I99c978d2034b3dcf01239752ce1a112f8e07afce
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-09-18 07:53:41 -07:00
Xingxing Wang 2397bc66ef thermal: clear tsensor reset pin in probe [1/1]
PD#TV-92278

Problem:
read temperature failed

Solution:
sensor reset ctrl can't cleared by reboot command, so we clear it in
driver probe  function.

Verify:
TXHD2

Change-Id: Ic4f3ca61ea81ce00b7f9a50723a19392d93b1b30
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-09-07 21:58:41 -07:00
Xingxing Wang a3770e55bc thermal: add shutdown callback in sensor driver [1/1]
PD#SWPL-136383

Problem:
poweroff power current is high

Solution:
add shutdown callback in sensor driver

Verify:
TXHD2

Change-Id: Idd38c485b9458e3a9c7b27b959f48a17c59dc89b
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-08-22 22:14:11 -07:00
Xingxing Wang 387cacd56b thermal: t3x thermal bringup [1/1]
PD#SWPL-117221

Problem:
t3x thermal bringup

Solution:
configure in dts

Verify:
t3x bc309

Change-Id: I53173b70a23fb504965e07f50168baa73f47f34d
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-05-18 21:08:39 +08:00
Xingxing Wang b3fa479621 thermal: align T5M thermal params to T3 [1/1]
PD#SWPL-112969

Problem:
t5m thermal params update

Solution:
align to t3

Verify:
t5m

Change-Id: I1e592cbd8e1ad39aa09fbef397b50ef919e07722
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-03-08 19:17:15 -08:00
binbin.wang 38b22eced8 Thermal: Add reset logic for power optimization for K515 [1/1]
PD#SWPL-111294

Problem:
Need to reset the sensor in standby mode.

Solution:
Add reset logic

Verify:
T5M pass

Change-Id: I069fbfb608cdd9ca2b17d59d89e5f1c5a1da7bb9
Signed-off-by: binbin.wang <binbin.wang@amlogic.com>
2023-02-20 03:14:13 -08:00
Wanwei Jiang 87c507d22d porting: compatible with common14-5.15 [1/2]
PD#SWPL-109858

Problem:
compatible with common14-5.15

Solution:
compatible with common14-5.15

Verify:
sc2

Change-Id: I12e0e796e95cf54d37f76ad9f01a0ff9852e779e
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-02-13 19:41:56 -08:00
Hanjie Lin caa8b668c5 debug: gki optimize [2/4]
PD#SWPL-99365

Problem:
gki optimize

Solution:
1, code optimize
2, watchdog_hld to ko

Verify:
sc2_ah212

Change-Id: Ibb1b16bd61d794defb39d53f17ad86179ba4a661
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2022-12-27 04:32:55 -08:00
binbin.wang bb37a672c4 Thermal: Kernel panic when entering an illegal value [1/1]
PD#SWPL-102920

Problem:
Because of wrong logic when writing an invalid value,
the array is out of bounds

Solution:
Fix the wrong logic.

Verify:
T3

Change-Id: I01216d799201f49de42802d78a5297a0cb0e74d0
Signed-off-by: binbin.wang <binbin.wang@amlogic.com>
2022-12-12 20:15:08 -08:00
Liming Xue 61fff05790 Typo Check: dsp and thermal wrong words [1/1]
PD#SWPL-103829

Problem:
there are words spelling error

Solution:
correct spelling mistakes

Verify:
local scan

Change-Id: Ifc0bf977d64ceed2ae67a3235077fc9d4c734f0e
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2022-12-05 21:08:18 -07:00
Xingxing Wang 9aac288b6e thermal: amlogic cooling device id management [1/1]
PD#SWPL-96947

Problem:
kernel5.15 for SC2: break GKI--thermal crash

Solution:
manage amlogic cooling device id in driver itself
instead of lib idr related api

Verify:
SC2

Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
Change-Id: Ia8da226ae252af6d85e9f376f23f030d7a49fddd
2022-10-16 22:30:59 -07:00
pengzhao.liu b946ffb848 typo: clear typo problem [1/1]
PD#SWPL-89627

Problem:
clear typo problem

Solution:
clear typo problem

Verify:
s4d

Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
Change-Id: I9121c9d4b54df9b9a7c244182693e0fd616f5a9e
2022-09-07 20:06:45 +08:00
Xingxing Wang 0a692fe39e thermal: add ddr cooling device on C3 [1/1]
PD#SWPL-83862

Problem:
add ddr cooling device to C3

Solution:
add ddr cooling device to C3
echo 96000 > /sys/kernel/debug/tsensor0/tempwrite to test
ddr cooling device action when temperature rise to 96C.

Verify:
C3 AW419

Change-Id: I9ea242a656a4fcbf308b613cd3695c04e2ff2afc
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2022-07-17 19:44:44 -07:00
qinglin.li 7c6316bebd printk : printk optimization [2/2]
PD#SWPL-70486

Problem:
use common tag in driver when printf

Solution:
set common pr_fmt in driver

Verify:
s4d

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ieee271d289e4d2f81258875d36288046b996a5d2
2022-02-14 19:55:32 -07:00
wanwei.jiang c62adfbc9d thermal: cfi issue [1/1]
PD#SWPL-70496

Problem:
fix cfi issue

Solution:
correct function type

Verify:
s4d

Change-Id: I856492afc7c31512e7818396de0f520b7c66d729
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-17 20:13:35 +08:00
wanwei.jiang 82c658e68b thermal: porting thermal driver [1/1]
PD#SWPL-68630

Problem:
porting thermal driver

Solution:
1. porting thermal driver
2. modify the function type of the member of
struct thermal_cooling_device_ops
state2power
power2state
get_requested_power
3. modify the function(cpu_hotplug.c) interface
cpu_up() --> add_cpu()
cpu_down() --> remove_cpu()
4. modify config and move module_init from meson_cooldev.c to meson_tsensor.c
5. modify pr_info() --> pr_debug() when probe

Verify:
s4d

Change-Id: I5eead0120dbc826cbb4282d28d7531018c826025
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-14 18:39:57 +08:00