From 97c7f4861e0a685074958629564abbe522703591 Mon Sep 17 00:00:00 2001 From: guibing Date: Thu, 14 Mar 2024 04:29:23 +0000 Subject: [PATCH] shusky: Add heuristic boost configs in power hint json files. Bug: 204204746 Test: Power hal launches in device without configuration parsing issue. Change-Id: I5f85f88699b468f2c5e0af05dcea0bfa3fba56d2 --- perf/powerhint-husky.json | 30 +++++++++++++++++++++++++++--- perf/powerhint-ripcurrent.json | 30 +++++++++++++++++++++++++++--- perf/powerhint-shiba.json | 30 +++++++++++++++++++++++++++--- 3 files changed, 81 insertions(+), 9 deletions(-) diff --git a/perf/powerhint-husky.json b/perf/powerhint-husky.json index 3d26510..6f27afc 100644 --- a/perf/powerhint-husky.json +++ b/perf/powerhint-husky.json @@ -2985,7 +2985,15 @@ "TargetTimeFactor": 1.0, "StaleTimeFactor": 15.0, "GpuBoost": true, - "GpuCapacityBoostMax": 40000 + "GpuCapacityBoostMax": 40000, + "HeuristicBoost_On": true, + "HBoostOnMissedCycles": 8, + "HBoostOffMaxAvgRatio": 4.0, + "HBoostOffMissedCycles": 5, + "HBoostPidPuFactor": 0.5, + "HBoostUclampMin": 722, + "LowFrameRateThreshold": 25, + "MaxRecordsNum": 300 }, { "Name": "REFRESH_90FPS", @@ -3011,7 +3019,15 @@ "TargetTimeFactor": 1.0, "StaleTimeFactor": 15.0, "GpuBoost": true, - "GpuCapacityBoostMax": 32500 + "GpuCapacityBoostMax": 32500, + "HeuristicBoost_On": true, + "HBoostOnMissedCycles": 8, + "HBoostOffMaxAvgRatio": 4.0, + "HBoostOffMissedCycles": 5, + "HBoostPidPuFactor": 0.5, + "HBoostUclampMin": 722, + "LowFrameRateThreshold": 25, + "MaxRecordsNum": 300 }, { "Name": "REFRESH_60FPS", @@ -3037,7 +3053,15 @@ "TargetTimeFactor": 1.0, "StaleTimeFactor": 15.0, "GpuBoost": true, - "GpuCapacityBoostMax": 25000 + "GpuCapacityBoostMax": 25000, + "HeuristicBoost_On": true, + "HBoostOnMissedCycles": 8, + "HBoostOffMaxAvgRatio": 4.0, + "HBoostOffMissedCycles": 5, + "HBoostPidPuFactor": 0.5, + "HBoostUclampMin": 722, + "LowFrameRateThreshold": 25, + "MaxRecordsNum": 300 }, { "Name": "UiHighBoostWithoutPid", diff --git a/perf/powerhint-ripcurrent.json b/perf/powerhint-ripcurrent.json index d2aaaf1..bfcb030 100644 --- a/perf/powerhint-ripcurrent.json +++ b/perf/powerhint-ripcurrent.json @@ -2765,7 +2765,15 @@ "SamplingWindow_D": 1, "ReportingRateLimitNs": 83333330, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 15.0 + "StaleTimeFactor": 15.0, + "HeuristicBoost_On": true, + "HBoostOnMissedCycles": 8, + "HBoostOffMaxAvgRatio": 4.0, + "HBoostOffMissedCycles": 5, + "HBoostPidPuFactor": 0.5, + "HBoostUclampMin": 722, + "LowFrameRateThreshold": 25, + "MaxRecordsNum": 300 }, { "Name": "REFRESH_90FPS", @@ -2789,7 +2797,15 @@ "SamplingWindow_D": 1, "ReportingRateLimitNs": 111111110, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 15.0 + "StaleTimeFactor": 15.0, + "HeuristicBoost_On": true, + "HBoostOnMissedCycles": 8, + "HBoostOffMaxAvgRatio": 4.0, + "HBoostOffMissedCycles": 5, + "HBoostPidPuFactor": 0.5, + "HBoostUclampMin": 722, + "LowFrameRateThreshold": 25, + "MaxRecordsNum": 300 }, { "Name": "REFRESH_60FPS", @@ -2813,7 +2829,15 @@ "SamplingWindow_D": 1, "ReportingRateLimitNs": 166666660, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 15.0 + "StaleTimeFactor": 15.0, + "HeuristicBoost_On": true, + "HBoostOnMissedCycles": 8, + "HBoostOffMaxAvgRatio": 4.0, + "HBoostOffMissedCycles": 5, + "HBoostPidPuFactor": 0.5, + "HBoostUclampMin": 722, + "LowFrameRateThreshold": 25, + "MaxRecordsNum": 300 }, { "Name": "UiHighBoostWithoutPid", diff --git a/perf/powerhint-shiba.json b/perf/powerhint-shiba.json index 5add250..7e71f6e 100644 --- a/perf/powerhint-shiba.json +++ b/perf/powerhint-shiba.json @@ -2889,7 +2889,15 @@ "TargetTimeFactor": 1.0, "StaleTimeFactor": 15.0, "GpuBoost": true, - "GpuCapacityBoostMax": 150000 + "GpuCapacityBoostMax": 150000, + "HeuristicBoost_On": true, + "HBoostOnMissedCycles": 8, + "HBoostOffMaxAvgRatio": 4.0, + "HBoostOffMissedCycles": 5, + "HBoostPidPuFactor": 0.5, + "HBoostUclampMin": 722, + "LowFrameRateThreshold": 25, + "MaxRecordsNum": 300 }, { "Name": "REFRESH_90FPS", @@ -2915,7 +2923,15 @@ "TargetTimeFactor": 1.0, "StaleTimeFactor": 15.0, "GpuBoost": true, - "GpuCapacityBoostMax": 125000 + "GpuCapacityBoostMax": 125000, + "HeuristicBoost_On": true, + "HBoostOnMissedCycles": 8, + "HBoostOffMaxAvgRatio": 4.0, + "HBoostOffMissedCycles": 5, + "HBoostPidPuFactor": 0.5, + "HBoostUclampMin": 722, + "LowFrameRateThreshold": 25, + "MaxRecordsNum": 300 }, { "Name": "REFRESH_60FPS", @@ -2941,7 +2957,15 @@ "TargetTimeFactor": 1.0, "StaleTimeFactor": 15.0, "GpuBoost": true, - "GpuCapacityBoostMax": 100000 + "GpuCapacityBoostMax": 100000, + "HeuristicBoost_On": true, + "HBoostOnMissedCycles": 8, + "HBoostOffMaxAvgRatio": 4.0, + "HBoostOffMissedCycles": 5, + "HBoostPidPuFactor": 0.5, + "HBoostUclampMin": 722, + "LowFrameRateThreshold": 25, + "MaxRecordsNum": 300 }, { "Name": "UiHighBoostWithoutPid",