From 43ec1192d237b5858a0eebc3aac2b24d269afa19 Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Wed, 22 Jun 2022 10:59:13 +0800 Subject: [PATCH] thermal: update CPU/GPU throttling policy to optimize perf 1. GPU 202Mhz thermal throttling is too aggressive and cause frame missing. So, adjust the hardlimit and cdev_ceiling to improve perf. 2. Set the cdev_ceiling for CPU to avoid the abnormal throttling request when ODPM has issue. Bug: 234998975 Test: Confirm fps drop for pip test Change-Id: I07b58d4e9412e4389bb7e2bb185ea9da0b18cc13 --- thermal_info_config_cheetah.json | 6 +++++- thermal_info_config_panther.json | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/thermal_info_config_cheetah.json b/thermal_info_config_cheetah.json index 505d74b..8b677f9 100644 --- a/thermal_info_config_cheetah.json +++ b/thermal_info_config_cheetah.json @@ -166,6 +166,7 @@ "MaxReleaseStep": 1, "MaxThrottleStep": 1, "BindedPowerRail": "S4M_VDD_CPUCL0", + "CdevCeiling": [0, 8, 8, 8, 8, 10, 10], "LimitInfo": [0, 0, 0, 0, 8, 10, 10] }, { @@ -174,6 +175,7 @@ "MaxReleaseStep": 1, "MaxThrottleStep": 1, "BindedPowerRail": "S3M_VDD_CPUCL1", + "CdevCeiling": [0, 12, 12, 12, 12, 14, 14], "LimitInfo": [0, 0, 0, 0, 12, 14, 14] }, { @@ -182,6 +184,7 @@ "MaxReleaseStep": 1, "MaxThrottleStep": 1, "BindedPowerRail": "S2M_VDD_CPUCL2", + "CdevCeiling": [0, 15, 15, 15, 15, 17, 17], "LimitInfo": [0, 0, 0, 0, 15, 17, 17] }, { @@ -190,7 +193,8 @@ "MaxReleaseStep": 1, "MaxThrottleStep": 1, "BindedPowerRail": "S2S_VDD_G3D", - "LimitInfo": [0, 0, 0, 0, 10, 11, 11] + "CdevCeiling": [0, 6, 6, 6, 8, 11, 11], + "LimitInfo": [0, 0, 0, 0, 8, 11, 11] } ] }, diff --git a/thermal_info_config_panther.json b/thermal_info_config_panther.json index c5cd7e9..7eb4e87 100644 --- a/thermal_info_config_panther.json +++ b/thermal_info_config_panther.json @@ -166,6 +166,7 @@ "MaxReleaseStep": 1, "MaxThrottleStep": 1, "BindedPowerRail": "S4M_VDD_CPUCL0", + "CdevCeiling": [0, 8, 8, 8, 8, 10, 10], "LimitInfo": [0, 0, 0, 0, 8, 10, 10] }, { @@ -174,6 +175,7 @@ "MaxReleaseStep": 1, "MaxThrottleStep": 1, "BindedPowerRail": "S3M_VDD_CPUCL1", + "CdevCeiling": [0, 12, 12, 12, 12, 14, 14], "LimitInfo": [0, 0, 0, 0, 12, 14, 14] }, { @@ -182,6 +184,7 @@ "MaxReleaseStep": 1, "MaxThrottleStep": 1, "BindedPowerRail": "S2M_VDD_CPUCL2", + "CdevCeiling": [0, 15, 15, 15, 15, 17, 17], "LimitInfo": [0, 0, 0, 0, 15, 17, 17] }, { @@ -190,7 +193,8 @@ "MaxReleaseStep": 1, "MaxThrottleStep": 1, "BindedPowerRail": "S2S_VDD_G3D", - "LimitInfo": [0, 0, 0, 0, 10, 11, 11] + "CdevCeiling": [0, 8, 8, 8, 8, 11, 11], + "LimitInfo": [0, 0, 0, 0, 8, 11, 11] } ] },