Commit graph

588 commits

Author SHA1 Message Date
Jimmy Shiu
e209e8fbe9 Enable SF main thread boost with uclamp.min=30
Bug: 190137562
Test: boot and check uclamp.min of SF
Change-Id: Ifd6ad8d67fb0a3ecd2464540b670839cea1e867b
2021-06-12 06:05:29 +00:00
Kyle Lin
2b58ea89da init.gs101.rc: adjust memlat settings am: b70354c760
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14762971

Change-Id: I6291fccfc7ab5af1f222d95f6279745b73e00b5d
2021-06-11 00:19:42 +00:00
Kyle Lin
dc29ed3477 init.gs101.rc: adjust memlat settings
Bug: 170479348
Test: build, boot and check the values
Change-Id: I4d2463dbb377074916ac1d5fe2f4b8880fa58da0
2021-06-11 00:06:23 +00:00
Peter Liu
265ee180f7 camera power hint: add prefer high cap and prefer idle = 0 to top app am: cf876e0113
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14929975

Change-Id: I8f04a19b412a72c08ebe5e6be4da357d0e981912
2021-06-10 20:05:11 +00:00
Peter Liu
2abc122f88 camera power hint: add prefer high cap and prefer idle = 0 to top app
Prefer high cap and prefer idle is to optimize power and
trade off with scheduling latency.
Applying to app side does has no regression on frame drops.
And we can not apply prefer idle to hal process as it impact performance.

Bug: 190127212

Test:
1080p60: 20mW power saving, 59fps no regression
slow-mo 240fps: 239+fps

Change-Id: I548becbd2d6ccac8b576cfe54f9021bbf30b4801
2021-06-10 19:40:32 +00:00
Taehwan Kim
4519625770 firmware: update MFC F/W(21/05/31) am: 8c8bf850f2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14868629

Change-Id: I7052fd27c562c480fb7eef11d66be25078e953f4
2021-06-10 10:33:02 +00:00
Yu(Swim) Chih Ren
b324693b5a Remove clock boost configuration for MIF,TNR,CAMINT when CAMERA_LAUNCH in powerhint.json am: 51883e751e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14930014

Change-Id: I18e87072d333cbf61dd3c10c42f6e10d8b15dca9
2021-06-10 10:32:58 +00:00
Taehwan Kim
2599bb6d29 firmware: update MFC F/W(21/05/31)
- Modified HEVC decoder error handling which
    copy the nearest reference frame to current frame when error is detected.
- Implemented so that SBWC can be off/on during decoding when SBWC is enabled.
- Fix the max I frame size calculation bug when RC mode is CBR_VT. (RC_MODE = 3)
- Modified so that H.264/HEVC decoder can consumed AUD NAL type stream
    when AUD is added at the end of frame.

Bug: 176415285
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: I6ceb2cdc2544a40dc505772fb50b5bd1ccd720bd
2021-06-10 10:18:18 +00:00
Yu(Swim) Chih Ren
acfa6b834f Remove clock boost configuration for MIF,TNR,CAMINT when CAMERA_LAUNCH in powerhint.json
Reason for remove: face enroll fail

Bug: 168654554
Bug: 187759712

Test: check ISP clock freq no change on local device
Change-Id: I7d70c1fdd7e5d067db1941cced69a375b66ebc89
2021-06-10 09:28:08 +00:00
eddielan
0964f14595 gs101: Use findstring to filter factory build target
Bug: 190687357
Test: Build pass
Change-Id: I0f1fdde9ca01f8f06dcf026d47a98785cf35df57
2021-06-10 09:18:39 +00:00
Adam Shih
ce0410dcf2 reorganize trusty_metricsd settings am: 187a532e2a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14909767

Change-Id: I8f2d109a257b4764f6ee94f58ba1ddd69a30111f
2021-06-10 06:13:25 +00:00
Adam Shih
cdc350b5e6 reorganize trusty_metricsd settings
Bug: 190331503
Test: build ROM and see the file and sepolicy settings are still there
Change-Id: I212df916799b8acf831158153209bd2a1f7dfc5f
2021-06-10 05:52:40 +00:00
Rick Yiu
60d189734e gs101: Refine vendor_sched parameters am: 97bbe9920b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14776176

Change-Id: I3276379abf39e3e0224bfc82bf0a4f3a78245b7d
2021-06-10 04:36:39 +00:00
Rick Yiu
7e195263bf gs101: Refine vendor_sched parameters
Also set 512 to bg_group_throttle.

Bug: 170508405
Test: value set correctly
Change-Id: I5ff0a9630b459b8783f358106da4ca2a20154636
2021-06-10 04:16:44 +00:00
Adam Shih
91a2235621 organize EdgeTPU modules and sepolicy am: f3966f6bcb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14909756

Change-Id: Ibdd2be9697a4edd2cf749ff96a180972a6190fc6
2021-06-10 03:12:37 +00:00
Adam Shih
a169c37d9d organize EdgeTPU modules and sepolicy
Bug: 190331327
Bug: 190331548
Bug: 189895600
Bug: 190331108
Bug: 182524105
Bug: 183935302
Test: build ROM and check if the modules and sepolicy are still there
Change-Id: Id28ac2094e14051defe0401055d862c6353194f7
2021-06-10 02:53:28 +00:00
David Chao
e60df59a2e powerhint: thermal: Support powerhint to change tmu control-temp am: 7769380db2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14702506

Change-Id: I797f3f9bf01abac35807437263721b310a6632c3
2021-06-09 08:08:15 +00:00
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
d9fba5c69c camera: disable partial result by default for factory build am: ffcefc5e07
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14877091

Change-Id: Icca62c406ea3d3913db21e93d610a64860d4f2cc
2021-06-09 05:44:08 +00: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
be3aa1785f Use powerhint to increase mem, intcam, tnr clock when camera lunch to am: 2e92edf1be
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14807273

Change-Id: I183ec3b71ff24eeade0198e542bd97fe6bb51353
2021-06-09 04:37:08 +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
3ab2148f5c modulize hal_neuralnetwork_armnn am: 556df03c4c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14881194

Change-Id: Id4b86796a82cc7637fb468d7bb5d02a493624a46
2021-06-09 03:37:23 +00:00
Daniel Mentz
94c8fe6cd5 gs101: migrate to bootimg header v4 (second attempt) am: fbe5ace1a8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14315232

Change-Id: I472a2aa6cbd6240fa0fe942e78f5aeb0bdefdc11
2021-06-09 03:37:18 +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
0dfc2535ba Enable blurs am: 4f86cdd63f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14829939

Change-Id: I4a560047f3225503c41184362dd2cbe4aa53db39
2021-06-08 16:56:38 +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
63420a9717 Revert "Set audio.camerasound.force for JP devices" am: e561684b39
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14881198

Change-Id: I4fc2757d1dfa86eaea0d02ab002dab9c5722fb21
2021-06-08 11:28:32 +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
fb3c8d9a4e audio: upgrade audio.usb.default from v1 to v2 am: 174e0f9a18
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14513739

Change-Id: Iba6eb8f85d3ae9fdd21ac047fa535aee5b3f6a3b
2021-06-08 06:35:45 +00: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
093ed540b1 init: set LHBM node permission before start hwcompower am: 0fd8dc215e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14656552

Change-Id: Ib605dd09224a19b6535baaf62dfbe6f05a0099db
2021-06-08 05:48:27 +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
151e0302a6 remove obsolete module am: a32cd44c0e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14881192

Change-Id: If7a7f5e07ca3b50ca87b9be7580ecf428137b16d
2021-06-08 03:59:18 +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
dcb7d3ca32 config: Override disable firmware roaming via HAL API am: fab900fd9f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14807289

Change-Id: I7870c268e43ba049b37073b72a1192fdadfcc473
2021-06-08 02:35:33 +00:00
Maciej Żenczykowski
7e7f8b832a remove dead code - property:sys.usb.configfs is never 1 am: 2a42e96274
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14542110

Change-Id: Id9fbc923acabbb7a44bfd59b6f9210c386ffec02
2021-06-08 02:35:29 +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
bf3fce66e1 Revert "Camera: Enable LTM for factory builds" am: 3b91828b60
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14800450

Change-Id: I87f59cfba5eaf703d649ed8ef73eccaed1b6d3be
2021-06-07 05:05:01 +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
16ae340dc5 gps: update gps driver 128.20.23.502791 am: e3784ee3ef
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14751953

Change-Id: I0fdbe7fcc6a83ac26b0309daaead8533644487ab
2021-06-07 02:33:19 +00:00
Nicole Lee
94b4b6a92e dumpstate: stop modem always-on logging only am: d78e4f105a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14788593

Change-Id: Iaa5b9aab483d2722bf84f774d5e03f84e1c37df9
2021-06-07 02:33:13 +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
dd2a4a4b3e Remove mid/big core min boost for touch boost am: 2a2a091bfc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14847872

Change-Id: I6f2101d968dd4f259a05d93ffbed25b49c38fbba
2021-06-05 04:32:56 +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
ad3eee9230 Correct the file permission for usb data on/off am: 0b3446467f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14807283

Change-Id: I6540ea3307a6d14aac21587be44272a465112660
2021-06-04 08:59:57 +00: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