From a928677845907dd213ae7b1ea12eb58ae28c24cc Mon Sep 17 00:00:00 2001 From: Chungkai Mei Date: Thu, 3 Oct 2024 08:19:12 +0000 Subject: [PATCH 1/2] powerhint.json: enable gpu capacity signalling. Enables a signal indicating that the app has janked as detected by the ADPF API. Flag: NONE align device tuning from P24. Test: perf / power tests Bug: 371094656 Signed-off-by: Chungkai Mei (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:12af273b1734b6396558dc2432688dae242b29b6) Merged-In: I19279e0f5a5fea59ffd0728128d6170f61e8a3e2 Change-Id: I19279e0f5a5fea59ffd0728128d6170f61e8a3e2 --- powerhint-comet.json | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index 13c68ae..9ee8410 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -3583,6 +3583,7 @@ "Value": "20 80" } ], + "GpuSysfsPath" : "/sys/devices/platform/1f000000.mali", "AdpfConfig": [ { "Name": "REFRESH_120FPS", @@ -3618,7 +3619,9 @@ "HBoostUclampMinFloorRange": [230, 410], "JankCheckTimeFactor": 1.2, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 40000 }, { "Name": "REFRESH_90FPS", @@ -3654,7 +3657,9 @@ "HBoostUclampMinFloorRange": [230, 410], "JankCheckTimeFactor": 1.2, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 32500 }, { "Name": "REFRESH_60FPS", @@ -3690,7 +3695,9 @@ "HBoostUclampMinFloorRange": [230, 410], "JankCheckTimeFactor": 1.2, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 25000 }, { "Name": "UiHighBoostWithoutPid", @@ -3714,7 +3721,8 @@ "UclampMax_EfficientOffset": 200, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false }, { "Name": "UiLowBoostWithoutPid", @@ -3738,7 +3746,8 @@ "UclampMax_EfficientOffset": 200, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false }, { "Name": "UiLowNoneBoost", @@ -3762,7 +3771,8 @@ "UclampMax_EfficientOffset": 200, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false } ] } From f2caec54b7c746156f163acd1443bcc3fb5fda79 Mon Sep 17 00:00:00 2001 From: Chungkai Mei Date: Thu, 3 Oct 2024 08:28:26 +0000 Subject: [PATCH 2/2] powerhint: port dvfs_headroom settings from p24 Flag: NONE align device tuning from P24. Bug: 371094656 Test: boot Signed-off-by: Chungkai Mei (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:bb48ea5f64b6e0850cfefa4bb9d0225017b7e5cd) Merged-In: I858208921e64aefeee6f6abf60387fd80f5f5e34 Change-Id: I858208921e64aefeee6f6abf60387fd80f5f5e34 --- powerhint-comet.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index 9ee8410..ffb8488 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -3589,7 +3589,7 @@ "Name": "REFRESH_120FPS", "PID_On": true, "PID_Po": 2.0, - "PID_Pu": 1.0, + "PID_Pu": 0.6, "PID_I": 0.0, "PID_I_Init": 200, "PID_I_High": 512,