From cadc77d9b5d00b78b880beea7422a6a3f1b22de8 Mon Sep 17 00:00:00 2001 From: Mao Lee Date: Tue, 23 Jan 2024 03:37:59 +0000 Subject: [PATCH] powerhint: raise cam.uclamp_min to 250 during CAMERA_STREAMING_EXTREME Increase the minimum operating frequency of the cam group to mitigate mutex contention and thereby reduce frame drops during 240fps slow-motion recording. This solution synchronize from ag/25825179. Test: GCA, CTS Bug: 315422971 Change-Id: I8ab72ef5980edf881c034789d947dc578659cbe2 --- perf/powerhint-husky.json | 7 +++++++ perf/powerhint-ripcurrent.json | 7 +++++++ perf/powerhint-shiba.json | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/perf/powerhint-husky.json b/perf/powerhint-husky.json index 30d57ab..acb6153 100644 --- a/perf/powerhint-husky.json +++ b/perf/powerhint-husky.json @@ -297,6 +297,7 @@ "Path": "/proc/vendor_sched/groups/cam/uclamp_min", "Values": [ "765", + "250", "0" ], "ResetOnInit": true @@ -1636,6 +1637,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "CAMUClampBoost", + "Duration": 0, + "Value": "250" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "PMU_LIT_LIMIT_FREQ", diff --git a/perf/powerhint-ripcurrent.json b/perf/powerhint-ripcurrent.json index 0e95f18..48b1f70 100644 --- a/perf/powerhint-ripcurrent.json +++ b/perf/powerhint-ripcurrent.json @@ -283,6 +283,7 @@ "Path": "/proc/vendor_sched/groups/cam/uclamp_min", "Values": [ "765", + "250", "0" ], "ResetOnInit": true @@ -1497,6 +1498,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "CAMUClampBoost", + "Duration": 0, + "Value": "250" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "PMU_LIT_LIMIT_FREQ", diff --git a/perf/powerhint-shiba.json b/perf/powerhint-shiba.json index 31b5773..6f0ff82 100644 --- a/perf/powerhint-shiba.json +++ b/perf/powerhint-shiba.json @@ -297,6 +297,7 @@ "Path": "/proc/vendor_sched/groups/cam/uclamp_min", "Values": [ "765", + "250", "0" ], "ResetOnInit": true @@ -1540,6 +1541,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "CAMUClampBoost", + "Duration": 0, + "Value": "250" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "PMU_LIT_LIMIT_FREQ",