Reapply "powerhint: add proactive kill hint for camera launch"

This reverts commit 09e63f9519.

Bug: 322916612
Test: local test
Flag: EXEMPT resource only update
Change-Id: Ida78f3e34cd7ac29b9d6311b6c1afb6f57bca224
This commit is contained in:
Richard Chang 2024-06-21 06:47:35 +00:00
parent 27094b46f4
commit 4fe16883a8
6 changed files with 192 additions and 0 deletions

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",