From 13d9ccb1789f25b23d44e506e1ede2d039fc93ea Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Mon, 16 Sep 2024 15:03:27 +0000 Subject: [PATCH] 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: I8aa7187b7178626ed8bf0e04fd7a9a46d1247bd3 --- powerhint-akita.json | 102 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 90 insertions(+), 12 deletions(-) diff --git a/powerhint-akita.json b/powerhint-akita.json index 0f0ac7b..e08e494 100644 --- a/powerhint-akita.json +++ b/powerhint-akita.json @@ -332,6 +332,51 @@ ], "ResetOnInit": true }, + { + "Name": "TAUclampMinOnNiceEnable", + "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_enable", + "Values": [ + "1", + "0" + ], + "ResetOnInit": true + }, + { + "Name": "TAUclampMinOnNiceHighValue", + "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_value", + "Values": [ + "765", + "0" + ], + "ResetOnInit": true + }, + { + "Name": "TAUclampMinOnNiceMidValue", + "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value", + "Values": [ + "570", + "0" + ], + "ResetOnInit": true + }, + { + "Name": "TAUclampMinOnNiceHighPrio", + "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio", + "Values": [ + "110", + "120" + ], + "ResetOnInit": true + }, + { + "Name": "TAUclampMinOnNiceMidPrio", + "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio", + "Values": [ + "139", + "130" + ], + "ResetOnInit": true + }, { "Name": "FGUClampBoost", "Path": "/proc/vendor_sched/groups/fg/uclamp_min", @@ -440,6 +485,15 @@ ], "ResetOnInit": true }, + { + "Name": "TAAutoPreferFit", + "Path": "/proc/vendor_sched/groups/ta/auto_prefer_fit", + "Values": [ + "1", + "0" + ], + "ResetOnInit": true + }, { "Name": "TAPreferredIdleMaskHigh", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high", @@ -938,12 +992,6 @@ "Duration": 5000, "Value": "615" }, - { - "PowerHint": "LAUNCH", - "Node": "TAUClampBoost", - "Duration": 5000, - "Value": "765" - }, { "PowerHint": "LAUNCH", "Node": "FGUClampBoost", @@ -1014,6 +1062,42 @@ "Duration": 5000, "Value": "1" }, + { + "PowerHint": "LAUNCH", + "Node": "TAAutoPreferFit", + "Duration": 5000, + "Value": "1" + }, + { + "PowerHint": "LAUNCH", + "Node": "TAUclampMinOnNiceEnable", + "Duration": 5000, + "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": "570" + }, + { + "PowerHint": "LAUNCH", + "Node": "TAUclampMinOnNiceMidPrio", + "Duration": 5000, + "Value": "139" + }, { "PowerHint": "LAUNCH", "Node": "FGPreferIdle", @@ -1104,12 +1188,6 @@ "Duration": 5000, "Value": "0x1ff" }, - { - "PowerHint": "LAUNCH", - "Node": "TAPreferredIdleMaskMid", - "Duration": 5000, - "Value": "0x1ff" - }, { "PowerHint": "LAUNCH_EXTEND", "Node": "FGPreferIdle",