Commit graph

470 commits

Author SHA1 Message Date
David Chao
851357462f powerhint: thermal: Support powerhint to change tmu control-temp
Bug: 188579571
Test: powerhint changed control-temp properly.
Change-Id: I7d57ab3b3895d2f358d0bd1911224325ede9dd51
Signed-off-by: David Chao <davidchao@google.com>
2021-06-09 14:31:39 +08:00
chened
a5afec518c camera: disable partial result by default for factory build
Test: build pass
Bug: 190228974
Bug: 190250102
Change-Id: I92c6d3f9e85a3b9d04a48b5c6d8cd5bdde7a63c0
2021-06-09 05:22:44 +00:00
Yu(Swim) Chih Ren
09706755b6 Use powerhint to increase mem, intcam, tnr clock when camera lunch to
improve camera start performace

Bug: 168654554

Test: 1. check clock freq related file when camera start
      2. P21 camera checklist

Change-Id: I3447a6028846cc873e9c7195826c470bceaf03c8
2021-06-09 04:18:05 +00:00
Adam Shih
e89080c7a6 modulize hal_neuralnetwork_armnn
Bug: 189895314
Bug: 171160755
Bug: 171670122
Bug: 180858476
Test: make sure all affected devices' armnn module has the right label
Change-Id: Ie618a5477b4e447774b20a58c9f091ae9fe529d6
2021-06-08 23:03:04 +00:00
Daniel Mentz
c37a73b74f gs101: migrate to bootimg header v4 (second attempt)
We migrate to bootimg header v4 and build the following two vendor
ramdisk fragments.

Type: Platform, Name: "", Contents: Everything but kernel modules
Type: DLKM, Name: "dlkm", Contents: Kernel modules (incl. modules.load etc.)

Bug: 183237066
Change-Id: I626cb87ba8111d0615b80cf981ebc288893a0624
2021-06-08 22:29:48 +00:00
Lucas Dupin
d8f101ad4c Enable blurs
Bug: 181092919
Test: manual; performance scripts
Change-Id: I5875a99167e80ddd5b79fc245f988d8a6ac167be
2021-06-08 16:38:30 +00:00
Cyan Hsieh
88218211cc Revert "Set audio.camerasound.force for JP devices"
This reverts commit b6c4f766b748af81d502cf031c75b2c6c4c7cf09.

Reason for revert: switch to use ro.boot.hardware.sku for judgement

Bug: 188396079
Change-Id: I012b2d32d9b7245fd1d1be5a00c5e922a1f52d19
2021-06-08 16:50:31 +08:00
David Li
4e9ad88e66 audio: upgrade audio.usb.default from v1 to v2
Bug: 187912470
Test: make -j128
Test: deep buffer and compress offload via speaker, USB headset, BT
earphone
Test: phone call via handset
Test: hotword detection

Change-Id: I0385873c7087660d03ccc582f31825a901ae1b8e
2021-06-08 06:14:43 +00:00
linpeter
cc1a0db348 init: set LHBM node permission before start hwcompower
Give local_hbm_mode node sutiable permission to allow
hwcomposer to set local_hbm_mode to display driver.

Bug: 184768835
test: check file node permission
Change-Id: I2e5dcd87ba27a1ccf8de14a12472ba806833ed12
2021-06-08 05:30:43 +00:00
Adam Shih
fa935b0795 remove obsolete module
Bug: 190330778
Test: build the ROM with the module gone
Change-Id: I38b604e2ee5be017b5eccf98d405ee896b5e6ea4
2021-06-08 03:25:59 +00:00
Isaac Chiou
206366eb0a config: Override disable firmware roaming via HAL API
ag/13790852 provides a solution to disable fw roaming if the connection
is triggered with a specific bssid.
We set config_wifiUseHalApiToDisableFwRoaming to true to enable this
feature.

Bug: 178398607
Test: Build Pass
Test: Make sure HAL api wifi_enable_firmware_roaming can disable roaming
Change-Id: Ia4b6cf80aefbce76c994532175693f38a0698a5a
2021-06-08 02:34:05 +00:00
Maciej Żenczykowski
0fc8c4d49f remove dead code - property:sys.usb.configfs is never 1
Bug: 172793258
Test: built and booted on oriole, tethering still works
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Iff304938e57e28b3a62784fbd0b226a20e0f53cc
2021-06-08 02:14:33 +00:00
Yan-De Chen
06c8aadc14 Revert "Camera: Enable LTM for factory builds"
This reverts commit d72626741ce5faa6404f52e61408d3ce93690fa3.

Reason for revert: disable ltm to improve camera stability

Test: build pass
Bug: 189934073
Change-Id: I2a23823b8d0c5a6686e6a675f575cf8a0bbd49de
2021-06-07 04:42:37 +00:00
Edwin Tung
d07bdce1e7 gps: update gps driver 128.20.23.502791
Fixed an issue to count valid L5 measurements in the L5 bias estimation process
Fixed wrong context detection issue when the first fix is made
Set group readable permission to esw-crash-dump
Added SIT_SET_GPS_STATUS IPC to inform of gps running state to modem
Fixed crash issue at ProvideLppeCapabilities() while KDDI testing
Fixed issue that gpsd send release connection request upon receiving NI message
Fixed gpsd busy loop after OnTcpConnect happend when it fails to SSL_connect() with SSL_ERROR_SYSCALL
Fixed Reset checking timer for default value of CpResetInvalidateSec to properly work

Bug: 189063756
Bug: 185203617
Bug: 189711389
Bug: 185545476
Bug: 189715043
Bug: 189730213
Bug: 188870406
Bug: 185884684

Sanity test: 190014066
Test: build pass
Change-Id: I99b7173c9f28ed5f6a05a272709f6caa4748aed1
2021-06-07 02:17:34 +00:00
Nicole Lee
2148f02c08 dumpstate: stop modem always-on logging only
Dumpstate will only collect always-on modem logs,
should only stop modem logging when it is always-on

Bug: 189441741
Change-Id: Icc4e1940aab774d56e51e966248985dda539890c
2021-06-07 02:14:16 +00:00
Wei Wang
6181c3ef5e Remove mid/big core min boost for touch boost
We have TA uclamp.min for top app, keep min boost for SF.

Bug: 190145608
Test: UiBench
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I5f307cc7fa53c28a0ac64be83fe2234c2e04ff12
2021-06-04 13:27:36 -07:00
Albert Wang
a902992f64 Correct the file permission for usb data on/off
Bug: 180711938
Test: access nodes normally
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: I12e3357e675a77f3beb5f9fd6d3ada4378e10693
2021-06-04 08:36:17 +00:00
Aaron Ding
49c8f94192 Enable PRODUCT_SET_DEBUGFS_RESTRICTIONS on userdebug builds
Bug: 186500818
Change-Id: Ic8534da52b093fc3278abd2f243a506d87196b1e
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-06-04 04:01:50 +00:00
Aaron Ding
aa420345a9 do not mount the debugfs on userdebug builds
Bug: 186500818
Change-Id: Ic22af74fa850b1072c3dc781a3b49ae95a9156ba
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-06-04 04:00:00 +00:00
Philip Cuadra
0111d397d2 Target arm v8.2a and A55 for GS101
This will let bionic use 8.2a atomics which helps scudo locking.

Bug 189248298
Test: Presubmit

Change-Id: Ifa7a6d8386c8adcadb81cb762758b06a8164f700
2021-06-03 22:13:43 +00:00
Peter Liu
638ed8c296 camera power hint: add extreme and low power hint
Add two more mode for power hint fine tuning.
streaming extreme targets 240fps mode and streaming low targets photo
mode.

Test:
this change is no op, so we will do the test on corresponding lyric
change (ag/14804030).

Bug: 189886881

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: Icd31501347108ccb5b0ec278a92bee89f543c192
2021-06-03 05:41:14 +00:00
wenchangliu
a9a6612873 Move input surface to CCodec
Bug: 186447629
Test: atest CtsMediaTestCases -- \
--module-arg CtsMediaTestCases:size:small
Test: camera recording
Change-Id: I3aa79073f45d0d06a55abed08763d8c1ac45932a
2021-06-03 01:51:52 +00:00
George Lee
f41184fff0 bcl: disable.bcl property to disable clk div
Bug: 188365095
Test: Local Test
/sys/devices/virtual/pmic/mitigation/instruction # setprop vendor.disable.bcl.control 0
/sys/devices/virtual/pmic/mitigation/instruction # cat enable_mitigation
1
/sys/devices/virtual/pmic/mitigation/instruction # setprop vendor.disable.bcl.control 0
/sys/devices/virtual/pmic/mitigation/instruction # setprop vendor.disable.bcl.control 1
/sys/devices/virtual/pmic/mitigation/instruction # cat enable_mitigation
0
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I326d2d8f1b694d1e5d2a5d663c8fa58e55d37d85
2021-06-02 21:38:37 +00:00
Ted Lin
0843fe0b0a gs101: dumpstate: Dump function without debugfs
*** command '/vendor/bin/sh -c cat /d/regmap/*-0057-pca9468-mains/registers' failed: exit code 1

Bug: 187030022
Test: Check bugreport
Change-Id: Iea4225efb87b9793d990c04d950938fe79f71e23
Signed-off-by: Ted Lin <tedlin@google.com>
2021-06-02 03:29:58 +00:00
Shinru Han
d8908905aa gps: Add MCU crash dump in bugreport
Bug: 189288775
Test: on device
Change-Id: I0d3d1fdb6410098779d5ff9ed5d8b9bc7a347764
2021-06-02 03:04:59 +00:00
Benjamin Schwartz
a05a8c3854 powerstats: Remove Wifi and BT placeholder consumers
Bug: 185392117
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I4ee4837f882c2666e99c02836dd3c850871b420b
2021-06-01 17:17:03 -07:00
Stephane Lee
0daa5cc618 Add Adaptive Charging AC pause buffer control
Bug: 188524940
Test: Ensure that there are no logcat errors from health_safety_margin
Change-Id: Ia67649fd6d2e4cc8b87b5fa9c21b15b07722efbe
2021-06-01 20:36:15 +00:00
Aaron Ding
f87f8ed1b0 disable DebugFS restrictions in factory builds
Bug: 186500818
Change-Id: I313c462fc9e97eb76f8772bd0c7536e6dcf62a01
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-06-01 04:24:06 +00:00
Cyan_Hsieh
7a7f31c030 Set audio.camerasound.force for JP devices
Test: set to JP sku and check No camera sound option
Bug: 188396079
Change-Id: Id6a89d53f796d2311b91955908ec72e88edbc371
2021-05-31 02:54:19 +00:00
Kris Chen
4de06908f9 udfps: Add goodix HIDL extension manifest for userdebug build
Bug: 189315086
Bug: 189227969
Test: Can use Goodix APK to enroll and authenticate.
Change-Id: If1061382d6bde43e2b45f5e91da238ac5e0ebfde
2021-05-31 02:41:36 +00:00
George Lee
dada82957c health: fix soc path so enable proper throttling
Path was missing "/" thus thermal zone soc stays enabled regardless of
charging.

Bug: 188006020
Test: Local test to check soc's mode
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I62ba233ddc05f2c8c0d3bcf4f97809f9c379a757
2021-05-28 19:38:51 +00:00
George Lee
1f5972077d thermal: add soc to thermal HAL monitoring
Bug: 188365095
Test: Local Test
/dev/thermal/tz-by-name/soc # ls -la
-rw-r--r--  1 system system 4096 2021-05-26 17:25 mode
-rw-r--r--  1 system system 4096 2021-05-26 17:25 trip_point_0_hyst
-rw-r--r--  1 system system 4096 2021-05-26 17:25 trip_point_0_temp
/dev/thermal/tz-by-name/soc # cat policy
user_space

Signed-off-by: George Lee <geolee@google.com>
Change-Id: I9f9cffb29ad025872d77dc2e41d893a2fb2d375a
2021-05-28 16:08:03 +00:00
Rick Yiu
c0f5a7b882 gs101: dumpstate: Dump vendor group value
Dump attributes and tasks for each vendor group.

Bug: 172112042
Test: dump successfully
Change-Id: I538a88391e4917749689b9ee1cfa00a8fe1049e5
2021-05-28 01:18:08 +00:00
Craig Dooley
f706b02e51 Move AoC debug utilities to PRODUCT_PACKAGES_DEBUG
Bug: 185722771
Bug: 185725440
Bug: 185723000
Signed-off-by: Craig Dooley <dooleyc@google.com>
Change-Id: I726d173aaa64b279761f645c7822ded93e89d806
2021-05-27 21:43:50 +00:00
Benjamin Schwartz
630f471fcf powerstats: Add CAM, INTCAM, and TNR devfreq stats
Bug: 186581089
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I1c01971518769a2ea0e5d360ef99e07df735e0fb
2021-05-27 17:51:05 +00:00
Shinru Han
4a629f3523 gps: Add Rakuten cert
Bug: 189296469
Test: print cert content by command: openssl crl2pkcs7 -nocrl -certfile gps.cer | openssl pkcs7 -print_certs -text -noout
Change-Id: I6279daa44074db35d71ab801b46de629af240aac
2021-05-27 12:12:25 +00:00
Albert Wang
891818811e Modify attributes path for USB data on/off
Bug: 180711938
Test: HAL loaded and accessed attributes normally
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: Ic0399cfe7022cc1971fc99870d955b9308512ca8
2021-05-27 03:32:39 +00:00
Rick Yiu
a661b17e10 gs101: Set top-app prefer_high_cap for GCA
Some GCA features perform better when running in high capacity cpus.
It is set in CAMERA_STREAMING_STANDARD, so photo mode and video mode
of 30 fps will use this setting.

Bug: 188777413
Test: ta_prefer_high_cap set correctly
Change-Id: I2fd444635a352d1c6236fd82eb82e67ca1799c97
2021-05-27 01:16:56 +00:00
terrycrhuang
8b9b90e0c7 Disable Early Cmaping feature
In the feature, IA would be sent early. But it met the timing issue to
customize for TMO.
The carrier id is updated too late to set the TMO parameter correctly.
Disable the feature to unblock field test first.

Bug: 188973074
Test: Flash ROM and make sure the early camping feature is off
Change-Id: Ifd8021d4944db3437c6ff51ac417b427ce04c2a1
2021-05-26 04:02:22 +00:00
Ken Huang
b115af5590 dumpstate: dump panel extra info
Dump panel extra info to show display hw revision.

Bug: 189190103
Test: adb bugreport
Change-Id: I14121ff428d494b65c2a1741880b6fe7424d2d69
2021-05-25 10:12:37 +00:00
Edwin Tung
5bc5698b5a gps: update gnss RF path loss and remove log for user build
Bug: 188496801
Bug: 188760589
Bug: 183185249

Test: build pass
Change-Id: I564acc324c628c4311c87227d7127db941816a6f
2021-05-25 08:52:34 +00:00
Edwin Tung
1c01fa3785 gps: update gps driver 128.20.23.501503
Integrate chpp-20210325-f908420
Added SuplNiEnable (default true) to control SUPL NI
Added google LTO license key
Fixed SUPL PDU encoding error caused by structure alignment mistmatch between gpsd and gnss
Removed A-Glonass capability from ProvideCapapbilties while running LPP CP
Protection for nullptr access while receiving CAMPING_ON_LTE status from RIL
Reduced cellInfo waiting timeout from 1.3 to 1.1 sec
Add “basebandCn0” in onchip PVT
Do not stop warmstandby timers with PE2PE_WAIT_FOR_USER_TIMEOUT after receiving assist
Fix a bug to check whether there were any valid measurements which causs GPSD crash.
Added support for SatellitePVT
Keep the received acquisition assistances even after the E911 came in during the Breadcrumb req running
Add a validity check before stopping the CW combo mode test

Bug: 179616840
Bug: 187914357
Bug: 187760198
Bug: 187673164
Bug: 187011439
Bug: 187008705
Bug: 186731449
Bug: 186499722
Bug: 186490245
Bug: 186378531
Bug: 184906297
Bug: 181831996
Bug: 178148552

Sanity Test: 189009358
Test: build pass

Change-Id: Ief497c17b7d8a2e1aa232cd892d58adff689a911
2021-05-25 08:52:24 +00:00
Alex Hong
8080cd87f3 Remove the RenderScript HAL from the vendor manifest
"android.hardware.renderscript@1.0-impl.so" is already removed.
Remove the declaration of corresponding passthrough HAL from the
vendor manifest as well.

Test: run vts -m vts_treble_vintf_vendor_test
Bug: 184714406
Change-Id: Id7d23003c769a5872bb316090f8b94b27bc83298
2021-05-25 06:50:16 +00:00
Wei Wang
382667f2f2 Change TA default boost to 1
We use uclamp as importance metrics for placement, before adding a
dedicated sysfs node, let us use TA default as "1"

Bug: 170487162
Test: boot
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I57b458fcab1c35b484b1859cea631cca7d495ac8
2021-05-25 06:06:38 +00:00
Krzysztof Kosiński
06861b99cc Update GCH configuration for gs101.
Bug: 188327280
Test: camera preview on oriole
Change-Id: Id7b9b1c6129a45edd0c65ed37531c4f34555a6e0
2021-05-25 04:46:41 +00:00
Ray Chi
387995b245 Revert "gs101: usb: add state of usb extcon to monitorffs"
This reverts commit 72ef08cafa.

Reason for revert: using alternate method for original behavior change
Bug: 187261232
Test: build pass

Change-Id: I5643a4109f6e4a64d167ed9ee1ce0bc3492cea42
2021-05-24 16:02:50 +00:00
Tim Murray
be4b7b6366 gs101: use 64-bit dex2oat
64-bit dex2oat uses slightly more memory in exchange for significantly improved compile time.

Test: boots, works
bug: 188906345
Change-Id: Ie91a2401504596cabacbb04b5d6b7039865c193d
2021-05-24 15:41:36 +00:00
Peter Csaszar
9cd8c6e58f init.gs101.rc: Change owner/group of SJTAG files
On userdebug & eng builds, change the owner/group of SJTAG sysfs files
that need to be written to 'system'. This became necessary after these
files were migrated out of DebugFS, as write access to the world is no
longer supported.

Bug: 188817349

Test: Ensure that the writable files in the following directories have
'system' as their owner & group:

  /sys/devices/platform/sjtag_ap/interface/
  /sys/devices/platform/sjtag_gsa/interface/

Signed-off-by: Peter Csaszar <pcsaszar@google.com>

Change-Id: I4420fccd92522a48f44b80bd0a19f4a20eb32442
2021-05-21 14:42:51 -07:00
Rick Yiu
daa6fa640b gs101: Modify system and system-background gropus
NormalPerformance is for system, and ServicePerformance is for
system-background.

Bug: 182509410
Test: build pass
Change-Id: Ifeec11de42fa880cd00b34d504bf6d8ff90dd15c
2021-05-21 17:13:34 +00:00
Andrew Chant
e16045f7c6 Add rebalance_interrupts
Add rebalance_interrupts to run at boot and rebalance interrupts.
Run once after modules have loaded and a second time after boot
has completed to ensure all interrupts have been assigned to
individual cores.

Bug: 148403062
Change-Id: I9685807e3028bef509c4064a5c09cbc48b91f7f0
2021-05-21 16:52:25 +00:00