Commit graph

16 commits

Author SHA1 Message Date
David Chao
b7ca1c1e1a thermal: Update charging thermal throttling
Reduce temperature and charging throttling overshoots by fine-tuning PID
parameters.

Bug: 303547723
Test: boot and charging thermal throtlting worked properly.
Change-Id: Icaeef76998347167976a1ef3606f417db3c5a380
2024-05-10 23:26:57 +00:00
sashwinbalaji
77bd92b57d thermal: Expose VCharge-Sensors with throttling
Expose virtual charge sensors to which throttling is binded to and
hide those which don't have.

Unhide:
 - VIRTUAL-SKIN-CHARGE-WIRED
 - VIRTUAL-SKIN-CHARGE-PERSIST
Hide:
 - VIRTUAL-SKIN-CHARGE

Bug: 336193005
Test: Verify dumpsys
Change-Id: I4d83f6af17fccb7de8d053c9d981163c9dde0ea3
2024-05-02 09:10:14 +08:00
Jikai Ma
e27cfe4bb8 thermal: update legacy formula with DVT test data
Bug: 320714468

Test: side load to device and successfully start thermal hal service.
Change-Id: I8189d7d7c94d590cc06ac82893d6b3dfd730585a
Signed-off-by: Jikai Ma <jikai@google.com>
2024-05-01 01:11:26 +00:00
sashwinbalaji
9b6048ab03 thermal: Remove deprecated power rails
Remove the below power rails as they're going to be replaced with
different ones for better ODPM coverage.

  - S8S_VDD_G3D_L2
  - L9S_GNSS_CORE

Bug: 331556280
Test: Push config and verify thermal logs
Change-Id: Ic5c6cb7c4ddae258c89cbe3cb50a104f7044e016
2024-04-01 12:47:41 +08:00
TeYuan Wang
37b99c032d thermal: update rule to identify non WLC scenarios
Change the rule to identify wireless charge according to the latest
hda definition from bms driver pa/2736243

Bug: 324267311
Test: boot to home
Change-Id: Ice9b38201cbbe868784ac389e799cc24e8f8b7ff
2024-03-22 22:53:22 +00:00
Jikai Ma
ca43671583 thermal: update legacy and linear vs formula
- vs formulas generated from EVT 1.1 data

Bug: 320714468
Test: push to device and boot to home

Change-Id: Ife745ac7640ffd284404212706c9bdfdb0500f33
Signed-off-by: Jikai Ma <jikai@google.com>
(cherry picked from commit 859dc39412)
2024-03-20 11:49:46 -07:00
TeYuan Wang
ea8c58d2d1 thermal: update WLC charging throttling policy
Bug: 323435751
Test: run the charging test with D250
Change-Id: I028f809f54fdb0c9675c82f34f6aab989b99cb65
2024-02-29 04:59:17 +00:00
TeYuan Wang
f2a7aba99e thermal: reading the thermistor temperature from upstream sysfs
tz_temp callback will invoke thermal_zone_device_update and return the cached temp from thermal core. However, during device resume, the cached temp may be reset to INVALID number before being returned.
So, change the reading path to upstream temp_show which will return the temperature from thermistor driver directly.

Bug: 326252555
Test: adb shell dumpsys thermalservice
Change-Id: I82cf81d940585c4827256804bc9c9397f4b54ccf
2024-02-28 07:30:38 +00:00
Jikai Ma
89813cd1df thermal: remove ODPM from legacy and patched linear model
- remove ODPM from legacy formulas
- remove ODPM from patched linear formulas
- update VIRTUAL-SKIN-CHARGE formulas

Bug: 320714468
Test: build and boot to home

Change-Id: I974476d45d9ace1740f9fec06af9399db5b7cb59
Signed-off-by: Jikai Ma <jikai@google.com>
2024-02-15 16:03:56 -08:00
Jikai Ma
305646c5f6 thermal: update virtual sensor formula for EVT devices
Bug: 320714468
Test: boot to home
Change-Id: I14b945a520df0466ee6f024983283543e2b363fe
Signed-off-by: Jikai Ma <jikai@google.com>
2024-01-22 10:38:00 -08:00
TeYuan Wang
fcf460a0e9 thermal: update USBC throttling policy
Bug: 317281453
Test: verified by emul_temp
Change-Id: Idc2e31e32bd7b278fa7a64d8e6de123c14bfa15a
2024-01-03 14:50:32 -08:00
Jikai Ma
b14b8d7586 thermal: update virtual skin sensor formula
formulas updated with P1.1 test data

Bug: 296476775
Test: boot to home

Sign-off-by: jikai@google.com
Change-Id: I88febd4792f9c32c6fcbd3d27490cdac80f00311
2023-11-07 19:18:29 +00:00
TeYuan Wang
397ab294f9 thermal: update charging thermal target for off-mode charging
Bug: 307972260
Test: adb shell dumpsys android.hardware.thermal.IThermal/default
Change-Id: Ibbb64b8a4ae2c598c05d31ad871e787a8527ba0b
2023-10-26 18:17:00 +00:00
Jikai Ma
4dafc1777b thermal: update VSKIN equation for CM4/KM4/TK4 P1
should work with ag/24907329 that allow thermalHAL to config trip of
btmskpr_therm

Bug: 296476775
Test: boot to home

Change-Id: I05e65c3f3ccce9d06640735b23976006cd99495e
2023-10-03 00:18:26 +00:00
Ramya Subramanian
4efb293678 thermal: enabled Thermal HAL and policies on Km4/CM4/TK4
Bug: b/292586445
Test: Tested with burn8 and thermal recorder to ensure policies kicked in

Change-Id: Id4b9a00329153ba2e2f68fb4d8dd8657bbbf4d5e
Signed-off-by: Ramya Subramanian <rsubr@google.com>
2023-09-12 21:22:54 +00:00
Robin Peng
b5194d9b24 Migrate caimito devices into caimito folder from sha 31a6eb4c2ffbc
Bug: 291867277
Change-Id: Ia7d34e6ab34bdd03406391f98c58b04eb77671cd
2023-08-16 10:26:07 +00:00