From 6c209b9f12f789a2f4a6ac1b8cbf89737cd8c9d4 Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Wed, 14 Aug 2024 19:49:15 +0000 Subject: [PATCH 1/6] Set the fcc cdev_ceiling to 1A before disable charge Flag: EXEMPT tuning changes Bug: 359334468 Test: verified by emul_temp Change-Id: Ie8134847ca37eed8f925109abcb9d0afcde6d863 --- thermal_info_config_akita.json | 2 +- thermal_info_config_charge_akita.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/thermal_info_config_akita.json b/thermal_info_config_akita.json index 66b2901..34bdac1 100644 --- a/thermal_info_config_akita.json +++ b/thermal_info_config_akita.json @@ -539,7 +539,7 @@ "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], "MaxReleaseStep": 1, "MaxThrottleStep": 1, - "CdevCeiling": [0, 25, 25, 25, 26, 26, 26], + "CdevCeiling": [0, 21, 21, 21, 26, 26, 26], "LimitInfo": [0, 0, 0, 0, 0, 26, 26] } ] diff --git a/thermal_info_config_charge_akita.json b/thermal_info_config_charge_akita.json index 6c4a296..062d44b 100644 --- a/thermal_info_config_charge_akita.json +++ b/thermal_info_config_charge_akita.json @@ -112,7 +112,7 @@ "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], "MaxReleaseStep": 1, "MaxThrottleStep": 1, - "CdevCeiling": [0, 25, 25, 25, 26, 26, 26], + "CdevCeiling": [0, 21, 21, 21, 26, 26, 26], "LimitInfo": [0, 0, 0, 0, 0, 26, 26] } ] From 13d9ccb1789f25b23d44e506e1ede2d039fc93ea Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Mon, 16 Sep 2024 15:03:27 +0000 Subject: [PATCH 2/6] 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 Change-Id: I8aa7187b7178626ed8bf0e04fd7a9a46d1247bd3 --- powerhint-akita.json | 102 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 90 insertions(+), 12 deletions(-) diff --git a/powerhint-akita.json b/powerhint-akita.json index 0f0ac7b..e08e494 100644 --- a/powerhint-akita.json +++ b/powerhint-akita.json @@ -332,6 +332,51 @@ ], "ResetOnInit": true }, + { + "Name": "TAUclampMinOnNiceEnable", + "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_enable", + "Values": [ + "1", + "0" + ], + "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": [ + "570", + "0" + ], + "ResetOnInit": true + }, + { + "Name": "TAUclampMinOnNiceHighPrio", + "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio", + "Values": [ + "110", + "120" + ], + "ResetOnInit": true + }, + { + "Name": "TAUclampMinOnNiceMidPrio", + "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio", + "Values": [ + "139", + "130" + ], + "ResetOnInit": true + }, { "Name": "FGUClampBoost", "Path": "/proc/vendor_sched/groups/fg/uclamp_min", @@ -440,6 +485,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", @@ -938,12 +992,6 @@ "Duration": 5000, "Value": "615" }, - { - "PowerHint": "LAUNCH", - "Node": "TAUClampBoost", - "Duration": 5000, - "Value": "765" - }, { "PowerHint": "LAUNCH", "Node": "FGUClampBoost", @@ -1014,6 +1062,42 @@ "Duration": 5000, "Value": "1" }, + { + "PowerHint": "LAUNCH", + "Node": "TAAutoPreferFit", + "Duration": 5000, + "Value": "1" + }, + { + "PowerHint": "LAUNCH", + "Node": "TAUclampMinOnNiceEnable", + "Duration": 5000, + "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": "570" + }, + { + "PowerHint": "LAUNCH", + "Node": "TAUclampMinOnNiceMidPrio", + "Duration": 5000, + "Value": "139" + }, { "PowerHint": "LAUNCH", "Node": "FGPreferIdle", @@ -1104,12 +1188,6 @@ "Duration": 5000, "Value": "0x1ff" }, - { - "PowerHint": "LAUNCH", - "Node": "TAPreferredIdleMaskMid", - "Duration": 5000, - "Value": "0x1ff" - }, { "PowerHint": "LAUNCH_EXTEND", "Node": "FGPreferIdle", From b22f973ff09f15317274a5e97dc6c8d470631f91 Mon Sep 17 00:00:00 2001 From: "Ali K. Zadeh" Date: Wed, 9 Oct 2024 18:17:19 +0000 Subject: [PATCH 3/6] [akita] Define CAMERA_MULTICAM_BOOST This CL defines CAMERA_MULTICAM_BOOST (with the same settings as the existing CAMERA_ZOOMING_BOOST). Having both definitions is necessary to be able to transition from zooming boost to multicam boost. Once the multicam boost flag is fully rolled out, we can remove the CAMERA_ZOOMING_BOOST. Bug: 347829135 Test: adb logcat Flag: EXEMPT resource file only change Change-Id: I89f58da3836001f6dd5e566eb1520e785ac8f3de --- powerhint-akita.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/powerhint-akita.json b/powerhint-akita.json index 58e8fc1..50cccdb 100644 --- a/powerhint-akita.json +++ b/powerhint-akita.json @@ -1464,6 +1464,24 @@ "Duration": 1000, "Value": "664000" }, + { + "PowerHint": "CAMERA_MULTICAM_BOOST", + "Node": "CDPreferIdle", + "Duration": 100, + "Value": "1" + }, + { + "PowerHint": "CAMERA_MULTICAM_BOOST", + "Node": "AutoPreferIdle", + "Duration": 100, + "Value": "0" + }, + { + "PowerHint": "CAMERA_MULTICAM_BOOST", + "Node": "PMU_POLL", + "Duration": 100, + "Value": "0" + }, { "PowerHint": "CAMERA_ZOOMING_BOOST", "Node": "CDPreferIdle", From e5f155a3e3168bb232faf0bca23905903a983789 Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Thu, 10 Oct 2024 11:18:07 +0000 Subject: [PATCH 4/6] Enable TA and FG prefer idle for some camera streams These streams do not disable TA or FG prefer idle, so restore it. Bug: 236868627 Flag: NONE powerhint change does not support flags Test: build pass Change-Id: I200c45f1422dc9e7a82620e27e2885c9afe3cfb8 --- powerhint-akita.json | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/powerhint-akita.json b/powerhint-akita.json index e08e494..755dd96 100644 --- a/powerhint-akita.json +++ b/powerhint-akita.json @@ -1803,6 +1803,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "FGPreferIdle", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "AutoPreferIdle", @@ -1971,6 +1977,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "FGPreferIdle", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "AutoPreferIdle", @@ -2019,6 +2031,18 @@ "Duration": 0, "Value": "0x0" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "TAPreferIdle", + "Duration": 0, + "Value": "1" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "FGPreferIdle", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "AutoPreferIdle", @@ -2175,6 +2199,18 @@ "Duration": 0, "Value": "0x0" }, + { + "PowerHint": "CAMERA_STREAMING_LOW", + "Node": "TAPreferIdle", + "Duration": 0, + "Value": "1" + }, + { + "PowerHint": "CAMERA_STREAMING_LOW", + "Node": "FGPreferIdle", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "AutoPreferIdle", @@ -2301,6 +2337,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", + "Node": "FGPreferIdle", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", "Node": "AutoPreferIdle", From 8960e3eb3194917f83704e8e5b0dca02703d9e8e Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Fri, 11 Oct 2024 22:02:30 +0000 Subject: [PATCH 5/6] powerhint: enable auto_prefer_idle in games Bug: 372961087 Test: manual testing Flag: NONE powerhint config change Change-Id: I79251b43b1b3409b941ad45162847dece245cc9e --- powerhint-akita.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerhint-akita.json b/powerhint-akita.json index 755dd96..b0e6cc6 100644 --- a/powerhint-akita.json +++ b/powerhint-akita.json @@ -2780,7 +2780,7 @@ "PowerHint": "GAME", "Node": "AutoPreferIdle", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", From cfbfa0a3655d13b494002b5aabf0d97ae365faac Mon Sep 17 00:00:00 2001 From: Hong-Yen Lo Date: Tue, 22 Oct 2024 03:02:03 +0000 Subject: [PATCH 6/6] Enable CDPreferHighCap for CAMERA_STREAMING_HIGH for akita Test: 1080p60 power and perf, 4k60 power Bug: 371210260 Flag: EXEMPT resource file only change Change-Id: I2429f7f1ea07b877f095d3ba0954cd6851df2884 --- powerhint-akita.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerhint-akita.json b/powerhint-akita.json index 205165c..963c402 100644 --- a/powerhint-akita.json +++ b/powerhint-akita.json @@ -1969,7 +1969,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CDPreferHighCap", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "CAMERA_STREAMING_HIGH",