From 15705aa358b5c6c5eb83b62147da7e0f6043b2d9 Mon Sep 17 00:00:00 2001 From: Richard Chang Date: Thu, 9 May 2024 10:53:29 +0000 Subject: [PATCH] powerhint: add proactive kill hint for camera launch Bug: 322916612 Test: local test Change-Id: I9f65cbbb7bcb4a85afee50d1a85a753deebd1386 --- 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 07c53e20..92e7876e 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", @@ -840,6 +850,15 @@ "67000" ], "ResetOnInit": true + }, + { + "Name": "PA_KILL", + "Path": "/sys/kernel/vendor_mm/pa_kill/reclaim_kb", + "Values": [ + "102400", + "0" + ], + "ResetOnInit": false } ], "Actions": [ @@ -1020,6 +1039,12 @@ "Duration": 5000, "Value": "1" }, + { + "PowerHint": "LAUNCH", + "Node": "PowerHALLaunch", + "Duration": 5000, + "Value": "1" + }, { "PowerHint": "LAUNCH_EXTEND", "Node": "CPUSkipMask", @@ -1306,6 +1331,13 @@ "Duration": 0, "Value": "0x80" }, + { + "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 349da779..c4d2bab0 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", @@ -840,6 +850,15 @@ "67000" ], "ResetOnInit": true + }, + { + "Name": "PA_KILL", + "Path": "/sys/kernel/vendor_mm/pa_kill/reclaim_kb", + "Values": [ + "102400", + "0" + ], + "ResetOnInit": false } ], "Actions": [ @@ -1020,6 +1039,12 @@ "Duration": 5000, "Value": "1" }, + { + "PowerHint": "LAUNCH", + "Node": "PowerHALLaunch", + "Duration": 5000, + "Value": "1" + }, { "PowerHint": "LAUNCH_EXTEND", "Node": "CPUSkipMask", @@ -1306,6 +1331,13 @@ "Duration": 0, "Value": "0x80" }, + { + "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 fb2a7028..ae1bff00 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 a3780cf4..4895bfee 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", @@ -829,6 +839,15 @@ "20 40" ], "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", @@ -1295,6 +1320,13 @@ "Duration": 0, "Value": "0x80" }, + { + "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 07c53e20..92e7876e 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", @@ -840,6 +850,15 @@ "67000" ], "ResetOnInit": true + }, + { + "Name": "PA_KILL", + "Path": "/sys/kernel/vendor_mm/pa_kill/reclaim_kb", + "Values": [ + "102400", + "0" + ], + "ResetOnInit": false } ], "Actions": [ @@ -1020,6 +1039,12 @@ "Duration": 5000, "Value": "1" }, + { + "PowerHint": "LAUNCH", + "Node": "PowerHALLaunch", + "Duration": 5000, + "Value": "1" + }, { "PowerHint": "LAUNCH_EXTEND", "Node": "CPUSkipMask", @@ -1306,6 +1331,13 @@ "Duration": 0, "Value": "0x80" }, + { + "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 7476ae4c..326c0b19 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",