From 12af273b1734b6396558dc2432688dae242b29b6 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 Change-Id: I19279e0f5a5fea59ffd0728128d6170f61e8a3e2 Signed-off-by: Chungkai Mei --- powerhint-comet.json | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index 5ae4509..df9c466 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -3586,6 +3586,7 @@ "Value": "20 80" } ], + "GpuSysfsPath" : "/sys/devices/platform/1f000000.mali", "AdpfConfig": [ { "Name": "REFRESH_120FPS", @@ -3621,7 +3622,9 @@ "HBoostUclampMinFloorRange": [230, 410], "JankCheckTimeFactor": 1.2, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 40000 }, { "Name": "REFRESH_90FPS", @@ -3657,7 +3660,9 @@ "HBoostUclampMinFloorRange": [230, 410], "JankCheckTimeFactor": 1.2, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 32500 }, { "Name": "REFRESH_60FPS", @@ -3693,7 +3698,9 @@ "HBoostUclampMinFloorRange": [230, 410], "JankCheckTimeFactor": 1.2, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 25000 }, { "Name": "UiHighBoostWithoutPid", @@ -3717,7 +3724,8 @@ "UclampMax_EfficientOffset": 200, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false }, { "Name": "UiLowBoostWithoutPid", @@ -3741,7 +3749,8 @@ "UclampMax_EfficientOffset": 200, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false }, { "Name": "UiLowNoneBoost", @@ -3765,7 +3774,8 @@ "UclampMax_EfficientOffset": 200, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false } ] } From bb48ea5f64b6e0850cfefa4bb9d0225017b7e5cd 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 Change-Id: I858208921e64aefeee6f6abf60387fd80f5f5e34 Signed-off-by: Chungkai Mei --- powerhint-comet.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index df9c466..20dcbd4 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -3592,7 +3592,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,