Update power hint for camera workload
1) Enable prefer_high_cap_enable 2) Set high_capacity_start_cpu to 4 3) Set cpu.uclamp.latency_sensitive to 0 4) Change camera-daemon/cpu.uclamp.latency_sensitive owner to root Bug: 186564130 Test: Boot & check setting values Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I4ea14e82bf65f72a1113359cd163230a767e816b
This commit is contained in:
parent
82acc06cbe
commit
e895392c27
3 changed files with 49 additions and 10 deletions
|
@ -120,7 +120,7 @@ on init
|
|||
# change permissions and default values for camera-daemon cpu controller
|
||||
chown system system /dev/cpuctl/camera-daemon/cpu.uclamp.min
|
||||
chown system system /dev/cpuctl/camera-daemon/cpu.uclamp.max
|
||||
chown system system /dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive
|
||||
chown root root /dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive
|
||||
chown system system /dev/cpuctl/camera-daemon/cgroup.procs
|
||||
write /dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive 1
|
||||
write /dev/cpuctl/camera-daemon/cpu.uclamp.min 1
|
||||
|
|
|
@ -105,6 +105,15 @@
|
|||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CDLatencySensitive",
|
||||
"Path": "/dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive",
|
||||
"Values": [
|
||||
"0",
|
||||
"1"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "F2fsRecessModeEnable",
|
||||
"Path": "/dev/sys/fs/by-name/userdata/gc_urgent",
|
||||
|
@ -123,6 +132,15 @@
|
|||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "HighCapacityStartCpu",
|
||||
"Path": "/sys/kernel/vendor_sched/high_capacity_start_cpu",
|
||||
"Values": [
|
||||
"4",
|
||||
"6"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "LimitFlashCurrent",
|
||||
"Path": "vendor.camera.max_flash_current",
|
||||
|
@ -316,6 +334,18 @@
|
|||
"Duration": 0,
|
||||
"Value": "1826000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "CAMERA_STREAMING_HIGH",
|
||||
"Node": "PreferHighCapEnable",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "CAMERA_STREAMING_HIGH",
|
||||
"Node": "HighCapacityStartCpu",
|
||||
"Duration": 0,
|
||||
"Value": "4"
|
||||
},
|
||||
{
|
||||
"PowerHint": "CAMERA_STREAMING_HIGH",
|
||||
"Node": "CPULittleClusterMaxFreq",
|
||||
|
@ -334,6 +364,24 @@
|
|||
"Duration": 0,
|
||||
"Value": "20 10 80"
|
||||
},
|
||||
{
|
||||
"PowerHint": "CAMERA_STREAMING_STANDARD",
|
||||
"Node": "PreferHighCapEnable",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "CAMERA_STREAMING_STANDARD",
|
||||
"Node": "HighCapacityStartCpu",
|
||||
"Duration": 0,
|
||||
"Value": "4"
|
||||
},
|
||||
{
|
||||
"PowerHint": "CAMERA_STREAMING_STANDARD",
|
||||
"Node": "CDLatencySensitive",
|
||||
"Duration": 0,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "CAMERA_STREAMING_STANDARD",
|
||||
"Node": "CPUBigClusterMaxFreq",
|
||||
|
|
|
@ -10,15 +10,6 @@
|
|||
"Controller": "cpu",
|
||||
"Path": "top-app"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "WriteFile",
|
||||
"Params":
|
||||
{
|
||||
"FilePath": "/sys/kernel/vendor_sched/set_prefer_high_cap",
|
||||
"Value": "<pid>",
|
||||
"LogFailures": "false"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue