From 4a4decce0e0faaf6f3721c25e3b0f008d577189e Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Mon, 16 Sep 2024 08:24:58 +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 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:64744669777839a83a98b632c8be1f4cb520ae75) Merged-In: I6bdab200802d399b0bf1206534d141a15e02b28a Change-Id: I6bdab200802d399b0bf1206534d141a15e02b28a --- perf/powerhint-tegu.json | 62 ++++++++++++++++++++++++++++++++++------ 1 file changed, 53 insertions(+), 9 deletions(-) diff --git a/perf/powerhint-tegu.json b/perf/powerhint-tegu.json index a5f1ea4..9aa2751 100644 --- a/perf/powerhint-tegu.json +++ b/perf/powerhint-tegu.json @@ -398,7 +398,6 @@ "Path": "/proc/vendor_sched/groups/ta/uclamp_min", "Values": [ "765", - "600", "1" ], "ResetOnInit": true @@ -412,11 +411,21 @@ ], "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": [ "600", + "590", "0" ], "ResetOnInit": true @@ -425,6 +434,7 @@ "Name": "TAUclampMinOnNiceHighPrio", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio", "Values": [ + "110", "119", "120" ], @@ -435,6 +445,7 @@ "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio", "Values": [ "128", + "139", "130" ], "ResetOnInit": true @@ -549,6 +560,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", @@ -1058,12 +1078,6 @@ "Duration": 5000, "Value": "512" }, - { - "PowerHint": "LAUNCH", - "Node": "TAUClampBoost", - "Duration": 5000, - "Value": "765" - }, { "PowerHint": "LAUNCH", "Node": "FGUClampBoost", @@ -1134,6 +1148,12 @@ "Duration": 5000, "Value": "1" }, + { + "PowerHint": "LAUNCH", + "Node": "TAAutoPreferFit", + "Duration": 5000, + "Value": "1" + }, { "PowerHint": "LAUNCH", "Node": "TAPreferredIdleMaskHigh", @@ -1142,9 +1162,33 @@ }, { "PowerHint": "LAUNCH", - "Node": "TAPreferredIdleMaskMid", + "Node": "TAUclampMinOnNiceEnable", "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",