From c1299580b75871ed7262249b364e2178cabc032d Mon Sep 17 00:00:00 2001 From: Marc Bourgoin Date: Mon, 2 Oct 2023 14:28:58 -0600 Subject: [PATCH] xpeng: Swap thermal config for xpeng-game-perf The default thermal-engine-xpeng.conf is way too agressive with throttling that the performance is way too low for any users trying to play 3D games on a Snapdragon 888+ runs slower than a SD 778G+, so let's swap to the xpeng-game-perf config as when we compared the configs it allows for a better performance to thermal balance. We also checked xpeng-perf but that one was more of a "let's get the highest scores in a benchmark and turn the device into a handwarmer" kind of thermal config. Change-Id: Id5c991a198ef6be61009a9785b5e8604aa1fdc91 --- ...nf => thermal-engine-xpeng-game-perf.conf} | 36 +++++++++---------- device.mk | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) rename configs/{thermal-engine-xpeng.conf => thermal-engine-xpeng-game-perf.conf} (83%) diff --git a/configs/thermal-engine-xpeng.conf b/configs/thermal-engine-xpeng-game-perf.conf similarity index 83% rename from configs/thermal-engine-xpeng.conf rename to configs/thermal-engine-xpeng-game-perf.conf index 9fae2dd..8244155 100644 --- a/configs/thermal-engine-xpeng.conf +++ b/configs/thermal-engine-xpeng-game-perf.conf @@ -34,7 +34,7 @@ sys_temp [BACK_PATEMP1] algo_type virtual trip_sensor modem-mmw-pa1-usr -thresholds 50000 +thresholds 53000 thresholds_clr 40000 sensors camera-therm-usr quiet_therm usb_therm weights 42 37 21 @@ -45,7 +45,7 @@ math 0 [BACK_PATEMP2] algo_type virtual trip_sensor modem-mmw-pa2-usr -thresholds 50000 +thresholds 53000 thresholds_clr 40000 sensors camera-therm-usr quiet_therm usb_therm weights 42 37 21 @@ -116,37 +116,37 @@ override_c 10000 algo_type monitor sampling 1000 sensor BACK_TEMP -thresholds 38000 40000 43000 48000 -thresholds_clr 36000 38000 40000 43000 -actions cpu0 cpu0 cpu0 cpu0 -action_info 1708800 1497600 1305600 1094400 +thresholds 42500 45000 48000 +thresholds_clr 41000 42500 45000 +actions cpu0 cpu0 cpu0 +action_info 1708800 1497600 1305600 [MON-MSM-CPU4] algo_type monitor sampling 1000 sensor BACK_TEMP -thresholds 37000 39000 43000 48000 -thresholds_clr 36000 37000 39000 43000 -actions cpu4 cpu4 cpu4 cpu4 -action_info 1996800 1670400 1440000 1209600 +thresholds 43000 44000 45000 46000 52000 +thresholds_clr 41000 43000 44000 45000 49000 +actions cpu4 cpu4 cpu4 cpu4 cpu4 +action_info 2227200 1996800 1881600 1766400 1440000 [MON-MSM-CPU7] algo_type monitor sampling 1000 sensor BACK_TEMP -thresholds 37000 38000 39000 43000 -thresholds_clr 36000 37000 38000 39000 -actions cpu7 cpu7 cpu7 cpu7 -action_info 1785600 1555200 1305600 1075200 +thresholds 40000 41000 42000 43000 44000 +thresholds_clr 38000 40000 41000 42000 43000 +actions cpu7 cpu7 cpu7 cpu7 cpu7 +action_info 2150400 1785600 1555200 1305600 1075200 [MON-MSM-GPU] algo_type monitor sampling 1000 sensor BACK_TEMP -thresholds 39000 40000 41000 42000 43000 -thresholds_clr 37000 39000 40000 41000 42000 -actions gpu gpu gpu gpu gpu -action_info 608000000 540000000 443000000 379000000 315000000 +thresholds 41000 43000 46000 50000 +thresholds_clr 39000 41000 43000 47000 +actions gpu gpu gpu gpu +action_info 676000000 608000000 540000000 443000000 [MON-MODEM1] algo_type monitor diff --git a/device.mk b/device.mk index 263d076..e0e25a7 100644 --- a/device.mk +++ b/device.mk @@ -102,7 +102,7 @@ PRODUCT_COPY_FILES += \ # Thermal PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/thermal-engine-xpeng.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-xpeng.conf + $(LOCAL_PATH)/configs/thermal-engine-xpeng-game-perf.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-xpeng.conf # Inherit from vendor blobs $(call inherit-product, vendor/motorola/xpeng/xpeng-vendor.mk)