1. When CPU max frequency throttled to cdev ceiling of CPU-MID, will
override the severity to SEVERE
2. Create VSKIN-DISPLAY to bind with display thermal throttle
Bug: 373750888
Test: Test with emul_temp
Flag: EXEMPT tuning changes
Signed-off-by: Peter (YM) <peterym@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b309c4ef4375f39d07acd2ae499b368fb7fc9d9b)
Merged-In: I602c93ed5e825c1405a3f9f98cafe87e251a8038
Change-Id: I602c93ed5e825c1405a3f9f98cafe87e251a8038
- Add vskin model using:
- thermistor temperature
- last 5 min average power of rails
- Add residency monitoring for:
- vskin-odpm-model - vskin-legacy.
- align thresholds for vskin-model - vskin-legacy with other
devices.
- vskin-model
- vskin-odpm-model
Bug: 366375997
Test: Push config and verify lshal
Flag: EXEMPT config update
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8f6b18a05086c1f9d00dc917aa09d05496baac2b)
Merged-In: I7f3cdbc009a608497de33cfcdc0e86005c2e842a
Change-Id: I7f3cdbc009a608497de33cfcdc0e86005c2e842a
With the I windup optimization in ag/28577472, VSKIN-SOC itself can
control GPU thermal well. We can remove VSKIN-GPU without hurting the
GPU thermal benchmark metric.
Bug: 370755690
Test: Run manhattan offscreen
Flag: EXEMPT config update
Signed-off-by: Peter (YM) <peterym@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5af3c764d938473d6b9fd4a5345419cc9fe5d555)
Merged-In: I6817f7337269942e37d81cf8dddad920a9a33663
Change-Id: I6817f7337269942e37d81cf8dddad920a9a33663
Based on solar loading and dvt data to prepare new model
Test: Build and boot to home.
Bug: 333834428
Flag: EXEMPT config update
Signed-off-by: Peter (YM) <peterym@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9f3c0ecfbabb0781a29178189c0389ca8c71fb9e)
Merged-In: Ice562d0fa16a6b258e09463672fb303180199005
Change-Id: Ice562d0fa16a6b258e09463672fb303180199005
This version is based on the CHARGING HOTSPOT in following cases
- Idle charging
- Charging + workload (Modem RFFE / WiFi / CPU / Display )
- Non charging case (correlate charging hotspot)
Bug: 362394314
Test: Build and Boot to home
Flag: EXEMPT config update
Change-Id: I5594cfaefa70b633a2344e9b3460007055f2db2f
Signed-off-by: Peter (YM) <peterym@google.com>
Increasing MaxReleaseStep/MaxThrottleStep to prevent temperature
overshoos.
Based on HW WLC team's comment:
- During thermal throttling, the charging current should be reduced in steps no larger than 100mA per step.
- When the thermal issue is resolved, the charging current should be increased in steps no larger than 50mA per step.
Flag: EXEMPT tuning changes
Bug: 353587870
Test: boot to home and thermal throttling worked properly.
Change-Id: I402588dbe4d23382bc9ef6c01095a4235d5f6142
Bug: 362411361
Test: Flash and boot to home
Flag: EXEMPT config update
Change-Id: Ib1b7353e637d050e8b6a01b9d383d7470d239905
Signed-off-by: Peter (YM) <peterym@google.com>
Move the threshold back to 55 degC
Bug: 350877108
Flag: EXEMPT NDK
Test: Flash on device, check shutdown with emul_temp
Change-Id: Ifec87dda2e74f5108ea3b19d049ca463066f854b
Signed-off-by: Peter (YM) <peterym@google.com>
- Add linear regression model for VSkin-Speaker
- Setup abnormality monitoring:
- 0 <= VSkin-Speaker <= 55
- Residency for Vskin-Speaker Model
Bug: 342046516
Test: Local build and verify lshal
Flag: EXEMPT NDK
Change-Id: I611daee70359414203eeb0cd074d207a27dd3cf9
Signed-off-by: Peter (YM) <peterym@google.com>
Bug: 350877108
Test: Build and boot to home
Flag: EXEMPT (bug 337358613)
Change-Id: I68b1a36023873d21474c7de9e1cfc680bfbe9a58
Signed-off-by: Peter (YM) <peterym@google.com>
Allow thermalHAL to report sensor reading trace when vskin model and
legacy shows big gap
Bug: 333834000
Test: Build and boot to home
Flag: EXEMPT (bug 337358613)
Change-Id: Ie45bf02083be9a2fc8f46a2a40d779a1323c08f4
Signed-off-by: Peter (YM) <peterym@google.com>
Aligned with previous project to active fan for wireless charging by
enabling dc_icl cdev earlier.
Flag: EXEMPT tuning changes
Bug: 333833667
Test: boot to home and thermal throttling worked properly.
Change-Id: Icbf6114ea6b6a8a20e1d4656ce9c9e9f9aa69d3c
- Use VT_MODEL to do thermal throttle
- Clamp VT_MODEL prediction based on training set max_surface
- Use VT_MODEL_LEGACY_DIFF to decide on switch
- Enable smooth transition with weights
Bug: 354939290
Test: Build and boot to home, verify vskin-legacy can trigger shutdown b/354939290#comment3
Flag: EXEMPT (bug 337358613)
Change-Id: I8c2a071b8f34c4ab055adfd9d2363f2158775c99
Signed-off-by: Peter (YM) <peterym@google.com>
Enable the monitor for QUIET_THERM,SOC_THERM,RFPA_THERM,NORTH_THERM to
get more information for deciding backup shutdown thermistor
Bug: 350877108
Test: Build and boot to home, verify with emul_temp (b/350877108#comment5)
Flag: EXEMPT (bug 337358613)
Change-Id: I1631311d2847a872b8afc12e2e702b801bf76a77
Signed-off-by: Peter (YM) <peterym@google.com>
- Workaround to avoid wrong sensor value reading for thermalHAL
- align thermal trigger temp for off mode charging config
Bug: 351248307
Test: Build and boot to home
Flag: EXEMPT (bug 337358613)
Change-Id: Ic83bb09287d4203eb816987e6abf4579b37b002b
Signed-off-by: Peter (YM) <peterym@google.com>
- Use stats-updator to ensure all the virutal sensor we want to monitor
can be trigger at the same time.
- Remove the un-used virtual sensor
- Update the name of VSKIN-SKIN-UNDER-52 to avoid confusion
Bug: 333834000
Test: Build on device and boot to home, b/333834000#comment8
Flag: EXEMPT (bug 337358613)
Change-Id: I9fc4df066b17417cee412d776a118ea1935fbc34
Signed-off-by: Peter (YM) <peterym@google.com>
Align charging thermal throttling parameters with leading project.
Bug: 333833667
Test: boot to home and thermal throttling worked as expected.
Change-Id: If8cfb1738c0dd921d52bdeb243dabdf3c190a9a4
Align with latest Pixel setup.
Fix the issue that sensor trip temp not updated.
Bug: 346562574
Test: Build and boot to home, confirm the sensor trip temp is updated
Change-Id: I588e65e72158a0b9006f949688e0fa18e4f6d2b4
Signed-off-by: Peter (YM) <peterym@google.com>
- Model: based on evt 1.0 50 case and Proto 1.1 150 case
- Legacy: based on evt 1.0 50 case, also update the trigger temp based on legacy report (b/333834000#6)
Bug: 333834000
Test: Build and boot to home
Change-Id: Ibe4988ec2e9944a81c7a64a0315727a6c942e2e0
Signed-off-by: Peter (YM) <peterym@google.com>
- increase shutdown threshold to 60 to better monitor the thermal under
high vskin
- Monitor vskin_legay - quiet_therm and vskin_model - quiet_them when vskin is higher than 52
- Monitor quiet_therm when it's over candidate shutdown threshold (55 degC)
Bug: 333485619
Test: Flash and boot to home
Change-Id: Id2ca58d427d342d353d7083e4771ac47caa074ec
Signed-off-by: Peter (YM) <peterym@google.com>
The threshold was increased in early stage, since we have a better vskin
eqaution now, we can align the threshold value to other pixel device.
Bug: 346484703
Test: build and boot to home
Change-Id: Ie191e816e2a0a2be405c7c71ece38b7d2fb71d8e
Signed-off-by: Peter (YM) <peterym@google.com>
Fix the issue that device not trigger usb throttle in off mode charging.
Bug: 344445952
Test: Build and flash on device, verify with uart.
Change-Id: Ic6d453b1cab4614f8f6b42a9b6f5fe521a98101d
Signed-off-by: Peter (YM) <peterym@google.com>
- Init vskin-wlc v1
- init wlc thermal throttle with last generation algorithm
Bug: 341236825
Test: Build and boot to home
Change-Id: Iac66f0a13d94bf1e94744f7954775f0a91cbde0b
Signed-off-by: Peter (YM) <peterym@google.com>
Algin with latest device setting
1. Update cdevceiling and hardlimit with frequency
2. Update TPU thermal throttle policy
3. Release thermal throttle in camera and game mode
Bug: 317750833
Test: Build and flash on device
Change-Id: If51183f72822febb3b3cf0cac33d03b33a4fb270
Signed-off-by: Peter (YM) <peterym@google.com>
Based on HW proposal in b/335112894#comment21
Bug: 335112894
Test: b/335112894#comment21, verifiy by HW test
Change-Id: Id1f9e1595433c55d59539c947f8e8a5da285dfa9
Signed-off-by: Peter (YM) <peterym@google.com>
With ag/27095449, we'll always parse thermistor_name config and the
current tflite model thermistor_name is not in json format.
This will lead to thermal hal crash. Fix it by setting the file content
to empty json object {}
Bug: 337961368
Test: Locally update and ensure no thermal hal crash
Change-Id: Ib171509a9cdf89d7982adcc0fa3c9c700b49b55b
Provide legacy v1 based on Proto1.1 thermal test result
Bug: 330247219
Test: Run thermal benchmark test
Change-Id: I74e1b58a045c34670694c1edbe8338827c2776fa
Signed-off-by: Peter (YM) <peterym@google.com>
- Enable VSKIN-CHARGE based on idle charging case
- Enable Wired charging throttle with previous generation product's policy
Bug: 333663839
Test: Build and boot to home
Change-Id: I8b6f4a8d41afbd2f739f73d56c8e49fca406704b
Signed-off-by: Peter (YM) <peterym@google.com>
- Enable vskin-model but not apply thermal throttle
- Capture model abnormal value when it's outside -20 and 60 degC
Bug: 330247219
Test: Build and boot to home
Change-Id: Ibfa26713129b0e22305ca4ed147b9cebd05858b6
Signed-off-by: Peter (YM) <peterym@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: I5a04e715bf49a6c4ee502eb82ca18795cff3eb9a