summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2017-08-28 18:04:20 -0700
committerTodd Poynor <toddpoynor@google.com>2017-09-19 16:38:07 +0000
commit05abc505c6ff76c178b3fea4dd30668f906bbbb3 (patch)
treeb9987c42d3376cb14e39d4ebe6c2afdd766fb2c4
parent2a53a3a292b8f5f3d235bd44d238fe85f7b42fe7 (diff)
downloadtaimen-05abc505c6ff76c178b3fea4dd30668f906bbbb3.tar.gz
thermal: report throttling to Android thermalservice
Add "report" actions to throttling rules of algorithm type "monitor", or add monitor rule covering throttling range, to send throttling events to Android thermalservice. Bug: 30982366 Test: manual on taimen (with artificially low thresholds) Change-Id: Ib1bf8a148ef2ec654e7a238868d349859f197cb4
-rwxr-xr-xthermal-engine-vr.conf8
-rwxr-xr-xthermal-engine.conf26
2 files changed, 26 insertions, 8 deletions
diff --git a/thermal-engine-vr.conf b/thermal-engine-vr.conf
index bed4c59..d8ed702 100755
--- a/thermal-engine-vr.conf
+++ b/thermal-engine-vr.conf
@@ -13,8 +13,8 @@ sensor bd_therm2
sampling 1000
thresholds 50000
thresholds_clr 46000
-actions cluster0+cluster1+gpu+battery
-action_info 883200+902400+342000000+3
+actions cluster0+cluster1+gpu+battery+report
+action_info 883200+902400+342000000+3+1
[SKIN_SHUTDOWN]
algo_type monitor
@@ -31,5 +31,5 @@ sensor bd_therm
sampling 1000
thresholds 62000
thresholds_clr 58000
-actions cluster0+cluster1+gpu
-action_info 883200+902400+342000000
+actions cluster0+cluster1+gpu+report
+action_info 883200+902400+342000000+1
diff --git a/thermal-engine.conf b/thermal-engine.conf
index 8c810bd..80a0ffe 100755
--- a/thermal-engine.conf
+++ b/thermal-engine.conf
@@ -54,8 +54,8 @@ sampling 2000
sensor bd_therm2
thresholds 48000 50000 52000
thresholds_clr 47000 49000 51000
-actions cluster0+cluster1+gpu cluster0+cluster1+gpu cluster0+cluster1+gpu
-action_info 1094400+1190400+414000000 883200+902400+342000000 300000+300000+257000000
+actions cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report
+action_info 1094400+1190400+414000000+1 883200+902400+342000000+1 300000+300000+257000000+1
[BATTERY-MONITOR2]
algo_type monitor
@@ -75,6 +75,15 @@ thresholds_clr 53000
actions shutdown
action_info 1
+[THROTTLING-NOTIFY2]
+algo_type monitor
+sampling 2000
+sensor bd_therm2
+thresholds 38000
+thresholds_clr 37000
+actions report
+action_info 1
+
[SKIN-MID-FLOOR]
algo_type ss
sampling 2000
@@ -121,8 +130,8 @@ sampling 2000
sensor bd_therm
thresholds 58000 60000 64000
thresholds_clr 57000 59000 63000
-actions cluster0+cluster1+gpu cluster0+cluster1+gpu cluster0+cluster1+gpu
-action_info 1094400+1190400+414000000 883200+902400+342000000 300000+300000+257000000
+actions cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report
+action_info 1094400+1190400+414000000+1 883200+902400+342000000+1 300000+300000+257000000+1
[SKIN-SHUTDOWN]
algo_type monitor
@@ -132,3 +141,12 @@ thresholds 66000
thresholds_clr 65000
actions shutdown
action_info 1
+
+[THROTTLING-NOTIFY]
+algo_type monitor
+sampling 2000
+sensor bd_therm
+thresholds 49000
+thresholds_clr 48000
+actions report
+action_info 1