Commit graph

586 commits

Author SHA1 Message Date
vincechiu
f3b644db0c Camera: create three new groups for camera threads
high-group is running on CPU 6-7.
mid-group is running on CPU 4-5.
mid-high-gropu is running on CPU 4-7.
Move camera tasks to CPU 4-7 for 1 seconds when AP launch.

Bug: 194271751
Test: GCA
Change-Id: I8e13e9ad0057b8f42f8ed3958bf0c6d58a5a02bc
2021-07-23 09:03:24 +00:00
Lisa Liu
9a20a9faee gs101: tune vendor_sched parameters for boot time
Set uclamp_min and prefer_idle to sys_group to improve 2nd init
stage boot time performance.
* original
boot_progress_start_avg: 4832.3
* with tuning
boot_progress_start_avg: 4028.75

Bug: 193192017
Test: boot test
Change-Id: I8ebd52fddceadbee22e9a8c75969d52047b2acfc
2021-07-23 06:38:38 +00:00
Firman Hadi Prayoga
fd9a189315 Add CAMERA_SHOT power hint.
This will improve the snapshot performance, especially JPEG encode.

Bug: 192067605
Test: Boot, CTS
Change-Id: I9b879d2c462e0a59891d9a36c770484d00b53e6e
2021-07-23 03:08:48 +00:00
Weizhung Ding
c90e372d4f gs101: declare IDisplay to V3
Bug: 184697262
Test: build pass
Change-Id: I780fbf0fc9ee5eb6fd52739e8a9ab5505215bed1
2021-07-23 01:40:46 +00:00
Rick Yiu
4b4ee6e226 gs101: Change uclamp max setting for bg group
Set to 60% or 615.

Bug: 188947181
Test: build pass
Change-Id: I93a423b1c0cb297df709971304f8101b27e46a1d
2021-07-23 01:06:10 +00:00
Petri Gynther
a0b391dd6a Pixel 2021: enable vbmeta_vendor
Bug: 181909612
Test: build + install + boot to home
Test: manual A/B OTA update
Change-Id: Ie27936cc10efd2f6dfbcd982e6855877e3308af2
2021-07-22 21:20:03 +00:00
Badhri Jagan Sridharan
09719be64b gs101: usb: Report USB port overheat event
Read duration stats expoted by google,usbc_port_cooling_dev and
push suez atom when the uevent is received. The plugged temperature
is queried every time when the USB port is connected. Maximum
temperature during overheat is queried when the uevent is received.

Bug: 193615568
Change-Id: Ib02e14dbdbe1390476e864d351158c1523a5c311
2021-07-22 20:31:12 +00:00
Edwin Tung
1ef99f7606 gps: remove psds address from xml
Bug: 194208838
Test: download lto padd
Change-Id: I0d81240d0e519b3de2b9fe64afaa2613b7081978
2021-07-22 17:29:26 +00:00
Edwin Tung
dea270f4b4 gps: update gps driver 129.20.23.509086
Correct the LTO error msg for RTO case
Fix Control Plane issue
Fix a bug of causing a race condition in LogJava.
Fixed CTS GnssMeasurementValuesTest CTS issue
Aiding B2a from B1I measurement was fixed.
Improve satellite acquisition at lower signal levels
Adjust Bias for LTE filter

Bug: 193425221
Bug: 193379101
Bug: 192800862
Bug: 193749870
Bug: 193589742
Bug: 194133982
Bug: 193114467
Bug: 192047043

Sanity test: 194276682
Test: build pass

Change-Id: I728a0e0058beaca6a7fe75e43dab20ab5e955937
2021-07-22 17:28:52 +00:00
Edwin Tung
d183e5478a gps: remove lhd traffic logs
Bug: 193749870
Test: build pass
Change-Id: Ibe1748ec1d983b63b869dde0e3c5295295a630ec
2021-07-22 17:28:31 +00:00
George Lee
99e853801e pixelstats: enable mitigation stats for gs101
Corresponding change to reflect changes that enable mitigation stats.

Bug: 186806028
Test: Local Test.
$>cmd stats print-logs
$>logcat | grep <atom id>

Signed-off-by: George Lee <geolee@google.com>
Change-Id: If4b7185345145c6f25444ed88ef1e4f24becde86
2021-07-22 17:03:32 +00:00
Petri Gynther
645bea6054 gs101: use prebuilt GKI boot.img for production builds
Use:
* boot-user.img for -user builds
* boot.img for -userdebug and -eng builds

Bug: 188095549
Test: make dist (oriole-user)
Test: make dist (oriole-userdebug)
Change-Id: Ic4df227f2b4c261297272f17e6645b7ce1f5d4f3
2021-07-22 16:08:00 +00:00
Edwin Tung
f5ec0f6726 gps: prevent lhd hold wakelock
Bug: 193549062
Test: build pass and SUPL pass
Change-Id: Iff8407634350b47457108632445dc9deb58e35b4
2021-07-22 15:24:13 +00:00
Sunyoung Kang
6125b2db19 firmware: mfc: update release signed MFC F/W(21/07/20)
- Implemented the IDR-frame encoding on H.264 Hierarchical-B
	all-layer Open GOP
- Fix the HEVC decoder 161-warning bug which return continuous
	161-warning when the stream is only CRA + RASL frame
- Fix the HEVC encoder bug which VPS/SPS/PPS is added at every
	frame when I-period is changed

Bug: 192819468
Bug: 193761849
Bug: 193393118
Test: Verify repro step in bugs
Change-Id: I0fd6f7354890c90041a5438b52b7c4baa91a944e
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Signed-off-by: wenchangliu <wenchangliu@google.com>
2021-07-22 14:53:47 +00:00
TeYuan Wang
d0a506b5d9 thermal: Enable thermalHAL in off charging mode
To support USB port overheat protection, we need to launch thermalHAL in
off charging mode.

Bug: 183573049
Test: verified usb port overheat protection in off charging mode with
emul temp

Change-Id: I0b36646d9779c2c1a25f38aafea5ca178bf91be1
2021-07-21 17:09:36 +00:00
Super Liu
4ee5627c11 dumpstate: force touch active by using bugreport specific flag
Bug: 194157915
Test: bugreport works normally for touch.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: Ice27991a4cac9cca875b55241126bc6f88fb62b6
2021-07-21 02:35:34 +00:00
Jimmy Shiu
b653411208 ADPF: taskprofile for uclamp fork reset group
Add ResetUclampGrp and NoResetUclampGrp taskprofiles to manage vendor
uclamp_fork_set flag.

Bug: 191973176
Test: build and manual test
Change-Id: Ia9c5677c7d5855bb874a714678246ee06c9471bb
2021-07-21 00:47:38 +00:00
TeYuan Wang
cf33914f6c thermal: change permission for usbc related thermal sysfs
Bug: 183573049
Test: check permission for usbc related thermal sysfs
Change-Id: Id5af18d9f0fc5acfe29d9b5be3f3beabaa36f480
2021-07-20 23:53:52 +00:00
Long Ling
0facd0130b SF: set debug.sf.layer_caching_active_layer_timeout_ms to 1000
Avoid SF cache thrashing in some cases.

Bug: 189928400
Test: no flicking issue with the testbuld (removed displaycolor fix)
      and flicking happens after set the prop to 0
Change-Id: I24aa79001ec21cff18ae5ac8ff988f70ed121061
2021-07-20 20:55:44 +00:00
Shinru Han
402d351e07 gps: Enable OnChipStopNotification
Without EnableOnChipStopNotification Pixellogger can't close
OnChip PVT session log, which could cause log replay issue.

Bug: 193770230
Test: close command is sent to logger service when on-chip request stops
Change-Id: I6e524bdf589db12176031fe711bac3c2f1d0532b
2021-07-20 13:11:11 +00:00
wenchangliu
a766595ff5 mfc_fw: update release signed MFC F/W(21/06/29)
- Modified the MPEG-4 decoder to return the current input TAG when
    the not_coded frame is came
- Implemented the MinQuality rate control algorithm

Bug: 182956090
Bug: 178355830
Test: minimum quality test
Test: b frame quality test
Change-Id: Ief12bc0eeee7ae67d17a9f7e52f9e3155d6f0a64
2021-07-20 10:45:57 +08:00
SalmaxChang
f08feb8f7c gs101: device: Set default modem logging property
Bug: 193861045
Change-Id: If52addcc2da17d849c002646c3d6c47c47f5c5bd
2021-07-20 02:02:19 +00:00
Vince Chiu
5a65e08933 Revert "Use CPU 4-7 when CAMERA_LAUNCH"
This reverts commit 7e40643a8a5d17b434b7e437bebdb3711d2d0e9c.

Reason for revert: b/194114986 - CPU affinity control is not working
Bug: 194114986

Change-Id: Ieaeee68fe532edf6d2afbf179e698e8c4ce131b4
2021-07-20 01:07:50 +00:00
David Lin
64ac5cee64 mfc_fw: Update to use release signed FW binary
Bug: 174295725

Signed-off-by: David Lin <dtwlin@google.com>
Change-Id: I79f95e391671e5dd821cb9d53214094b6e0843a1
2021-07-19 16:05:48 -07:00
Stephane Lee
870465e109 Add cpm/pca9468 logbuffer directories so that bugreports can take a snapshot
Test: adb bugreport; check dumpstate_board.txt
Bug: 193894298
Change-Id: I548a1715fe2ee679fef304fc4da9465c691e70c0
2021-07-19 20:54:38 +00:00
samou
aeae45a3ea powerstats: add GPU-DVFS
Bug: 193542516
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I7490a172932338e90d8886b1e26a5c05d4544647
2021-07-19 19:23:33 +00:00
samou
b14db4c9a6 powerstats: correct frequency unit
Bug: 192579762
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I8f7703c30116622483faa55f9dc16a5558d43c08
2021-07-19 19:05:12 +00:00
Chenglu Lin
5e7d13a0d2 Move WvInstallKeybox to factory build only
Test: build factory_oriole-userdebug
Test: build factory_raven-userdebug
Test: build oriole-userdebug
Test: build raven-userdebug
Bug: 193532508
Change-Id: Iaa1c60e9878250923069a0711097eede16dbb082
2021-07-19 13:21:57 +00:00
Chenglu Lin
f45c7d1cb5 Turn off secure adb for factory builds
adb authentication needs to be off for factory builds, set
ro.adb.secure to '0' instead of no property value.

Bug: 192331246
Test: build and check the property value
Change-Id: I3652e5af3af9a0eca89318596fcdbdcd2eef4fdd
2021-07-19 08:51:46 +00:00
Taehwan Kim
04cd342e08 firmware: update MFC F/W(21/06/29)
- Modified the MPEG-4 decoder to return the current input TAG when
    the not_coded frame is came
- Implemented the MinQuality rate control algorithm

Bug: 182956090
Bug: 178355830
Test: minimum quality test
Test: b frame quality test
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: Ia6a8ee26b3c5103aa302fd0bed315007292c88ca
2021-07-19 06:43:36 +00:00
Taehwan Kim
78c5e4b8b3 add "vq-minimum-quality" for video codec
Bug: 182956090
Test: minimum quality test
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: Iae5108eb86ef1100d1e542d1cc1c154ce2396934
2021-07-19 06:43:36 +00:00
Taehwan Kim
2fadf61e9f add "can-swap-width-height" for video codec
Bug: 182956090
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: Ib71a4eb7cc36682e2bfdd10cd4fdee2665f11c58
2021-07-19 06:43:36 +00:00
Diego Wilson
47a523375e Pregrant camera permission to Pixel Camera Services
Test: checked for pregranted camera permissions in Settings -> All Apps -> Pixel
Camera Services
Bug: 183533362
Change-Id: Ie0816a1170557d9aac364f69d2a7ca3f6dfcf3bd
2021-07-16 22:51:48 +00:00
Sunil Ravi
13ac3f1802 WiFi: Enable 6GHz band support
set config_wifi6ghzSupport to true to return
6GHz band support for wifiManager.is6GHzBandSupported() call.
If this config is not set, framework query the list of
valid frequencies for 6GHz band from kernel/nl80211.
But this call will return valid frequencies only if
country code is set. So it is necessary to set config_wifi6ghzSupport
to true to return chipset support for 6GHz for cases where
country code is not set.

Bug: 193788596
Test: atest android.net.wifi.cts.WifiManagerTest
Change-Id: I68700fbed773aeeb53e70e6e6df9b3697f51b0d0
2021-07-16 19:03:31 +00:00
SalmaxChang
484fc1df4b gs101:device: Update modem SSR property
Disable ssrdump for user build.

Bug: 193749485
Change-Id: Ibcd5e7b026cec3ec4ebb982ba352b582470e97c7
2021-07-16 13:30:12 +00:00
Zoey Chen
a8066572f7 [Settings] Overlay Settings' default config
Sync config from Pixel 2020

Bug: 193605612
Test: make
Change-Id: Ie7d17b0df77cb67777d6fd237c4142ae3dd285ee
2021-07-16 09:26:21 +00:00
Alex Hong
7e78793b8c Upgrade Target FCM version from 5 to 6
Test: ./vts-tradefed run vts -m vts_treble_vintf_vendor_test -t DeviceManifestTest#ShippingFcmVersion
Bug: 192311951
Change-Id: I147d8271b9d2783c59c026825767fea7981124f7
2021-07-16 06:28:31 +00:00
Namkyu Kim
43cb9934ea device.mk: enable tetheroffload service 1.1 from Android S
Bug: 186539538
Test: run vts -m VtsHalTetheroffloadControlV1_0TargetTest
      run vts -m VtsHalTetheroffloadControlV1_1TargetTest

Signed-off-by: Namkyu Kim <namkyu78.kim@samsung.com>
Change-Id: I453429ff95cb9f33fb34f76fc82d6ebe03b20f5f
2021-07-16 06:28:31 +00:00
Stephane Lee
88fb5844e5 odpm: Create powerstats vendor data folder on init
Test: Ensure that there are no sepolicy errors for odpm_config
Bug: 192674986
Change-Id: I0c576a823451159c1208b49563649db174533e86
2021-07-16 01:55:33 +00:00
Edwin Tung
bdc2208318 gps: update gps driver 129.20.23.508330
Improvement first fix performance by having more satellites available
Fix velocityMeasure support in GNSS-ProvideCapabilities of CP LPP PDU
Fix a bog that UE keeps using e-SLP for SUPL SI session after E911 NI session
Fix an abnormal CN0 reporting issue when periodic tracking is triggered by the AutoTimeSyncGroupDelay=true
Fixed gpsd process blocked issue while closing GnssMeasurementInterface
Fix follows
- UE keeps using e-SLP for SUPL SI session after E911 NI session
- UE receives SUPLEND with status code of posMethodMismatch from SLP

Bug: 192047043
Bug: 190780462
Bug: 191934165
Bug: 191649245
Bug: 192908561
Bug: 191864550
Bug: 191934165

Sanity test: 193736498
Test: build pass

Change-Id: Ia44b215947884cfc466aa964eae4bbef58621d39
2021-07-16 00:44:03 +00:00
Taeju Park
3dd2b9777f Tuning down_rate_limit and down_rate_limit_scale_pow to improve power consumption
Bug: 170511089
Change-Id: I665b38aa633296c6d8f36efd5b3a49c582d87dc4
Signed-off-by: Taeju Park <taeju@google.com>
2021-07-15 22:05:01 +00:00
Darren Hsu
c3af02a158 Disable USB contaminant detection when the disable flag is true
Bug: 192208389
Test: Manually tested
Change-Id: Iee32ec4175283417eaa8d86d65c2a80757ebc32a
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2021-07-15 16:17:39 +00:00
Wayne Lin
c9a9bc58af gps: Add R1 GlobalSign Root certificate
Bug: 192992072
Test: build pass and SUPL pass
Change-Id: I12613c2d6bc4c4eb10cbedb10fedb8eeec58dbf3
2021-07-15 08:18:41 +00:00
Wei Wang
ec8345ffbe Fix the right uclamp.min for SF render engine
Bug: 192099706
Test: boot and trace
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ic8d1c65701ae0190988a758a31f0d0baaed54d71
2021-07-14 20:47:16 +00:00
Chris Fries
091b1e141b Revert "gs101: use prebuilt GKI boot.img for production builds"
This reverts commit 63ba0cb1affa83446f10585d403c81cc618be71a.

Reason for revert: Tentatively trying to address, http://b/193588301 OTA full package does not exist in O6/R4_SD1A.210714.001 userdebug build [SD1A]

Bug: 193588301
Change-Id: I9d5d9fc132bc7eaf7c0adccee7a18558d80edb40
2021-07-14 16:22:17 +00:00
Wei Wang
30393266aa Boost SF when interaction hint is active.
We have seen cases SF main thread running longer occasionally which may
run in danger of missing frames. This CL lifts cpufreq for SF when touch
boost is active to compensate the sudden jump of its cpu demand.

Bug: 192099706
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I49b2d589249f60a38eab907afbadfbcfdd233d1c
2021-07-14 06:18:59 +00:00
Kyle Lin
d1a9bedcfe config.xml: pin SurfaceFlinger
as ag/13364183, system_service needs read access SurfaceFlinger.
Pin it by pinner when booting.

Bug: 193442970
Test: adb shell dumpsys pinner
 - SurfaceFlinger pinned
 --
    /system/bin/surfaceflinger 7028736
 --

Change-Id: I2cae8f87a09b4871cf967fe8a3c01fb9015d58cb
2021-07-13 22:34:30 +00:00
Petri Gynther
7eec55ab4e gs101: use prebuilt GKI boot.img for production builds
Use prebuilt GKI boot.img for production builds.
Debug builds continue to use their own Image.lz4.

Bug: 191764119
Change-Id: I2b4950ce334cc990e858e0ea410ad7e57d6decf6
2021-07-13 20:42:08 +00:00
Xue Tu
f55757983b Add "vendor.android.hardware.camera.preview-dis" feature
Bug: 189961678

Test: adb shell dumpsys
Change-Id: I72d2b3a347f048250117b25fee66e91ca8411057
2021-07-13 18:08:05 +00:00
Tyler Gunn
365fcfdbac Disable TTY as it is not supported on these devices.
Test: Compile target and verify accessibility settings does not have
TTY option.
Bug: 191983369

Change-Id: I62e59ea39fccb14a8bf882a1b50934fcd4446784
2021-07-13 16:47:44 +00:00