Relax PMU capping during CAMERA_ZOOMING_BOOST

ag/24163297 defines a new power boost profile which gets applied during
camera transitioning its zoom ratio. This CL defines the parameters for
this boost profile to enhance the camera performance by relaxing the PMU
capping, which is achieved by setting the SPC thresholds to 100.

Bug: 291979193
Test: perfetto trace (https://ui.perfetto.dev/#!/?s=ee36305fa386b5e1825fe9982b984190b1c804cd3c2d0b0fe9c85b9df94659d7)

Change-Id: Id17721719151d216fa1bd3abd7bad613a0ee1c7b
This commit is contained in:
Ali K. Zadeh 2023-07-21 17:28:54 +00:00
parent d28196ccc3
commit 137a4098bd
3 changed files with 90 additions and 6 deletions

View file

@ -298,9 +298,10 @@
"Name": "CDPreferIdle",
"Path": "/proc/vendor_sched/cam_prefer_idle",
"Values": [
"0",
"1"
"1",
"0"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
@ -652,6 +653,7 @@
"Name": "PMU_LIT_SPC_THRESHOLD",
"Path": "/sys/devices/system/cpu/cpufreq/policy0/sched_pixel/spc_threshold",
"Values": [
"100",
"70",
"42",
"35",
@ -683,6 +685,7 @@
"Name": "PMU_MID_SPC_THRESHOLD",
"Path": "/sys/devices/system/cpu/cpufreq/policy4/sched_pixel/spc_threshold",
"Values": [
"100",
"50",
"30",
"20",
@ -712,6 +715,7 @@
"Name": "PMU_BIG_SPC_THRESHOLD",
"Path": "/sys/devices/system/cpu/cpufreq/policy8/sched_pixel/spc_threshold",
"Values": [
"100",
"50",
"22",
"20"
@ -1194,6 +1198,30 @@
"Duration": 1000,
"Value": "664000"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "CDPreferIdle",
"Duration": 100,
"Value": "1"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "PMU_LIT_SPC_THRESHOLD",
"Duration": 100,
"Value": "100"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "PMU_MID_SPC_THRESHOLD",
"Duration": 100,
"Value": "100"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "PMU_BIG_SPC_THRESHOLD",
"Duration": 100,
"Value": "100"
},
{
"PowerHint": "GCA_CAMERA_SHOT_BIGCPU_RANK1",
"Node": "TAPreferHighCap",

View file

@ -281,9 +281,10 @@
"Name": "CDPreferIdle",
"Path": "/proc/vendor_sched/cam_prefer_idle",
"Values": [
"0",
"1"
"1",
"0"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
@ -635,6 +636,7 @@
"Name": "PMU_LIT_SPC_THRESHOLD",
"Path": "/sys/devices/system/cpu/cpufreq/policy0/sched_pixel/spc_threshold",
"Values": [
"100",
"70",
"42",
"35",
@ -666,6 +668,7 @@
"Name": "PMU_MID_SPC_THRESHOLD",
"Path": "/sys/devices/system/cpu/cpufreq/policy4/sched_pixel/spc_threshold",
"Values": [
"100",
"50",
"30",
"20",
@ -695,6 +698,7 @@
"Name": "PMU_BIG_SPC_THRESHOLD",
"Path": "/sys/devices/system/cpu/cpufreq/policy8/sched_pixel/spc_threshold",
"Values": [
"100",
"50",
"22",
"20"
@ -1131,6 +1135,30 @@
"Duration": 1000,
"Value": "664000"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "CDPreferIdle",
"Duration": 100,
"Value": "1"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "PMU_LIT_SPC_THRESHOLD",
"Duration": 100,
"Value": "100"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "PMU_MID_SPC_THRESHOLD",
"Duration": 100,
"Value": "100"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "PMU_BIG_SPC_THRESHOLD",
"Duration": 100,
"Value": "100"
},
{
"PowerHint": "GCA_CAMERA_SHOT_BIGCPU",
"Node": "TAPreferHighCap",

View file

@ -288,9 +288,10 @@
"Name": "CDPreferIdle",
"Path": "/proc/vendor_sched/cam_prefer_idle",
"Values": [
"0",
"1"
"1",
"0"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
@ -652,6 +653,7 @@
"Name": "PMU_LIT_SPC_THRESHOLD",
"Path": "/sys/devices/system/cpu/cpufreq/policy0/sched_pixel/spc_threshold",
"Values": [
"100",
"70",
"42",
"35",
@ -683,6 +685,7 @@
"Name": "PMU_MID_SPC_THRESHOLD",
"Path": "/sys/devices/system/cpu/cpufreq/policy4/sched_pixel/spc_threshold",
"Values": [
"100",
"50",
"30",
"20",
@ -712,6 +715,7 @@
"Name": "PMU_BIG_SPC_THRESHOLD",
"Path": "/sys/devices/system/cpu/cpufreq/policy8/sched_pixel/spc_threshold",
"Values": [
"100",
"50",
"22",
"20"
@ -1194,6 +1198,30 @@
"Duration": 1000,
"Value": "664000"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "CDPreferIdle",
"Duration": 100,
"Value": "1"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "PMU_LIT_SPC_THRESHOLD",
"Duration": 100,
"Value": "100"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "PMU_MID_SPC_THRESHOLD",
"Duration": 100,
"Value": "100"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "PMU_BIG_SPC_THRESHOLD",
"Duration": 100,
"Value": "100"
},
{
"PowerHint": "GCA_CAMERA_SHOT_BIGCPU",
"Node": "TAPreferHighCap",