powerhint.json: Update uclamp_min hint to account for margin

Upstream has fixed relationship between uclamp_min and margin which
means uclamp_min value between 80-100% of capacity of the CPU is a valid
value and will not cause upmigration.

To keep the current hints in powerhint.json the same, we must update
uclamp_min to be capacity_orig_of(medium_cpu) + 1.

This change is dependent on uclamp vs fits margin in GKI, vendor
modules. And an improvement in sched_pixel to ignore the 25% boost if
the only reason to request the frequency is uclamp_min.

To cater for the later - we multiply each uclamp_min value with 1.25
- except ones that look intentionally set around capacity boundaries.

Bug: 261695590
Test: UiBench
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I959d4236990668aa82773ff05102b9ed28c0c1f9
This commit is contained in:
Qais Yousef 2023-03-31 18:14:12 +00:00
parent d2e2ae4d1e
commit 94fd9a6bfb

View file

@ -115,11 +115,11 @@
"Path": "/proc/vendor_sched/ta_uclamp_min",
"Values": [
"0",
"553",
"246",
"185",
"123",
"62"
"691",
"307",
"231",
"153",
"77"
],
"DefaultIndex": 0,
"ResetOnInit": true
@ -285,19 +285,19 @@
"PowerHint": "INTERACTION_120",
"Node": "TAUClampBoost",
"Duration": 6000,
"Value": "246"
"Value": "307"
},
{
"PowerHint": "INTERACTION_90",
"Node": "TAUClampBoost",
"Duration": 6000,
"Value": "185"
"Value": "231"
},
{
"PowerHint": "INTERACTION_60",
"Node": "TAUClampBoost",
"Duration": 6000,
"Value": "123"
"Value": "153"
},
{
"PowerHint": "REFRESH_120FPS",
@ -365,7 +365,7 @@
"PowerHint": "LAUNCH",
"Node": "TAUClampBoost",
"Duration": 5000,
"Value": "553"
"Value": "691"
},
{
"PowerHint": "LAUNCH",
@ -905,19 +905,19 @@
"PowerHint": "REFRESH_120FPS",
"Node": "TAUClampBoost",
"Duration": 0,
"Value": "185"
"Value": "231"
},
{
"PowerHint": "REFRESH_90FPS",
"Node": "TAUClampBoost",
"Duration": 0,
"Value": "123"
"Value": "153"
},
{
"PowerHint": "REFRESH_60FPS",
"Node": "TAUClampBoost",
"Duration": 0,
"Value": "62"
"Value": "77"
},
{
"PowerHint": "DISABLE_TA_BOOST",