From 3359abda9ec1d9a8d1d80b3e87db3a5cef84b38c Mon Sep 17 00:00:00 2001 From: Ramya Subramanian Date: Fri, 17 May 2024 15:59:29 +0000 Subject: [PATCH 1/7] thermal: updated BTS equations Bug: 297083757 Test: Tested on CM4 boot to home and with thermal recorder Change-Id: Ia6071a8c70e19cebeab909ca6c3e36138c93badc Signed-off-by: Ramya Subramanian --- thermal/thermal_info_config_caiman.json | 4 ++-- thermal/thermal_info_config_komodo.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/thermal/thermal_info_config_caiman.json b/thermal/thermal_info_config_caiman.json index 9935bac3..c0076e3b 100644 --- a/thermal/thermal_info_config_caiman.json +++ b/thermal/thermal_info_config_caiman.json @@ -107,8 +107,8 @@ "VirtualSensor":true, "Formula":"WEIGHTED_AVG", "Combination":["quiet_therm"], - "Coefficient":[0.105], - "Offset":2576, + "Coefficient":[0.017], + "Offset":927, "Multiplier":0.001 }, { diff --git a/thermal/thermal_info_config_komodo.json b/thermal/thermal_info_config_komodo.json index 50dec2aa..8355c89b 100644 --- a/thermal/thermal_info_config_komodo.json +++ b/thermal/thermal_info_config_komodo.json @@ -107,8 +107,8 @@ "VirtualSensor":true, "Formula":"WEIGHTED_AVG", "Combination":["quiet_therm"], - "Coefficient":[0.088], - "Offset":1882, + "Coefficient":[0.051], + "Offset":780, "Multiplier":0.001 }, { From 8a52ed0919759bdc9f3cddbf10b9a088657f26ca Mon Sep 17 00:00:00 2001 From: Taeju Park Date: Tue, 21 May 2024 18:50:45 +0000 Subject: [PATCH 2/7] powerhint: bug fix for PMU_FORCE_LIMIT PMU_FORCE_LIMIT node is used without declaration Bug: 341151887 Change-Id: I6ca864d80e25a5c81f04606d0a3315edd1357386 Signed-off-by: Taeju Park --- perf/powerhint-zuma.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/perf/powerhint-zuma.json b/perf/powerhint-zuma.json index d5649f28..7476ae4c 100644 --- a/perf/powerhint-zuma.json +++ b/perf/powerhint-zuma.json @@ -627,6 +627,15 @@ ], "DefaultIndex": 0 }, + { + "Name": "PMU_FORCE_LIMIT", + "Path": "/proc/vendor_sched/pmu_force_limited", + "Values": [ + "1", + "0" + ], + "DefaultIndex": 0 + }, { "Name": "EM_Profile", "Path": "/sys/kernel/pixel_em/active_profile", From 53624486468ecf6345d8542f242ae01f0bca24d2 Mon Sep 17 00:00:00 2001 From: Justin Weir Date: Tue, 21 May 2024 15:54:30 -0400 Subject: [PATCH 3/7] Reduce rounded_corner_radius to 142 Bug: 335357341 Test: manually checked values between 120 and 152 via binary search Flag: NONE Change-Id: I9edf6bc3d218adb0f6fc465dbe3a52e04838e206 --- .../overlay/frameworks/base/core/res/res/values/dimens.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/caiman/overlay/frameworks/base/core/res/res/values/dimens.xml b/caiman/overlay/frameworks/base/core/res/res/values/dimens.xml index 3a05753e..a59f8ab3 100644 --- a/caiman/overlay/frameworks/base/core/res/res/values/dimens.xml +++ b/caiman/overlay/frameworks/base/core/res/res/values/dimens.xml @@ -19,7 +19,7 @@ - 157px - 157px - 157px + 142px + 142px + 142px From 0fbeed22d469d04c92af5e4c3d7a46b02dbc61f1 Mon Sep 17 00:00:00 2001 From: Justin Weir Date: Tue, 21 May 2024 17:09:43 -0400 Subject: [PATCH 4/7] Reduce rounded_corner_radius to 137 Bug: 335357341 Test: manually checked values between 137 and 153 via binary search Flag: NONE Change-Id: Id01d2df6668004b63ad7a906a8e9707ab1636882 --- .../overlay/frameworks/base/core/res/res/values/dimens.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/komodo/overlay/frameworks/base/core/res/res/values/dimens.xml b/komodo/overlay/frameworks/base/core/res/res/values/dimens.xml index ddb2caf5..6593577e 100644 --- a/komodo/overlay/frameworks/base/core/res/res/values/dimens.xml +++ b/komodo/overlay/frameworks/base/core/res/res/values/dimens.xml @@ -19,7 +19,7 @@ - 153px - 153px - 153px + 137px + 137px + 137px From 1b7d302e068597cfaa7ed8c41fdbee946ac0ef2b Mon Sep 17 00:00:00 2001 From: Sayanna Chandula Date: Tue, 21 May 2024 15:46:35 -0700 Subject: [PATCH 5/7] thermal: set virtualskin model cache interval to 7 seconds With previous samples being used in vt estimation, the sampling period between vt estimation calls impact vt accuracy. Currently vt model is using default cache interval of 2 seconds. This change sets the cache interval to 7 seconds explicitly to match with passive delay Bug: 341967304 Test: Check vt estimation invoke calls with frequency thermalservice dump Change-Id: Ic6a38939b2bec88a66c87517e6efa548566ea877 Signed-off-by: Sayanna Chandula --- thermal/thermal_info_config_caiman.json | 3 ++- thermal/thermal_info_config_komodo.json | 3 ++- thermal/thermal_info_config_tokay.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/thermal/thermal_info_config_caiman.json b/thermal/thermal_info_config_caiman.json index 84a0285d..faa729d7 100644 --- a/thermal/thermal_info_config_caiman.json +++ b/thermal/thermal_info_config_caiman.json @@ -230,7 +230,8 @@ "PreviousSampleCount": 3, "OffsetThresholds" : [50000, 53000], "OffsetValues" : [500, 1000], - "BackupSensor" : "VIRTUAL-SKIN-LEGACY" + "BackupSensor" : "VIRTUAL-SKIN-LEGACY", + "TimeResolution": 7000 }, { "Name": "VIRTUAL-SKIN-MODEL-UPPER-CLAMPED", diff --git a/thermal/thermal_info_config_komodo.json b/thermal/thermal_info_config_komodo.json index 518f9572..bb8b9ec4 100644 --- a/thermal/thermal_info_config_komodo.json +++ b/thermal/thermal_info_config_komodo.json @@ -220,7 +220,8 @@ "PreviousSampleCount": 3, "OffsetThresholds" : [50000, 53000], "OffsetValues" : [500, 1000], - "BackupSensor" : "VIRTUAL-SKIN-LEGACY" + "BackupSensor" : "VIRTUAL-SKIN-LEGACY", + "TimeResolution": 7000 }, { "Name": "VIRTUAL-SKIN-MODEL-UPPER-CLAMPED", diff --git a/thermal/thermal_info_config_tokay.json b/thermal/thermal_info_config_tokay.json index 428f1a55..7392bf6b 100644 --- a/thermal/thermal_info_config_tokay.json +++ b/thermal/thermal_info_config_tokay.json @@ -209,7 +209,8 @@ "PreviousSampleCount": 3, "OffsetThresholds" : [50000, 53000], "OffsetValues" : [500, 1000], - "BackupSensor" : "VIRTUAL-SKIN-LEGACY" + "BackupSensor" : "VIRTUAL-SKIN-LEGACY", + "TimeResolution": 7000 }, { "Name": "VIRTUAL-SKIN-MODEL-UPPER-CLAMPED", From 3a28c58c51ac5556ad31e756a19ed3ba3ee42db5 Mon Sep 17 00:00:00 2001 From: Justin Weir Date: Tue, 21 May 2024 17:09:43 -0400 Subject: [PATCH 6/7] Reduce rounded_corner_radius to 137 Bug: 335357341 Test: manually checked values between 137 and 153 via binary search Flag: NONE Change-Id: Id01d2df6668004b63ad7a906a8e9707ab1636882 --- .../overlay/frameworks/base/core/res/res/values/dimens.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/komodo/overlay/frameworks/base/core/res/res/values/dimens.xml b/komodo/overlay/frameworks/base/core/res/res/values/dimens.xml index ddb2caf5..6593577e 100644 --- a/komodo/overlay/frameworks/base/core/res/res/values/dimens.xml +++ b/komodo/overlay/frameworks/base/core/res/res/values/dimens.xml @@ -19,7 +19,7 @@ - 153px - 153px - 153px + 137px + 137px + 137px From f912f45dee12f05130bd8955041f1f9de6dfe438 Mon Sep 17 00:00:00 2001 From: Justin Weir Date: Tue, 21 May 2024 15:54:30 -0400 Subject: [PATCH 7/7] Reduce rounded_corner_radius to 142 Bug: 335357341 Test: manually checked values between 120 and 152 via binary search Flag: NONE Change-Id: I9edf6bc3d218adb0f6fc465dbe3a52e04838e206 --- .../overlay/frameworks/base/core/res/res/values/dimens.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/caiman/overlay/frameworks/base/core/res/res/values/dimens.xml b/caiman/overlay/frameworks/base/core/res/res/values/dimens.xml index 3a05753e..a59f8ab3 100644 --- a/caiman/overlay/frameworks/base/core/res/res/values/dimens.xml +++ b/caiman/overlay/frameworks/base/core/res/res/values/dimens.xml @@ -19,7 +19,7 @@ - 157px - 157px - 157px + 142px + 142px + 142px