diff options
author | Peter Liu <pingchienliu@google.com> | 2021-05-17 21:11:49 -0700 |
---|---|---|
committer | Jay <jaytwang@google.com> | 2021-11-10 18:20:12 +0000 |
commit | 9fa0863b13621e14face6a8e6a92d2e797890ca1 (patch) | |
tree | 5dd0e48bdf187024a83a1a5b9c14864c018d4254 /powerhint.json | |
parent | f8f72e99d932131eef0b3fe332952e3c221bf222 (diff) | |
download | gs201-9fa0863b13621e14face6a8e6a92d2e797890ca1.tar.gz |
camera power hint: raise CPU clock more conservatively at STREAM_HIGH mode
During streaming high fps mode, the BW is high and lead to CPU memory
high latency. This hint tries to avoid raising the CPU clock
at the condition when CPU is waiting for data access.
(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 184583714
Test:
4k60: 59+fps
1080p60fps: 58fps (b/186806120, disable eis can get 60fps)
Power benefit 80-100mW
Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: I3849dfd170085f7e10b5c53d27af353026a4093a
Diffstat (limited to 'powerhint.json')
-rw-r--r-- | powerhint.json | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/powerhint.json b/powerhint.json index ac0500a..267e3f0 100644 --- a/powerhint.json +++ b/powerhint.json @@ -84,6 +84,16 @@ "ResetOnInit": true }, { + "Name": "CPUUtilThreshold", + "Path": "/sys/kernel/vendor_sched/util_threshold", + "Values": [ + "1280", + "1100" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, + { "Name": "MIFTargetLoad", "Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load", "Values": [ @@ -339,6 +349,12 @@ }, { "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "CPUUtilThreshold", + "Duration": 0, + "Value": "1100" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPUBigClusterMaxFreq", "Duration": 0, "Value": "1826000" |