From c87ef2f661cf993c06cacc277d349a4a56c832e6 Mon Sep 17 00:00:00 2001 From: Leo Liou Date: Mon, 15 Jun 2020 19:39:16 +0800 Subject: [PATCH] sm6250-common: powerhint: disable UFS gating work in touch and app launch boost Disable UFS gating work to boost app launch and touch behaviors. Before (launch time): com.google.android.calculator, 507 com.google.android.deskclock, 457 com.google.android.apps.maps, 839 com.google.android.apps.messaging, 624 com.google.android.dialer, 599 com.google.android.apps.photos, 224 com.google.android.youtube, 1016 com.google.android.apps.nbu.files, 618 com.google.android.contacts, 532 com.google.android.gm, 589 com.google.android.GoogleCamera, 674 After (launch time): com.google.android.calculator, 479 com.google.android.deskclock, 423 com.google.android.apps.maps, 769 com.google.android.apps.messaging, 562 com.google.android.dialer, 553 com.google.android.apps.photos, 177 com.google.android.youtube, 968 com.google.android.apps.nbu.files, 587 com.google.android.contacts, 510 com.google.android.gm, 550 com.google.android.GoogleCamera, 587 Bug: 149610499 Test: run app launch time test Change-Id: I7e3ee0785ee470ee46d57f9fa03ec042028b1417 --- configs/powerhint.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/configs/powerhint.json b/configs/powerhint.json index 04e21f1..c2b046b 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -162,6 +162,15 @@ ], "ResetOnInit": true }, + { + "Name": "UfsClkGateEnable", + "Path": "/sys/devices/platform/soc/1d84000.ufshc/clkgate_enable", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "PowerHALMainState", "Path": "vendor.powerhal.state", @@ -215,6 +224,12 @@ "Duration": 0, "Value": "3" }, + { + "PowerHint": "INTERACTION", + "Node": "UfsClkGateEnable", + "Duration": 200, + "Value": "0" + }, { "PowerHint": "INTERACTION", "Node": "CPUBigClusterMinFreq", @@ -263,6 +278,12 @@ "Duration": 0, "Value": "2929" }, + { + "PowerHint": "LAUNCH", + "Node": "UfsClkGateEnable", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "LAUNCH", "Node": "CPUBigClusterMaxFreq",