From 04c7d884b64eeb55363c171ede2012e4da76ea8a Mon Sep 17 00:00:00 2001 From: "Peter (YM)" Date: Mon, 29 Apr 2024 03:22:03 +0000 Subject: [PATCH] thermal: enable frequency based constrain on gpu thermal throttle Replacec cdevceiling and hardlimit information with freuqencies in thermal config Bug: 336698561 Test: Flash Build and boot to home, run adb dumpsys android.hardware.thermal.IThermal/default, check the cdevceiling and hardlimit number for gpu Change-Id: I7b582b3d19ddea8c5c3a643d57972167ed5b6c87 Signed-off-by: Peter (YM) --- thermal/thermal_info_config_comet.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/thermal/thermal_info_config_comet.json b/thermal/thermal_info_config_comet.json index 3d2fac6..e94cab8 100644 --- a/thermal/thermal_info_config_comet.json +++ b/thermal/thermal_info_config_comet.json @@ -610,8 +610,8 @@ "MaxReleaseStep": 1, "MaxThrottleStep": 1, "BindedPowerRail": "S2S_VDD_G3D", - "CdevCeiling": [0, 9, 9, 9, 10, 12, 12], - "LimitInfo": [0, 0, 0, 0, 0, 12, 12] + "CdevCeilingFrequency": [940000, 419000, 419000, 419000, 376000, 302000, 302000], + "LimitInfoFrequency": [940000, 940000, 940000, 940000, 940000, 302000, 302000] }, { "CdevRequest": "tpu_cooling", @@ -653,7 +653,7 @@ { "CdevRequest": "thermal-gpufreq-0", "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], - "CdevCeiling": [0, 9, 9, 10, 12, 12, 12] + "CdevCeilingFrequency": [940000, 419000, 419000, 376000, 302000, 302000, 302000] } ] }, @@ -1052,7 +1052,8 @@ { "Name": "thermal-gpufreq-0", "Type": "GPU", - "WritePath": "/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote" + "WritePath": "/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote", + "ScalingAvailableFrequenciesPath": "/sys/devices/platform/1f000000.mali/available_frequencies" }, { "Name": "chg_mdis",