powerhint: Add nodes to control per-task iowait boost

Port from 27901981

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: 353256081
Test: Local Genshin test
Flag: NONE powerhint change does not support flags

Change-Id: Ic4ec943181885be2a788c2b8754e814826abdd24
This commit is contained in:
Paulsu Su 2024-07-17 05:26:43 +00:00
parent 9f7a17064a
commit ed7eb0272a

View file

@ -314,6 +314,16 @@
"DefaultIndex": 2,
"ResetOnInit": true
},
{
"Name": "PerTaskMaxIowaitBoost",
"Path": "/proc/vendor_sched/per_task_iowait_boost_max_value",
"Values": [
"0",
"512"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "CPUUClampMaxFilterEnable",
"Path": "/proc/vendor_sched/uclamp_max_filter_enable",
@ -1378,6 +1388,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_INACTIVE",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_INACTIVE",
"Node": "SysGroupCfsSkipMask",
@ -1966,6 +1982,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CPULittleClusterDownRateLimitUs",
@ -2134,6 +2156,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPULittleClusterDownRateLimitUs",
@ -2326,6 +2354,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPULittleClusterDownRateLimitUs",
@ -2434,6 +2468,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "CPULittleClusterDownRateLimitUs",
@ -2662,6 +2702,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_VIDEO_CALL",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_VIDEO_CALL",
"Node": "CPUDVFSHeadroom",
@ -3095,6 +3141,12 @@
"Duration": 0,
"Value": "2"
},
{
"PowerHint": "GAME",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT",
"Node": "PMU_POLL",
@ -3293,6 +3345,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_PROJECT11",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_PROJECT11",
"Node": "CPULittleClusterDownRateLimitUs",