Commit graph

44 commits

Author SHA1 Message Date
Peter (YM)
0b1da34e0d Merge "thermal: read thermistor temp from sysfs" into main 2024-08-19 04:10:06 +00:00
Peter (YM)
caeaff1444 thermal: read thermistor temp from sysfs
- avoid wrong sensor value reading for thermalHAL

Bug: 327327502
Test: Build to boot to home
Flag: EXEMPT (bug 337358613)
Change-Id: I93cbfa767a8d882eba526d72ce9ba3c389cd0a1e
Signed-off-by: Peter (YM) <peterym@google.com>
2024-08-16 06:26:10 +00:00
Peter (YM)
600d262d0a Merge "thermal:remove unused state2power value" into main 2024-08-15 07:19:17 +00:00
Peter (YM)
5142673794 thermal:remove unused state2power value
Bug: 355566259
Test: Build test
Flag: EXEMPT NDK
Change-Id: Ib3e2e2772c340d13f3bc80583f6e1f1b7715a44d
Signed-off-by: Peter (YM) <peterym@google.com>
2024-08-15 04:14:36 +00:00
samou
697c73328c thermal: Remove bcl related tzones
Flag: EXEMPT tuning changes
Bug: 349935208
Test: Confirm boot
Change-Id: I9162338b20afd9b5d4472d8a7176c69e04ce0175
Signed-off-by: samou <samou@google.com>
2024-08-06 07:40:49 +00:00
samou
e52b5d2407 thermal: Remove SOFT_OCP related tzones
Bug: 337976702
Test: Confirm boot
Change-Id: I676dcdd53742737effd14283ad1d71e1d7bcf63d
Signed-off-by: samou <samou@google.com>
2024-05-15 11:52:55 +00:00
TeYuan Wang
57ef8047d8 thermal: modify emergency and shutdown threshold for VIRTUAL-SKIN
Bug: 289752109
Test: adb shell dumpsys android.hardware.thermal.IThermal/default | grep VIRTUAL-SKIN | grep hotThrottlingThreshold
Change-Id: I1327be31f164a9e4263fb9c5381adc09378b19c5
(cherry picked from commit 3a0c866fa5)
2023-07-24 21:39:16 +00:00
TeYuan Wang
e5bfe1cdaa thermal: modify emergency and shutdown threshold am: b486f5a3ee am: c68fa0ddf8 am: d9e0307530
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/24116684

Change-Id: I1ea3ddb3a2621154784f5580ab33a26dcd1a6f8c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-19 06:59:08 +00:00
TeYuan Wang
b486f5a3ee thermal: modify emergency and shutdown threshold
Bug: 289752109
Test: adb shell cat /dev/thermal/tz-by-name/skin_therm/trip_point_*_temp
Test: adb shell dumpsys android.hardware.thermal.IThermal/default
Change-Id: I619fd5a5ee4e668430b4002c58123525e9b14812
2023-07-18 15:59:57 +00:00
TeYuan Wang
1237bf6499 thermal: Update VSKIN equation V06.2
Bug: 289752109
Test: adb shell dumpsys android.hardware.thermal.IThermal/default
Change-Id: Ib957fae2db39f421c0b11c3b3b106f3ec333e4f5
2023-07-18 00:21:53 +00:00
TeYuan Wang
66d98f41ed thermal: Provide smooth transient when switch VSKIN OPEN/CLOSE equation
If the since_last_update time < 14s, apply the 20% stepRatio when VSKIN
switch between open/close to prevent the sudden VSKIN thermal change

Bug: 260531200
Test: on/off innser dispaly and check thermal log
Change-Id: I00bd748b203dd8a2edae278503d8ddf1a914d3aa
2023-07-14 00:01:31 +00:00
TeYuan Wang
2a50391912 thermal: update the VSKIN equation V06
Bug: 284262604
Test: adb shell dumpsys android.hardware.thermal.IThermal/default
Change-Id: I7c3354b0832668c1d721d085f39434cd328e045a
2023-05-26 05:00:29 +00:00
Kame(TeYuan) Wang
a11996d468 Merge "thermal: Adjust CLOSE-SUB1 VSKIN equation" into tm-qpr-dev am: 745b90ab70
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/23048298

Change-Id: I006057ac9bd076987ef9f05396239c1215007146
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-11 04:09:16 +00:00
TeYuan Wang
faee7a6ae6 thermal: Adjust CLOSE-SUB1 VSKIN equation
CLOSE-SUB1 will cause 5 degC VSKIN correlation gap for solar loading
case, so adding a check to prevent over prediction

Bug: 280447982
Test: adb shell "echo 50000 > dev/thermal/tz-by-name/outer_disp_therm/emul_temp"
      adb shell "echo 0 > dev/thermal/tz-by-name/outer_disp_therm/emul_temp"
Change-Id: I3679ca4a72aa3585a0a0718013006fff54918893
2023-05-10 22:27:02 +00:00
sashwinbalaji
73382cc3f2 thermal: Update config for stats
Bug: 259903201
Test: local build and verify stats
Change-Id: I14fcc2fbddb13d5e2050ae7b5f51e7f3de9ce71f
2023-05-04 00:58:54 +00:00
TeYuan Wang
c809762ffa thermal: Increase "I" to have better control at target temperature
Bug: 269730273
Test: Charge device and confirm thermal log
Change-Id: I6aa02a7963359dd9f75be251f51c4a96da3a3eb7
2023-03-07 22:50:30 +08:00
NT Tsai
25f4d660db Merge "thermal: register sensor for thermal diff between right and left inner display" into tm-qpr-dev 2023-03-03 13:29:37 +00:00
TeYuan Wang
e6898a29f3 thermal: register sensor for thermal diff between right and left inner display
Bug: 260663676
Test: adb shell dumpsys thermalservice | grep INNER-PANEL-DIFF
Change-Id: I0c1528dab395302d3ccdb84022bc1d7bec9bbf5f
2023-03-03 09:36:34 +08:00
TeYuan Wang
38f717943a thermal: increase the throttling speed for BIG cluster
Bug: 267841021
Test: Run burn8 and check the CDEV state
Change-Id: I50f9014d09fdf64dac97f66541056d05cad269cf
2023-02-18 12:49:14 +08:00
TeYuan Wang
7b4560dad5 thermal: more aggressive charging throttling
Bug: 239372822
Test: verified by emul_temp
Change-Id: Ie6cdfefd8443a90e93a0a4984de5ac98f979c4aa
2023-02-08 19:25:27 +08:00
TeYuan Wang
a1c43dba6c thermal: align the gxp throttling policy with P22
Bug: 265609046
Test: verified by emul_temp
Change-Id: I8688208c7b9b2830841c8b81dadf5c0cd682b813
2023-01-31 11:03:15 +00:00
TeYuan Wang
067fd6ce02 [DO NOT MERGE] thermal: update VSKIN equation V0.5
Bug: 254163925
Test: verified by emul_temp
Change-Id: I1f33fa8b728ef31740ba1fe2fc18d1b63ffa4d96
2023-01-12 09:53:22 +08:00
Redick_Lin
1ce504b796 bcl: update temperature condition of BAACL
Bug: 264017586
Change-Id: Id81d45da53c1ae9ee95616e86529d713ba00fbdd
Signed-off-by: Redick_Lin <redicklin@google.com>
2023-01-10 12:45:08 +08:00
TeYuan Wang
64ba8eec26 thermal: refer inner display brightness for VSKIN equation
Bug: 263215628
Test: Check VSKIN log with camera + open/close device
Change-Id: I04b8d008e1dfeec129599255eeb1925f402bf43b
2022-12-30 01:55:48 +00:00
TeYuan Wang
e5c9a0fb81 thermal: update SKIN shutdown threshold
Bug: 249228183
Test: verified shutdown by emul_temp
Change-Id: I5d0e19ba00035171dbb2dd2cdf9193dd74a15bdb
2022-12-22 11:21:41 +00:00
TeYuan Wang
14e2d00e34 thermal: optimize thermal config
1. correct the delay settings
2. Remove the redundant binded cdev settings

Bug: 258393022
Test: emul_temp skin_therm and check the log
Change-Id: I9a60a1b0800b3a24e6ce86f6fa6db82ea14dad9a
2022-12-16 14:51:23 +08:00
TeYuan Wang
7e31fdad99 thermal: update thermal config
1. VSKIN equation V0.4
2. Charging throttling policy V0.2

Bug: 254163925
Bug: 239372822
Test: adb shell lshal debug android.hardware.thermal@2.0::IThermal/default
Change-Id: I5928850b0e26a17c5712addcb0f1d728cf34d7c9
2022-12-07 20:20:44 +08:00
TeYuan Wang
dd142c7f3c thermal: adjust CPU/GPU throttling policy
1. Combine CPU, GPU to one PID policy
2. Consider modem power for CPU throttling reference

Bug: 239372646
Test: run burn8 and check the sustain temperature
Change-Id: Ida8ff65ce189a16e37baf728cc50a654a8d2ab63
2022-11-25 12:38:28 +00:00
Sayanna Chandula
616c9f341c Merge "thermal: update shutdown threshold for Tj zones" into tm-qpr-dev 2022-11-15 03:25:03 +00:00
Sayanna Chandula
b4372c062a thermal: update shutdown threshold for Tj zones
Bug: 256193172
Test: Build and boot on device
Change-Id: Ie0da3f9a5c505ebdb9a240ac6d1701dea7496e39
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-10-31 12:08:14 -07:00
TeYuan Wang
85b00d60b9 thermal: update thermal table v3
Fix the correlation issue for high RF power case

Bug: 254735947
Test: build
Change-Id: Ic1e3e8f49324e8169417da695192fa786521e583
2022-10-28 19:15:49 +08:00
TeYuan Wang
6ddd559c06 thermal: update VIRTUAL-SKIN equation v1.1
Bug: 247922573
Test: lshal debug android.hardware.thermal@2.0::IThermal/default
Change-Id: I79f8a9cffd3ebdde36a2cf118cb2e6754b5fdbe0
2022-09-22 11:44:32 +08:00
TeYuan Wang
fb71a1c206 thermal: more aggressive CPU throttling policy
Bug: 239372646
Test: run MH and burn8
Change-Id: I52fa275d83f8392105e0e140ebe9969a1e213e99
2022-09-20 19:52:28 +08:00
TeYuan Wang
8f47b098aa thermal: add cellular-emergency policy
Bug: 244114302
Test: emul_temp and check thermal event log
Change-Id: I66a8503673cad943e7bd8fc86d88cb84f71b5022
2022-09-14 17:55:10 +08:00
TeYuan Wang
27929b9fbe thermal: correct the typo for sensor equation of fold mode
Bug: 236787614
Test: emul_temp VIRTUAL-SKIN to EMERGENCY and monitor overheat warning
message

Change-Id: Id45dbc2e7989b9c854f8b4f241d891a76b39cf34
2022-09-14 17:53:27 +08:00
TeYuan Wang
cd3de1891c thermal: bringup charging thermal throttling
Bug: 233844810
Test: verified by emul_temp
Change-Id: I3d92d6495ae547e863f00d743810eaa272868949
2022-08-29 16:21:12 +08:00
TeYuan Wang
e2fcfb0697 thermal: enable sendCallback for SKIN thermal sensor
Bug: 236787614
Test: emul_temp VIRTUAL-SKIN to EMERGENCY and monitor overheat warning
message

Change-Id: I44362239b2037f7e606b9a797a1a1c8da67c1410
2022-08-23 07:56:37 +00:00
TeYuan Wang
2997f76c3e thermal: bringup VIRTUAL-SKIN thermal policy
Bug: 236787614
Test: adb shell dumpsys thermalservice | grep VIRTUAL-SKIN
Change-Id: I2c62aeb5273937b50c8cbe2de5f7ee3337c58e8b
2022-07-27 18:36:57 +08:00
TeYuan Wang
d4b4bbcd35 thermal: bringup USBC throttling policy
Bug: 233003074
Test: build
Change-Id: Iba7360f188f59e046e084089119ac0cc6911365a
2022-07-13 10:15:05 +08:00
Redick Lin
1a4b4c8b97 bcl: Initialize bcl config
Bug: 237361298
Change-Id: I64945f1aa94ea88dee4bcb04b9564c50001c2c41
Signed-off-by: Redick Lin <redicklin@google.com>
2022-07-01 11:54:46 +08:00
TeYuan Wang
151785628d thermal: bringup basic thermal config
Bug: 236787506
Test: adb shell lshal debug android.hardware.thermal@2.0::IThermal/default
Change-Id: If12f51a4fe75e1d4487f6e0be0dd74c0e3e72984
2022-06-24 08:27:50 +08:00
TeYuan Wang
0c58e7bed2 Remove the incorrect thermal table to prevent crash
Bug: 225286556
Test: build
Change-Id: Ie82386485fd184bd0aa15cf972fe99d4d03f297b
2022-03-18 15:39:26 +08:00
Cyan_Hsieh
687519c606 update felix device
based on pipit   93e38fbd070b55875d9c23e214dff6d26ac0cdf9
based on cheetah cdc1dc5379faf6bb60cf4f8b4b967ae87992b2ed

Bug: 206057564
Change-Id: I68ca7715cf7fd96066d8d517bc4daf236512f501
2022-03-08 10:59:22 +08:00
Cyan_Hsieh
e7cfbb7e37 Initialize device felix
based on pipit 68a0b4b411e8d23dfd966d24a5c35ea4ffb9d5f1
and cheetah 9acaa7507c23ffc7ca5f82a9579dd3a7c56af809

Bug: 206057564
Change-Id: Id59ed48d2a39c9a5a811c41157732914f3568d51
2021-12-08 16:10:12 +08:00