powerhint: Add nodes to control per-task iowait boost

It's disabled by default.

Ensure camera and game mode explicitly disable it too as it is only
required when auto margins are enabled for now.

Ensure it is disabled when screen is off too as We don't want io
activities to cause wake up on bigger cores while screen is off.

Bug: 340534339
Test: build
Flag: NONE powerhint change does not support flags
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dad48beaeb9f9fce8acb67c06bfd022e86ce0e0d)
Merged-In: Ie9d20fe5ad6b423e8c26a36b7f01592040292ead
Change-Id: Ie9d20fe5ad6b423e8c26a36b7f01592040292ead
This commit is contained in:
Yvonne Yip 2024-06-17 16:41:14 -07:00
parent b804969d8f
commit 51140ac43c

View file

@ -259,6 +259,16 @@
"DefaultIndex": 2, "DefaultIndex": 2,
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "PerTaskMaxIowaitBoost",
"Path": "/proc/vendor_sched/per_task_iowait_boost_max_value",
"Values": [
"0",
"512"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{ {
"Name": "CPUUClampMaxFilterEnable", "Name": "CPUUClampMaxFilterEnable",
"Path": "/proc/vendor_sched/uclamp_max_filter_enable", "Path": "/proc/vendor_sched/uclamp_max_filter_enable",
@ -1413,6 +1423,12 @@
"Duration": 0, "Duration": 0,
"Value": "0x80" "Value": "0x80"
}, },
{
"PowerHint": "DISPLAY_INACTIVE",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
"Node": "PA_KILL", "Node": "PA_KILL",
@ -2002,6 +2018,12 @@
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "CAMERA_STREAMING_EXTREME", "PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CPULittleClusterDownRateLimitUs", "Node": "CPULittleClusterDownRateLimitUs",
@ -2170,6 +2192,12 @@
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPULittleClusterDownRateLimitUs", "Node": "CPULittleClusterDownRateLimitUs",
@ -2362,6 +2390,12 @@
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "CAMERA_STREAMING_STANDARD", "PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPULittleClusterDownRateLimitUs", "Node": "CPULittleClusterDownRateLimitUs",
@ -2470,6 +2504,12 @@
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "CAMERA_STREAMING_LOW", "PowerHint": "CAMERA_STREAMING_LOW",
"Node": "CPULittleClusterDownRateLimitUs", "Node": "CPULittleClusterDownRateLimitUs",
@ -2698,6 +2738,12 @@
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_STREAMING_VIDEO_CALL",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "CAMERA_STREAMING_VIDEO_CALL", "PowerHint": "CAMERA_STREAMING_VIDEO_CALL",
"Node": "CPUDVFSHeadroom", "Node": "CPUDVFSHeadroom",
@ -3251,6 +3297,12 @@
"Duration": 0, "Duration": 0,
"Value": "2" "Value": "2"
}, },
{
"PowerHint": "GAME",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "FACE_UNLOCK_BOOST", "PowerHint": "FACE_UNLOCK_BOOST",
"Node": "CPUMidClusterMaxFreq", "Node": "CPUMidClusterMaxFreq",
@ -3359,6 +3411,12 @@
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_PROJECT11",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "CAMERA_PROJECT11", "PowerHint": "CAMERA_PROJECT11",
"Node": "CPULittleClusterDownRateLimitUs", "Node": "CPULittleClusterDownRateLimitUs",