From b72a4690a4bf71c987fb805d262585eac7fed4d4 Mon Sep 17 00:00:00 2001 From: Chiawei Wang Date: Thu, 18 Jul 2024 12:56:42 +0530 Subject: [PATCH] sm6375-common: configs: use min_pwrlevel to configure GPU freq Bug: 146334579 Bug: 146336388 Test: run pts -m PtsPerformanceTestCases -t com.google.android.perf.pts.PowerHALAPITest Test: run pts -m PtsPerformanceTestCases -t com.google.android.perf.pts.PowerHintJsonVerifyTest Change-Id: I18c0210463f29831cc94c629a98718406ebdf21b --- configs/powerhint.json | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index 08c450e..cb1ca40 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -78,23 +78,34 @@ }, { "Name": "GPUMaxFreq", - "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/max_freq", + "Path": "/sys/class/kgsl/kgsl-3d0/max_pwrlevel", "Values": [ - "840000000", - "650000000", - "266000000" + "0", + "1", + "2" + ], + "Comments": [ + "0 => 840000000", + "1 => 650000000", + "2 => 266000000" ], "DefaultIndex": 0, "ResetOnInit": true }, { "Name": "GPUMinFreq", - "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/min_freq", + "Path": "/sys/class/kgsl/kgsl-3d0/min_pwrlevel", "Values": [ - "840000000", - "650000000", - "490000000", - "266000000" + "0", + "1", + "2", + "3" + ], + "Comments": [ + "0 => 840000000", + "1 => 650000000", + "2 => 490000000", + "3 => 266000000" ], "ResetOnInit": true }, @@ -233,7 +244,7 @@ "PowerHint": "SUSTAINED_PERFORMANCE", "Node": "GPUMaxFreq", "Duration": 0, - "Value": "650000000" + "Value": "1" }, { "PowerHint": "INTERACTION", @@ -395,13 +406,13 @@ "PowerHint": "FIXED_PERFORMANCE", "Node": "GPUMaxFreq", "Duration": 0, - "Value": "840000000" + "Value": "0" }, { "PowerHint": "FIXED_PERFORMANCE", "Node": "GPUMinFreq", "Duration": 0, - "Value": "840000000" + "Value": "0" }, { "PowerHint": "EXPENSIVE_RENDERING", @@ -413,7 +424,7 @@ "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMaxFreq", "Duration": 0, - "Value": "840000000" + "Value": "0" }, { "PowerHint": "Flipendo",