Revert^2 "Set max load balance to 4, reduce Downrate Limit for lit and mid cores"

This reverts commit e00b219010.

Reason for revert: Fix the tokay powerhint

Test: tokay device boots successfully
Bug: 354763942

Change-Id: I218bd68a770bf8af43f154a51cdc31521486950f
This commit is contained in:
Ali K. Zadeh 2024-08-17 14:08:16 +00:00
parent 92c0769fa8
commit f5d247a3f2
4 changed files with 136 additions and 18 deletions

View file

@ -56,6 +56,7 @@
"Values": [
"5000",
"2000",
"1000",
"500"
],
"DefaultIndex": 0,
@ -94,6 +95,7 @@
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/down_rate_limit_us",
"Values": [
"20000",
"5000",
"3000",
"2000",
"500"
@ -949,6 +951,16 @@
"200"
],
"ResetOnInit": true
},
{
"Name": "MaxLoadBalanceInterval",
"Path": "/proc/vendor_sched/max_load_balance_interval",
"Values": [
"1",
"4"
],
"DefaultIndex": 0,
"ResetOnInit": true
}
],
"Actions": [
@ -2019,13 +2031,13 @@
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
"Value": "1000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
@ -2111,6 +2123,12 @@
"Duration": 0,
"Value": "0x0"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "MaxLoadBalanceInterval",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "PowerHALCameraRunning",
@ -2193,13 +2211,13 @@
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
"Value": "1000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
@ -2303,6 +2321,12 @@
"Duration": 0,
"Value": "0x80"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "MaxLoadBalanceInterval",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "AutoPreferIdle",
@ -2391,13 +2415,13 @@
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
"Value": "1000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
@ -2477,6 +2501,12 @@
"Duration": 0,
"Value": "0x80"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "MaxLoadBalanceInterval",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "AutoPreferIdle",

View file

@ -56,6 +56,7 @@
"Values": [
"5000",
"2000",
"1000",
"500"
],
"DefaultIndex": 0,
@ -94,6 +95,7 @@
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/down_rate_limit_us",
"Values": [
"20000",
"5000",
"3000",
"2000",
"500"
@ -949,6 +951,16 @@
"200"
],
"ResetOnInit": true
},
{
"Name": "MaxLoadBalanceInterval",
"Path": "/proc/vendor_sched/max_load_balance_interval",
"Values": [
"1",
"4"
],
"DefaultIndex": 0,
"ResetOnInit": true
}
],
"Actions": [
@ -2019,13 +2031,13 @@
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
"Value": "1000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
@ -2111,6 +2123,12 @@
"Duration": 0,
"Value": "0x0"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "MaxLoadBalanceInterval",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "PowerHALCameraRunning",
@ -2193,13 +2211,13 @@
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
"Value": "1000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
@ -2303,6 +2321,12 @@
"Duration": 0,
"Value": "0x80"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "MaxLoadBalanceInterval",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "AutoPreferIdle",
@ -2391,13 +2415,13 @@
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
"Value": "1000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
@ -2477,6 +2501,12 @@
"Duration": 0,
"Value": "0x80"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "MaxLoadBalanceInterval",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "AutoPreferIdle",

View file

@ -875,6 +875,16 @@
"200"
],
"ResetOnInit": true
},
{
"Name": "MaxLoadBalanceInterval",
"Path": "/proc/vendor_sched/max_load_balance_interval",
"Values": [
"1",
"4"
],
"DefaultIndex": 0,
"ResetOnInit": true
}
],
"Actions": [
@ -1995,6 +2005,12 @@
"Duration": 0,
"Value": "0x0"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "MaxLoadBalanceInterval",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "PowerHALCameraRunning",
@ -2151,6 +2167,12 @@
"Duration": 0,
"Value": "0x80"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "MaxLoadBalanceInterval",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "AutoPreferIdle",
@ -2289,6 +2311,12 @@
"Duration": 0,
"Value": "0x80"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "MaxLoadBalanceInterval",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "AutoPreferIdle",

View file

@ -56,6 +56,7 @@
"Values": [
"5000",
"2000",
"1000",
"500"
],
"DefaultIndex": 0,
@ -94,6 +95,7 @@
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/down_rate_limit_us",
"Values": [
"20000",
"5000",
"3000",
"2000",
"500"
@ -949,6 +951,16 @@
"200"
],
"ResetOnInit": true
},
{
"Name": "MaxLoadBalanceInterval",
"Path": "/proc/vendor_sched/max_load_balance_interval",
"Values": [
"1",
"4"
],
"DefaultIndex": 0,
"ResetOnInit": true
}
],
"Actions": [
@ -2019,13 +2031,13 @@
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
"Value": "1000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
@ -2111,6 +2123,12 @@
"Duration": 0,
"Value": "0x0"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "MaxLoadBalanceInterval",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "PowerHALCameraRunning",
@ -2193,13 +2211,13 @@
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
"Value": "1000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
@ -2303,6 +2321,12 @@
"Duration": 0,
"Value": "0x80"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "MaxLoadBalanceInterval",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "AutoPreferIdle",
@ -2391,13 +2415,13 @@
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
"Value": "1000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
@ -2477,6 +2501,12 @@
"Duration": 0,
"Value": "0x80"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "MaxLoadBalanceInterval",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "AutoPreferIdle",