From 0f77dbcff0de3c995d66336e9e77a89eb9ce14f2 Mon Sep 17 00:00:00 2001 From: James Huang Date: Thu, 14 Mar 2024 16:41:12 +0800 Subject: [PATCH 1/5] gps: Update gps.cfg for GNSS FW 4.15.0.150.P1 Add ENABLE_CAPS_OTDOA=1 to enable OTDOA by default Remove below two value and set default by code: - Chip_Configuration_GNSSConstConstraintDef - LocTech_Constraints Bug: 329328103 Test: Do VTS/CTS and GNSS sanity test. Change-Id: Ie3fc504c558fa3760ac84702469c825db5634237 --- location/user/gps.cfg | 3 +-- location/userdebug/gps.cfg | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/location/user/gps.cfg b/location/user/gps.cfg index 33da69e..ea20559 100644 --- a/location/user/gps.cfg +++ b/location/user/gps.cfg @@ -21,8 +21,6 @@ ChipCfg_VDR_low_end_Time = 20 Chip_Configuration_AidingConfiguration=0x00020046 Chip_Configuration_RefClkControl=0x24 Chip_Configuration_DCXO_CrystalType=0x11 -Chip_Configuration_GNSSConstConstraintDef = 0x60BF -LocTech_Constraints = 0x60BF Chip_Configuration_RfMiscCtrl = 0x80008001 bdsUsedInUSPolicy=2 sbasUsedInUSPolicy=2 @@ -65,6 +63,7 @@ isUseUncalAccel=1 GNSS_CARRIER_CONFIG_BEGIN GNSS_CARRIER_ID=0 +ENABLE_CAPS_OTDOA=1 ENABLE_2G_CP_CAPS_MSA=1 ENABLE_2G_CP_CAPS_MSB=1 ENABLE_3G_CP_CAPS_MSA=1 diff --git a/location/userdebug/gps.cfg b/location/userdebug/gps.cfg index 3d631ad..074837c 100644 --- a/location/userdebug/gps.cfg +++ b/location/userdebug/gps.cfg @@ -90,9 +90,6 @@ Chip_Configuration_DCXO_CrystalType=0x11 # Range should be 2000 to 3100 #Chip_Configuration_DCXO_InflectionPoint=2855 -# L1 + L5 MCW -Chip_Configuration_GNSSConstConstraintDef = 0x60BF -LocTech_Constraints = 0x60BF Chip_Configuration_RfMiscCtrl = 0x80008001 ### 2C48 L1 only MCW ### @@ -198,6 +195,7 @@ isUseUncalAccel=1 GNSS_CARRIER_CONFIG_BEGIN # DEFAULT GNSS_CARRIER_ID=0 +ENABLE_CAPS_OTDOA=1 ENABLE_2G_CP_CAPS_MSA=1 ENABLE_2G_CP_CAPS_MSB=1 ENABLE_3G_CP_CAPS_MSA=1 From 260bdb4424c034f916f5d3511b936c920d721234 Mon Sep 17 00:00:00 2001 From: "Kevin (Chung-Kai) Yang" Date: Thu, 14 Mar 2024 11:48:30 +0000 Subject: [PATCH 2/5] power_profile.xml: Update CPU Parameters for Comet Test: manual test Bug: 324079178 Change-Id: Ic3f1ebca3e69803a0e6e1f5c3f0f32c1bad73741 Signed-off-by: Kevin (Chung-Kai) Yang --- .../base/core/res/res/xml/power_profile.xml | 194 ++++++++++++++++++ 1 file changed, 194 insertions(+) create mode 100644 comet/overlay/frameworks/base/core/res/res/xml/power_profile.xml diff --git a/comet/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/comet/overlay/frameworks/base/core/res/res/xml/power_profile.xml new file mode 100644 index 0000000..dd14f6a --- /dev/null +++ b/comet/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,194 @@ + + + + + + 4 + 3 + 1 + + 9.28 + 22.71 + 10.62 + 0 + 1.12 + 2.2 + + + 324000 + 610000 + 820000 + 955000 + 1098000 + 1197000 + 1328000 + 1425000 + 1548000 + 1696000 + 1849000 + 1950000 + + + + 357000 + 578000 + 648000 + 787000 + 910000 + 1065000 + 1221000 + 1328000 + 1418000 + 1549000 + 1795000 + 1945000 + 2130000 + 2245000 + 2367000 + 2450000 + 2600000 + + + + 700000 + 1164000 + 1296000 + 1557000 + 1745000 + 1885000 + 1999000 + 2147000 + 2294000 + 2363000 + 2499000 + 2687000 + 2802000 + 2914000 + 2943000 + 2970000 + 3015000 + 3105000 + + + + 1.27 + 5.87 + 6.5 + 7.93 + 10.5 + 14.06 + 16.18 + 17.65 + 20.92 + 24.67 + 34.09 + 47.41 + + + + 5.4 + 8.9 + 9.9 + 12.65 + 14.65 + 18.15 + 22.65 + 25.15 + 28.65 + 33.9 + 46.4 + 56.9 + 71.15 + 81.4 + 92.9 + 102.4 + 124.9 + + + + 16.91 + 29.84 + 39.6 + 47.85 + 58.03 + 66.96 + 74.66 + 87.45 + 102.03 + 110.83 + 130.63 + 165.41 + 193.74 + 229.21 + 238.15 + 244.34 + 251.35 + 253.83 + + + 32 + + 98 + + 470 + + 240.47 + + 900 + + 25 + + 75 + + 0 + 156 + 145 + + 153 + 212 + 292 + 359 + 471 + + 3700 + + + 28 + 5 + + 3700 + + 79 + + 118 + + 331 + + 3700 + From 52f6cf708f276843f29dc525a547fdaed748a32f Mon Sep 17 00:00:00 2001 From: "Kevin (Chung-Kai) Yang" Date: Thu, 14 Mar 2024 12:05:52 +0000 Subject: [PATCH 3/5] Revert "power_profile: initialize comet power_profile.xml" Revert submission 26498470-init_zuma_pro_power_profile Reason for revert: This may cause conflict on other branches. Reverted changes: /q/submissionid:26498470-init_zuma_pro_power_profile Bug: 324079178 Change-Id: I7dcc331eee9362f67f2ecfe56e30207f10a6e703 --- .../base/core/res/res/xml/power_profile.xml | 194 ------------------ 1 file changed, 194 deletions(-) delete mode 100644 comet/overlay/frameworks/base/core/res/res/xml/power_profile.xml diff --git a/comet/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/comet/overlay/frameworks/base/core/res/res/xml/power_profile.xml deleted file mode 100644 index 6242a6c..0000000 --- a/comet/overlay/frameworks/base/core/res/res/xml/power_profile.xml +++ /dev/null @@ -1,194 +0,0 @@ - - - - - - 4 - 3 - 1 - - 10 - 28.6 - 12.37 - 0.24 - 3.23 - 5.94 - - - 324000 - 610000 - 820000 - 955000 - 1098000 - 1197000 - 1328000 - 1425000 - 1548000 - 1696000 - 1849000 - 1950000 - - - - 357000 - 578000 - 648000 - 787000 - 910000 - 1065000 - 1221000 - 1328000 - 1418000 - 1549000 - 1795000 - 1945000 - 2130000 - 2245000 - 2367000 - 2450000 - 2600000 - - - - 700000 - 1164000 - 1296000 - 1557000 - 1745000 - 1885000 - 1999000 - 2147000 - 2294000 - 2363000 - 2499000 - 2687000 - 2802000 - 2914000 - 2943000 - 2970000 - 3015000 - 3105000 - - - - 1.89 - 6.15 - 9.34 - 14.22 - 18.94 - 21.98 - 26.83 - 30.17 - 41.55 - 48.36 - 58.45 - 68 - - - - 6.5 - 10 - 11 - 13.75 - 15.75 - 19.25 - 23.75 - 26.25 - 29.75 - 35 - 47.5 - 58 - 72.25 - 82.5 - 94 - 103.5 - 126 - - - - 19.11 - 32.04 - 41.8 - 50.05 - 60.23 - 69.16 - 76.86 - 89.65 - 104.23 - 113.03 - 132.83 - 167.61 - 195.94 - 231.41 - 240.35 - 246.54 - 253.55 - 256.03 - - - 32 - - 98 - - 470 - - 240.47 - - 900 - - 25 - - 75 - - 0 - 156 - 145 - - 153 - 212 - 292 - 359 - 471 - - 3700 - - - 28 - 5 - - 3700 - - 79 - - 118 - - 331 - - 3700 - From e70e81621b178362009811bedd2cbfb24ac15a8b Mon Sep 17 00:00:00 2001 From: Chungkai Mei Date: Mon, 4 Mar 2024 06:14:57 +0000 Subject: [PATCH 4/5] powerhint: port util threshold change to comet Change util_threshold for little cluster to 50%. Keep value at 1280 for CAMERA_STREAMING_LOW/CAMERA_STREAMING_STANDARD Bug: b/316035859 Test: a/b UIBench test in lab Change-Id: I594dd8ccecef6e26dd2c7ae73b4bee79f39f838c Signed-off-by: Chungkai Mei --- powerhint-comet.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index c5fe44a..499dfac 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -237,9 +237,10 @@ "Name": "CPUUtilThreshold", "Path": "/proc/vendor_sched/util_threshold", "Values": [ + "2048 1280 1280", "1280", "1100", - "1100 1024 1100" + "1100 1078 1024" ], "DefaultIndex": 0, "ResetOnInit": true @@ -1874,7 +1875,7 @@ "Node": "CPUDVFSHeadroom", "Duration": 0, "Value": "1280 1100 1055" - }, + } { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CDPreferHighCap", @@ -1941,6 +1942,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_LOW", + "Node": "CPUUtilThreshold", + "Duration": 0, + "Value": "1280" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CDPreferHighCap", From e239802407df15e11aa72b40f6a138994d5d7a16 Mon Sep 17 00:00:00 2001 From: Chungkai Mei Date: Thu, 14 Mar 2024 09:39:05 +0000 Subject: [PATCH 5/5] powerhint: port dvfs_headroom settings from caimito Bug: 322000346 Test: a/b UIBench test Change-Id: I50d3eccc1e663ac5db3792c98a6a73a297a888e3 Signed-off-by: Chungkai Mei --- powerhint-comet.json | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index 499dfac..669e27c 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -251,7 +251,7 @@ "Values": [ "1280", "1100", - "1280 1100 1055" + "1100 1078 1024" ], "DefaultIndex": 0, "ResetOnInit": true @@ -1718,7 +1718,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPUDVFSHeadroom", "Duration": 0, - "Value": "1100" + "Value": "1100 1078 1024" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1792,6 +1792,12 @@ "Duration": 0, "Value": "700000" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUDVFSHeadroom", + "Duration": 0, + "Value": "1280" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PowerHALCameraRunning", @@ -1864,18 +1870,6 @@ "Duration": 0, "Value": "cam2" }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "CPUUtilThreshold", - "Duration": 0, - "Value": "1100 1024 1100" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "CPUDVFSHeadroom", - "Duration": 0, - "Value": "1280 1100 1055" - } { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CDPreferHighCap", @@ -1936,6 +1930,12 @@ "Duration": 0, "Value": "camera" }, + { + "PowerHint": "CAMERA_STREAMING_LOW", + "Node": "CPUDVFSHeadroom", + "Duration": 0, + "Value": "1280" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "PowerHALCameraRunning", @@ -2118,13 +2118,13 @@ }, { "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", - "Node": "CPUUtilThreshold", + "Node": "CPUDVFSHeadroom", "Duration": 0, "Value": "1100" }, { "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", - "Node": "CPUDVFSHeadroom", + "Node": "CPUUtilThreshold", "Duration": 0, "Value": "1100" },