From 36d3269758bdbda7f57f849907738783acfd537b Mon Sep 17 00:00:00 2001 From: Taeju Park Date: Tue, 7 May 2024 00:45:16 +0000 Subject: [PATCH 1/3] powerhint: add PMU_FORCE_LIMIT control knob Bug: 335331630 Change-Id: Ie57a34546b0b28c323f3851b1f5a210a65a904d4 Signed-off-by: Taeju Park --- powerhint-comet.json | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/powerhint-comet.json b/powerhint-comet.json index 3e36677..0a054bc 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -579,6 +579,15 @@ ], "DefaultIndex": 0 }, + { + "Name": "PMU_FORCE_LIMIT", + "Path": "/proc/vendor_sched/pmu_force_limited", + "Values": [ + "1", + "0" + ], + "DefaultIndex": 0 + }, { "Name": "EM_Profile", "Path": "/sys/kernel/pixel_em/active_profile", @@ -1763,6 +1772,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "EM_Profile", @@ -1895,6 +1910,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "EM_Profile", @@ -2051,6 +2072,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "EM_Profile", @@ -2351,6 +2378,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", "Node": "PMU_LIT_LIMIT_FREQ", @@ -2545,6 +2578,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "LOW_POWER", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "LOW_POWER", "Node": "BigTjOffset", @@ -2670,6 +2709,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", "Node": "BigTjOffset", @@ -2994,6 +3039,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_PROJECT11", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_PROJECT11", "Node": "EM_Profile", From 1c5e52ad45b03209f43fdcc5b169a8f692549fe4 Mon Sep 17 00:00:00 2001 From: sashwinbalaji Date: Thu, 9 May 2024 00:32:21 +0800 Subject: [PATCH 2/3] thermal: Update vskin-close-sub-1 equation Update vskin-close subsenor equation to better correlate for safety cases. Bug: 338512090 Test: Push config and verify lshal Change-Id: I679ee99227bd39c9d0b3615dec82a186ab524866 --- thermal/thermal_info_config_comet.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/thermal/thermal_info_config_comet.json b/thermal/thermal_info_config_comet.json index f225c00..290607c 100644 --- a/thermal/thermal_info_config_comet.json +++ b/thermal/thermal_info_config_comet.json @@ -165,8 +165,8 @@ "VirtualSensor": true, "Formula": "WEIGHTED_AVG", "Combination": ["rffe_therm", "charger_therm", "gnss_tcxo_therm"], - "Coefficient": [0.588, 0.066, 0.306], - "Offset": 967, + "Coefficient": [0.312, 0.32, 0.333], + "Offset": 51, "Multiplier": 0.001 }, { @@ -215,7 +215,7 @@ { "Name": "VIRTUAL-SKIN-LEGACY", "Type": "UNKNOWN", - "Version": "2.0", + "Version": "2.1", "VirtualSensor": true, "Hidden": true, "Formula": "WEIGHTED_AVG", @@ -249,7 +249,7 @@ { "Name": "VIRTUAL-SKIN", "Type": "SKIN", - "Version": "2.1", + "Version": "2.2", "VirtualSensor": true, "TriggerSensor": ["soc_therm", "rffe_therm", "charger_therm", "modem_therm", "gnss_tcxo_therm"], "Formula": "MAXIMUM", From da6202ec642f2350929adb2d141eefb03415802b Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Thu, 9 May 2024 16:27:35 +0000 Subject: [PATCH 3/3] Set big core to group_cfs_skip_mask for sys group Set big core to group_cfs_skip_mask for sys group when screen is off, so that sys group tasks will run less in big core. Bug: 328210236 Test: suspend/resume test Change-Id: I2f517cb891b4c0ead0f61f7102c3d602eb383471 --- powerhint-comet.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/powerhint-comet.json b/powerhint-comet.json index e62ffb1..195f749 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -223,6 +223,16 @@ ], "ResetOnInit": true }, + { + "Name": "SysGroupCfsSkipMask", + "Path": "/proc/vendor_sched/groups/sys/group_cfs_skip_mask", + "Values": [ + "0x0", + "0x80" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "BGUClampMaxBoost", "Path": "/proc/vendor_sched/groups/bg/uclamp_max", @@ -1277,6 +1287,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "SysGroupCfsSkipMask", + "Duration": 0, + "Value": "0x80" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "CPUSkipMask",