thermal: add soc to thermal HAL monitoring

Bug: 188365095
Test: Confirm throttling based on criteria matched
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I417ced61da6fe2bf44927878676bee877789fd23
This commit is contained in:
George Lee 2021-05-24 12:11:48 -07:00
parent d8ab4ebb49
commit 156e8f1afe
2 changed files with 64 additions and 8 deletions

View file

@ -528,14 +528,42 @@
"NAN",
"NAN",
"NAN",
"NAN",
90,
"NAN",
93,
96,
"NAN"
],
"VrThreshold":"NAN",
"Multiplier":1,
"Monitor":false
"Monitor":true,
"PollingDelay":300000,
"PassiveDelay":5000,
"BindedCdevInfo": [
{
"CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 7, 7, 10, 10]
},
{
"CdevRequest": "thermal-cpufreq-0",
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
},
{
"CdevRequest": "thermal-cpufreq-1",
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
},
{
"CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
},
{
"CdevRequest": "fcc",
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
},
{
"CdevRequest": "dc_icl",
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
}
]
},
{
"Name":"vdroop1",
@ -705,7 +733,7 @@
"NAN",
"NAN",
"NAN",
9.0,
9,
"NAN",
"NAN"
],

View file

@ -528,14 +528,42 @@
"NAN",
"NAN",
"NAN",
"NAN",
90,
"NAN",
93,
96,
"NAN"
],
"VrThreshold":"NAN",
"Multiplier":1,
"Monitor":false
"Monitor":true,
"PollingDelay":300000,
"PassiveDelay":5000,
"BindedCdevInfo": [
{
"CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 7, 7, 10, 10]
},
{
"CdevRequest": "thermal-cpufreq-0",
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
},
{
"CdevRequest": "thermal-cpufreq-1",
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
},
{
"CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
},
{
"CdevRequest": "fcc",
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
},
{
"CdevRequest": "dc_icl",
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
}
]
},
{
"Name":"vdroop1",
@ -705,7 +733,7 @@
"NAN",
"NAN",
"NAN",
12,
9,
"NAN",
"NAN"
],