From 0a966c52ae772d49f47b3b2b649885f0651b2f24 Mon Sep 17 00:00:00 2001 From: jimmyshiu Date: Tue, 19 Apr 2022 16:32:37 +0000 Subject: [PATCH 1/2] powerhint: Add Adpf Profiles for L10 Add Adpf Profiles: 1. REFRESH_60FPS 2. REFRESH_90FPS 3. REFRESH_120FPS 4. UiHighBoostWithoutPid 5. UiLowBoostWithoutPid 6. UiLowNoneBoost (Default is index 0) Bug: 202158746 Test: boot to home Change-Id: Ice04c590ac2ac9ff6dbeac1640fc9e3731a7e725 --- powerhint.json | 148 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 147 insertions(+), 1 deletion(-) diff --git a/powerhint.json b/powerhint.json index b126f31..9354deb 100644 --- a/powerhint.json +++ b/powerhint.json @@ -1293,5 +1293,151 @@ "Duration": 0, "Value": "0-3" } - ] + ], + "AdpfConfig": [ + { + "Name": "REFRESH_120FPS", + "PID_On": true, + "PID_Po": 2.0, + "PID_Pu": 1.0, + "PID_I": 0.001, + "PID_I_Init": 200, + "PID_I_High": 512, + "PID_I_Low": -30, + "PID_Do": 500.0, + "PID_Du": 0.0, + "UclampMin_On": true, + "UclampMin_Granularity": 5, + "UclampMin_High": 384, + "UclampMin_Low": 2, + "SamplingWindow_P": 1, + "SamplingWindow_I": 0, + "SamplingWindow_D": 1, + "ReportingRateLimitNs": 83333330, + "EarlyBoost_On": false, + "EarlyBoost_TimeFactor": 0.0, + "TargetTimeFactor": 1.0, + "StaleTimeFactor": 20.0 + }, + { + "Name": "REFRESH_90FPS", + "PID_On": true, + "PID_Po": 2.0, + "PID_Pu": 1.0, + "PID_I": 0.001, + "PID_I_Init": 200, + "PID_I_High": 512, + "PID_I_Low": -30, + "PID_Do": 500.0, + "PID_Du": 0.0, + "UclampMin_On": true, + "UclampMin_Granularity": 5, + "UclampMin_High": 384, + "UclampMin_Low": 2, + "SamplingWindow_P": 1, + "SamplingWindow_I": 0, + "SamplingWindow_D": 1, + "ReportingRateLimitNs": 111111110, + "EarlyBoost_On": false, + "EarlyBoost_TimeFactor": 0.0, + "TargetTimeFactor": 1.0, + "StaleTimeFactor": 20.0 + }, + { + "Name": "REFRESH_60FPS", + "PID_On": true, + "PID_Po": 2.0, + "PID_Pu": 1.0, + "PID_I": 0.001, + "PID_I_Init": 200, + "PID_I_High": 512, + "PID_I_Low": -30, + "PID_Do": 500.0, + "PID_Du": 0.0, + "UclampMin_On": true, + "UclampMin_Granularity": 5, + "UclampMin_High": 384, + "UclampMin_Low": 2, + "SamplingWindow_P": 1, + "SamplingWindow_I": 0, + "SamplingWindow_D": 1, + "ReportingRateLimitNs": 166666660, + "EarlyBoost_On": false, + "EarlyBoost_TimeFactor": 0.0, + "TargetTimeFactor": 1.0, + "StaleTimeFactor": 20.0 + }, + { + "Name": "UiHighBoostWithoutPid", + "PID_On": false, + "PID_Po": 0, + "PID_Pu": 0, + "PID_I": 0, + "PID_I_Init": 0, + "PID_I_High": 0, + "PID_I_Low": 0, + "PID_Do": 0, + "PID_Du": 0, + "SamplingWindow_P": 1, + "SamplingWindow_I": 1, + "SamplingWindow_D": 1, + "UclampMin_On": true, + "UclampMin_Granularity": 0, + "UclampMin_High": 157, + "UclampMin_Low": 157, + "ReportingRateLimitNs": 1, + "EarlyBoost_On": false, + "EarlyBoost_TimeFactor": 0.0, + "TargetTimeFactor": 1.0, + "StaleTimeFactor": 5.0 + }, + { + "Name": "UiLowBoostWithoutPid", + "PID_On": false, + "PID_Po": 0, + "PID_Pu": 0, + "PID_I": 0, + "PID_I_Init": 0, + "PID_I_High": 0, + "PID_I_Low": 0, + "PID_Do": 0, + "PID_Du": 0, + "SamplingWindow_P": 1, + "SamplingWindow_I": 1, + "SamplingWindow_D": 1, + "UclampMin_On": true, + "UclampMin_Granularity": 0, + "UclampMin_High": 42, + "UclampMin_Low": 42, + "ReportingRateLimitNs": 1, + "EarlyBoost_On": false, + "EarlyBoost_TimeFactor": 0.0, + "TargetTimeFactor": 1.0, + "StaleTimeFactor": 5.0 + }, + { + "Name": "UiLowNoneBoost", + "PID_On": false, + "PID_Po": 0, + "PID_Pu": 0, + "PID_I": 0, + "PID_I_Init": 0, + "PID_I_High": 0, + "PID_I_Low": 0, + "PID_Do": 0, + "PID_Du": 0, + "SamplingWindow_P": 1, + "SamplingWindow_I": 1, + "SamplingWindow_D": 1, + "UclampMin_On": true, + "UclampMin_Granularity": 0, + "UclampMin_High": 0, + "UclampMin_Low": 0, + "ReportingRateLimitNs": 1, + "EarlyBoost_On": false, + "EarlyBoost_TimeFactor": 0.0, + "TargetTimeFactor": 1.0, + "StaleTimeFactor": 5.0 + } + ] } From 7d4c43f5fc39bf61a87f4720d4d3feb092e9a1c7 Mon Sep 17 00:00:00 2001 From: Cheney Ni Date: Fri, 15 Apr 2022 12:57:36 +0000 Subject: [PATCH 2/2] Bluetooth: Adds more debugging properties Set vendor properties about SoC logging and firmware snoop to true on userdebug build, and set to false under user build. Bug: 229691092 Test: Flash the build to check if there is SoC logging Change-Id: Idaf490a68fe5fbefb1338f351931553222191137 --- bluetooth/qti_default.mk | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/bluetooth/qti_default.mk b/bluetooth/qti_default.mk index 5adef0b..aba9799 100644 --- a/bluetooth/qti_default.mk +++ b/bluetooth/qti_default.mk @@ -51,7 +51,18 @@ PRODUCT_PROPERTY_OVERRIDES += \ ro.vendor.bluetooth.emb_wp_mode=false \ ro.vendor.bluetooth.wipower=false +# Bluetooth A2DP offloading PRODUCT_PROPERTY_OVERRIDES += \ - ro.bluetooth.a2dp_offload.supported=true \ - persist.bluetooth.a2dp_offload.disabled=true \ - persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac + ro.bluetooth.a2dp_offload.supported=true \ + persist.bluetooth.a2dp_offload.disabled=true \ + persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac + +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) +PRODUCT_PROPERTY_OVERRIDES += \ + persist.vendor.service.bdroid.soclog=true \ + persist.vendor.service.bdroid.fwsnoop=true +else +PRODUCT_PROPERTY_OVERRIDES += \ + persist.vendor.service.bdroid.soclog=false \ + persist.vendor.service.bdroid.fwsnoop=false +endif