From c5deb0c0874dcb546c5c29cc907b6a754c23efc5 Mon Sep 17 00:00:00 2001 From: Jia-yi Chen Date: Mon, 6 Mar 2023 11:16:25 -0800 Subject: [PATCH] powerhint: Update CPU MaxFreq cap for camera powerhints Currently the CPU scheduler is not tuned to set the proper OPPs for camera use cases so hard limiting the CPU frequencies to limit the CPU power. This is just a temporary solution and should be adjusted if it causes any perf regression. Bug: 270571756 Test: Boot & take traces Change-Id: I7d465cdce2d08ea530e5e889020b4cedfe04341f --- powerhint-husky.json | 31 ++++++++++++++++--------------- powerhint-ripcurrent.json | 31 ++++++++++++++++--------------- powerhint-shiba.json | 31 ++++++++++++++++--------------- 3 files changed, 48 insertions(+), 45 deletions(-) diff --git a/powerhint-husky.json b/powerhint-husky.json index 3e2d474..a42a271 100644 --- a/powerhint-husky.json +++ b/powerhint-husky.json @@ -5,6 +5,7 @@ "Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq", "Values": [ "3172000", + "1716000", "1352000", "1014000", "421000" @@ -1017,19 +1018,19 @@ "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1475000" + "Value": "1098000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPUMidClusterMaxFreq", "Duration": 0, - "Value": "1622000" + "Value": "1082000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1852000" + "Value": "893000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", @@ -1041,7 +1042,7 @@ "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "MemFreq", "Duration": 0, - "Value": "1014000" + "Value": "1716000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", @@ -1161,25 +1162,25 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1852000" + "Value": "893000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPUMidClusterMaxFreq", "Duration": 0, - "Value": "1622000" + "Value": "1082000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1475000" + "Value": "1098000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "MemFreq", "Duration": 0, - "Value": "1352000" + "Value": "1716000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1299,25 +1300,25 @@ "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1852000" + "Value": "893000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPUMidClusterMaxFreq", "Duration": 0, - "Value": "1622000" + "Value": "1082000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1475000" + "Value": "1098000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "MemFreq", "Duration": 0, - "Value": "1352000" + "Value": "1716000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", @@ -1377,19 +1378,19 @@ "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1852000" + "Value": "893000" }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPUMidClusterMaxFreq", "Duration": 0, - "Value": "1622000" + "Value": "1082000" }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1475000" + "Value": "1098000" }, { "PowerHint": "CAMERA_STREAMING_LOW", diff --git a/powerhint-ripcurrent.json b/powerhint-ripcurrent.json index 0f5bde7..b5d6eac 100644 --- a/powerhint-ripcurrent.json +++ b/powerhint-ripcurrent.json @@ -5,6 +5,7 @@ "Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq", "Values": [ "3172000", + "1716000", "1352000", "1014000", "421000" @@ -1017,19 +1018,19 @@ "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1475000" + "Value": "1098000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPUMidClusterMaxFreq", "Duration": 0, - "Value": "1622000" + "Value": "1082000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1852000" + "Value": "893000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", @@ -1041,7 +1042,7 @@ "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "MemFreq", "Duration": 0, - "Value": "1014000" + "Value": "1716000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", @@ -1161,25 +1162,25 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1852000" + "Value": "893000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPUMidClusterMaxFreq", "Duration": 0, - "Value": "1622000" + "Value": "1082000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1475000" + "Value": "1098000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "MemFreq", "Duration": 0, - "Value": "1352000" + "Value": "1716000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1299,25 +1300,25 @@ "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1852000" + "Value": "893000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPUMidClusterMaxFreq", "Duration": 0, - "Value": "1622000" + "Value": "1082000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1475000" + "Value": "1098000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "MemFreq", "Duration": 0, - "Value": "1352000" + "Value": "1716000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", @@ -1377,19 +1378,19 @@ "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1852000" + "Value": "893000" }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPUMidClusterMaxFreq", "Duration": 0, - "Value": "1622000" + "Value": "1082000" }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1475000" + "Value": "1098000" }, { "PowerHint": "CAMERA_STREAMING_LOW", diff --git a/powerhint-shiba.json b/powerhint-shiba.json index 842e29d..1ea0a89 100644 --- a/powerhint-shiba.json +++ b/powerhint-shiba.json @@ -5,6 +5,7 @@ "Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq", "Values": [ "3172000", + "1716000", "1352000", "1014000", "421000" @@ -1017,19 +1018,19 @@ "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1475000" + "Value": "1098000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPUMidClusterMaxFreq", "Duration": 0, - "Value": "1622000" + "Value": "1082000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1852000" + "Value": "893000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", @@ -1041,7 +1042,7 @@ "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "MemFreq", "Duration": 0, - "Value": "1014000" + "Value": "1716000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", @@ -1161,25 +1162,25 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1852000" + "Value": "893000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPUMidClusterMaxFreq", "Duration": 0, - "Value": "1622000" + "Value": "1082000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1475000" + "Value": "1098000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "MemFreq", "Duration": 0, - "Value": "1352000" + "Value": "1716000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1299,25 +1300,25 @@ "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1852000" + "Value": "893000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPUMidClusterMaxFreq", "Duration": 0, - "Value": "1622000" + "Value": "1082000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1475000" + "Value": "1098000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "MemFreq", "Duration": 0, - "Value": "1352000" + "Value": "1716000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", @@ -1377,19 +1378,19 @@ "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1852000" + "Value": "893000" }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPUMidClusterMaxFreq", "Duration": 0, - "Value": "1622000" + "Value": "1082000" }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1475000" + "Value": "1098000" }, { "PowerHint": "CAMERA_STREAMING_LOW",