- add tflite model files
- add lstm model sensors to thermal config
- add lstm model sensor to virtual skin prediction
Bug: 308179047
Test: build and validate thermal service
Change-Id: Iaff613d75b3766bfbdf40b391e453a94172872a3
Signed-off-by: Jikai Ma <jikai@google.com>
Given that we have very few traces/events uploaded for 12C threshold,
this change reduces the threshold to 10C to help collect more data
to analyze infield abnormalities.
Bug: 333110670
Test: Build and boot on device
Change-Id: Icd3357e543bfd612b856d843a7cf56486361ed81
Signed-off-by: Sayanna Chandula <sayanna@google.com>
- Models prepared with both PD and Cert data from EVT1.1 tests
- Used leaky_relu activation
Bug: 332971287
Test: Build and boot on device
Change-Id: I07fea17ab21d6efd66d1d74629886051ea92aa94
Signed-off-by: Sayanna Chandula <sayanna@google.com>
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
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
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: run genshin
Change-Id: Ib0d47b3de7b3550a3af4db37ef062f8c5d2ea262
Latest ML models have been trained for latest HW and are no longer
valid for proto devices. We can use legacy equation prepared for
proto devices and remove any stats upload to avoid polluting stats.
Bug: 320714468
Test: Build and boot on proto devices. Check Virtual Skin output
Change-Id: Ic80934f0df80a423d8ba2cb4d1ac4b45999803fe
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Update tflite models with metadata containing input data ranges.
Enable input data validation and backup sesor.
Add offsets based off temperature ranges.
Bug: 319167815
Bug: 328789394
Test: Build and boot on device. Test backup sensor and offsets
Change-Id: Icdc0c1a1fe026613e4a1716747335e60aca4edf9
Signed-off-by: Sayanna Chandula <sayanna@google.com>
- 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)
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: 329876112
Test: Build and boot on device.
Change-Id: I8b9ce12fc22dce0374d2a68a947bd598fd26f936
Signed-off-by: Ramya Subramanian <rsubr@google.com>
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
- 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>
Align with new GPU available frequency
Bug: 318313844
Test: Run gpu stress test
Change-Id: Iac169739bc72c047afa2564edb540468f48fd3ea
Signed-off-by: Peter (YM) <peterym@google.com>
- add to legacy formulas
- add to historic linear formulas
Bug: 320714468
Bug: 315234782
Bug: 307824060
Test: build and boot to home
Change-Id: If395b3281ad180731e93953089c1ca57afdb6b68
Signed-off-by: Jikai Ma <jikai@google.com>
- Updated vt predictions models with 15 samples average for ODPM rails.
- This reduces VT prediction being very sensitive to power changes
- Remove other ODPM rails from VT prediction except for VSYS_PWR_CAMERA
Bug: 307824060, 322910529
Test: Build and boot on device
Change-Id: Ibb285269d3da86e3d331ea3c7c5a3cd715da0ba2
Signed-off-by: Sayanna Chandula <sayanna@google.com>
- Switch to VIRTUAL-SKIN-MODEL from VIRTUAL-SKIN-LEGACY
- Add a backup shutdown based on VIRTUAL-SKIN-LEGACY
- Remove unnecessary polling delays from few sensors
Bug: 321108353
Test: Build and boot on device
Change-Id: I8b8909ded87ba2b76d5712c474120dbe5ab13c2c
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Update thermal config as:
- Rename VIRTUAL-SKIN to VIRTUAL-SKIN-LEGACY
In order to differentiate different vt models, we need to define
legacy equation as a sepearate sensor and use it as a reference
for virtual-skin. Later when we want to switch to other models,
we could simply replace the combination for virtual-skin sensor
- Record Stats for
- VIRTUAL-SKIN-MODEL
- VIRTUAL-SKIN-MODEL - VIRTUAL-SKIN
- At intervals of 500 mdeg (-4500 to 4500)
- At intervals of 1000 mdef (-13000 to 12000 exlucding
-4000 to 4000)
- Abnormality Monitoring
- VIRTUAL-SKIN-MODEL [0-55 deg]
- VIRTUAL-SKIN-MODEL-LEGACY-DIFF [-12000 - 12000 mdeg]
Bug: 320347462
Test: Push config and verify logcat and lshal
Change-Id: I397c8a07cf01abd5d8a7dedf290829a19e21ae87
The battery_mitigation takes over the brownout event
and informs subsystems to do mitigation.
Bug: 319285945
Change-Id: I58e0a9e0469575096f34243e73c1e32474eea006
Signed-off-by: samou <samou@google.com>
This reverts commit 520b88f848.
Reason for revert: KM4 DVFS v2 tables are not merged to ToT yet. Need to keep this open until thats merged
Change-Id: Id3848230a675ef7a684f7f40a9b7083492dfab58
Bug: 318313844
Test: Tested on EVT1.0(A0) TK4 and Tskin controlled to 45C with MH offscreen, all 3 devices booted home
Change-Id: I3e10a1cd9c4493c9bb5f6a08a64e68b04713c41a
Signed-off-by: Ramya Subramanian <rsubr@google.com>
migrate from proto devices
fix power rail error in the previous update
Bug: 296476775
Bug: 315251968
Test: boot to home
Change-Id: Ie8ebfb23253f3b7c8fa2c9e723f5dd3220f55509
Signed-off-by: jikai@google.com