From 4fe16883a8debc1a8301e2f0126c60453289327e Mon Sep 17 00:00:00 2001 From: Richard Chang Date: Fri, 21 Jun 2024 06:47:35 +0000 Subject: [PATCH] Reapply "powerhint: add proactive kill hint for camera launch" This reverts commit 09e63f9519b58bf483fa15468075b679ec581b8a. Bug: 322916612 Test: local test Flag: EXEMPT resource only update Change-Id: Ida78f3e34cd7ac29b9d6311b6c1afb6f57bca224 --- perf/powerhint-caiman.json | 32 +++++++++++++++++++++++++++++++ perf/powerhint-komodo.json | 32 +++++++++++++++++++++++++++++++ perf/powerhint-ripcurrent24.json | 32 +++++++++++++++++++++++++++++++ perf/powerhint-ripcurrentpro.json | 32 +++++++++++++++++++++++++++++++ perf/powerhint-tokay.json | 32 +++++++++++++++++++++++++++++++ perf/powerhint-zuma.json | 32 +++++++++++++++++++++++++++++++ 6 files changed, 192 insertions(+) diff --git a/perf/powerhint-caiman.json b/perf/powerhint-caiman.json index ff404d7e..a40d9a2c 100644 --- a/perf/powerhint-caiman.json +++ b/perf/powerhint-caiman.json @@ -476,6 +476,16 @@ "Type": "Property", "ResetOnInit": true }, + { + "Name": "PowerHALLaunch", + "Path": "vendor.powerhal.is_launch", + "Values": [ + "1", + "0" + ], + "Type": "Property", + "ResetOnInit": true + }, { "Name": "BigTjOffset", "Path": "/sys/devices/platform/100a0000.BIG/offset_enabled", @@ -829,6 +839,15 @@ "67000" ], "ResetOnInit": true + }, + { + "Name": "PA_KILL", + "Path": "/sys/kernel/vendor_mm/pa_kill/reclaim_kb", + "Values": [ + "102400", + "0" + ], + "ResetOnInit": false } ], "Actions": [ @@ -1009,6 +1028,12 @@ "Duration": 5000, "Value": "1" }, + { + "PowerHint": "LAUNCH", + "Node": "PowerHALLaunch", + "Duration": 5000, + "Value": "1" + }, { "PowerHint": "LAUNCH_EXTEND", "Node": "CPUSkipMask", @@ -1289,6 +1314,13 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "PA_KILL", + "EnableProperty": "vendor.powerhal.is_launch", + "Duration": 0, + "Value": "102400" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "CPUSkipMask", diff --git a/perf/powerhint-komodo.json b/perf/powerhint-komodo.json index 50953df9..71b3d623 100644 --- a/perf/powerhint-komodo.json +++ b/perf/powerhint-komodo.json @@ -476,6 +476,16 @@ "Type": "Property", "ResetOnInit": true }, + { + "Name": "PowerHALLaunch", + "Path": "vendor.powerhal.is_launch", + "Values": [ + "1", + "0" + ], + "Type": "Property", + "ResetOnInit": true + }, { "Name": "BigTjOffset", "Path": "/sys/devices/platform/100a0000.BIG/offset_enabled", @@ -829,6 +839,15 @@ "67000" ], "ResetOnInit": true + }, + { + "Name": "PA_KILL", + "Path": "/sys/kernel/vendor_mm/pa_kill/reclaim_kb", + "Values": [ + "102400", + "0" + ], + "ResetOnInit": false } ], "Actions": [ @@ -1009,6 +1028,12 @@ "Duration": 5000, "Value": "1" }, + { + "PowerHint": "LAUNCH", + "Node": "PowerHALLaunch", + "Duration": 5000, + "Value": "1" + }, { "PowerHint": "LAUNCH_EXTEND", "Node": "CPUSkipMask", @@ -1289,6 +1314,13 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "PA_KILL", + "EnableProperty": "vendor.powerhal.is_launch", + "Duration": 0, + "Value": "102400" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "CPUSkipMask", diff --git a/perf/powerhint-ripcurrent24.json b/perf/powerhint-ripcurrent24.json index 8d96044b..65b6bc36 100644 --- a/perf/powerhint-ripcurrent24.json +++ b/perf/powerhint-ripcurrent24.json @@ -337,6 +337,16 @@ "Type": "Property", "ResetOnInit": true }, + { + "Name": "PowerHALLaunch", + "Path": "vendor.powerhal.is_launch", + "Values": [ + "1", + "0" + ], + "Type": "Property", + "ResetOnInit": true + }, { "Name": "INTCAMFreq", "Path": "/sys/devices/platform/17000030.devfreq_intcam/devfreq/17000030.devfreq_intcam/min_freq", @@ -594,6 +604,15 @@ "0,1,2,3,4,5,6,7,8" ], "Type": "Property" + }, + { + "Name": "PA_KILL", + "Path": "/sys/kernel/vendor_mm/pa_kill/reclaim_kb", + "Values": [ + "102400", + "0" + ], + "ResetOnInit": false } ], "Actions": [ @@ -704,6 +723,12 @@ "EnableProperty": "vendor.powerhal.camerarunning", "Value": "CDMIDHIGHCPUSETCPUS_RESTRICTED" }, + { + "PowerHint": "LAUNCH", + "Node": "PowerHALLaunch", + "Duration": 5000, + "Value": "1" + }, { "PowerHint": "LAUNCH_PMU", "Node": "PMU_POLL", @@ -722,6 +747,13 @@ "Duration": 33, "Value": "820000" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "PA_KILL", + "EnableProperty": "vendor.powerhal.is_launch", + "Duration": 0, + "Value": "102400" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", diff --git a/perf/powerhint-ripcurrentpro.json b/perf/powerhint-ripcurrentpro.json index f66453e7..a64f048f 100644 --- a/perf/powerhint-ripcurrentpro.json +++ b/perf/powerhint-ripcurrentpro.json @@ -530,6 +530,16 @@ "Type": "Property", "ResetOnInit": true }, + { + "Name": "PowerHALLaunch", + "Path": "vendor.powerhal.is_launch", + "Values": [ + "1", + "0" + ], + "Type": "Property", + "ResetOnInit": true + }, { "Name": "INTCAMFreq", "Path": "/sys/devices/platform/17000030.devfreq_intcam/devfreq/17000030.devfreq_intcam/min_freq", @@ -817,6 +827,15 @@ "20 40" ], "ResetOnInit": true + }, + { + "Name": "PA_KILL", + "Path": "/sys/kernel/vendor_mm/pa_kill/reclaim_kb", + "Values": [ + "102400", + "0" + ], + "ResetOnInit": false } ], "Actions": [ @@ -997,6 +1016,12 @@ "Duration": 5000, "Value": "1" }, + { + "PowerHint": "LAUNCH", + "Node": "PowerHALLaunch", + "Duration": 5000, + "Value": "1" + }, { "PowerHint": "LAUNCH_EXTEND", "Node": "CPUSkipMask", @@ -1277,6 +1302,13 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "PA_KILL", + "EnableProperty": "vendor.powerhal.is_launch", + "Duration": 0, + "Value": "102400" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "CPUSkipMask", diff --git a/perf/powerhint-tokay.json b/perf/powerhint-tokay.json index ff404d7e..a40d9a2c 100644 --- a/perf/powerhint-tokay.json +++ b/perf/powerhint-tokay.json @@ -476,6 +476,16 @@ "Type": "Property", "ResetOnInit": true }, + { + "Name": "PowerHALLaunch", + "Path": "vendor.powerhal.is_launch", + "Values": [ + "1", + "0" + ], + "Type": "Property", + "ResetOnInit": true + }, { "Name": "BigTjOffset", "Path": "/sys/devices/platform/100a0000.BIG/offset_enabled", @@ -829,6 +839,15 @@ "67000" ], "ResetOnInit": true + }, + { + "Name": "PA_KILL", + "Path": "/sys/kernel/vendor_mm/pa_kill/reclaim_kb", + "Values": [ + "102400", + "0" + ], + "ResetOnInit": false } ], "Actions": [ @@ -1009,6 +1028,12 @@ "Duration": 5000, "Value": "1" }, + { + "PowerHint": "LAUNCH", + "Node": "PowerHALLaunch", + "Duration": 5000, + "Value": "1" + }, { "PowerHint": "LAUNCH_EXTEND", "Node": "CPUSkipMask", @@ -1289,6 +1314,13 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "PA_KILL", + "EnableProperty": "vendor.powerhal.is_launch", + "Duration": 0, + "Value": "102400" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "CPUSkipMask", diff --git a/perf/powerhint-zuma.json b/perf/powerhint-zuma.json index 84f89f21..4d6090b4 100644 --- a/perf/powerhint-zuma.json +++ b/perf/powerhint-zuma.json @@ -485,6 +485,16 @@ "Type": "Property", "ResetOnInit": true }, + { + "Name": "PowerHALLaunch", + "Path": "vendor.powerhal.is_launch", + "Values": [ + "1", + "0" + ], + "Type": "Property", + "ResetOnInit": true + }, { "Name": "INTCAMFreq", "Path": "/sys/devices/platform/17000030.devfreq_intcam/devfreq/17000030.devfreq_intcam/min_freq", @@ -778,6 +788,15 @@ "20 40" ], "ResetOnInit": true + }, + { + "Name": "PA_KILL", + "Path": "/sys/kernel/vendor_mm/pa_kill/reclaim_kb", + "Values": [ + "102400", + "0" + ], + "ResetOnInit": false } ], "Actions": [ @@ -934,6 +953,12 @@ "Duration": 5000, "Value": "1" }, + { + "PowerHint": "LAUNCH", + "Node": "PowerHALLaunch", + "Duration": 5000, + "Value": "1" + }, { "PowerHint": "LAUNCH_EXTEND", "Node": "CPUBigClusterMaxFreq", @@ -1077,6 +1102,13 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "PA_KILL", + "EnableProperty": "vendor.powerhal.is_launch", + "Duration": 0, + "Value": "102400" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "CPU_BIG_TSKIN_BYPASS",