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: 221077697
Test: Local stress test to ensure no brownout.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ia5d8cdbb1a0bff5baff56a81732b4a396189a10b
This commit is contained in:
George Lee 2022-02-23 15:05:25 -08:00
parent 1b50d53257
commit d3451ed575
2 changed files with 22 additions and 54 deletions

View file

@ -777,29 +777,13 @@
"NAN", "NAN",
"NAN", "NAN",
90, 90,
93, "NAN",
96, "NAN",
"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]
},
{
"CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 0, 7, 11]
},
{
"CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 0, 4, 5]
}
]
}, },
{ {
"Name":"batoilo", "Name":"batoilo",
@ -828,15 +812,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, 6, 6, 6]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 5, 5, 5]
} }
] ]
}, },
@ -871,11 +855,11 @@
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 7, 7, 7] "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]
} }
] ]
}, },
@ -910,11 +894,11 @@
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 15, 15, 15] "LimitInfo": [0, 0, 0, 0, 9, 9, 9]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 5, 5, 5]
} }
] ]
}, },
@ -949,7 +933,7 @@
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 13, 13, 13] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",

View file

@ -752,29 +752,13 @@
"NAN", "NAN",
"NAN", "NAN",
90, 90,
93, "NAN",
96, "NAN",
"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]
},
{
"CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 0, 7, 11]
},
{
"CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 0, 4, 5]
}
]
}, },
{ {
"Name":"batoilo", "Name":"batoilo",
@ -803,15 +787,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, 6, 6, 6]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 5, 5, 5]
} }
] ]
}, },
@ -846,11 +830,11 @@
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 7, 7, 7] "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]
} }
] ]
}, },
@ -885,11 +869,11 @@
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 15, 15, 15] "LimitInfo": [0, 0, 0, 0, 9, 9, 9]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",
"LimitInfo": [0, 0, 0, 0, 4, 4, 4] "LimitInfo": [0, 0, 0, 0, 5, 5, 5]
} }
] ]
}, },
@ -924,7 +908,7 @@
}, },
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"LimitInfo": [0, 0, 0, 0, 13, 13, 13] "LimitInfo": [0, 0, 0, 0, 7, 7, 7]
}, },
{ {
"CdevRequest": "tpu_cooling", "CdevRequest": "tpu_cooling",