From a928677845907dd213ae7b1ea12eb58ae28c24cc Mon Sep 17 00:00:00 2001 From: Chungkai Mei Date: Thu, 3 Oct 2024 08:19:12 +0000 Subject: [PATCH 1/4] powerhint.json: enable gpu capacity signalling. Enables a signal indicating that the app has janked as detected by the ADPF API. Flag: NONE align device tuning from P24. Test: perf / power tests Bug: 371094656 Signed-off-by: Chungkai Mei (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:12af273b1734b6396558dc2432688dae242b29b6) Merged-In: I19279e0f5a5fea59ffd0728128d6170f61e8a3e2 Change-Id: I19279e0f5a5fea59ffd0728128d6170f61e8a3e2 --- powerhint-comet.json | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index 13c68ae..9ee8410 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -3583,6 +3583,7 @@ "Value": "20 80" } ], + "GpuSysfsPath" : "/sys/devices/platform/1f000000.mali", "AdpfConfig": [ { "Name": "REFRESH_120FPS", @@ -3618,7 +3619,9 @@ "HBoostUclampMinFloorRange": [230, 410], "JankCheckTimeFactor": 1.2, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 40000 }, { "Name": "REFRESH_90FPS", @@ -3654,7 +3657,9 @@ "HBoostUclampMinFloorRange": [230, 410], "JankCheckTimeFactor": 1.2, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 32500 }, { "Name": "REFRESH_60FPS", @@ -3690,7 +3695,9 @@ "HBoostUclampMinFloorRange": [230, 410], "JankCheckTimeFactor": 1.2, "LowFrameRateThreshold": 25, - "MaxRecordsNum": 300 + "MaxRecordsNum": 300, + "GpuBoost": true, + "GpuCapacityBoostMax": 25000 }, { "Name": "UiHighBoostWithoutPid", @@ -3714,7 +3721,8 @@ "UclampMax_EfficientOffset": 200, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false }, { "Name": "UiLowBoostWithoutPid", @@ -3738,7 +3746,8 @@ "UclampMax_EfficientOffset": 200, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false }, { "Name": "UiLowNoneBoost", @@ -3762,7 +3771,8 @@ "UclampMax_EfficientOffset": 200, "ReportingRateLimitNs": 1, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 5.0 + "StaleTimeFactor": 5.0, + "GpuBoost": false } ] } From f2caec54b7c746156f163acd1443bcc3fb5fda79 Mon Sep 17 00:00:00 2001 From: Chungkai Mei Date: Thu, 3 Oct 2024 08:28:26 +0000 Subject: [PATCH 2/4] powerhint: port dvfs_headroom settings from p24 Flag: NONE align device tuning from P24. Bug: 371094656 Test: boot Signed-off-by: Chungkai Mei (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:bb48ea5f64b6e0850cfefa4bb9d0225017b7e5cd) Merged-In: I858208921e64aefeee6f6abf60387fd80f5f5e34 Change-Id: I858208921e64aefeee6f6abf60387fd80f5f5e34 --- powerhint-comet.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index 9ee8410..ffb8488 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -3589,7 +3589,7 @@ "Name": "REFRESH_120FPS", "PID_On": true, "PID_Po": 2.0, - "PID_Pu": 1.0, + "PID_Pu": 0.6, "PID_I": 0.0, "PID_I_Init": 200, "PID_I_High": 512, From f94ef94966f411f52339cef4c8842c2ed4b99d32 Mon Sep 17 00:00:00 2001 From: Yvonne Yip Date: Wed, 9 Oct 2024 12:53:03 -0700 Subject: [PATCH 3/4] powerhint: enable auto_prefer_idle in games Bug: 353987938 Test: manual testing Flag: NONE powerhint (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dcc77598de87159d6605b70838c8862e14231412) Merged-In: I70bf789a476553f05ee016daec24592076daf283 Change-Id: I70bf789a476553f05ee016daec24592076daf283 --- powerhint-comet.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index ffb8488..913128c 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -3262,7 +3262,7 @@ "PowerHint": "GAME", "Node": "AutoPreferIdle", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", From 69e0b38bc4b98182c3d00f9e9d2a5b225ec91474 Mon Sep 17 00:00:00 2001 From: James Huang Date: Sun, 20 Oct 2024 21:17:06 +0800 Subject: [PATCH 4/4] gps: Update official release 4.15.3_7_241024_R1 config on CT3 Add Chip_Configuration_ntn_option=2 bug: 369951938 Test: NTN test (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6893af62537d4d6f28a06626a534850b010ad02b) Merged-In: Id4c40653d9ac2329a2d673830755e5620ff90223 Change-Id: Id4c40653d9ac2329a2d673830755e5620ff90223 --- location/user/gps.cfg | 1 + location/userdebug/gps.cfg | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/location/user/gps.cfg b/location/user/gps.cfg index 859944c..d41a982 100644 --- a/location/user/gps.cfg +++ b/location/user/gps.cfg @@ -29,6 +29,7 @@ Chip_Configuration_DCXO_CrystalType=0x11 Chip_Configuration_GNSSConstConstraintDef = 0x60FF LocTech_Constraints = 0x60FF Chip_Configuration_RfMiscCtrl = 0x80008001 +Chip_Configuration_ntn_option=2 bdsUsedInUSPolicy=2 sbasUsedInUSPolicy=2 qzssUsedInUSPolicy=2 diff --git a/location/userdebug/gps.cfg b/location/userdebug/gps.cfg index 26d28a7..0641d1f 100644 --- a/location/userdebug/gps.cfg +++ b/location/userdebug/gps.cfg @@ -115,6 +115,11 @@ Chip_Configuration_RfMiscCtrl = 0x80008001 #Chip_Configuration_RfMiscCtrl=0x8001 #Chip_Configuration_IspTestConfig=0x22242822 +#Chip_Configuration_ntn_option=0 means no NTN blackout IPC handling +#Chip_Configuration_ntn_option=1 means L1 blanking during NTN blackout period. +#Chip_Configuration_ntn_option=2 means turning GNSS off during NTN blackout period. +Chip_Configuration_ntn_option=2 + # Disable BDS in the U.S. # 0-enabled (default), 1-disabled, 2-auto(disabled in US) #gloUsedInUSPolicy=2 @@ -127,7 +132,7 @@ navicUsedInUSPolicy=2 # DFS: 0 = Disabled, 1 = Enabled (default) Chip_Configuration_FeatureCfg_DVS = 1 Chip_Configuration_FeatureCfg_DFS = 1 -# Disable MTPL +# MTPL: 0 = Disabled, 1 = Enabled Chip_Configuration_FeatureCfg_MTPL = 1 # MCW Link failure behavior: 0 = SW Assert (default), 1 = GNSS restart (hot start) Chip_Configuration_FeatureCfg_SDL_BYASS = 1