From 336c86ba5a34c09ba3d85ea25d0a00a380c9392d Mon Sep 17 00:00:00 2001 From: Jay Wang Date: Fri, 14 Oct 2022 18:39:38 +0000 Subject: [PATCH] Revert "Powerhint update containing PMU and EM_Profile tuning for 30FPS" This reverts commit b9882dd13483f602647b2a1912c76c2559b0ea40. Reason for revert: the latency regression b/249665681, b/248718485 Change-Id: I536cd2cfa322a44831dcf178a97da368566c3e8f (cherry picked from commit 2de7de8e6422413d87b99403910f6927d7ea48a7) Merged-In: I536cd2cfa322a44831dcf178a97da368566c3e8f --- powerhint-cheetah-a0.json | 86 +++++++++++++++------------------------ powerhint-cheetah.json | 86 +++++++++++++++------------------------ powerhint-panther-a0.json | 86 +++++++++++++++------------------------ powerhint-panther.json | 86 +++++++++++++++------------------------ 4 files changed, 128 insertions(+), 216 deletions(-) diff --git a/powerhint-cheetah-a0.json b/powerhint-cheetah-a0.json index 1207c8d..618dca2 100644 --- a/powerhint-cheetah-a0.json +++ b/powerhint-cheetah-a0.json @@ -558,6 +558,14 @@ ], "DefaultIndex": 0 }, + { + "Name": "PMU_MID_LIMIT_FREQ", + "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/limit_frequency", + "Values": [ + "1836000" + ], + "DefaultIndex": 0 + }, { "Name": "PMU_MID_LCPI_THRESHOLD", "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/lcpi_threshold", @@ -1115,6 +1123,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_MID_LIMIT_FREQ", + "Duration": 0, + "Value": "1836000" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_MID_LCPI_THRESHOLD", @@ -1211,60 +1225,6 @@ "Duration": 0, "Value": "0" }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_POLL", - "Duration": 0, - "Value": "1" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_LIT_LCPI_THRESHOLD", - "Duration": 0, - "Value": "0" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_LIT_SPC_THRESHOLD", - "Duration": 0, - "Value": "0" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_MID_LCPI_THRESHOLD", - "Duration": 0, - "Value": "3" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_MID_SPC_THRESHOLD", - "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_BIG_LIMIT_FREQ", - "Duration": 0, - "Value": "1826000" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_BIG_LCPI_THRESHOLD", - "Duration": 0, - "Value": "3" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_BIG_SPC_THRESHOLD", - "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "EM_Profile", - "Duration": 0, - "Value": "cam1" - }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CDPreferHighCap", @@ -1277,6 +1237,24 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUBigClusterMaxFreq", + "Duration": 0, + "Value": "1826000" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUMidClusterMaxFreq", + "Duration": 0, + "Value": "1491000" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPULittleClusterMaxFreq", + "Duration": 0, + "Value": "1401000" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "MemFreq", diff --git a/powerhint-cheetah.json b/powerhint-cheetah.json index a752ab3..ee5c42a 100644 --- a/powerhint-cheetah.json +++ b/powerhint-cheetah.json @@ -555,6 +555,14 @@ ], "DefaultIndex": 0 }, + { + "Name": "PMU_MID_LIMIT_FREQ", + "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/limit_frequency", + "Values": [ + "1836000" + ], + "DefaultIndex": 0 + }, { "Name": "PMU_MID_LCPI_THRESHOLD", "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/lcpi_threshold", @@ -1157,6 +1165,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_MID_LIMIT_FREQ", + "Duration": 0, + "Value": "1836000" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_MID_LCPI_THRESHOLD", @@ -1253,60 +1267,6 @@ "Duration": 0, "Value": "0" }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_POLL", - "Duration": 0, - "Value": "1" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_LIT_LCPI_THRESHOLD", - "Duration": 0, - "Value": "0" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_LIT_SPC_THRESHOLD", - "Duration": 0, - "Value": "0" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_MID_LCPI_THRESHOLD", - "Duration": 0, - "Value": "3" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_MID_SPC_THRESHOLD", - "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_BIG_LIMIT_FREQ", - "Duration": 0, - "Value": "1826000" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_BIG_LCPI_THRESHOLD", - "Duration": 0, - "Value": "3" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_BIG_SPC_THRESHOLD", - "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "EM_Profile", - "Duration": 0, - "Value": "cam1" - }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CDPreferHighCap", @@ -1319,6 +1279,24 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUBigClusterMaxFreq", + "Duration": 0, + "Value": "1826000" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUMidClusterMaxFreq", + "Duration": 0, + "Value": "1491000" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPULittleClusterMaxFreq", + "Duration": 0, + "Value": "1401000" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "MemFreq", diff --git a/powerhint-panther-a0.json b/powerhint-panther-a0.json index a5daca8..acd02db 100644 --- a/powerhint-panther-a0.json +++ b/powerhint-panther-a0.json @@ -547,6 +547,14 @@ ], "DefaultIndex": 0 }, + { + "Name": "PMU_MID_LIMIT_FREQ", + "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/limit_frequency", + "Values": [ + "1836000" + ], + "DefaultIndex": 0 + }, { "Name": "PMU_MID_LCPI_THRESHOLD", "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/lcpi_threshold", @@ -1002,6 +1010,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_MID_LIMIT_FREQ", + "Duration": 0, + "Value": "1836000" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_MID_LCPI_THRESHOLD", @@ -1098,60 +1112,6 @@ "Duration": 0, "Value": "0" }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_POLL", - "Duration": 0, - "Value": "1" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_LIT_LCPI_THRESHOLD", - "Duration": 0, - "Value": "0" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_LIT_SPC_THRESHOLD", - "Duration": 0, - "Value": "0" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_MID_LCPI_THRESHOLD", - "Duration": 0, - "Value": "3" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_MID_SPC_THRESHOLD", - "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_BIG_LIMIT_FREQ", - "Duration": 0, - "Value": "1826000" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_BIG_LCPI_THRESHOLD", - "Duration": 0, - "Value": "3" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_BIG_SPC_THRESHOLD", - "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "EM_Profile", - "Duration": 0, - "Value": "cam1" - }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CDPreferHighCap", @@ -1164,6 +1124,24 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUBigClusterMaxFreq", + "Duration": 0, + "Value": "1826000" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUMidClusterMaxFreq", + "Duration": 0, + "Value": "1491000" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPULittleClusterMaxFreq", + "Duration": 0, + "Value": "1401000" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "MemFreq", diff --git a/powerhint-panther.json b/powerhint-panther.json index 4298584..135419d 100644 --- a/powerhint-panther.json +++ b/powerhint-panther.json @@ -535,6 +535,14 @@ ], "DefaultIndex": 0 }, + { + "Name": "PMU_MID_LIMIT_FREQ", + "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/limit_frequency", + "Values": [ + "1836000" + ], + "DefaultIndex": 0 + }, { "Name": "PMU_MID_LCPI_THRESHOLD", "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/lcpi_threshold", @@ -1024,6 +1032,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_MID_LIMIT_FREQ", + "Duration": 0, + "Value": "1836000" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_MID_LCPI_THRESHOLD", @@ -1120,60 +1134,6 @@ "Duration": 0, "Value": "0" }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_POLL", - "Duration": 0, - "Value": "1" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_LIT_LCPI_THRESHOLD", - "Duration": 0, - "Value": "0" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_LIT_SPC_THRESHOLD", - "Duration": 0, - "Value": "0" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_MID_LCPI_THRESHOLD", - "Duration": 0, - "Value": "3" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_MID_SPC_THRESHOLD", - "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_BIG_LIMIT_FREQ", - "Duration": 0, - "Value": "1826000" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_BIG_LCPI_THRESHOLD", - "Duration": 0, - "Value": "3" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PMU_BIG_SPC_THRESHOLD", - "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "EM_Profile", - "Duration": 0, - "Value": "cam1" - }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CDPreferHighCap", @@ -1186,6 +1146,24 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUBigClusterMaxFreq", + "Duration": 0, + "Value": "1826000" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUMidClusterMaxFreq", + "Duration": 0, + "Value": "1491000" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPULittleClusterMaxFreq", + "Duration": 0, + "Value": "1401000" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "MemFreq",