From a5085b50807a74e3df8812bf88f576d2269eecb5 Mon Sep 17 00:00:00 2001 From: Sugakesshaa Date: Tue, 28 Nov 2023 01:09:00 +0530 Subject: [PATCH] dre: powerhint: Setup uclamp boosting - Make use of uclamp boost for top-app and foreground hints based on newer pixels Co-authored-by: Vivekachooz Change-Id: I70c4262230841b3c7bf84b4165916a22312f829f --- configs/powerhint.json | 74 ++++++++++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 25 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index d21f4a4..d9b5c46 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -46,6 +46,36 @@ ], "ResetOnInit": true }, + { + "Name": "UclampTAMin", + "Path": "/dev/cpuctl/top-app/cpu.uclamp.min", + "Values": [ + "0", + "50", + "100" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, + { + "Name": "UclampTALatency", + "Path": "/dev/cpuctl/top-app/cpu.uclamp.latency_sensitive", + "Values": [ + "1", + "0" + ], + "ResetOnInit": true + }, + { + "Name": "UclampFgMin", + "Path": "/dev/cpuctl/foreground/cpu.uclamp.min", + "Values": [ + "0", + "100" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "GPUMaxFreq", "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/max_freq", @@ -94,15 +124,6 @@ ], "ResetOnInit": true }, - { - "Name": "TASchedtuneBoost", - "Path": "/dev/stune/top-app/schedtune.boost", - "Values": [ - "50", - "10" - ], - "ResetOnInit": true - }, { "Name": "CPUBWHystTriggerCount", "Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/hyst_trigger_count", @@ -168,15 +189,6 @@ ], "ResetOnInit": true }, - { - "Name": "SchedBoost", - "Path": "/proc/sys/kernel/sched_boost", - "Values": [ - "1", - "0" - ], - "ResetOnInit": true - }, { "Name": "PowerHALMainState", "Path": "vendor.powerhal.state", @@ -244,10 +256,16 @@ }, { "PowerHint": "INTERACTION", - "Node": "TASchedtuneBoost", + "Node": "UclampTAMin", "Duration": 0, "Value": "50" }, + { + "PowerHint": "INTERACTION", + "Node": "UclampTALatency", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "INTERACTION", "Node": "CPUBWHystTriggerCount", @@ -272,12 +290,6 @@ "Duration": 0, "Value": "5931" }, - { - "PowerHint": "LAUNCH", - "Node": "SchedBoost", - "Duration": 5000, - "Value": "1" - }, { "PowerHint": "LAUNCH", "Node": "CPUBigClusterMaxFreq", @@ -296,6 +308,18 @@ "Duration": 5000, "Value": "9999999" }, + { + "PowerHint": "LAUNCH", + "Node": "UclampTAMin", + "Duration": 3000, + "Value": "50" + }, + { + "PowerHint": "LAUNCH", + "Node": "UclampFgMin", + "Duration": 3000, + "Value": "100" + }, { "PowerHint": "LAUNCH", "Node": "CPUBWHystTriggerCount",