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: PtsUiBench Signed-off-by: Qais Yousef <qyousef@google.com> Change-Id: I873b6abe4b05f2d3c74fe7e84b634390be779506
This commit is contained in:
parent
d1729790ae
commit
a235af6ad2
1 changed files with 20 additions and 20 deletions
|
@ -143,7 +143,7 @@
|
|||
"Name": "TAUClampBoost",
|
||||
"Path": "/proc/vendor_sched/ta_uclamp_min",
|
||||
"Values": [
|
||||
"553",
|
||||
"692",
|
||||
"1"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
|
@ -152,7 +152,7 @@
|
|||
"Name": "FGUClampBoost",
|
||||
"Path": "/proc/vendor_sched/fg_uclamp_min",
|
||||
"Values": [
|
||||
"161",
|
||||
"202",
|
||||
"0"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
|
@ -161,8 +161,8 @@
|
|||
"Name": "MLUclampBoost",
|
||||
"Path": "/proc/vendor_sched/nnapi_uclamp_min",
|
||||
"Values": [
|
||||
"180",
|
||||
"512"
|
||||
"225",
|
||||
"640"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
|
@ -541,13 +541,13 @@
|
|||
"PowerHint": "LAUNCH",
|
||||
"Node": "TAUClampBoost",
|
||||
"Duration": 5000,
|
||||
"Value": "553"
|
||||
"Value": "692"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "FGUClampBoost",
|
||||
"Duration": 5000,
|
||||
"Value": "161"
|
||||
"Value": "202"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
|
@ -1855,7 +1855,7 @@
|
|||
"PowerHint": "ML_ACC",
|
||||
"Node": "MLUclampBoost",
|
||||
"Duration": 2000,
|
||||
"Value": "512"
|
||||
"Value": "640"
|
||||
}
|
||||
],
|
||||
"AdpfConfig": [
|
||||
|
@ -1871,8 +1871,8 @@
|
|||
"PID_Do": 500.0,
|
||||
"PID_Du": 0.0,
|
||||
"UclampMin_On": true,
|
||||
"UclampMin_Init": 185,
|
||||
"UclampMin_High": 384,
|
||||
"UclampMin_Init": 232,
|
||||
"UclampMin_High": 480,
|
||||
"UclampMin_Low": 2,
|
||||
"SamplingWindow_P": 1,
|
||||
"SamplingWindow_I": 0,
|
||||
|
@ -1895,8 +1895,8 @@
|
|||
"PID_Do": 500.0,
|
||||
"PID_Du": 0.0,
|
||||
"UclampMin_On": true,
|
||||
"UclampMin_Init": 129,
|
||||
"UclampMin_High": 384,
|
||||
"UclampMin_Init": 162,
|
||||
"UclampMin_High": 480,
|
||||
"UclampMin_Low": 2,
|
||||
"SamplingWindow_P": 1,
|
||||
"SamplingWindow_I": 0,
|
||||
|
@ -1919,8 +1919,8 @@
|
|||
"PID_Do": 500.0,
|
||||
"PID_Du": 0.0,
|
||||
"UclampMin_On": true,
|
||||
"UclampMin_Init": 129,
|
||||
"UclampMin_High": 384,
|
||||
"UclampMin_Init": 162,
|
||||
"UclampMin_High": 480,
|
||||
"UclampMin_Low": 2,
|
||||
"SamplingWindow_P": 1,
|
||||
"SamplingWindow_I": 0,
|
||||
|
@ -1946,9 +1946,9 @@
|
|||
"SamplingWindow_I": 1,
|
||||
"SamplingWindow_D": 1,
|
||||
"UclampMin_On": true,
|
||||
"UclampMin_Init": 200,
|
||||
"UclampMin_High": 157,
|
||||
"UclampMin_Low": 157,
|
||||
"UclampMin_Init": 250,
|
||||
"UclampMin_High": 197,
|
||||
"UclampMin_Low": 197,
|
||||
"ReportingRateLimitNs": 1,
|
||||
"EarlyBoost_On": false,
|
||||
"EarlyBoost_TimeFactor": 0.0,
|
||||
|
@ -1970,9 +1970,9 @@
|
|||
"SamplingWindow_I": 1,
|
||||
"SamplingWindow_D": 1,
|
||||
"UclampMin_On": true,
|
||||
"UclampMin_Init": 200,
|
||||
"UclampMin_High": 42,
|
||||
"UclampMin_Low": 42,
|
||||
"UclampMin_Init": 250,
|
||||
"UclampMin_High": 53,
|
||||
"UclampMin_Low": 53,
|
||||
"ReportingRateLimitNs": 1,
|
||||
"EarlyBoost_On": false,
|
||||
"EarlyBoost_TimeFactor": 0.0,
|
||||
|
@ -1994,7 +1994,7 @@
|
|||
"SamplingWindow_I": 1,
|
||||
"SamplingWindow_D": 1,
|
||||
"UclampMin_On": true,
|
||||
"UclampMin_Init": 200,
|
||||
"UclampMin_Init": 250,
|
||||
"UclampMin_High": 0,
|
||||
"UclampMin_Low": 0,
|
||||
"ReportingRateLimitNs": 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue