From 2e3b405b8af978a446ed74d48a8d897af412b9d1 Mon Sep 17 00:00:00 2001 From: "Peter (YM)" Date: Tue, 26 Mar 2024 05:55:10 +0000 Subject: [PATCH] therma: disable LIGHT tier throttling when gaming We already have the CPU scheduler optimization for game mode to sustain the power and perf, so remove the CPU thermal policy at lower temperature to avoid the interfence on CPU scheduler. Bug: 329697728 Test: Build and verify behavior by sending powerhint Change-Id: Ida42089c9752ce03875da9f390cc6d4a360151d8 Signed-off-by: Peter (YM) --- powerhint-comet.json | 17 +++++++++++++++++ thermal/thermal_info_config_comet.json | 25 +++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/powerhint-comet.json b/powerhint-comet.json index 669e27c..5a4b655 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -753,6 +753,17 @@ "DefaultIndex": 0, "ResetOnInit": true }, + { + "Name": "VIRTUAL-SKIN-CPU-LIGHT-ODPM", + "Path": "vendor.thermal.VIRTUAL-SKIN-CPU-LIGHT-ODPM.profile", + "Values": [ + "", + "game" + ], + "DefaultIndex": 0, + "ResetOnInit": true, + "Type": "Property" + }, { "Name": "VIRTUAL-SKIN-CPU-MID", "Path": "vendor.thermal.VIRTUAL-SKIN-CPU-MID.profile", @@ -2453,6 +2464,12 @@ "Duration": 0, "Value": "419000" }, + { + "PowerHint": "GAME", + "Node": "VIRTUAL-SKIN-CPU-LIGHT-ODPM", + "Duration": 0, + "Value": "game" + }, { "PowerHint": "GAME", "Node": "VIRTUAL-SKIN-CPU-MID", diff --git a/thermal/thermal_info_config_comet.json b/thermal/thermal_info_config_comet.json index 7906120..390bc0c 100644 --- a/thermal/thermal_info_config_comet.json +++ b/thermal/thermal_info_config_comet.json @@ -225,6 +225,31 @@ "BindedPowerRail": "S3M_VDD_CPUCL2", "CdevCeiling": [0, 12, 12, 12, 12, 12, 12] } + ], + "Profile": [ + { + "Mode": "game", + "BindedCdevInfo": [ + { + "CdevRequest": "thermal-cpufreq-0", + "BindedPowerRail": "S4M_VDD_CPUCL0", + "MaxReleaseStep": 1, + "Disabled":true + }, + { + "CdevRequest": "thermal-cpufreq-1", + "BindedPowerRail": "S2M_VDD_CPUCL1", + "MaxReleaseStep": 1, + "Disabled":true + }, + { + "CdevRequest": "thermal-cpufreq-2", + "BindedPowerRail": "S3M_VDD_CPUCL2", + "MaxReleaseStep": 1, + "Disabled":true + } + ] + } ] }, {