Update power hint for camera workload

1) Enable prefer_high_cap of camera vendor group
2) Set high_capacity_start_cpu to 4
3) Set prefer_idle of camera vendor group to 0
4) Set MemFreq floor
5) Change camera-daemon/cpu.uclamp.latency_sensitive owner to root

Bug: 186564130
Test: Boot & check setting values
Change-Id: Ief0cae2aa9e4f84bed93f7de0bfb765e8a27009b
This commit is contained in:
Jia-yi Chen 2021-05-11 16:53:57 -07:00 committed by TreeHugger Robot
parent cd64c6b386
commit 7d81ea9443
2 changed files with 71 additions and 1 deletions

View file

@ -115,7 +115,7 @@ on init
# change permissions and default values for camera-daemon cpu controller # 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.min
chown system system /dev/cpuctl/camera-daemon/cpu.uclamp.max 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 chown system system /dev/cpuctl/camera-daemon/cgroup.procs
write /sys/kernel/vendor_sched/cam_prefer_idle 1 write /sys/kernel/vendor_sched/cam_prefer_idle 1

View file

@ -5,6 +5,7 @@
"Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq", "Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq",
"Values": [ "Values": [
"3172000", "3172000",
"1014000",
"421000" "421000"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -105,6 +106,15 @@
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "CDPreferIdle",
"Path": "/sys/kernel/vendor_sched/cam_prefer_idle",
"Values": [
"0",
"1"
],
"ResetOnInit": true
},
{ {
"Name": "F2fsRecessModeEnable", "Name": "F2fsRecessModeEnable",
"Path": "/dev/sys/fs/by-name/userdata/gc_urgent", "Path": "/dev/sys/fs/by-name/userdata/gc_urgent",
@ -114,6 +124,24 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "CDPreferHighCap",
"Path": "/sys/kernel/vendor_sched/cam_prefer_high_cap",
"Values": [
"1",
"0"
],
"ResetOnInit": true
},
{
"Name": "HighCapacityStartCpu",
"Path": "/sys/kernel/vendor_sched/high_capacity_start_cpu",
"Values": [
"4",
"6"
],
"ResetOnInit": true
},
{ {
"Name": "LimitFlashCurrent", "Name": "LimitFlashCurrent",
"Path": "vendor.camera.max_flash_current", "Path": "vendor.camera.max_flash_current",
@ -307,6 +335,18 @@
"Duration": 0, "Duration": 0,
"Value": "1826000" "Value": "1826000"
}, },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CDPreferHighCap",
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "HighCapacityStartCpu",
"Duration": 0,
"Value": "4"
},
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPULittleClusterMaxFreq", "Node": "CPULittleClusterMaxFreq",
@ -319,12 +359,36 @@
"Duration": 0, "Duration": 0,
"Value": "302000" "Value": "302000"
}, },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "MemFreq",
"Duration": 0,
"Value": "1014000"
},
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "MIFTargetLoad", "Node": "MIFTargetLoad",
"Duration": 0, "Duration": 0,
"Value": "20 10 80" "Value": "20 10 80"
}, },
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CDPreferHighCap",
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "HighCapacityStartCpu",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CDPreferIdle",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "CAMERA_STREAMING_STANDARD", "PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPUBigClusterMaxFreq", "Node": "CPUBigClusterMaxFreq",
@ -343,6 +407,12 @@
"Duration": 0, "Duration": 0,
"Value": "302000" "Value": "302000"
}, },
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "MemFreq",
"Duration": 0,
"Value": "1014000"
},
{ {
"PowerHint": "CAMERA_STREAMING_STANDARD", "PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "MIFTargetLoad", "Node": "MIFTargetLoad",