From a928bbe50d898b694b2d76e3475a19597a6d09c0 Mon Sep 17 00:00:00 2001 From: chungkai Date: Mon, 23 May 2022 09:40:08 +0000 Subject: [PATCH] powerhal: sync latest powerhint we need disable uclamp_threshold and reduce_prefer_idle, boost FG group when apps launch and remove FPS based hints for TA boost. Bug: 233423618 Test: build pass Signed-off-by: chungkai Change-Id: I3fe9318d46426c1e5ef7defe85126501313d419f --- powerhint.json | 70 ++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 57 insertions(+), 13 deletions(-) diff --git a/powerhint.json b/powerhint.json index 9354deb..a986a3a 100644 --- a/powerhint.json +++ b/powerhint.json @@ -111,6 +111,24 @@ ], "ResetOnInit": true }, + { + "Name": "UClampThreshold", + "Path": "/proc/vendor_sched/uclamp_threshold", + "Values": [ + "0", + "8" + ], + "ResetOnInit": true + }, + { + "Name": "ReducePreferIdle", + "Path": "/proc/vendor_sched/reduce_prefer_idle", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "CPUUtilThreshold", "Path": "/sys/kernel/vendor_sched/util_threshold", @@ -135,10 +153,18 @@ "Path": "/sys/kernel/vendor_sched/ta_uclamp_min", "Values": [ "553", - "108", + "185", "1", - "107", - "42" + "63" + ], + "ResetOnInit": true + }, + { + "Name": "FGUClampBoost", + "Path": "/proc/vendor_sched/fg_uclamp_min", + "Values": [ + "159", + "0" ], "ResetOnInit": true }, @@ -146,9 +172,9 @@ "Name": "SFUClampBoost", "Path": "/sys/kernel/vendor_sched/sf_uclamp_min", "Values": [ - "125", - "65", - "30" + "159", + "85", + "39" ], "ResetOnInit": true }, @@ -156,7 +182,7 @@ "Name": "MLUclampBoost", "Path": "/sys/kernel/vendor_sched/nnapi_uclamp_min", "Values": [ - "154", + "180", "512" ], "DefaultIndex": 0, @@ -374,13 +400,25 @@ "PowerHint": "INTERACTION", "Node": "SFUClampBoost", "Duration": 5000, - "Value": "65" + "Value": "85" + }, + { + "PowerHint": "LAUNCH", + "Node": "UClampThreshold", + "Duration": 5000, + "Value": "0" + }, + { + "PowerHint": "LAUNCH", + "Node": "ReducePreferIdle", + "Duration": 5000, + "Value": "0" }, { "PowerHint": "LAUNCH", "Node": "SFUClampBoost", "Duration": 5000, - "Value": "65" + "Value": "85" }, { "PowerHint": "LAUNCH", @@ -406,6 +444,12 @@ "Duration": 5000, "Value": "553" }, + { + "PowerHint": "LAUNCH", + "Node": "FGUClampBoost", + "Duration": 5000, + "Value": "159" + }, { "PowerHint": "LAUNCH", "Node": "MemFreq", @@ -1076,13 +1120,13 @@ "PowerHint": "REFRESH_90FPS", "Node": "TAUClampBoost", "Duration": 0, - "Value": "107" + "Value": "63" }, { "PowerHint": "REFRESH_60FPS", "Node": "TAUClampBoost", "Duration": 0, - "Value": "42" + "Value": "63" }, { "PowerHint": "ADPF_DISABLE_TA_BOOST", @@ -1124,13 +1168,13 @@ "PowerHint": "BOOST_90HZ", "Node": "TAUClampBoost", "Duration": 200, - "Value": "108" + "Value": "185" }, { "PowerHint": "BOOST_60HZ", "Node": "TAUClampBoost", "Duration": 200, - "Value": "108" + "Value": "185" }, { "PowerHint": "REFRESH_90FPS",