From 94fd9a6bfb7e1c8ea12376d392936f25b7a7988f Mon Sep 17 00:00:00 2001 From: Qais Yousef Date: Fri, 31 Mar 2023 18:14:12 +0000 Subject: [PATCH] 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 Change-Id: I959d4236990668aa82773ff05102b9ed28c0c1f9 --- powerhint-akita.json | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/powerhint-akita.json b/powerhint-akita.json index b56c620..01be9a3 100644 --- a/powerhint-akita.json +++ b/powerhint-akita.json @@ -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",