Commit graph

561 commits

Author SHA1 Message Date
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
Stephane Lee
113bb9059a Add DC Charging/Temp defend clear to server configurable parameters; ensure sysfs node is writable
Test: Ensure there are no errors on logcat | grep google_battery@
Bug: 183772980
Bug: 192921867
Change-Id: Id55a6a1670cc0c46b787baec16efec8c0bb4521d
2021-07-12 13:27:54 -07:00
Shawn Willden
baa3bf3801 Set boot security patch level for gs101
Bug: 193423844
Test: Build and see if the AVB property has the field
Change-Id: I44fdf4f58d41650d53ba2aac470232fa71c228bb
2021-07-12 19:31:29 +00:00
YiHo Cheng
e90e9f58bf thermal: Update neutral_therm trip point
Allow to thermalhal to update trip points for neutral_therm which is the
triggering sensor of virtual skin sensor for o6 proto.

Bug: 193373779
Test: neutral_therm can be updated to the correct threshold
Change-Id: I16dcd44ce9e69f456df322664756dc74357bf50b
2021-07-12 15:25:37 +00:00
Long Ling
7983b026c6 init: update sysfs early_wake attribute
Allow HWC to modfiy early_wakeup

Bug: 187763532
Change-Id: If3b6e664bf510895aae06ba3cac2620c267d6a60
2021-07-12 15:14:59 +00:00
Jerry Huang
3b0aae52c4 gs101: Fine tune media_codecs_performance_c2.xml
Update stable performance point for O6/R4

Bug: 185454126
Test: android.video.cts.VideoEncoderDecoderTest
Change-Id: I3890e5dd3a10894e1da18fb5c12df9b7d3d1a916
2021-07-12 13:14:37 +00:00
Siddharth Kapoor
41e6e14ee0 Move launcher prop from vendor to system
Launcher prop needs to be accessed in system partition only,
hence move the related prop to /system/build.prop

Bug: 192621663
Test: ro.launcher.blur.appLaunch prop is set correctly,
  and Blurs are disabled on App launch.
Change-Id: I6721d59498c5d35dfd560f429b8aed7a01ac29fc
2021-07-12 04:36:34 +00:00
Michael Eastwood
ffa2b4b620 Attach the latest .cpa file collected due to a high drop rate to bugreports.
Bug: 191169822
Test: `adb bugreport`, unzip, `tar -xvf dumpstate_board.bin`, find
expected .cpa file

Change-Id: I8a16a594b738bbd7b985edcbac44f5451089f010
2021-07-09 08:42:13 -07:00
Michael Eastwood
65e028b428 Attach the latest .cpa file to bugreports.
* Latest is determined by alphabetical order
* To find the .cpa file, unzip the bug report and run `tar -xvf dumpstate_board.bin`
* The .cpa file can then be found under the `camera/` directory
* This can be disabled with the prop `vendor.camera.debug.camera_performance_analyzer.attach_to_bugreport`

Bug: 191169822
Test: `adb bugreport`, unzip, `tar -xvf dumpstate_board.bin`, find expected .cpa file
Change-Id: Ie05e8d446588cebea46492b267491065161915a1
2021-07-09 15:18:01 +00:00
Kyle Tso
d5fa4a5534 usb: Rename the config to "charger" in charger mode
init.usb.configfs.rc has the same trigger condition of midi function.
Rename the config name to "charger" to avoid triggerring twice of the
midi function.

Bug: 188744218
Test: USB enumerated in charger mode
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: Ica112fb4be66356901f6d5f21b79b9e648d49f35
2021-07-09 10:22:02 +00:00
Matthew Markwell
5edd757a24 Adding a power hint for face unlock.
During Tuscany runs, the Camera HAL is requesting a CAMERA_LAUNCH power
hint, which runs big and small CPU clusters at FMAX for 1 second. This is
overkill for Tuscany, so we are requesting that the hint be removed.

Tuscany should only boost during the computationally expensive image
processing, and should stop boosting as soon as a decision is reached.

This CL adds a new power hint for Tuscany. The other CLs in this topic
use this hint to boost CPU frequency during the critical section of
Tuscany by adding a call from the FaceHAL to the PowerHAL.

Running camera open and camera close without CAMERA_LAUNCH hint saves a
measured ~1W of power. The common case for this boost in Tuscany will be
a few frames at ~60ms per frame, so much less than 1 second of boost.
The worst case scenario is falsing - no attempted unlock. We will allow
the hint to time out after 1 second in that case, but that case is less
common.

Measured latency improvement per-frame from running the CPU at FMAX is
~15ms per frame. Power measurements can be found at go/tuscany-power.

NOTE: This change will _reduce_ the power/battery impact of Tuscany by
boosting for a more precise window of time.

Bug: 190755782
Test: E2E testing, validating frequency in systrace.
Change-Id: Ibca2687d2dffa4e3d2d23a9a588a2eae0b225952
2021-07-09 04:05:28 +00:00
Harpreet Eli Sangha
d5d1799a90 Disable UWB Feature
Bug: 193084128
Test: Build and Boot

Signed-off-by: Harpreet Eli Sangha <eliptus@google.com>
Change-Id: I305a535654fabfbb24ade954372db1bb905465cc
2021-07-09 03:35:46 +00:00
Krzysztof Kosiński
74b7a2a871 Remove gralloc3 support for gs101.
All devices use gralloc4 now, so this code is unused.

Bug: 174998182
Test: builds for the affected devices
Change-Id: Icff36a0204f7f9fd10ae7269248aef8a08c5fc1e
2021-07-08 22:28:25 +00:00
yihsiangpeng
86a339dfab dumpstate: add pca9468 logbuffer
also remove duplicate logbuffer_rtx/wireless

Bug: 188752986
Signed-off-by: yihsiangpeng <yihsiangpeng@google.com>
Change-Id: Iabedf9c7c247cc5ca89f65ca17317a53569959b6
2021-07-08 19:36:49 +00:00
Kevin DuBois
757500e40f mali: disable backend thread affinity.
Setting backend thread affinity with higher uclamp value can cause
governor to clock little cores to max. Disable explicit affinity for
driver backend threads.

Fixes: 192486236
Test: build, see SF's backend threads on mid cores in gpu comp.
Change-Id: Id1b17d9783fc65f2d2541fa9c6166d771494cd42
2021-07-08 17:53:28 +00:00
Yu(Swim) Chih Ren
31270ed1f3 Use CPU 4-7 when CAMERA_LAUNCH
Add powerhint configuration to use CPU 4-7 when CAMERA_LAUNCH

Bug: 188369995

Test: 1. Check camera daemon move to CPU 4-7 when camera launch
      2. P21 Camera Test Checklist done

Change-Id: I6ddc9ce664166c5b78c9a5bc427c800f0714b6ea
2021-07-08 03:37:49 +00:00
Maciej Żenczykowski
a24469c9d0 tune usb irq (dwc3) based on usb function
This among other things greatly increases tethering performance.

Bug: 185092876
Test: TreeHugger, built and booted on an oriole, enabled tethering
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ic9f0b4bef05250bb38c91dc1e046366098d98dc0
2021-07-07 16:23:12 +00:00
Albert Wang
ed651c86bf Move init.gs101.usb.rc under hw/
Bug: 192498561
Test: boot to home normally
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: I465a668035cf03c6ac9587a6d48d22e2f52133d0
2021-07-07 15:18:17 +00:00
Ethan Lin
8ef3f6cc02 Modify GCA_CAMERA_SHOT power hints for better performance.
CAMERA_STREAMING has the setting "TAPreferHighCap=1". GCA_CAMERA_SHOT should set "TAPreferHighCap=1" as well in case user leaves the viewfinder.
We could get better performance with "HighCapacityStartCpu=6".

Bug: 192534118
Test: manual R4
Change-Id: I85c77ac1ccc2176312b54a6acdd37df55a658f04
2021-07-06 14:32:39 +00:00
byunggwan kang
676f94117f update performance-point at media_codecs_aosp_c2.xml
Bug: 187191316
Test: android.mediapc.cts.MultiTranscoderPairPerfTest

Signed-off-by: byunggwan kang <bk0917.kang@samsung.com>
Change-Id: I69d1244770c118d5e37234b9d1ab85a288d09505
2021-07-06 09:23:00 +00:00
Yu(Swim) Chih Ren
9ab67ae5cd boost INT clock when CAMERA_BACKEND_BOOST
Add MIF, INT boost powerhint configuration for CAMERA_BACKEND_BOOST to
improve stability

Bug: 168654554

Test: 1. Check clock freq related file when camera start
      2. Check face id function work correctly
      3. P21 Camera Test Checklist done

Change-Id: Ia39acd531063bcf93c2db9971d783f6da8006502
2021-07-06 01:12:20 +00:00
Konstantin Vyshetsky
cf18666812 ufs: set clkgate_enable when in offmode charging
Bug: 190729148
Bug: 190727603
Test: manual R4
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Change-Id: I2f544cc01af18a0a6e85a2abd37d8621f24e286d
2021-07-04 03:56:30 +00:00
Midas Chien
69e6504dec init: allow hwcomposer to write early wake up node
Bug: 189173278
Bug: 191386940
Test: hwcomposer able to write node
Change-Id: Iede3d6121d5157732cfa1f18491bc7a3292ff2f3
2021-07-02 18:36:38 +00:00
Midas Chien
8e099ae8da dumpstate: dump DPU IDMA error count
Bug: 190864548
Test: verified contents in bugreport
Change-Id: Icf5e1946cf882f0245c7b5cb54488b8dc1d48efd
2021-07-02 16:21:39 +00:00
linpeter
b68ce6e795 gs101: declare IDisplay to V2
Bug: 190793567
test: check manifest
Change-Id: If1ca683897809eec20bc1f5a23c6a017e3783714
2021-07-02 04:21:28 +00:00
seungmin.ahn
00ab8fdd7c RELAND firmware: update MFC F/W(21/06/14)
- Set SYNC_FRAME when it's IDR frame.

Bug: 189759631
Test: screen recording and check thumbnails
Signed-off-by: seungmin.ahn <seungmin.ahn@samsung.com>
Change-Id: If75e7db4a7fbf4c66a71d3367e0f2e08d986bd40
2021-07-01 06:44:23 +00:00