Commit graph

950 commits

Author SHA1 Message Date
S Ashwin Balaji
9883d695b7 Merge "thermal: Expose VCharge-Sensors with throttling" into 24D1-dev 2024-05-03 07:17:51 +00:00
Treehugger Robot
b9eb047abf Merge "gps: disable AGPS L5" into 24D1-dev 2024-05-03 03:55:31 +00:00
Treehugger Robot
0911054efe Merge "odpm: support 2 random mappings to iio device" into 24D1-dev 2024-05-03 02:58:08 +00:00
Treehugger Robot
3d9abbb381 Merge "audio: remove non-supported analog headset" into 24D1-dev 2024-05-03 02:16:59 +00:00
Darren Hsu
bc80d65178 odpm: support 2 random mappings to iio device
VSYS_PWR_MMWAVE will be replaced with S12S_VDD_AUR on SUB6
only sku. The replacement failed sometimes because there are
2 random mappings to iio device.

Mapping 1
iio:device0 -> s2mpg14-odpm
iio:device1 -> s2mpg15-odpm

Mapping 2
iio:device0 -> s2mpg15-odpm
iio:device1 -> s2mpg14-odpm

Bug: 337665886
Bug: 338416918
Bug: 338316877
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I1c6f3ccc32a73f5b4758571882c4fca9df00c36a
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-05-03 01:46:54 +00:00
TeYuan Wang
1a2a883b47 thermal: Move TPU to the VSKIN-SOC PID loop
Bug: 322223131
Test: run TPU test
Change-Id: I9ed71aed7d2469bbeab0e792d72b2e4c5f618ebc
2024-05-02 23:40:07 +00:00
Wei Wang
c381116bd3 Merge "Revert "Set big core to cpu skip mask by default"" into 24D1-dev 2024-05-02 21:28:03 +00:00
Wei Wang
b64afc1747 Revert "Set big core to cpu skip mask by default"
This reverts commit 2cc7bc7c3d.

Reason for revert: may get geekbench5/6 regressed
Bug: 338140604
Bug: 338141118
Change-Id: I76b2b98ca233fccc1f9a15c99bbb622bd7869392
2024-05-02 20:26:43 +00:00
Treehugger Robot
cbb7525150 Merge "audio: 2024/04/26 Fortemedia tuning settings for RC v1" into 24D1-dev 2024-05-02 17:38:05 +00:00
Wayne Lin
b9548851c9 gps: disable AGPS L5
Bug: 336287475
Test: verify pass in b/336287475#comment25
Change-Id: Iffde98de5b7c8ea1e5218b87ff80d2ee31b065c0
2024-05-02 17:00:08 +00:00
Wayne Lin
5cd1a52d7d gps: disable requestRefLocCb to prevent incorrect cell info
Bug: 336760721
Test: verify pass in b/336760721#comment28
Change-Id: I4db133cbaa218d3a3a502c27264de5e4bae23bff
2024-05-02 22:15:32 +08:00
Carter Hsu
e11a334b3b audio: update Waves tuning
KM4:
- Improve sound profile overall (bass, tone, level, distortion, etc) from DF tuning
- Retune volume curve (compliant with battery and heat budgets)
- Update speaker-safe tuning (ringtone, alarm, notification)
- No need for thermal throttle (very low power)
- No need for BAACL tuning (no audible issues at 1.8A peak)
- Full acoustic testing complete
- Full power testing complete at speaker load (pending Monsoon battery test)
- Pending CTS compliance test
b8ad231b35a00ef24f349eb9c2a48ae95be63c92  /vendor/etc/waves_preset.mps
b8ad231b35a00ef24f349eb9c2a48ae95be63c92 *KM4_MangoXSS_REVERT2_LLv20Nv5_rebuild1.mps

CM4:
- Addresses many of the PTE bugs and is an improved tuning from previous versions.
- Reduces Power Usage compared to the previous release.
- SHA1Sum for MPS: 52927bbe91ba14c2412c1839cbc471c9ec6072bf
- SHA1Sum for XML: 449deead0bdc8642e43cdcc32578701699878c45

TK4:
- Addresses many of the PTE bugs and is an improved tuning from previous versions.
- Reduces Power Usage compared to the previous release.
- SHA1Sum for MPS: 52927bbe91ba14c2412c1839cbc471c9ec6072bf
- SHA1Sum for XML: 449deead0bdc8642e43cdcc32578701699878c45

Bug: 338159946
Bug: 338159502
Bug: 338141700
Test: verified by audio tuning team
Change-Id: I6108dee7335189a1fb98212a7e19d9cd9852ca47
Signed-off-by: Carter Hsu <carterhsu@google.com>
2024-05-02 05:55:03 +00:00
sashwinbalaji
77bd92b57d thermal: Expose VCharge-Sensors with throttling
Expose virtual charge sensors to which throttling is binded to and
hide those which don't have.

Unhide:
 - VIRTUAL-SKIN-CHARGE-WIRED
 - VIRTUAL-SKIN-CHARGE-PERSIST
Hide:
 - VIRTUAL-SKIN-CHARGE

Bug: 336193005
Test: Verify dumpsys
Change-Id: I4d83f6af17fccb7de8d053c9d981163c9dde0ea3
2024-05-02 09:10:14 +08:00
Ali K. Zadeh
7563d4d627 Merge "Change PMU_BIG_LIMIT_FREQUENCY of 1298MHz to 1396MHz" into 24D1-dev 2024-05-02 00:49:03 +00:00
Treehugger Robot
50d2756cae Merge "[P24] remove Thread HAL service" into 24D1-dev 2024-05-01 10:13:57 +00:00
Jikai Ma
e27cfe4bb8 thermal: update legacy formula with DVT test data
Bug: 320714468

Test: side load to device and successfully start thermal hal service.
Change-Id: I8189d7d7c94d590cc06ac82893d6b3dfd730585a
Signed-off-by: Jikai Ma <jikai@google.com>
2024-05-01 01:11:26 +00:00
Treehugger Robot
dba4c9beb1 Merge "Add POWER_EFFICIENCY uclamp max to adpf config" into 24D1-dev 2024-04-30 19:07:56 +00:00
Albert Chen
a6ab3f6d4a Merge "Fix missing QfpCalibration on userdebug builds" into 24D1-dev 2024-04-30 17:52:10 +00:00
Matt Buckley
4a19787592 Add POWER_EFFICIENCY uclamp max to adpf config
Add the "UclampMax_EfficientBase" value to the ADPF config in the
powerhint.json to specify efficient core scheduling in the static
case, and "UclampMax_EfficientOffset" for the dynamic case, for this
device.

Bug: 277285195
Test: manual
Change-Id: If377f6384a1a7863abf80f0a4a0cf0fe3074ec21
2024-04-30 16:54:35 +00:00
vincenttew
cd43eae838 audio: remove non-supported analog headset
Bug: 329470379
Change-Id: Id63337a22b584e044e15a36fda34c5cdea9282af
Signed-off-by: vincenttew <vincenttew@google.com>
2024-04-30 18:24:53 +08:00
Benson Li
a9af1a2b48 Add system property for concurrent encryption on LE and BR/EDR
Bug: 330704060
Change-Id: Idd154d27dedbb15262a4ce4d478fedaa6748b40f
Merged-In: Idd154d27dedbb15262a4ce4d478fedaa6748b40f
Test: make
(cherry picked from commit ca94ed1a3d)
2024-04-30 05:37:56 +00:00
Treehugger Robot
ab73d36be4 Merge "gps: Enable GAAM and disable magnetometer" into 24D1-dev 2024-04-30 04:50:24 +00:00
Cheng Chang
8150d89538 gps: Enable GAAM and disable magnetometer
Bug: 337715905
Test: Verified sensor service without magnetometer.
Change-Id: Ib0970f89fcb85b04d4f20e86a4896cb1c532527c
2024-04-30 02:41:25 +00:00
Sayanna Chandula
dbb9ba6344 thermal: fix typo in thermal config
Bug: 337094450
Test: Build and boot on device

Change-Id: I5884945aa8be3e1c881b49f5bb379a2ab3e05afb
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2024-04-29 18:29:26 -07:00
Sayanna Chandula
670fd87775 Merge changes from topic "p24-vt-dvt" into 24D1-dev
* changes:
  thermal: update vt models with dvt data
  thermal: add smooth transition from model to legacy vt
2024-04-29 20:30:39 +00:00
Ali K. Zadeh
32364863c3 Merge "Disable CDPreferIdle, set DSUMin to 610MHz for 60fps" into 24D1-dev 2024-04-29 20:22:15 +00:00
Cheng Chang
66b4d16914 gps: Disable AAM feature
Bug: 337715905
Test: Function verification at b/337735228
Change-Id: I957ac31df3cc807a31326447669b65558da135c8
2024-04-29 08:26:49 +00:00
Jason Hsu
4b8beee6fd audio: 2024/04/26 Fortemedia tuning settings for RC v1
<Overall table path>
Fortemedia tables => /vendor/etc/aoc

<change list>
KM4
- Handset (Owen)
1. Tx: WB/SWB EC V0417tuning and SWB Tx DRC from 16.5 to 17dB
2. Rx: Modify SWB Rx DRC gain from 9.5 to 10dB and WB Rx EQ at Vol_0-3
3. Batch copy from generic to co-use case

- Headset (Gene)
    - More margin for HE ac WB/SWB RFR test.

CM4
- Headset (Gene)
    - More margin for HE ac WB/SWB RFR test.

TK4
- Headset (Gene)
    - More margin for HE ac WB/SWB RFR test.

-Handsfree (Ricky)
1. Fine tune HHWB parameter for HHNB distortion
2. Fine tune HHWB EAD for TX POLQA drop issue

Bug: 337194762
Test: Verified by Acoustic team

Change-Id: Icd619baa2107796873e7573d61fec443a4ebbc5b
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
2024-04-28 15:18:52 +08:00
Sayanna Chandula
f90c98757f thermal: update vt models with dvt data
prev_sample_order = 3
activation = leaky_relu
sample_interval_ms = 7000
max_sample_interval_ms = 12000

Bug: 337512118
Test: Build and boot on device. Check VIRTUAL-SKIN temperature

Change-Id: Ia13654991d88435f13c86fc1535caca054e1cc09
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2024-04-27 14:24:57 -07:00
Sayanna Chandula
dd66c5faaa thermal: add smooth transition from model to legacy vt
- Remove backup sensor and enable under sampling
- Clamp VT_MODEL prediction based on training set max_surface
- Use VT_MODEL_LEGACY_DIFF to decide on switch
- Enable smooth transition with weights

Bug: 336265406
Test: Build and boot on device. Test smooth transition

Change-Id: If30a87a24b12b0af5527d9c05be7a14bb06dcfac
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2024-04-27 12:15:26 -07:00
Ali K. Zadeh
a4151229c8 Merge "Reduce DVFSHeadroom to 1100 for CAMERA_STREAMING_STANDARD" into 24D1-dev 2024-04-26 22:03:46 +00:00
Alec Foster
0bbb1fd8fe Fix missing QfpCalibration on userdebug builds
Bug: 337315950
Test: QfpCalibration present on userdebug builds
 but not on user builds.
Change-Id: I716526727f537e749775e5e207b27f7008ca44c6
2024-04-26 22:00:48 +00:00
Taeju Park
635801795b powerhint: tune default value for PMU limit parameter
Bug: 310237445
Change-Id: I0ed334a447afdc420655ca1733125e8ab0ab43f1
Signed-off-by: Taeju Park <taeju@google.com>
2024-04-26 18:32:42 +00:00
Wei Wang
95295f6e14 Merge "powerhint: remove lcpi parameter for PMU limit" into 24D1-dev 2024-04-26 17:49:54 +00:00
Wei Wang
c5a9cdb1ff Merge "thermal: use frequency to define hard limit and cdev ceiling" into 24D1-dev 2024-04-26 17:43:37 +00:00
shihchienc
6a7042decf [P24] remove Thread HAL service
as thread software is not POR of p24 on TA, remove thread hal service
here. will put it back once change goes into p24 branch.

Bug: 333516795
Test: manual flash and check if thread hal service exists by adb shell
ps |grep "thread_network"

Change-Id: I83c34ab6e44be593d25bb29e883e6e00b967589d
Merged-In: I83c34ab6e44be593d25bb29e883e6e00b967589d
(cherry picked from commit 867521c482)
2024-04-26 17:14:30 +00:00
Ali K. Zadeh
f81ce08592 Reduce DVFSHeadroom to 1100 for CAMERA_STREAMING_STANDARD
With CDPreferIdle enabled, the current DVFSHeadroom pushes the CL0
frequency too high. This CL reduces this value to 1100, resulting in a
lower CPU power while performance remains mostly intact.

Bug: 304536786
Test: 1080p30fps - https://docs.google.com/spreadsheets/d/1A6Ck6Hyhs5su_xhn_6YIrLKSGc-tVIbzMIcGP4ucp-w/edit?resourcekey=0-Tj0KiAgzcejZJAUem9D2Ew#gid=2127971741
Test: 4k30fps - https://docs.google.com/spreadsheets/d/1scT3e3jeAekH6L7vZ3WtLLJsRxyxaq6JxbXKW4_tkH8/edit#gid=1060301792
Test: Photo preview - https://docs.google.com/spreadsheets/d/1W8WhkDqZccYvh4Zd0wXNFaCxWrUY-TOuXoFuBSVkk88/edit?resourcekey=0-i8drOxv0D8QioXYJNhZyGA#gid=380332953
Test: Portrait preview - https://docs.google.com/spreadsheets/d/1g9olzsTKNodKH8o0EtlcYbmLHOSbwnUVLyHAGs89tTE/edit?resourcekey=0-az_TeGJi_aH-B_DGqyTugQ#gid=524055346
Test: Video Bokeh - https://docs.google.com/spreadsheets/d/162XjO8vhbL9JFolzjqDUhaMp40NWWQP7PMr_34JS8PE/edit?resourcekey=0-gtA-l_Z0c_aDK5Y898XnrA#gid=1290026232
Test: 120fps - https://docs.google.com/spreadsheets/d/1nSA2ybed-fu6RqBdsa0JZ4CRM6002HPYiW3dJC_rxvw/edit#gid=961019110
Test: loaded test - https://docs.google.com/spreadsheets/d/1wGlPn_WdX5ZJAhppmZBh_Iih3UcSwGQeDb8R-OG2Jhk/edit?resourcekey=0-NKPtSKHqq1HwPwZDw7OljA#gid=1710307951
Change-Id: I1271c60e669dbf437467f28903254bb95a07beb0
2024-04-26 17:13:32 +00:00
Treehugger Robot
b086079cb4 Merge "thermal: fix thermal config typo" into 24D1-dev 2024-04-26 05:56:46 +00:00
Treehugger Robot
5c92151009 Merge "Set big core to cpu skip mask by default" into 24D1-dev 2024-04-26 04:14:05 +00:00
Jikai Ma
878c5bad5c thermal: fix thermal config typo
Bug: 337094450
Test: side loaded to device and successfully start thermal service.
Change-Id: Ied79a83d5c0e9d4c9393ffa4ef550b382b7b79e1
2024-04-25 19:57:19 -07:00
Treehugger Robot
4c7c69f0e3 Merge "Adpf:caimito: revert heuristic boost triggering condition." into 24D1-dev 2024-04-26 02:42:19 +00:00
Peter (YM)
681064ae17 thermal: use frequency to define hard limit and cdev ceiling
Test: Boot to home and flash on device
Bug: 330780045
Change-Id: I428e14f354a5897601cbcaf8f7bbbeb6a0cc5d8f
Signed-off-by: Peter (YM) <peterym@google.com>
2024-04-26 02:38:45 +00:00
Yadong Xu
5b49713231 Merge "Fix face auth powerhint for face unlock boost" into 24D1-dev 2024-04-26 00:18:11 +00:00
Yadong Xu
71395ffb99 Fix face auth powerhint for face unlock boost
Test: Not required.

Fixed:335714087

Change-Id: I2f19bd4df763a6665762d67c3df66d444805e5a4
2024-04-26 00:17:54 +00:00
guibing
2ea470d49a Adpf:caimito: revert heuristic boost triggering condition.
This reverts previous JankCheckTimeFactor from 1.43 to 1.2.

Since the current reported duration doesn't include the GPU
part, the JankCheckTimeFactor needs to be smaller for matching
jank frame detection.

Bug: 204204746
Test: adb shell dumpsys android.hardware.power.Ipower/default;
      check adpf sessions' traces.
Change-Id: I36ab5e699187650011a91a2c0814c33e62e4e125
2024-04-25 22:52:05 +00:00
Chaohui Wang
8b9a13f1c8 [P24] Implement Final MIC e-label for Japan Dogfood
Bug: 317147035
Test: visual
Change-Id: I6626a9666a15b65c6aa9cf1c6f0b0445a0dca43f
2024-04-25 13:31:26 +08:00
Sam Ou
12f0ba7641 Merge "bm: config: add quick save br_stats and deglitch ms" into 24D1-dev 2024-04-25 02:33:57 +00:00
Ali K. Zadeh
9c39373a33 Disable CDPreferIdle, set DSUMin to 610MHz for 60fps
With MulticamRoutingNode on RT, the performance is no longer impacted by
having CDPreferIdle disabled. Additionally, this CL reduces DSUMin to
610MHz, saving overall up to 50mW in CPU power.

Test: 1080p60: https://docs.google.com/spreadsheets/d/1KoMO-hFl8t5KxLOWTn9eGSEXJqMVhDh4PRgn94_aTfk/edit?usp=sharing&resourcekey=0-DnXRxfkqmKNE8Cbh664inA
Test: 4k60: https://docs.google.com/spreadsheets/d/1PntdXFCyBL4H3kswAoIRota-FGbqSHXRZCQP3opnuj8/edit?usp=sharing&resourcekey=0--wdtPAqsz2XbsHQq67rgeg
Bug: 334945465
Bug: 304536786
Change-Id: Ic1d24975c01c65f8495a26ad9b29c97efed85ee1
2024-04-24 22:38:19 +00:00
Treehugger Robot
06a5da28a3 Merge "gps: Update GNSS FW 4.15.1_5_P4 with config change for P24" into 24D1-dev 2024-04-24 13:05:28 +00:00
Treehugger Robot
3683771691 Merge "Add antenna position coordinates" into 24D1-dev 2024-04-24 09:15:22 +00:00