From 1be5765f1ef0a9e268d03c68482b921d606a5526 Mon Sep 17 00:00:00 2001 From: pointerkung Date: Tue, 27 Sep 2022 20:15:10 +0800 Subject: [PATCH 1/3] Camera powerhint update Sync PMU and EM_Profile tuning changes (ag/19819352, ag/20017229) for 60fps power saving. Bug: 253411744 Test: Build pass, GCA, Camera power/performance evaluation Change-Id: I21ddc855c0eace1ad516ba1c9ccd9736fc924671 --- powerhint.json | 144 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 126 insertions(+), 18 deletions(-) diff --git a/powerhint.json b/powerhint.json index 7a0d0f7..18817dd 100644 --- a/powerhint.json +++ b/powerhint.json @@ -510,6 +510,78 @@ ], "DefaultIndex": 0 }, + { + "Name": "EM_Profile", + "Path": "/sys/kernel/pixel_em/active_profile", + "Values": [ + "default", + "cam1" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_LIT_LCPI_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu0/cpufreq/sched_pixel/lcpi_threshold", + "Values": [ + "2", + "0" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_LIT_SPC_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu0/cpufreq/sched_pixel/spc_threshold", + "Values": [ + "70", + "0" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_MID_LCPI_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/lcpi_threshold", + "Values": [ + "6", + "3" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_MID_SPC_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/spc_threshold", + "Values": [ + "65", + "50" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_BIG_LIMIT_FREQ", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/sched_pixel/limit_frequency", + "Values": [ + "2507000", + "1826000" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_BIG_LCPI_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/sched_pixel/lcpi_threshold", + "Values": [ + "5", + "3" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_BIG_SPC_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/sched_pixel/spc_threshold", + "Values": [ + "69", + "50" + ], + "DefaultIndex": 0 + }, { "Name": "Dex2oatThreads", "Path": "vendor.powerhal.dalvik.vm.dex2oat-threads", @@ -995,6 +1067,60 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_POLL", + "Duration": 0, + "Value": "1" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_LIT_LCPI_THRESHOLD", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_LIT_SPC_THRESHOLD", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_MID_LCPI_THRESHOLD", + "Duration": 0, + "Value": "3" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_MID_SPC_THRESHOLD", + "Duration": 0, + "Value": "50" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_BIG_LIMIT_FREQ", + "Duration": 0, + "Value": "1826000" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_BIG_LCPI_THRESHOLD", + "Duration": 0, + "Value": "3" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_BIG_SPC_THRESHOLD", + "Duration": 0, + "Value": "50" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "EM_Profile", + "Duration": 0, + "Value": "cam1" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PowerHALCameraRunning", @@ -1007,30 +1133,12 @@ "Duration": 0, "Value": "1100 1078 1024" }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "CPUMidClusterMaxFreq", - "Duration": 0, - "Value": "1491000" - }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "CPUBigClusterMaxFreq", - "Duration": 0, - "Value": "1826000" - }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CDPreferHighCap", "Duration": 0, "Value": "1" }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "CPULittleClusterMaxFreq", - "Duration": 0, - "Value": "1401000" - }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "MemFreq", From da2b518a5cde8dfe9a7855d5cda29e1c554317d9 Mon Sep 17 00:00:00 2001 From: junkyukang Date: Mon, 28 Nov 2022 15:38:55 +0800 Subject: [PATCH 2/3] [L10] gps: enable GNSS PPS feature Bug: 260532637 Test: Gnss measurement elapsedrealtime work && suspend/resume work, validity test Change-Id: Iea71f2fe6bb662bec704d4f6c7b7d5b31a8e173d --- location/gps.xml.l10 | 2 ++ location/gps_user.xml.l10 | 2 ++ location/lhd.conf.l10 | 1 + location/lhd_user.conf.l10 | 1 + 4 files changed, 6 insertions(+) diff --git a/location/gps.xml.l10 b/location/gps.xml.l10 index c243cd3..61c31d9 100644 --- a/location/gps.xml.l10 +++ b/location/gps.xml.l10 @@ -61,9 +61,11 @@ ReAidingOnHotStart="false" ReAidingIntervalSec="1200" RuntimeSwLteFilterEnable="true" + PpsDevice="/sys/class/pps/pps0/assert_elapsed" /> Date: Wed, 30 Nov 2022 17:56:36 +0800 Subject: [PATCH 3/3] gps: Disable SUPL OTDOA Bug: 260816431 Test: VtsHalGnssTargetTest pass CtsLocationGnssTestCases pass PtsChreTestCases pass Change-Id: Ic228089381e51594b5e40ff3298b2e2a807ca1cd --- location/gps.xml.l10 | 1 - location/gps_user.xml.l10 | 1 - 2 files changed, 2 deletions(-) diff --git a/location/gps.xml.l10 b/location/gps.xml.l10 index 61c31d9..cb3f8ba 100644 --- a/location/gps.xml.l10 +++ b/location/gps.xml.l10 @@ -35,7 +35,6 @@ SuplVersion="2" SuplMinorVersion="0" SuplOtdoaCapable="true" - SuplOtdoaCapable2="true" SuplGlonassCapable = "true" SuplGalileoCapable = "true" SuplBdsCapable = "true" diff --git a/location/gps_user.xml.l10 b/location/gps_user.xml.l10 index 477e7f4..0724367 100644 --- a/location/gps_user.xml.l10 +++ b/location/gps_user.xml.l10 @@ -34,7 +34,6 @@ SuplVersion="2" SuplMinorVersion="0" SuplOtdoaCapable="true" - SuplOtdoaCapable2="true" SuplGlonassCapable = "true" SuplGalileoCapable = "true" SuplBdsCapable = "true"