From 77e40d3a53cc70fd1ebb2e4983cd9e220ddcbf76 Mon Sep 17 00:00:00 2001 From: Kevin DuBois Date: Fri, 12 Apr 2024 16:58:48 -0700 Subject: [PATCH] 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 --- perf/powerhint-caiman.json | 22 ++++++++++++++++------ perf/powerhint-komodo.json | 22 ++++++++++++++++------ perf/powerhint-tokay.json | 22 ++++++++++++++++------ 3 files changed, 48 insertions(+), 18 deletions(-) diff --git a/perf/powerhint-caiman.json b/perf/powerhint-caiman.json index 6070f830..6687b3b3 100644 --- a/perf/powerhint-caiman.json +++ b/perf/powerhint-caiman.json @@ -3140,6 +3140,7 @@ "Value": "20 80" } ], + "GpuSysfsPath" : "/sys/devices/platform/1f000000.mali", "AdpfConfig": [ { "Name": "REFRESH_120FPS", @@ -3171,7 +3172,9 @@ "HBoostPidPuFactor": 0.5, "HBoostUclampMin": 722, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 40000 }, { "Name": "REFRESH_90FPS", @@ -3203,7 +3206,9 @@ "HBoostPidPuFactor": 0.5, "HBoostUclampMin": 722, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 32500 }, { "Name": "REFRESH_60FPS", @@ -3235,7 +3240,9 @@ "HBoostPidPuFactor": 0.5, "HBoostUclampMin": 722, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 25000 }, { "Name": "UiHighBoostWithoutPid", @@ -3257,7 +3264,8 @@ "UclampMin_Low": 196, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false }, { "Name": "UiLowBoostWithoutPid", @@ -3279,7 +3287,8 @@ "UclampMin_Low": 52, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false }, { "Name": "UiLowNoneBoost", @@ -3301,7 +3310,8 @@ "UclampMin_Low": 0, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false } ] } diff --git a/perf/powerhint-komodo.json b/perf/powerhint-komodo.json index a15df4b1..bb5288d6 100644 --- a/perf/powerhint-komodo.json +++ b/perf/powerhint-komodo.json @@ -3140,6 +3140,7 @@ "Value": "20 80" } ], + "GpuSysfsPath" : "/sys/devices/platform/1f000000.mali", "AdpfConfig": [ { "Name": "REFRESH_120FPS", @@ -3171,7 +3172,9 @@ "HBoostPidPuFactor": 0.5, "HBoostUclampMin": 722, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 40000 }, { "Name": "REFRESH_90FPS", @@ -3203,7 +3206,9 @@ "HBoostPidPuFactor": 0.5, "HBoostUclampMin": 722, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 32500 }, { "Name": "REFRESH_60FPS", @@ -3235,7 +3240,9 @@ "HBoostPidPuFactor": 0.5, "HBoostUclampMin": 722, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 25000 }, { "Name": "UiHighBoostWithoutPid", @@ -3257,7 +3264,8 @@ "UclampMin_Low": 196, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 15.0 + "StaleTimeFactor": 15.0, + "GpuBoost": false }, { "Name": "UiLowBoostWithoutPid", @@ -3279,7 +3287,8 @@ "UclampMin_Low": 52, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 15.0 + "StaleTimeFactor": 15.0, + "GpuBoost": false }, { "Name": "UiLowNoneBoost", @@ -3301,7 +3310,8 @@ "UclampMin_Low": 0, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 15.0 + "StaleTimeFactor": 15.0, + "GpuBoost": false } ] } diff --git a/perf/powerhint-tokay.json b/perf/powerhint-tokay.json index 6070f830..6687b3b3 100644 --- a/perf/powerhint-tokay.json +++ b/perf/powerhint-tokay.json @@ -3140,6 +3140,7 @@ "Value": "20 80" } ], + "GpuSysfsPath" : "/sys/devices/platform/1f000000.mali", "AdpfConfig": [ { "Name": "REFRESH_120FPS", @@ -3171,7 +3172,9 @@ "HBoostPidPuFactor": 0.5, "HBoostUclampMin": 722, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 40000 }, { "Name": "REFRESH_90FPS", @@ -3203,7 +3206,9 @@ "HBoostPidPuFactor": 0.5, "HBoostUclampMin": 722, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 32500 }, { "Name": "REFRESH_60FPS", @@ -3235,7 +3240,9 @@ "HBoostPidPuFactor": 0.5, "HBoostUclampMin": 722, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 25000 }, { "Name": "UiHighBoostWithoutPid", @@ -3257,7 +3264,8 @@ "UclampMin_Low": 196, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false }, { "Name": "UiLowBoostWithoutPid", @@ -3279,7 +3287,8 @@ "UclampMin_Low": 52, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false }, { "Name": "UiLowNoneBoost", @@ -3301,7 +3310,8 @@ "UclampMin_Low": 0, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false } ] }