Commit graph

766 commits

Author SHA1 Message Date
Darren Hsu
82e60fe15c 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: I0f469f663ca25dce86f4e9e44442723627fbb724
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-05-03 01:47:11 +00:00
Matt Buckley
5e7e34f27a 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: I46a03a794fab1446fe3dd2f7b8a87c723157bd24
2024-04-30 16:55:08 +00:00
Cheng Chang
35b9d94fd1 gps: Enable GAAM and disable magnetometer
Bug: 337715905
Test: Verified sensor service without magnetometer.
Change-Id: Ie1a1d758c3f8a4d2b06795680f798e6c9f4286ce
2024-04-30 02:30:35 +00:00
Cheng Chang
965edec97d gps: Disable AAM feature
Bug: 337715905
Test: Function verification at b/337735228
Change-Id: I071b3fd3acc9b672c68fe4904396407a2cb66b16
2024-04-29 08:26:57 +00:00
Taeju Park
6c0d957039 powerhint: tune default value for PMU limit paramter
Bug: 310237445
Change-Id: Ib7d0876c5f82e81b20b83ff0b96bfed98bff747f
Signed-off-by: Taeju Park <taeju@google.com>
2024-04-26 19:00:45 +00:00
Taeju Park
ca76952b5a powerhint: remove lcpi paramter for PMU limit
PMU-based soft freq limit no longer use lcpi parameter

Bug: 295054083
Change-Id: I196b238b5607774e6ec78b69a49ab6665cdda97c
Signed-off-by: Taeju Park <taeju@google.com>
2024-04-26 18:45:00 +00:00
Wei Wang
a4eeccb5b3 Merge "thermal: use frequency to define hard limit and cdev ceiling" into 24D1-dev 2024-04-26 17:43:37 +00:00
Ted Wang
00df547797 Merge "[Bluetooth] Update Bluetooth SAR table for JP region" into 24D1-dev 2024-04-26 07:59:19 +00:00
Treehugger Robot
4030a99fc2 Merge "thermal: Add VSkin-Speaker Model" into 24D1-dev 2024-04-26 07:47:12 +00:00
Treehugger Robot
3ab2c71536 Merge "thermal: Update VSkin-Model" into 24D1-dev 2024-04-26 07:47:12 +00:00
Treehugger Robot
f836dc0967 Merge "thermal: read thermistor temperature from upstream sysfs" into 24D1-dev 2024-04-26 06:17:50 +00:00
Peter (YM)
b76a852082 thermal: use frequency to define hard limit and cdev ceiling
Test: Boot to home and flash on device
Bug: 330780045
Change-Id: I6deaa4de72d289468344c3312ac44e266e225883
Signed-off-by: Peter (YM) <peterym@google.com>
2024-04-26 04:02:25 +00:00
Treehugger Robot
7bc26ad23a Merge "Adpf☄️ revert heuristic boost triggering condition." into 24D1-dev 2024-04-26 02:42:19 +00:00
guibing
daa7974899 Adpf☄️ 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: I0539faf785c3a5a7cfd4dbb948b4c1506ed3be5b
2024-04-25 22:51:49 +00:00
Treehugger Robot
79e0e36055 Merge "Set big core to cpu skip mask by default" into 24D1-dev 2024-04-25 19:31:57 +00:00
Sam Ou
efc5f88c7c Merge "bm: config: add quick save br_stats and deglitch ms" into 24D1-dev 2024-04-25 02:33:56 +00:00
samou
cfb56af537 bm: config: add quick save br_stats and deglitch ms
Bug: 336215786
Change-Id: I89f313761e2501e5d49fe3eba4ae4e86a8c719bc
Signed-off-by: samou <samou@google.com>
2024-04-24 14:37:29 +00:00
Treehugger Robot
5581560fcf Merge "gps: Update GNSS FW 4.15.1_5_P4 with config change for CT3" into 24D1-dev 2024-04-24 13:05:28 +00:00
Treehugger Robot
21f2542cfa Merge "audio: update waves tuning" into 24D1-dev 2024-04-24 09:45:23 +00:00
Treehugger Robot
360283f4b4 Merge "Increase SPC thresholds for 60fps" into 24D1-dev 2024-04-24 09:28:01 +00:00
Treehugger Robot
00646a151f Merge "Add antenna position coordinates" into 24D1-dev 2024-04-24 09:15:22 +00:00
sashwinbalaji
607d6b55a3 thermal: Add VSkin-Speaker Model
- Add linear regression model for VSkin-Speaker
- Setup abnormality monitoring:
	- 0 <= VSkin-Speaker <= 55
	- -15 <= Vskin-Speaker Model - Legacy <= 15
- Residency for Vskin-Speaker Model

Bug: 303547367
Test: Local build and verify lshal
Change-Id: Iadb46c82c2568c2eec31fe2cf7b9fd2cb9a56a04
2024-04-24 14:54:31 +08:00
sashwinbalaji
be09cda8ba thermal: Update VSkin-Model
- Unhide VSkin-Model to ensure thermal recorder can log
- Reduce vskin-model-legacy-diff to align with other devices
- Remove model backupsensor, since model is not used for throttling
  remove backup sensor to collect more field issues.

Bug: 315948438
Test: Push config and verify dumpsys
Change-Id: I4adfcb6a13c58b15f1d97b1130d4bc0f1776f235
2024-04-24 14:00:21 +08:00
Pointer Kung
2b3e8f340a Increase SPC thresholds for 60fps
This CL increase SPC threshold for little core to 55, and for mid core
to 32. Tests show that in a loaded scenario, framedrop rate can reduce
to almost zero, while not impacting the power in the unloaded (baseline)
scenario.

Refer to ag/27032799

Bug: 335719478
Test: Build pass
Change-Id: I0f5926ec9ce9188c462455dfcad25f4e8d5f761f
2024-04-24 04:44:02 +00:00
James Huang
90727b604a gps: Update GNSS FW 4.15.1_5_P4 with config change for CT3
Add Chip_Configuration_FeatureCfg_MTPL = 0 to disable MTPL

Bug: 336179125
Test: CTS/VTS, GNSS sanity test and SST in b/336424148
Change-Id: Ie13bc08afaf61569419c76c97bcc1d6eae21a5b6
2024-04-24 12:07:41 +08:00
Jasmine Cha
82d1bce7fb audio: update waves tuning
1. Improved bass amount, mid range and overall loudness
2. Volume cuve tuning for media playback, notification, alarm and
   ringtone.
3. Thermal throttling of the bottom speaker is initiated when the
   virtual skin temperature exceeds 47°C

Bug: 336671261
Test: manual test

Change-Id: I119f8d134f839ba7b3daabe36ad049f5d1db647d
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2024-04-24 04:05:05 +00:00
Shinru Han
707e3c172b Merge "Disable RILC_REQ_GPS_GNSS_LPP_PROFILE_SET" into 24D1-dev 2024-04-24 00:59:36 +00:00
Shinru Han
80d9c91265 Merge "gps: Update gps makefile" into 24D1-dev 2024-04-24 00:59:36 +00:00
David Li
2cde280244 Merge "audio: change in-call-capture paths and remove unused ctls" into 24D1-dev 2024-04-23 19:21:48 +00:00
Treehugger Robot
ff40ec96bb Merge "gps: Update SUPL UT1 timer" into 24D1-dev 2024-04-23 11:56:57 +00:00
Kyle Hsiao
f903f26c31 Add antenna position coordinates
Bug: 336231717
Test: manual
Merged-In: I2238b670858ca42b6921906f3cd8a840c42c791e
Change-Id: I2238b670858ca42b6921906f3cd8a840c42c791e
2024-04-23 09:29:19 +00:00
Rick Yiu
2e325a80b2 Set big core to cpu skip mask by default
Also reset the mask for launch and other camera streaming modes that
do not use it.

Bug: 248621289
Test: build pass
Change-Id: I754a12ac7883a4e5da44e587a28dadf0a990da3d
2024-04-23 05:28:23 +00:00
Chung-Kai (Michael) Mei
bc8a17c21d Merge "powerhint: port changes from caimito" into 24D1-dev 2024-04-22 08:48:51 +00:00
Wayne Lin
c9cf59ae78 gps: Update SUPL UT1 timer
set SUPL UT1 timer to 20 seconds to align ixit_timer_UT1 range

Bug: 334885271
Test: config works to set UT1 timer to 20 seconds
Change-Id: I67c235de4b56f68473f4f3357b0bb69ca5c711ef
2024-04-22 08:02:28 +00:00
David Li
b53c94e7e9 audio: change in-call-capture paths and remove unused ctls
Bug: 333840723
Test: python3 dialer-cmd.py callaudio record /data/data/com.google.android.dialer/cache/record-$datetime.pcm
Test: Live caption in dialer
Change-Id: I205d816d253d8ed0dd9e6eb8f83295762e928a02
2024-04-20 04:28:03 +08:00
Treehugger Robot
51f79f48d1 Merge "Increase SPC threshold for little and mid cores for CAMERA_STREAMING_STANDARD" into 24D1-dev 2024-04-19 14:04:58 +00:00
Treehugger Robot
38d5decf2f Merge "Increase TAUClampBoost during capture to reduce latency" into 24D1-dev 2024-04-19 14:04:20 +00:00
Pointer Kung
57cae40133 Increase SPC threshold for little and mid cores for CAMERA_STREAMING_STANDARD
SPC threshold is too low for both Little and Mid cores. This CL increases this
threshold to 55 for Little Core and to 30 for Mid core.
Test results show lower framedrop rate in presence of background load,
without having a negative impact on the power.

Refer to ag/26943567

Bug: 335776541
Test: Build pass
Change-Id: I39d442f95215a7e72d093fd101fb4cc71840ba3d
2024-04-19 06:47:26 +00:00
Ravi Jain
c3f054d1ef Merge "dumpstate: touch: Init using touch_predump" into 24D1-dev 2024-04-19 05:47:47 +00:00
Pointer Kung
080b098481 Increase TAUClampBoost during capture to reduce latency
Refer to ag/26943660

Bug: 335758846
Test: Build pass
Change-Id: I7d1c5c75e2b42f0d2625d94c1f0d11bc63d1df5c
2024-04-19 03:38:03 +00:00
sashwinbalaji
2c94505351 thermal: read thermistor temperature from upstream sysfs
tz_temp callback will invoke thermal_zone_device_update and return the
cached temp from thermal core. However, during device resume, the cached
temp may be reset to INVALID number before being returned.

So, change the reading path to upstream temp_show which will return the
temperature from thermistor driver directly.

Current Issue:
We are observing lot of extreme low temp for vskin being reported and
with all coefficients being positive the only way negative vskin is
reported is when thermistors report very low temp. Since abnormality
logging is rate limited this reduces the amount of ml model issues
reported.

Bug: 323987378
Test: Local build and verify lshal
Change-Id: I2445f9d654c2a86c9507bf1654dc44f3b765c889
2024-04-19 09:49:15 +08:00
guibing
302294e462 adpf☄️ update hboost jank check time factor.
Update it to align with the HWUI target duration scale factor,
so the adjusted jank check time duration is same as expected frame
timeline's duration.

HWUI target duration scale factor is 70%, and its inverse value is
approximately 1.43.

Bug: 204204746
Test: adb shell dumpsys android.hardware.power.IPower/default;
      Check the device adpf sessions' traces.
Change-Id: Ib189b3f7993e3de1a7175cd8a054272432028b55
2024-04-18 23:38:40 +00:00
Treehugger Robot
3ba17f9f86 Merge "audio: update recording table" into 24D1-dev 2024-04-18 21:58:58 +00:00
Treehugger Robot
3b09794469 Merge "audio: update the telephony table" into 24D1-dev 2024-04-18 20:23:37 +00:00
Shinru Han
bc93cedc5c Disable RILC_REQ_GPS_GNSS_LPP_PROFILE_SET
Disabling RILC_REQ_GPS_GNSS_LPP_PROFILE_SET because this is not
needed and may cause CP reset after NTN to NT mode switch.

Test: NTN test
Bug: 333902499
Change-Id: I7ad54b3135a57810a624a72030c1a95f2b9774a7
2024-04-18 12:27:38 +00:00
Treehugger Robot
33c030cecd Merge "powerstats: bring PixelStateResidencyDataProvider to device config" into 24D1-dev 2024-04-18 07:45:18 +00:00
James Huang
a20df9fea1 Merge "gps: Update config to disable step counter for CT3" into 24D1-dev 2024-04-17 13:48:48 +00:00
Shinru Han
9ebc533bd9 gps: Update gps makefile
Test: on-device
Bug: 326527903
Change-Id: I979dee0ac81cf74d9f62ee365ae52ce0ae3c6c9f
Merged-In: I979dee0ac81cf74d9f62ee365ae52ce0ae3c6c9f
2024-04-17 10:16:59 +00:00
Zheng Pan
b9d4d25c63 Merge "Revert "Add cpuset system group"" into 24D1-dev 2024-04-17 09:58:29 +00:00
Achigo Liu
27861c6162 Revert "Add cpuset system group"
Revert submission 26931570-cpuset_system_group

Reason for revert: b/335346990 suspend/resume ramdump or black screen

Reverted changes: /q/submissionid:26931570-cpuset_system_group

Change-Id: Ib57acc5a9f510f58ac102ebde544739f2b057efe
2024-04-17 09:35:40 +00:00