thermal: Reduce DVFS throttling per BCL irq

By increasing hardware clock divider count, we do not need to throttle
as hard to mitigate for brownout.

Bug: 221070649
Test: Local stress test to ensure no brownout.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I7ced6cdcf215738dd50d527f9f58ae4046492b29
This commit is contained in:
George Lee 2022-03-02 11:35:09 -08:00 committed by TreeHugger Robot
parent fd2cf74ed9
commit 18771c221b
3 changed files with 54 additions and 78 deletions

View file

@ -593,24 +593,16 @@
"Type":"BCL_PERCENTAGE", "Type":"BCL_PERCENTAGE",
"HotThreshold":[ "HotThreshold":[
"NAN", "NAN",
20,
80, 80,
"NAN", "NAN",
90, "NAN",
93, "NAN",
96,
"NAN" "NAN"
], ],
"VrThreshold":"NAN", "VrThreshold":"NAN",
"Multiplier":1, "Multiplier":1,
"Monitor":true, "Monitor":true
"PollingDelay":300000,
"PassiveDelay":5000,
"BindedCdevInfo": [
{
"CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 7, 7, 10, 10]
}
]
}, },
{ {
"Name":"batoilo", "Name":"batoilo",
@ -639,15 +631,15 @@
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 0, 7, 10, 10] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 10, 11, 11] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
} }
] ]
}, },
@ -705,15 +697,15 @@
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 0, 7, 10, 10]
},
{
"CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 7, 7, 7] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{
"CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 2, 2, 2]
},
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
} }
] ]
}, },
@ -744,15 +736,15 @@
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 0, 7, 10, 10] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 15, 15, 15] "LimitInfo": [0, 0, 0, 0, 4, 4, 4]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
} }
] ]
}, },
@ -783,15 +775,15 @@
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 0, 7, 10, 10] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 13, 13, 13] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
} }
] ]
}, },

View file

@ -593,24 +593,16 @@
"Type":"BCL_PERCENTAGE", "Type":"BCL_PERCENTAGE",
"HotThreshold":[ "HotThreshold":[
"NAN", "NAN",
20,
80, 80,
"NAN", "NAN",
90, "NAN",
93, "NAN",
96,
"NAN" "NAN"
], ],
"VrThreshold":"NAN", "VrThreshold":"NAN",
"Multiplier":1, "Multiplier":1,
"Monitor":true, "Monitor":true
"PollingDelay":300000,
"PassiveDelay":5000,
"BindedCdevInfo": [
{
"CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 7, 7, 10, 10]
}
]
}, },
{ {
"Name":"batoilo", "Name":"batoilo",
@ -639,15 +631,15 @@
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 0, 7, 10, 10] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 10, 11, 11] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
} }
] ]
}, },
@ -705,15 +697,15 @@
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 0, 7, 10, 10]
},
{
"CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 7, 7, 7] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{
"CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 2, 2, 2]
},
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
} }
] ]
}, },
@ -744,15 +736,15 @@
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 0, 7, 10, 10] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 15, 15, 15] "LimitInfo": [0, 0, 0, 0, 4, 4, 4]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
} }
] ]
}, },
@ -783,15 +775,15 @@
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 0, 7, 10, 10] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 13, 13, 13] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
} }
] ]
}, },

View file

@ -139,25 +139,17 @@
"Name":"soc", "Name":"soc",
"Type":"BCL_PERCENTAGE", "Type":"BCL_PERCENTAGE",
"HotThreshold":[ "HotThreshold":[
"NAN",
20,
80,
"NAN", "NAN",
"NAN", "NAN",
"NAN", "NAN",
90,
93,
96,
"NAN" "NAN"
], ],
"VrThreshold":"NAN", "VrThreshold":"NAN",
"Multiplier":1, "Multiplier":1,
"Monitor":true, "Monitor":true
"PollingDelay":300000,
"PassiveDelay":5000,
"BindedCdevInfo": [
{
"CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 7, 7, 10, 10]
}
]
}, },
{ {
"Name":"batoilo", "Name":"batoilo",
@ -186,15 +178,15 @@
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 0, 7, 10, 10] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 10, 11, 11] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
} }
] ]
}, },
@ -225,15 +217,15 @@
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 0, 7, 10, 10]
},
{
"CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 7, 7, 7] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{
"CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 2, 2, 2]
},
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
} }
] ]
}, },
@ -264,15 +256,15 @@
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 0, 7, 10, 10] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 15, 15, 15] "LimitInfo": [0, 0, 0, 0, 4, 4, 4]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
} }
] ]
}, },
@ -303,15 +295,15 @@
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"LimitInfo": [0, 0, 0, 0, 7, 10, 10] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 13, 13, 13] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 3, 3, 3]
} }
] ]
}, },