From 3cfc93b4f68459de64f823f2ed79b79d6e152f5e Mon Sep 17 00:00:00 2001 From: Taeju Park Date: Fri, 3 May 2024 23:42:09 +0000 Subject: [PATCH] powerhint: add PMU_FORCE_LIMIT control knob Bug: 335331630 Change-Id: Idb5f21cdb98611edd07d3edcafca5699515e9bae Signed-off-by: Taeju Park --- perf/powerhint-caiman.json | 51 +++++++++++++++++++++++++++++++ perf/powerhint-komodo.json | 51 +++++++++++++++++++++++++++++++ perf/powerhint-ripcurrentpro.json | 45 +++++++++++++++++++++++++++ perf/powerhint-tokay.json | 51 +++++++++++++++++++++++++++++++ perf/powerhint-zuma.json | 36 ++++++++++++++++++++++ 5 files changed, 234 insertions(+) diff --git a/perf/powerhint-caiman.json b/perf/powerhint-caiman.json index bd9a7efe..42ff773c 100644 --- a/perf/powerhint-caiman.json +++ b/perf/powerhint-caiman.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", @@ -1764,6 +1773,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "EM_Profile", @@ -1896,6 +1911,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "EM_Profile", @@ -2058,6 +2079,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "EM_Profile", @@ -2358,6 +2385,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", @@ -2552,6 +2585,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "LOW_POWER", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "LOW_POWER", "Node": "BigTjOffset", @@ -2677,6 +2716,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", @@ -2983,6 +3028,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_PROJECT11", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_PROJECT11", "Node": "EM_Profile", diff --git a/perf/powerhint-komodo.json b/perf/powerhint-komodo.json index a513e6eb..4a868d88 100644 --- a/perf/powerhint-komodo.json +++ b/perf/powerhint-komodo.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", @@ -1764,6 +1773,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "EM_Profile", @@ -1896,6 +1911,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "EM_Profile", @@ -2058,6 +2079,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "EM_Profile", @@ -2358,6 +2385,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", @@ -2552,6 +2585,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "LOW_POWER", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "LOW_POWER", "Node": "BigTjOffset", @@ -2677,6 +2716,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", @@ -2983,6 +3028,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_PROJECT11", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_PROJECT11", "Node": "EM_Profile", diff --git a/perf/powerhint-ripcurrentpro.json b/perf/powerhint-ripcurrentpro.json index 4ed5a55f..999f0a98 100644 --- a/perf/powerhint-ripcurrentpro.json +++ b/perf/powerhint-ripcurrentpro.json @@ -663,6 +663,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", @@ -1753,6 +1762,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "EM_Profile", @@ -1885,6 +1900,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "EM_Profile", @@ -2047,6 +2068,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "EM_Profile", @@ -2347,6 +2374,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", @@ -2541,6 +2574,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "LOW_POWER", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "LOW_POWER", "Node": "BigTjOffset", @@ -2726,6 +2765,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", diff --git a/perf/powerhint-tokay.json b/perf/powerhint-tokay.json index 02d1615d..dae37274 100644 --- a/perf/powerhint-tokay.json +++ b/perf/powerhint-tokay.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", @@ -1764,6 +1773,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "EM_Profile", @@ -1896,6 +1911,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "EM_Profile", @@ -2058,6 +2079,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "EM_Profile", @@ -2358,6 +2385,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", @@ -2552,6 +2585,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "LOW_POWER", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "LOW_POWER", "Node": "BigTjOffset", @@ -2677,6 +2716,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", @@ -2983,6 +3028,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_PROJECT11", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_PROJECT11", "Node": "EM_Profile", diff --git a/perf/powerhint-zuma.json b/perf/powerhint-zuma.json index 3cd2fa90..d5649f28 100644 --- a/perf/powerhint-zuma.json +++ b/perf/powerhint-zuma.json @@ -1524,6 +1524,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "EM_Profile", @@ -1650,6 +1656,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "EM_Profile", @@ -1782,6 +1794,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "EM_Profile", @@ -2052,6 +2070,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", @@ -2246,6 +2270,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "LOW_POWER", + "Node": "PMU_FORCE_LIMIT", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "LOW_POWER", "Node": "BigTjOffset", @@ -2431,6 +2461,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",