From a77bbf588cc48570df67c1425a18da4d3d293dc5 Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Tue, 3 May 2022 17:25:39 +0800 Subject: [PATCH] Disable packing when app launch Task packing may hurt app launch time, so disable it when app launch. Bug: 201259891 Test: hint works Change-Id: Ia28e96a25bbb82c74a3c9761a89683b2cc05938c --- powerhint-cheetah-a0.json | 27 +++++++++++++++++++++++++++ powerhint-cheetah.json | 27 +++++++++++++++++++++++++++ powerhint-cloudripper.json | 21 +++++++++++++++++++++ powerhint-panther-a0.json | 27 +++++++++++++++++++++++++++ powerhint-panther.json | 27 +++++++++++++++++++++++++++ powerhint-ravenclaw.json | 21 +++++++++++++++++++++ 6 files changed, 150 insertions(+) diff --git a/powerhint-cheetah-a0.json b/powerhint-cheetah-a0.json index fa25d1b..97e7ae2 100644 --- a/powerhint-cheetah-a0.json +++ b/powerhint-cheetah-a0.json @@ -256,6 +256,15 @@ ], "ResetOnInit": true }, + { + "Name": "NPITaskPacking", + "Path": "/proc/vendor_sched/npi_packing", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "DisplayWakeup", "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", @@ -539,6 +548,12 @@ "Duration": 5000, "Value": "3172000" }, + { + "PowerHint": "LAUNCH", + "Node": "NPITaskPacking", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -587,6 +602,12 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "NPITaskPacking", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH_EXTENDED", "Node": "CPUBigClusterMaxFreq", @@ -605,6 +626,12 @@ "Duration": 2000, "Value": "9999999" }, + { + "PowerHint": "CAMERA_LAUNCH_EXTENDED", + "Node": "NPITaskPacking", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "CAMERA_THERMAL_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", diff --git a/powerhint-cheetah.json b/powerhint-cheetah.json index 8ef5022..a4bae90 100644 --- a/powerhint-cheetah.json +++ b/powerhint-cheetah.json @@ -255,6 +255,15 @@ ], "ResetOnInit": true }, + { + "Name": "NPITaskPacking", + "Path": "/proc/vendor_sched/npi_packing", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "DisplayWakeup", "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", @@ -538,6 +547,12 @@ "Duration": 5000, "Value": "3172000" }, + { + "PowerHint": "LAUNCH", + "Node": "NPITaskPacking", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -586,6 +601,12 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "NPITaskPacking", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH_EXTENDED", "Node": "CPUBigClusterMaxFreq", @@ -604,6 +625,12 @@ "Duration": 2000, "Value": "9999999" }, + { + "PowerHint": "CAMERA_LAUNCH_EXTENDED", + "Node": "NPITaskPacking", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "CAMERA_THERMAL_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", diff --git a/powerhint-cloudripper.json b/powerhint-cloudripper.json index 5623e5f..58488e4 100644 --- a/powerhint-cloudripper.json +++ b/powerhint-cloudripper.json @@ -213,6 +213,15 @@ ], "ResetOnInit": true }, + { + "Name": "NPITaskPacking", + "Path": "/proc/vendor_sched/npi_packing", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "DisplayWakeup", "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", @@ -396,6 +405,12 @@ "Duration": 5000, "Value": "3172000" }, + { + "PowerHint": "LAUNCH", + "Node": "NPITaskPacking", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -444,6 +459,12 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "NPITaskPacking", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_THERMAL_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", diff --git a/powerhint-panther-a0.json b/powerhint-panther-a0.json index 51e6c8a..a9c5604 100644 --- a/powerhint-panther-a0.json +++ b/powerhint-panther-a0.json @@ -255,6 +255,15 @@ ], "ResetOnInit": true }, + { + "Name": "NPITaskPacking", + "Path": "/proc/vendor_sched/npi_packing", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "DisplayWakeup", "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", @@ -527,6 +536,12 @@ "Duration": 5000, "Value": "3172000" }, + { + "PowerHint": "LAUNCH", + "Node": "NPITaskPacking", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -575,6 +590,12 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "NPITaskPacking", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH_EXTENDED", "Node": "CPUBigClusterMaxFreq", @@ -593,6 +614,12 @@ "Duration": 2000, "Value": "9999999" }, + { + "PowerHint": "CAMERA_LAUNCH_EXTENDED", + "Node": "NPITaskPacking", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "CAMERA_THERMAL_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", diff --git a/powerhint-panther.json b/powerhint-panther.json index ac8b999..d6e2029 100644 --- a/powerhint-panther.json +++ b/powerhint-panther.json @@ -254,6 +254,15 @@ ], "ResetOnInit": true }, + { + "Name": "NPITaskPacking", + "Path": "/proc/vendor_sched/npi_packing", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "DisplayWakeup", "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", @@ -526,6 +535,12 @@ "Duration": 5000, "Value": "3172000" }, + { + "PowerHint": "LAUNCH", + "Node": "NPITaskPacking", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -574,6 +589,12 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "NPITaskPacking", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH_EXTENDED", "Node": "CPUBigClusterMaxFreq", @@ -592,6 +613,12 @@ "Duration": 2000, "Value": "9999999" }, + { + "PowerHint": "CAMERA_LAUNCH_EXTENDED", + "Node": "NPITaskPacking", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "CAMERA_THERMAL_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", diff --git a/powerhint-ravenclaw.json b/powerhint-ravenclaw.json index 8505101..5199cd3 100644 --- a/powerhint-ravenclaw.json +++ b/powerhint-ravenclaw.json @@ -396,6 +396,12 @@ "Duration": 5000, "Value": "3172000" }, + { + "PowerHint": "LAUNCH", + "Node": "NPITaskPacking", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -444,6 +450,12 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "NPITaskPacking", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_THERMAL_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", @@ -654,6 +666,15 @@ "Duration": 0, "Value": "1" }, + { + "Name": "NPITaskPacking", + "Path": "/proc/vendor_sched/npi_packing", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "GPUMinFreq",