From 96268d3f51f096c029a6bf13fcc1ab79f2bd831c Mon Sep 17 00:00:00 2001 From: Peter Liu Date: Wed, 17 Mar 2021 17:03:35 -0700 Subject: [PATCH] camera power hint: tune the streaming standard. 1. CPU power seems also high on streaming stadrd mode. Limit it to a rate that has no obvious performance degradation. 2. Raise the CCI target load to avoid governor raising the mif clock. Bug: 182944906 Signed-off-by: Peter Liu Change-Id: I47654cf2558fa168545e036c6cb58388eb2e2f0a --- powerhint.json | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/powerhint.json b/powerhint.json index b2a77d3b..685d1f85 100644 --- a/powerhint.json +++ b/powerhint.json @@ -72,6 +72,15 @@ ], "ResetOnInit": true }, + { + "Name": "MIFTargetLoad", + "Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load", + "Values": [ + "20 10 80", + "20 5 80" + ], + "ResetOnInit": true + }, { "Name": "TAUClampBoost", "Path": "/dev/cpuctl/top-app/cpu.uclamp.min", @@ -219,17 +228,35 @@ "Duration": 0, "Value": "302000" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "MIFTargetLoad", + "Duration": 0, + "Value": "20 10 80" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPUBigClusterMaxFreq", "Duration": 0, "Value": "1826000" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPULittleClusterMaxFreq", + "Duration": 0, + "Value": "1401000" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "GPUMinFreq", "Duration": 0, - "Value": "471000" + "Value": "302000" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "MIFTargetLoad", + "Duration": 0, + "Value": "20 10 80" }, { "PowerHint": "FIXED_PERFORMANCE",