From 35144d5384fab9e121bd1a65c7fdf96cd39995f6 Mon Sep 17 00:00:00 2001 From: Paulsu Su Date: Wed, 31 Jul 2024 02:48:20 +0000 Subject: [PATCH] powerhint: Enable PA_KILL during PA_KILL_BOOST Port from ag/27949358 and ag/28274083 Currently, we enable PA_KILL always on camera launch. This CL puts this feature behind a power boost profile which can only be triggered from camera hal and is controlled by a mendel flag. Bug: 356005553 Change-Id: I09ca12244c031524b8b99f8f8dc888ef7781cd08 Test: boot to home Flag: EXEMPT resource only update --- perf/powerhint-tegu.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/perf/powerhint-tegu.json b/perf/powerhint-tegu.json index 6388ca2..94c41c8 100644 --- a/perf/powerhint-tegu.json +++ b/perf/powerhint-tegu.json @@ -932,6 +932,15 @@ "20 40" ], "ResetOnInit": true + }, + { + "Name": "PA_KILL", + "Path": "/sys/kernel/vendor_mm/pa_kill/reclaim_kb", + "Values": [ + "102400", + "0" + ], + "ResetOnInit": false } ], "Actions": [ @@ -1404,6 +1413,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_PA_KILL_BOOST", + "Node": "PA_KILL", + "Duration": 0, + "Value": "102400" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "CPUSkipMask",