Commit graph

18 commits

Author SHA1 Message Date
sashwinbalaji
c5642a252a thermal: Update left/right inner display equations
Update the formula for L/R brightness compensation.

Bug: 309716793
Test: Load config and veirfy thermal log and lshal
Change-Id: I33c0054b19197b4fa7f298090d6b2c2acb1f076f
2024-04-08 10:52:19 +08:00
sashwinbalaji
2d2f84936d 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:42:56 +08:00
sashwinbalaji
809257b65d thermal: Update charging equation and threshold.
- Update WLC moderate threshold from 38 to 41.
- Update rule to identify WLC scneario (acc to pa/2736243).
- Update WLC equation to latest equation.
- Keep inital vskin-charge equation as vskin-charge persist.
- lower charger_threm trigger point to align with vskin-charge persist
  trigger temp.
- Set vskin-charge-persist as vskin-wlc if current state is wlc else set
  to vskin-wired.
- to ensure vskin wired status is recorded, unhide is_wlc, vskin-wired
  and vskin-charge-persist.

Bug: 303547723
Test: Boot to home and check logs
Change-Id: I1b86b3c15caca6353447c76f2f72bb7c18cccfd6
2024-03-28 16:07:32 +08:00
sashwinbalaji
80c9fb7020 thermal: Update VIRTUAL-SKIN equation
Update the trigger sensors and equation for virtual-skin.

Bug: 303547449
Test: Local build, verify no thermal error logs and lshal.
Change-Id: I72677b58a4c4e29f4cd5e95b98691e4e1efb0fdc
2024-03-28 15:30:36 +08:00
Treehugger Robot
474b0138cc Merge "thermal: update cdev ceiling for LITTLE cores" into 24D1-dev 2024-03-26 18:53:49 +00:00
sashwinbalaji
e1a6516a88 thermal: update cdev ceiling for LITTLE cores
Inefficient OPPs were removed for the LITTLE cores from em table.

This change is to update the cdev ceilings in thermal policy to reflect
the EM changes

Bug: 331397497
Test: Build and boot on device.
Change-Id: I770b4495715a8da8e90248c0df043d2aa489c8d4
2024-03-26 16:48:05 +00:00
Peter (YM)
2e3b405b8a therma: disable LIGHT tier throttling when gaming
We already have the CPU scheduler optimization for game mode to sustain
the power and perf, so remove the CPU thermal policy at lower
temperature to avoid the interfence on CPU scheduler.

Bug: 329697728
Test: Build and verify behavior by sending powerhint
Change-Id: Ida42089c9752ce03875da9f390cc6d4a360151d8
Signed-off-by: Peter (YM) <peterym@google.com>
2024-03-26 07:14:03 +00:00
sashwinbalaji
ab5065e8a5 thermal: Add initial VIRTUAL-SKIN-OUTER-DISPLAY
To monitor and verify the feature of "sensor name based brightness
throttling", add VIRTUAL-SKIN-OUTER-DISPLAY of type DISPLAY.

But to ensure no regression, set its equation to be same as VIRTUAL-SKIN
and in future once verified we can update the equation.

Bug: 326615866
Test: Local build and verify thermal logs
Change-Id: I370990837911ab4b733aa9adca624ff1788f9500
2024-02-26 18:37:22 +08:00
sashwinbalaji
259d71f4d3 thermal: Update hotThresholds
Update emergency and shutdown threshold values to align with previous
generation foldable device.

Bug: 303547512
Bug: 322147413

Test: Build and verify lshal and use emul_temp to trigger shutdown
Change-Id: I3229de36dafcff7fdb29a6f1dd014bd49324c285
2024-02-22 08:28:57 +08:00
Priyanka Advani
c12fbfbd41 Revert "thermal: Update hotThresholds"
This reverts commit fb839117d6.

Reason for revert: Probable culprit for b/326235335. Will be verifying through ABTD for confirmation and before submitting the revert.

Change-Id: Ie82a56007090386c5f4425b3495fc8ccfdfc884c
2024-02-21 16:52:33 +00:00
sashwinbalaji
fb839117d6 thermal: Update hotThresholds
Update emergency and shutdown threshold values to align with previous
generation foldable device.

Bug: 303547512
Bug: 322147413

Test: Build and verify lshal and use emul_temp to trigger shutdown
Change-Id: Ia98dc74d5964868fa893ef1badfe0f5e37093e40
2024-02-21 18:25:04 +08:00
Peter (YM)
2f23a1f721 thermal: update gpu cdev ceiling
To Align with latest GPU available frquencies

Bug: 318313844
Test: run gpu stress test
Change-Id: I5260ee09877f9e4167535baa09ebc8d091587007
Signed-off-by: Peter (YM) <peterym@google.com>
2024-02-06 06:39:19 +00:00
Treehugger Robot
ba8615a5fe Merge changes Idf292dbb,I544b8942 into main
* changes:
  thermal: Reduce LIGHT-tier's ceiling before 43 degC for camera
  thermal: Update cdev ceiling to match latest EM table
2024-01-26 09:26:39 +00:00
samou
a19931dca2 thermal: remove brownout event
The battery_mitigation takes over the brownout event
and informs subsystems to do mitigation.

Bug: 319285945
Change-Id: I6b318197a5248470cce670747393f67663689487
Signed-off-by: samou <samou@google.com>
2024-01-11 14:15:45 +00:00
sashwinbalaji
d08d37db69 thermal: Reduce LIGHT-tier's ceiling before 43 degC for camera
Align with latest camera thermal throttling (ag/25589702)

Bug: 319174137
Test: run camcorder
Change-Id: Idf292dbb33e295dda33176343cc2012e56141d7b
2024-01-10 13:17:59 +08:00
sashwinbalaji
506a2dbaa6 thermal: Update cdev ceiling to match latest EM table
Bug: 318313844
Test: maintain Tskin with burn8/burncycle/MH
Change-Id: I544b89427c1597153766feded7aeaeec4993d4f9
2024-01-10 13:14:51 +08:00
sashwinbalaji
fc365a9d48 thermal: Add INNER-DISPLAY-DIFF virtual sensor.
Add LEFT-INNER-DISPLAY, RIGHT-INNER-DISPLAY virtual sensors.
Add INNER-DISPLAY-DIFF (diff of right - left) virtual sensor.

The INNER-DISPLAY-DIFF sensor will be used for inner display thermal
compensation.

Bug: 309716793
Test: Push config to device and verify thermal log and lshal
Change-Id: I4f7fbb2006b84dd6ab945d0de94f5d5ca2ffcd49
2024-01-02 13:03:50 +08:00
sashwinbalaji
edb8b488e5 thermal: Dynamically decide thermal config to use
Add service which will device thermal config on basis of following
conditions:

- No display panel / proto, use thermal_info_config_proto

Bug: 315096213
Test: Build and verify on all device variations
Change-Id: Ic1f652dcf38888150200bb80b35aad740058e85f
2023-12-18 19:28:00 +08:00