Merge "Powerhint tuning for photo capture" into main

This commit is contained in:
Zorah Chen 2024-07-12 05:54:56 +00:00 committed by Android (Google) Code Review
commit 0495e5cffe
4 changed files with 355 additions and 7 deletions

View file

@ -337,6 +337,42 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAUclampMinOnNiceEnable",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_enable",
"Values": [
"1",
"0"
],
"ResetOnInit": true
},
{
"Name": "TAUclampMinOnNiceMidValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value",
"Values": [
"600",
"0"
],
"ResetOnInit": true
},
{
"Name": "TAUclampMinOnNiceHighPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio",
"Values": [
"119",
"120"
],
"ResetOnInit": true
},
{
"Name": "TAUclampMinOnNiceMidPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio",
"Values": [
"128",
"130"
],
"ResetOnInit": true
},
{ {
"Name": "FGUClampBoost", "Name": "FGUClampBoost",
"Path": "/proc/vendor_sched/groups/fg/uclamp_min", "Path": "/proc/vendor_sched/groups/fg/uclamp_min",
@ -453,6 +489,7 @@
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high",
"Values": [ "Values": [
"0xff", "0xff",
"0xf0",
"0x7f" "0x7f"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -462,6 +499,7 @@
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_mid", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_mid",
"Values": [ "Values": [
"0xff", "0xff",
"0xf0",
"0x7f" "0x7f"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -471,6 +509,7 @@
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_low", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_low",
"Values": [ "Values": [
"0xff", "0xff",
"0xf0",
"0x7f" "0x7f"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -1578,9 +1617,57 @@
}, },
{ {
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUClampBoost", "Node": "ReducePreferIdle",
"Duration": 3000, "Duration": 3000,
"Value": "600" "Value": "0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferredIdleMaskHigh",
"Duration": 3000,
"Value": "0xf0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferredIdleMaskMid",
"Duration": 3000,
"Value": "0xf0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferredIdleMaskLow",
"Duration": 3000,
"Value": "0xf0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceEnable",
"Duration": 3000,
"Value": "1"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceMidValue",
"Duration": 3000,
"Value": "600"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceHighPrio",
"Duration": 3000,
"Value": "119"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceMidPrio",
"Duration": 3000,
"Value": "128"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferIdle",
"Duration": 3000,
"Value": "1"
}, },
{ {
"PowerHint": "CAMERA_THERMAL_SEVERE_BOOST", "PowerHint": "CAMERA_THERMAL_SEVERE_BOOST",

View file

@ -337,6 +337,42 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAUclampMinOnNiceEnable",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_enable",
"Values": [
"1",
"0"
],
"ResetOnInit": true
},
{
"Name": "TAUclampMinOnNiceMidValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value",
"Values": [
"600",
"0"
],
"ResetOnInit": true
},
{
"Name": "TAUclampMinOnNiceHighPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio",
"Values": [
"119",
"120"
],
"ResetOnInit": true
},
{
"Name": "TAUclampMinOnNiceMidPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio",
"Values": [
"128",
"130"
],
"ResetOnInit": true
},
{ {
"Name": "FGUClampBoost", "Name": "FGUClampBoost",
"Path": "/proc/vendor_sched/groups/fg/uclamp_min", "Path": "/proc/vendor_sched/groups/fg/uclamp_min",
@ -453,6 +489,7 @@
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high",
"Values": [ "Values": [
"0xff", "0xff",
"0xf0",
"0x7f" "0x7f"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -462,6 +499,7 @@
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_mid", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_mid",
"Values": [ "Values": [
"0xff", "0xff",
"0xf0",
"0x7f" "0x7f"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -471,6 +509,7 @@
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_low", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_low",
"Values": [ "Values": [
"0xff", "0xff",
"0xf0",
"0x7f" "0x7f"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -1576,12 +1615,60 @@
"Duration": 3000, "Duration": 3000,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "ReducePreferIdle",
"Duration": 3000,
"Value": "0"
},
{ {
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUClampBoost", "Node": "TAPreferredIdleMaskHigh",
"Duration": 3000,
"Value": "0xf0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferredIdleMaskMid",
"Duration": 3000,
"Value": "0xf0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferredIdleMaskLow",
"Duration": 3000,
"Value": "0xf0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceEnable",
"Duration": 3000,
"Value": "1"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceMidValue",
"Duration": 3000, "Duration": 3000,
"Value": "600" "Value": "600"
}, },
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceHighPrio",
"Duration": 3000,
"Value": "119"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceMidPrio",
"Duration": 3000,
"Value": "128"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferIdle",
"Duration": 3000,
"Value": "1"
},
{ {
"PowerHint": "CAMERA_THERMAL_SEVERE_BOOST", "PowerHint": "CAMERA_THERMAL_SEVERE_BOOST",
"Node": "CDPreferHighCap", "Node": "CDPreferHighCap",

View file

@ -327,6 +327,42 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAUclampMinOnNiceEnable",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_enable",
"Values": [
"1",
"0"
],
"ResetOnInit": true
},
{
"Name": "TAUclampMinOnNiceMidValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value",
"Values": [
"600",
"0"
],
"ResetOnInit": true
},
{
"Name": "TAUclampMinOnNiceHighPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio",
"Values": [
"119",
"120"
],
"ResetOnInit": true
},
{
"Name": "TAUclampMinOnNiceMidPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio",
"Values": [
"128",
"130"
],
"ResetOnInit": true
},
{ {
"Name": "FGUClampBoost", "Name": "FGUClampBoost",
"Path": "/proc/vendor_sched/groups/fg/uclamp_min", "Path": "/proc/vendor_sched/groups/fg/uclamp_min",
@ -443,6 +479,7 @@
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high",
"Values": [ "Values": [
"0xff", "0xff",
"0xf0",
"0x7f" "0x7f"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -452,6 +489,7 @@
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_mid", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_mid",
"Values": [ "Values": [
"0xff", "0xff",
"0xf0",
"0x7f" "0x7f"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -461,6 +499,7 @@
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_low", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_low",
"Values": [ "Values": [
"0xff", "0xff",
"0xf0",
"0x7f" "0x7f"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -1498,9 +1537,57 @@
}, },
{ {
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUClampBoost", "Node": "ReducePreferIdle",
"Duration": 3000, "Duration": 3000,
"Value": "600" "Value": "0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferredIdleMaskHigh",
"Duration": 3000,
"Value": "0xf0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferredIdleMaskMid",
"Duration": 3000,
"Value": "0xf0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferredIdleMaskLow",
"Duration": 3000,
"Value": "0xf0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceEnable",
"Duration": 3000,
"Value": "1"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceMidValue",
"Duration": 3000,
"Value": "600"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceHighPrio",
"Duration": 3000,
"Value": "119"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceMidPrio",
"Duration": 3000,
"Value": "128"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferIdle",
"Duration": 3000,
"Value": "1"
}, },
{ {
"PowerHint": "CAMERA_THERMAL_SEVERE_BOOST", "PowerHint": "CAMERA_THERMAL_SEVERE_BOOST",

View file

@ -337,6 +337,42 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAUclampMinOnNiceEnable",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_enable",
"Values": [
"1",
"0"
],
"ResetOnInit": true
},
{
"Name": "TAUclampMinOnNiceMidValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value",
"Values": [
"600",
"0"
],
"ResetOnInit": true
},
{
"Name": "TAUclampMinOnNiceHighPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio",
"Values": [
"119",
"120"
],
"ResetOnInit": true
},
{
"Name": "TAUclampMinOnNiceMidPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio",
"Values": [
"128",
"130"
],
"ResetOnInit": true
},
{ {
"Name": "FGUClampBoost", "Name": "FGUClampBoost",
"Path": "/proc/vendor_sched/groups/fg/uclamp_min", "Path": "/proc/vendor_sched/groups/fg/uclamp_min",
@ -453,6 +489,7 @@
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high",
"Values": [ "Values": [
"0xff", "0xff",
"0xf0",
"0x7f" "0x7f"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -462,6 +499,7 @@
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_mid", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_mid",
"Values": [ "Values": [
"0xff", "0xff",
"0xf0",
"0x7f" "0x7f"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -471,6 +509,7 @@
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_low", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_low",
"Values": [ "Values": [
"0xff", "0xff",
"0xf0",
"0x7f" "0x7f"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -1578,9 +1617,57 @@
}, },
{ {
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUClampBoost", "Node": "ReducePreferIdle",
"Duration": 3000, "Duration": 3000,
"Value": "600" "Value": "0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferredIdleMaskHigh",
"Duration": 3000,
"Value": "0xf0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferredIdleMaskMid",
"Duration": 3000,
"Value": "0xf0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferredIdleMaskLow",
"Duration": 3000,
"Value": "0xf0"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceEnable",
"Duration": 3000,
"Value": "1"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceMidValue",
"Duration": 3000,
"Value": "600"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceHighPrio",
"Duration": 3000,
"Value": "119"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAUclampMinOnNiceMidPrio",
"Duration": 3000,
"Value": "128"
},
{
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
"Node": "TAPreferIdle",
"Duration": 3000,
"Value": "1"
}, },
{ {
"PowerHint": "CAMERA_THERMAL_SEVERE_BOOST", "PowerHint": "CAMERA_THERMAL_SEVERE_BOOST",