Use auto prefer fit for launch

Enable auto prefer fit for high prio tasks when app launch, and tune
uclmap min settings for different task prio.

Bug: 353885521
Flag: NONE powerhint change does not support flags
Test: build pass
Change-Id: Iad6f5d332e66dc09ed12d09e3e443144bc25c31d
This commit is contained in:
Rick Yiu 2024-09-13 09:56:57 +00:00
parent 0bf4e1ec54
commit 827f321757
4 changed files with 220 additions and 44 deletions

View file

@ -333,7 +333,6 @@
"Path": "/proc/vendor_sched/groups/ta/uclamp_min", "Path": "/proc/vendor_sched/groups/ta/uclamp_min",
"Values": [ "Values": [
"765", "765",
"600",
"1" "1"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -347,11 +346,21 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAUclampMinOnNiceHighValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_value",
"Values": [
"765",
"0"
],
"ResetOnInit": true
},
{ {
"Name": "TAUclampMinOnNiceMidValue", "Name": "TAUclampMinOnNiceMidValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value",
"Values": [ "Values": [
"600", "600",
"590",
"0" "0"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -360,6 +369,7 @@
"Name": "TAUclampMinOnNiceHighPrio", "Name": "TAUclampMinOnNiceHighPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio",
"Values": [ "Values": [
"110",
"119", "119",
"120" "120"
], ],
@ -370,6 +380,7 @@
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio",
"Values": [ "Values": [
"128", "128",
"139",
"130" "130"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -484,6 +495,15 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAAutoPreferFit",
"Path": "/proc/vendor_sched/groups/ta/auto_prefer_fit",
"Values": [
"1",
"0"
],
"ResetOnInit": true
},
{ {
"Name": "TAPreferredIdleMaskHigh", "Name": "TAPreferredIdleMaskHigh",
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high",
@ -1044,12 +1064,6 @@
"Duration": 5000, "Duration": 5000,
"Value": "512" "Value": "512"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAUClampBoost",
"Duration": 5000,
"Value": "765"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "FGUClampBoost", "Node": "FGUClampBoost",
@ -1120,6 +1134,12 @@
"Duration": 5000, "Duration": 5000,
"Value": "1" "Value": "1"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAAutoPreferFit",
"Duration": 5000,
"Value": "1"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskHigh", "Node": "TAPreferredIdleMaskHigh",
@ -1128,9 +1148,33 @@
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskMid", "Node": "TAUclampMinOnNiceEnable",
"Duration": 5000, "Duration": 5000,
"Value": "0xff" "Value": "1"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceHighValue",
"Duration": 5000,
"Value": "765"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceHighPrio",
"Duration": 5000,
"Value": "110"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceMidValue",
"Duration": 5000,
"Value": "590"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceMidPrio",
"Duration": 5000,
"Value": "139"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",

View file

@ -333,7 +333,6 @@
"Path": "/proc/vendor_sched/groups/ta/uclamp_min", "Path": "/proc/vendor_sched/groups/ta/uclamp_min",
"Values": [ "Values": [
"765", "765",
"600",
"1" "1"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -347,11 +346,21 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAUclampMinOnNiceHighValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_value",
"Values": [
"765",
"0"
],
"ResetOnInit": true
},
{ {
"Name": "TAUclampMinOnNiceMidValue", "Name": "TAUclampMinOnNiceMidValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value",
"Values": [ "Values": [
"600", "600",
"590",
"0" "0"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -360,6 +369,7 @@
"Name": "TAUclampMinOnNiceHighPrio", "Name": "TAUclampMinOnNiceHighPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio",
"Values": [ "Values": [
"110",
"119", "119",
"120" "120"
], ],
@ -370,6 +380,7 @@
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio",
"Values": [ "Values": [
"128", "128",
"139",
"130" "130"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -484,6 +495,15 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAAutoPreferFit",
"Path": "/proc/vendor_sched/groups/ta/auto_prefer_fit",
"Values": [
"1",
"0"
],
"ResetOnInit": true
},
{ {
"Name": "TAPreferredIdleMaskHigh", "Name": "TAPreferredIdleMaskHigh",
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high",
@ -1044,12 +1064,6 @@
"Duration": 5000, "Duration": 5000,
"Value": "512" "Value": "512"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAUClampBoost",
"Duration": 5000,
"Value": "765"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "FGUClampBoost", "Node": "FGUClampBoost",
@ -1120,6 +1134,12 @@
"Duration": 5000, "Duration": 5000,
"Value": "1" "Value": "1"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAAutoPreferFit",
"Duration": 5000,
"Value": "1"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskHigh", "Node": "TAPreferredIdleMaskHigh",
@ -1128,9 +1148,33 @@
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskMid", "Node": "TAUclampMinOnNiceEnable",
"Duration": 5000, "Duration": 5000,
"Value": "0xff" "Value": "1"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceHighValue",
"Duration": 5000,
"Value": "765"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceHighPrio",
"Duration": 5000,
"Value": "110"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceMidValue",
"Duration": 5000,
"Value": "590"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceMidPrio",
"Duration": 5000,
"Value": "139"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
@ -1623,10 +1667,10 @@
"Value": "0" "Value": "0"
}, },
{ {
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "ReducePreferIdle", "Node": "ReducePreferIdle",
"Duration": 3000, "Duration": 3000,
"Value": "0" "Value": "0"
}, },
{ {
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",

View file

@ -321,7 +321,6 @@
"Path": "/proc/vendor_sched/groups/ta/uclamp_min", "Path": "/proc/vendor_sched/groups/ta/uclamp_min",
"Values": [ "Values": [
"765", "765",
"600",
"1" "1"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -335,11 +334,21 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAUclampMinOnNiceHighValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_value",
"Values": [
"765",
"0"
],
"ResetOnInit": true
},
{ {
"Name": "TAUclampMinOnNiceMidValue", "Name": "TAUclampMinOnNiceMidValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value",
"Values": [ "Values": [
"600", "600",
"590",
"0" "0"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -348,6 +357,7 @@
"Name": "TAUclampMinOnNiceHighPrio", "Name": "TAUclampMinOnNiceHighPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio",
"Values": [ "Values": [
"110",
"119", "119",
"120" "120"
], ],
@ -358,6 +368,7 @@
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio",
"Values": [ "Values": [
"128", "128",
"139",
"130" "130"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -472,6 +483,15 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAAutoPreferFit",
"Path": "/proc/vendor_sched/groups/ta/auto_prefer_fit",
"Values": [
"1",
"0"
],
"ResetOnInit": true
},
{ {
"Name": "TAPreferredIdleMaskHigh", "Name": "TAPreferredIdleMaskHigh",
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high",
@ -968,12 +988,6 @@
"Duration": 5000, "Duration": 5000,
"Value": "512" "Value": "512"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAUClampBoost",
"Duration": 5000,
"Value": "765"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "FGUClampBoost", "Node": "FGUClampBoost",
@ -1044,6 +1058,12 @@
"Duration": 5000, "Duration": 5000,
"Value": "1" "Value": "1"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAAutoPreferFit",
"Duration": 5000,
"Value": "1"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskHigh", "Node": "TAPreferredIdleMaskHigh",
@ -1052,9 +1072,33 @@
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskMid", "Node": "TAUclampMinOnNiceEnable",
"Duration": 5000, "Duration": 5000,
"Value": "0xff" "Value": "1"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceHighValue",
"Duration": 5000,
"Value": "765"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceHighPrio",
"Duration": 5000,
"Value": "110"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceMidValue",
"Duration": 5000,
"Value": "590"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceMidPrio",
"Duration": 5000,
"Value": "139"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
@ -1573,8 +1617,8 @@
{ {
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceMidValue", "Node": "TAUclampMinOnNiceMidValue",
"Duration": 3000, "Duration": 3000,
"Value": "600" "Value": "600"
}, },
{ {
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",

View file

@ -333,7 +333,6 @@
"Path": "/proc/vendor_sched/groups/ta/uclamp_min", "Path": "/proc/vendor_sched/groups/ta/uclamp_min",
"Values": [ "Values": [
"765", "765",
"600",
"1" "1"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -347,11 +346,21 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAUclampMinOnNiceHighValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_value",
"Values": [
"765",
"0"
],
"ResetOnInit": true
},
{ {
"Name": "TAUclampMinOnNiceMidValue", "Name": "TAUclampMinOnNiceMidValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value",
"Values": [ "Values": [
"600", "600",
"590",
"0" "0"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -360,6 +369,7 @@
"Name": "TAUclampMinOnNiceHighPrio", "Name": "TAUclampMinOnNiceHighPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio",
"Values": [ "Values": [
"110",
"119", "119",
"120" "120"
], ],
@ -370,6 +380,7 @@
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio",
"Values": [ "Values": [
"128", "128",
"139",
"130" "130"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -484,6 +495,15 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAAutoPreferFit",
"Path": "/proc/vendor_sched/groups/ta/auto_prefer_fit",
"Values": [
"1",
"0"
],
"ResetOnInit": true
},
{ {
"Name": "TAPreferredIdleMaskHigh", "Name": "TAPreferredIdleMaskHigh",
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high",
@ -1044,12 +1064,6 @@
"Duration": 5000, "Duration": 5000,
"Value": "512" "Value": "512"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAUClampBoost",
"Duration": 5000,
"Value": "765"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "FGUClampBoost", "Node": "FGUClampBoost",
@ -1120,6 +1134,12 @@
"Duration": 5000, "Duration": 5000,
"Value": "1" "Value": "1"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAAutoPreferFit",
"Duration": 5000,
"Value": "1"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskHigh", "Node": "TAPreferredIdleMaskHigh",
@ -1128,9 +1148,33 @@
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskMid", "Node": "TAUclampMinOnNiceEnable",
"Duration": 5000, "Duration": 5000,
"Value": "0xff" "Value": "1"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceHighValue",
"Duration": 5000,
"Value": "765"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceHighPrio",
"Duration": 5000,
"Value": "110"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceMidValue",
"Duration": 5000,
"Value": "590"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceMidPrio",
"Duration": 5000,
"Value": "139"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
@ -1655,8 +1699,8 @@
{ {
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceMidValue", "Node": "TAUclampMinOnNiceMidValue",
"Duration": 3000, "Duration": 3000,
"Value": "600" "Value": "600"
}, },
{ {
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",