From 618d1d70817df0865836e2780b562aeb782c2c69 Mon Sep 17 00:00:00 2001 From: Edrick Sinsuan Date: Sun, 3 Nov 2024 21:39:35 -0500 Subject: [PATCH] msm8998-common: powerhint: Update UCLAMP configuration We were missing a lot of important powerhint configurations that can improve how we handle UCLAMP. Let's get those configurations that are appropriate for our device. Also let's use the updated values from GS101's main branch. Source: https://android.googlesource.com/device/google/gs101/+/refs/heads/main/powerhint_a0.json Signed-off-by: Edrick Sinsuan --- configs/powerhint.json | 60 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 57 insertions(+), 3 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index 75ca268..92641a0 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -55,8 +55,9 @@ "Path": "/dev/cpuctl/top-app/cpu.uclamp.min", "Values": [ "0", - "40", - "30" + "30", + "20", + "10" ], "DefaultIndex": 0, "ResetOnInit": true @@ -337,9 +338,19 @@ }, { "PowerHint": "INTERACTION", + "Type": "DoHint", + "Value": "INTERACTION_60" + }, + { + "PowerHint": "INTERACTION", + "Type": "EndHint", + "Value": "DISABLE_TA_BOOST" + }, + { + "PowerHint": "INTERACTION_60", "Node": "TAUClampBoost", "Duration": 6000, - "Value": "40" + "Value": "20" }, { "PowerHint": "INTERACTION", @@ -365,6 +376,44 @@ "Duration": 0, "Value": "5195" }, + { + "PowerHint": "REFRESH_60FPS", + "Node": "TAUClampBoost", + "Duration": 0, + "Value": "10" + }, + { + "PowerHint": "ADPF_DISABLE_TA_BOOST", + "Node": "TAUClampBoost", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "DISABLE_TA_BOOST", + "Node": "TAUClampBoost", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "DISPLAY_IDLE", + "Type": "DoHint", + "Value": "DISABLE_TA_BOOST" + }, + { + "PowerHint": "DISPLAY_IDLE", + "Type": "EndHint", + "Value": "INTERACTION_60" + }, + { + "PowerHint": "DISPLAY_IDLE", + "Type": "EndHint", + "Value": "DISPLAY_UPDATE_IMMINENT" + }, + { + "PowerHint": "DISPLAY_UPDATE_IMMINENT", + "Type": "EndHint", + "Value": "DISABLE_TA_BOOST" + }, { "PowerHint": "LAUNCH", "Node": "CPUBigClusterMaxFreq", @@ -395,6 +444,11 @@ "Duration": 5000, "Value": "30" }, + { + "PowerHint": "LAUNCH", + "Type": "EndHint", + "Value": "DISABLE_TA_BOOST" + }, { "PowerHint": "LAUNCH", "Node": "CPUBWHystTriggerCount",