powerhint.json: enable gpu capacity signalling.

Enables a signal indicating that the app has janked as
detected by the ADPF API.

Test: perf / power tests
Bug: 290625326
Change-Id: I19279e0f5a5fea59ffd0728128d6170f61e8a3e2
This commit is contained in:
Kevin DuBois 2024-04-12 16:58:48 -07:00
parent af2d3563cc
commit 77e40d3a53
3 changed files with 48 additions and 18 deletions

View file

@ -3140,6 +3140,7 @@
"Value": "20 80" "Value": "20 80"
} }
], ],
"GpuSysfsPath" : "/sys/devices/platform/1f000000.mali",
"AdpfConfig": [ "AdpfConfig": [
{ {
"Name": "REFRESH_120FPS", "Name": "REFRESH_120FPS",
@ -3171,7 +3172,9 @@
"HBoostPidPuFactor": 0.5, "HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722, "HBoostUclampMin": 722,
"LowFrameRateThreshold": 25, "LowFrameRateThreshold": 25,
"MaxRecordsNum": 300 "MaxRecordsNum": 300,
"GpuBoost": true,
"GpuCapacityBoostMax": 40000
}, },
{ {
"Name": "REFRESH_90FPS", "Name": "REFRESH_90FPS",
@ -3203,7 +3206,9 @@
"HBoostPidPuFactor": 0.5, "HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722, "HBoostUclampMin": 722,
"LowFrameRateThreshold": 25, "LowFrameRateThreshold": 25,
"MaxRecordsNum": 300 "MaxRecordsNum": 300,
"GpuBoost": true,
"GpuCapacityBoostMax": 32500
}, },
{ {
"Name": "REFRESH_60FPS", "Name": "REFRESH_60FPS",
@ -3235,7 +3240,9 @@
"HBoostPidPuFactor": 0.5, "HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722, "HBoostUclampMin": 722,
"LowFrameRateThreshold": 25, "LowFrameRateThreshold": 25,
"MaxRecordsNum": 300 "MaxRecordsNum": 300,
"GpuBoost": true,
"GpuCapacityBoostMax": 25000
}, },
{ {
"Name": "UiHighBoostWithoutPid", "Name": "UiHighBoostWithoutPid",
@ -3257,7 +3264,8 @@
"UclampMin_Low": 196, "UclampMin_Low": 196,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"TargetTimeFactor": 1.0, "TargetTimeFactor": 1.0,
"StaleTimeFactor": 5.0 "StaleTimeFactor": 5.0,
"GpuBoost": false
}, },
{ {
"Name": "UiLowBoostWithoutPid", "Name": "UiLowBoostWithoutPid",
@ -3279,7 +3287,8 @@
"UclampMin_Low": 52, "UclampMin_Low": 52,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"TargetTimeFactor": 1.0, "TargetTimeFactor": 1.0,
"StaleTimeFactor": 5.0 "StaleTimeFactor": 5.0,
"GpuBoost": false
}, },
{ {
"Name": "UiLowNoneBoost", "Name": "UiLowNoneBoost",
@ -3301,7 +3310,8 @@
"UclampMin_Low": 0, "UclampMin_Low": 0,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"TargetTimeFactor": 1.0, "TargetTimeFactor": 1.0,
"StaleTimeFactor": 5.0 "StaleTimeFactor": 5.0,
"GpuBoost": false
} }
] ]
} }

View file

@ -3140,6 +3140,7 @@
"Value": "20 80" "Value": "20 80"
} }
], ],
"GpuSysfsPath" : "/sys/devices/platform/1f000000.mali",
"AdpfConfig": [ "AdpfConfig": [
{ {
"Name": "REFRESH_120FPS", "Name": "REFRESH_120FPS",
@ -3171,7 +3172,9 @@
"HBoostPidPuFactor": 0.5, "HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722, "HBoostUclampMin": 722,
"LowFrameRateThreshold": 25, "LowFrameRateThreshold": 25,
"MaxRecordsNum": 300 "MaxRecordsNum": 300,
"GpuBoost": true,
"GpuCapacityBoostMax": 40000
}, },
{ {
"Name": "REFRESH_90FPS", "Name": "REFRESH_90FPS",
@ -3203,7 +3206,9 @@
"HBoostPidPuFactor": 0.5, "HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722, "HBoostUclampMin": 722,
"LowFrameRateThreshold": 25, "LowFrameRateThreshold": 25,
"MaxRecordsNum": 300 "MaxRecordsNum": 300,
"GpuBoost": true,
"GpuCapacityBoostMax": 32500
}, },
{ {
"Name": "REFRESH_60FPS", "Name": "REFRESH_60FPS",
@ -3235,7 +3240,9 @@
"HBoostPidPuFactor": 0.5, "HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722, "HBoostUclampMin": 722,
"LowFrameRateThreshold": 25, "LowFrameRateThreshold": 25,
"MaxRecordsNum": 300 "MaxRecordsNum": 300,
"GpuBoost": true,
"GpuCapacityBoostMax": 25000
}, },
{ {
"Name": "UiHighBoostWithoutPid", "Name": "UiHighBoostWithoutPid",
@ -3257,7 +3264,8 @@
"UclampMin_Low": 196, "UclampMin_Low": 196,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"TargetTimeFactor": 1.0, "TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0 "StaleTimeFactor": 15.0,
"GpuBoost": false
}, },
{ {
"Name": "UiLowBoostWithoutPid", "Name": "UiLowBoostWithoutPid",
@ -3279,7 +3287,8 @@
"UclampMin_Low": 52, "UclampMin_Low": 52,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"TargetTimeFactor": 1.0, "TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0 "StaleTimeFactor": 15.0,
"GpuBoost": false
}, },
{ {
"Name": "UiLowNoneBoost", "Name": "UiLowNoneBoost",
@ -3301,7 +3310,8 @@
"UclampMin_Low": 0, "UclampMin_Low": 0,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"TargetTimeFactor": 1.0, "TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0 "StaleTimeFactor": 15.0,
"GpuBoost": false
} }
] ]
} }

View file

@ -3140,6 +3140,7 @@
"Value": "20 80" "Value": "20 80"
} }
], ],
"GpuSysfsPath" : "/sys/devices/platform/1f000000.mali",
"AdpfConfig": [ "AdpfConfig": [
{ {
"Name": "REFRESH_120FPS", "Name": "REFRESH_120FPS",
@ -3171,7 +3172,9 @@
"HBoostPidPuFactor": 0.5, "HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722, "HBoostUclampMin": 722,
"LowFrameRateThreshold": 25, "LowFrameRateThreshold": 25,
"MaxRecordsNum": 300 "MaxRecordsNum": 300,
"GpuBoost": true,
"GpuCapacityBoostMax": 40000
}, },
{ {
"Name": "REFRESH_90FPS", "Name": "REFRESH_90FPS",
@ -3203,7 +3206,9 @@
"HBoostPidPuFactor": 0.5, "HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722, "HBoostUclampMin": 722,
"LowFrameRateThreshold": 25, "LowFrameRateThreshold": 25,
"MaxRecordsNum": 300 "MaxRecordsNum": 300,
"GpuBoost": true,
"GpuCapacityBoostMax": 32500
}, },
{ {
"Name": "REFRESH_60FPS", "Name": "REFRESH_60FPS",
@ -3235,7 +3240,9 @@
"HBoostPidPuFactor": 0.5, "HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722, "HBoostUclampMin": 722,
"LowFrameRateThreshold": 25, "LowFrameRateThreshold": 25,
"MaxRecordsNum": 300 "MaxRecordsNum": 300,
"GpuBoost": true,
"GpuCapacityBoostMax": 25000
}, },
{ {
"Name": "UiHighBoostWithoutPid", "Name": "UiHighBoostWithoutPid",
@ -3257,7 +3264,8 @@
"UclampMin_Low": 196, "UclampMin_Low": 196,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"TargetTimeFactor": 1.0, "TargetTimeFactor": 1.0,
"StaleTimeFactor": 5.0 "StaleTimeFactor": 5.0,
"GpuBoost": false
}, },
{ {
"Name": "UiLowBoostWithoutPid", "Name": "UiLowBoostWithoutPid",
@ -3279,7 +3287,8 @@
"UclampMin_Low": 52, "UclampMin_Low": 52,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"TargetTimeFactor": 1.0, "TargetTimeFactor": 1.0,
"StaleTimeFactor": 5.0 "StaleTimeFactor": 5.0,
"GpuBoost": false
}, },
{ {
"Name": "UiLowNoneBoost", "Name": "UiLowNoneBoost",
@ -3301,7 +3310,8 @@
"UclampMin_Low": 0, "UclampMin_Low": 0,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"TargetTimeFactor": 1.0, "TargetTimeFactor": 1.0,
"StaleTimeFactor": 5.0 "StaleTimeFactor": 5.0,
"GpuBoost": false
} }
] ]
} }