Commit graph

683 commits

Author SHA1 Message Date
George Lee
4cbeb49d76 bcl: Updated BCL metrics per sysfs change. am: 5c2c6b0132 am: 0d33793cdc am: c6ae92539d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14624418

Change-Id: I831aa0a19d3b922e83d0572d784fe3e249cdc573
2021-05-20 15:59:58 +00:00
George Lee
9cf36fcccb bcl: Updated BCL metrics per sysfs change.
Update BCL triggered stats reporting.

Bug: 180620276
Test: adb bugreport
dumpstate_board.txt shows:
------ Mitigation Stats (/vendor/bin/sh -c echo "Source\t\tCount\tSOC\tTime\tVoltage"; for f in `ls /sys/devices/virtual/pmic/mitigation/last_triggered_count/*` ; do count=`cat $f`; a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/last_triggered_count\//}; b=${f/last_triggered_count/last_triggered_capacity}; c=${f/last_triggered_count/last_triggered_timestamp/}; d=${f/last_triggered_count/last_triggered_voltage/}; cnt=`cat $f`; cap=`cat ${b/count/cap}`; ti=`cat ${c/count/time}`; volt=`cat ${d/count/volt}`; echo "${a/_count/} \t$cnt\t$cap\t$ti\t$volt" ; done) ------
Source		Count	SOC	Time	Voltage
batoilo 	0	0	0	0
ocp_cpu1 	0	0	0	0
ocp_cpu2 	0	0	0	0
ocp_gpu 	0	0	0	0
ocp_tpu 	0	0	0	0
smpl_warn 	0	0	0	0
soft_ocp_cpu1 	0	0	0	0
soft_ocp_cpu2 	0	0	0	0
soft_ocp_gpu 	0	0	0	0
soft_ocp_tpu 	0	0	0	0
vdroop1 	0	0	0	0
vdroop2 	0	0	0	0
------ Clock Divider Ratio (/vendor/bin/sh -c echo "Source\t\tRatio"; for f in `ls /sys/devices/virtual/pmic/mitigation/clock_ratio/*` ; do ratio=`cat $f`; a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/clock_ratio\//}; echo "${a/_ratio/} \t$ratio" ; done) ------
Source		Ratio
cpu0_clk 	0xf041c3
cpu1_heavy_clk 	0xf041c3
cpu1_light_clk 	0xf041c5
cpu2_heavy_clk 	0xf041c3
cpu2_light_clk 	0xf041c5
gpu_heavy_clk 	off
gpu_light_clk 	off
tpu_heavy_clk 	off
tpu_light_clk 	off
------ Clock Stats (/vendor/bin/sh -c echo "Source\t\tStats"; for f in `ls /sys/devices/virtual/pmic/mitigation/clock_stats/*` ; do stats=`cat $f`; a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/clock_stats\//}; echo "${a/_stats/} \t$stats" ; done) ------
Source		Stats
cpu0_clk 	0x101
cpu1_clk 	0x101
cpu2_clk 	0x101
gpu_clk 	off
tpu_clk 	off
------ Triggered Level (/vendor/bin/sh -c echo "Source\t\tLevel"; for f in `ls /sys/devices/virtual/pmic/mitigation/triggered_lvl/*` ; do lvl=`cat $f`; a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/triggered_lvl\//}; echo "${a/_lvl/} \t$lvl" ; done) ------
Source		Level
ocp_cpu1 	7000mA
ocp_cpu2 	12000mA
ocp_gpu 	12000mA
ocp_tpu 	10500mA
smpl 	2900mV
soft_ocp_cpu1 	7000mA
soft_ocp_cpu2 	12000mA
soft_ocp_gpu 	12000mA
soft_ocp_tpu 	10500mA

Signed-off-by: George Lee <geolee@google.com>
Change-Id: I4ea25ebc86eb772c69e8047b2d5466ca52ec2d2c
2021-05-20 15:12:44 +00:00
Jack Wu
8b63caeb82 dumpstate: dump wireless fw version am: c479db480a am: 675541aba5 am: 42cf2ca5db
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14569083

Change-Id: I749b3ab1065e9216e87bf14bbc7c425d5871c564
2021-05-20 11:37:12 +00:00
Jack Wu
50437f63d5 dumpstate: dump wireless fw version
Bug: 188021156
Test: can show in dumpstate
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I51cb5dded02e0cbb1e9d16334472bab4d9a82150
2021-05-20 10:31:30 +00:00
Ilya Matyukhin
3d55618ac3 Remove sysprop assignment left over from a WIP change am: 424cb52687 am: e6590fb675 am: 50ee5b4b3a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14649834

Change-Id: Ia1ed0463467d8b28e6a9db6c4fb58d3122265e6a
2021-05-20 08:53:05 +00:00
Ilya Matyukhin
c5761abf62 Remove sysprop assignment left over from a WIP change
Bug: 188193467
Test: on device with shipping image
Change-Id: I5fe71d029e47b83522208a8add8183701b6c12d2
2021-05-20 07:36:17 +00:00
Peter Liu
3b81a21018 camera power hint: add prefer high cap in all modes am: cc9b21a67d am: 206d332bf1 am: 6afc868375
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14650410

Change-Id: I515684ae6d6d25d23ae0b169c63c2c9c7f7bf220
2021-05-20 05:03:00 +00:00
Taeju Park
e5ddc9e69f Enable prefer_idle for nnapi vendor group am: f01f5fa48b am: dec3aa9b53 am: 3a462fc0d3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14639089

Change-Id: I1c17f40fd965c296f9ab8c00dd3e60262386a2be
2021-05-20 03:36:22 +00:00
Peter Liu
7bb4e1f1b3 camera power hint: add prefer high cap in all modes
Prefer high cap will choose the mid / high cores when possible with
consideration of energy efficiency.

Running task on high cores with low clock is more efficient than running
at little core with high clock.

This hint also addresses CTS issues with keeping latency_sensitive = 1.
(equivalent to prefer idle)

This hint adds:
1) Enable prefer_high_cap of camera vendor group
2) Set high_capacity_start_cpu to 4
4) Set MemFreq floor
5) Change camera-daemon/cpu.uclamp.latency_sensitive owner to root

Bug: 186564130

Test:
android.hardware.camera2.cts.RobustnessTest#testAeAndAfCausality (5/5)
android.hardware.cts.CameraTest#testPreviewCallback (5/5)
android.hardware.camera2.cts.CameraDeviceTest#testCameraDeviceRepeatingBurst (5/5)
android.hardware.cts.CameraTest#testFocusDistances (3/6). (3/6) without CL.

*****************************************************************
              raven Camera CTS Test Results

*****************************************************************
Tests Passed: 217, Failed: 0, Not found: 0, Status unknown: 0

Change-Id: Ia2abb0eb9c57fa05c4db7bf1d02053e303301781
2021-05-20 03:24:07 +00:00
Taeju Park
c36b562b57 Enable prefer_idle for nnapi vendor group
Bug: 182509410
Signed-off-by: Taeju Park <taeju@google.com>
Change-Id: I1b58018120f4575f2b12faa15c24c41f1c3b4e8e
2021-05-20 02:28:47 +00:00
Kevin DuBois
7d2efa0839 GPU nnhal: update service name. am: 6652dacf8d am: 130f651423 am: 7ab93abff4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14607671

Change-Id: Id0a6ed8197269baa3dc5e78c0cb20e57e1301553
2021-05-20 01:03:33 +00:00
Kevin DuBois
3cbaa92aad GPU nnhal: update service name.
There's a vts test that requires presence of a hyphen in service name.

Fixes: 180648109
Test: vts
Change-Id: I66154167c46962734b2950a9ba5fe81daf21d460
2021-05-20 00:06:57 +00:00
Edmond Chung
c77cb0b01b Revert "Update power hint for camera workload" am: 8a647be960 am: 20cc723db1 am: fe2edb67e7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14647091

Change-Id: I1bb355e1d712098cf93618a17aa5fdb9de43962e
2021-05-19 22:17:52 +00:00
Vinay Kalia
738fb99568 Enable adaptive playback feature for AV1 am: 66ca602935 am: 857d0626f4 am: 5d74de2ce2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14644554

Change-Id: I5a40820062aeccefdd8a59cddfc6d3987152eaac
2021-05-19 21:13:06 +00:00
Edmond Chung
f2a5afd136 Revert "Update power hint for camera workload"
This reverts commit 3a0efffdbc722cb8a9684ce3c0080d2476c0abb8.

Reason for revert: This CL causes performance/frame drop issues which leads to more CTS flakiness.

Bug: 188462637
Bug: 185233206
Test: Camera CTS
Change-Id: I1796ba29da0e2c19874531bda8c21bc10e248055
2021-05-19 20:05:16 +00:00
Vinay Kalia
dc873081f9 Enable adaptive playback feature for AV1
bug: 188121584
Test: Secure AV1 playback

Signed-off-by: Vinay Kalia <vinaykalia@google.com>
Change-Id: I32961ea6e21103a4dfd9adb201f3ceccd2b31995
2021-05-19 20:05:04 +00:00
Adlai Holler
a965f6b1e3 Remove redundant build property for reduceOpsTaskSplitting
This flag is true for everyone now. No need for it here. Change has no effect.

Bug: 183612348
Change-Id: Ia264cfceb5cea4230a1c459fbd3c3f8c99a35bdf
2021-05-19 20:01:38 +00:00
Ilya Matyukhin
f5e2d39b63 Split UDFPS makefiles into common, factory, and shipping am: f57f229373 am: 9ffa00a4f1 am: 0419b2162b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14618952

Change-Id: If9ee6d45ab3ea57502fe9359873cce4440ee970d
2021-05-19 19:34:47 +00:00
Alex Johnston
8b127b454e Add Device ID attestation support gs101 am: b32d5b1061 am: 304644f5c1 am: 16648b9888
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14623068

Change-Id: I5d82d4d15a3ad5e2c22121d1e39a860169aca050
2021-05-19 19:29:12 +00:00
Peter Liu
b502f47607 camera power hint: raise CPU clock more conservatively at STREAM_HIGH mode am: 09450b8836 am: fb37eb0f28
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14613254

Change-Id: I3241f41cbf60d5999028052fcab8e560ab9dd6ee
2021-05-19 19:29:07 +00:00
George Chang
14efb0d70f Temporary disable eSE2 terminal am: 9b86b27b3f am: 5760b4e260
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14617784

Change-Id: I40336cf2944acd4bbd43b077a036e0063d805c07
2021-05-19 19:29:02 +00:00
Ilya Matyukhin
7ba5a92b62 gs101: remove fingerprint HIDL HAL config am: ac47d7885b am: 51f439064c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14631517

Change-Id: Icd99e880568994f16d4a4ee9b7ef97e415e11c32
2021-05-19 19:28:58 +00:00
Krzysztof Kosiński
6f89de444e Update GCH configuration for gs101. am: 1255280cdb am: d5476facce
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14596553

Change-Id: Iba317fa1ab0cc3ab6ef68be133985ef8774225c0
2021-05-19 19:28:53 +00:00
Yu-Chi Cheng
decba89409 Renamed edgetpu_service to edgetpu_app_service. am: 07333e858e am: d47f7d9935
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14607180

Change-Id: Ied3c085b08c253ae0693a5a41c6460e7882fc4e6
2021-05-19 19:28:49 +00:00
Stephane Lee
7b5fa0eabd Enable Battery Defender on gs101 am: 3e12e79374 am: f7527c0ccf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14540731

Change-Id: I1407293c603dd6b12199ad25e5771d1abc23c034
2021-05-19 19:28:44 +00:00
Siddharth Kapoor
e139c1452a Increase earlySf duration to accomodate animation cases am: ff667d4fd6 am: dad797339e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14623153

Change-Id: I3d2329c88c948547c53602ce4d5a4d37c0237581
2021-05-19 19:28:39 +00:00
Roger Fang
e8f8924cb7 device: google: gs101: IAudioMetricExt hidl manifest settings am: b028d337e5 am: ea9c83f328
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14281931

Change-Id: I285ffcaed7bb44e316d8122deed4457dbf68fe65
2021-05-19 19:28:35 +00:00
Kevin DuBois
85e5df6c65 Upgrade GPU NNhal to 1.3 revision. am: 093d884b1f am: d90801dbff
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14549409

Change-Id: I776dbfec89e0d83fbabae9af1a2da023dd2484fc
2021-05-19 19:28:29 +00:00
Ted Lin
3d8ede67b1 Dump tcpm for the new path am: 6760693f5e am: cb6154d1c9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14569087

Change-Id: Iec3fd605dd62fb034d1640c70deae0a5c8fb58d1
2021-05-19 19:28:25 +00:00
Beverly
ece9733388 Raviole: use hybrid prox sensor on keyguard am: 9ff80a9867 am: 24483ba87f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14601354

Change-Id: I1a110713305874b7e66a5a16bb70ec713e0903d5
2021-05-19 19:28:20 +00:00
Alec Mouri
4ec59446ef Enable SurfaceFlinger Cache by default am: 2b243badf7 am: 903f69b27c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14491472

Change-Id: I11ae95702ed0876f1b4850b3d89e666895637911
2021-05-19 19:28:16 +00:00
Devika Krishnadas
8478e684ee Change VSYNC duration am: 81e38cd53f am: 7954fd9c0d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14600236

Change-Id: Id54b54082d8d51ed96493e7b6f6ec2c5ea694f88
2021-05-19 19:28:11 +00:00
Rick Chen
d8a71742bf Add debug property for sensor on userdebug/eng build. am: 0046814755 am: 703389de4b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14513734

Change-Id: Id43b5f57ff477f89eeec9503a087c2a96ce162cb
2021-05-19 19:28:06 +00:00
Jenny Ho
39b621b94c device-common: set testing_battery_profile default 2 am: 830f088024 am: 3a936454dd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14608671

Change-Id: I94bf4f6e51bd41bd5480196702febb7a34d508ba
2021-05-19 19:28:02 +00:00
Sidath Senanayake
24b9e4ea1e powerhint: Use 'hint' node for GPU am: f1ebf62e94 am: 40b3ef6c08
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14601657

Change-Id: Ib4d99fb496e84648989b4deffc255b430167779d
2021-05-19 19:27:57 +00:00
Zhijun He
3c0e464e12 dumpstate: add camera hal graph state dump am: 5b24450f66 am: e43cd9d5df
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14605098

Change-Id: I9788f6c4036a0a0d1092a7a90b158c9de3e64c59
2021-05-19 19:27:52 +00:00
Tim Murray
c68cb80b41 gs101: preopt SystemUI am: bcbec3f640 am: 3831a6fc7e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14607670

Change-Id: I0890add580b3ed5e3c215bb39218f0ab59362f88
2021-05-19 19:27:47 +00:00
Long Ling
3107de44de display: update vendor color file am: 7ce611d3b2 am: 5056f031e3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14509944

Change-Id: Id657131b94446e1a794563e7fad5cead9083e69b
2021-05-19 19:27:42 +00:00
Minchan Kim
a74e76bea7 gs101: enable page_pinner am: 1d26ee723e am: ee25ec8700
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14472208

Change-Id: I279f0cab733e1409e9283181e1cc3e9b5c5d6e42
2021-05-19 19:27:37 +00:00
Minchan Kim
104da9fef5 init.gs101.rc: dump page_pinner information into bugreport am: 9e84a854dd am: 47b380ce9a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14472207

Change-Id: I6e0186f6c2392c62a2229a80d720b75fee767539
2021-05-19 19:27:33 +00:00
Midas Chien
ed6ec27265 Revert "gs101: display: update 90hz denylist" am: d3e7a01d6e am: ad3fd36ffe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14242676

Change-Id: I08c66d40df962865a3af0822b3b025944830a8ff
2021-05-19 19:27:28 +00:00
Ilya Matyukhin
4d054df74c Split UDFPS makefiles into common, factory, and shipping
Bug: 188193467
Test: build factory_oriole-userdebug
Test: build factory_raven-userdebug
Test: build oriole-userdebug
Test: build raven-userdebug
Change-Id: Ia2b725214189ff123239dbafad3bcb567f11f47b
2021-05-19 17:11:58 +00:00
Alex Johnston
a1f2ab72b2 Add Device ID attestation support gs101
Bug: 187151761
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAddNetworkWithKeychainKey_granted
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testKeyManagement
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegationCertSelection
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testInstallKeyPairLogged
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testGenerateKeyPairLogged
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegatedCertInstallerDirectly
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetKeyGrant
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetKeyPairCertificateLogged
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testAddNetworkWithKeychainKey_granted
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testKeyManagement
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDelegationCertSelection
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testInstallKeyPairLogged
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testGenerateKeyPairLogged
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDelegatedCertInstallerDirectly
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSetKeyGrant
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSetKeyPairCertificateLogged
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testAddNetworkWithKeychainKey_granted
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testKeyManagement
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testDelegationCertSelection
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testInstallKeyPairLogged
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testGenerateKeyPairLogged
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testDelegatedCertInstallerDirectly
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testSetKeyGrant
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testSetKeyPairCertificateLogged

Change-Id: I71f8811780cfbc78515c69c1a5170b6451ff7821
2021-05-19 13:06:50 +00:00
Peter Liu
f2db0e370f camera power hint: raise CPU clock more conservatively at STREAM_HIGH mode
During streaming high fps mode, the BW is high and lead to CPU memory
high latency. This hint tries to avoid raising the CPU clock
at the condition when CPU is waiting for data access.

Bug: 184583714
Test:
4k60: 59+fps
1080p60fps: 58fps (b/186806120, disable eis can get 60fps)
Power benefit 80-100mW

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: I3849dfd170085f7e10b5c53d27af353026a4093a
2021-05-19 06:21:29 +00:00
George Chang
f989b01a09 Temporary disable eSE2 terminal
Bug: 187937707
Test: manual
Change-Id: I8d5a2b75851e9a42976db2ceb29d91374b914851
2021-05-19 05:30:36 +00:00
Ilya Matyukhin
a23bc411fe gs101: remove fingerprint HIDL HAL config
This config should be specified in individual device overlays.

Bug: 188588725
Test: build
Change-Id: I1e0798026c3e367ae3847fb8367c9dddb8a9b28d
2021-05-19 04:28:41 +00:00
Krzysztof Kosiński
6e46cb4474 Update GCH configuration for gs101.
Bug: 188327280
Test: camera preview on oriole
Change-Id: I556322b01f2ded68b34099ea41e53f966f5ec8b6
2021-05-19 04:25:28 +00:00
Yu-Chi Cheng
6917051ecb Renamed edgetpu_service to edgetpu_app_service.
edgetpu_service was splitted into two in previous change:
edgetpu_service and edgetpu_vendor_service, where the new
vendor service for vendor clients, and the old service keeps
serving app clients.

This change renamed the edgetpu_service into edgetpu_app_service
in the device.mk to make the naming clearer.

Bug: 188463446
Test: Oriole + GCA
Change-Id: I969e264a82a4ebc77407a0eee45fe6be6a3a2ba8
2021-05-18 19:13:20 +00:00
Stephane Lee
80c8b07636 Enable Battery Defender on gs101
Bug: 188110823
Test: Ensure that Dwell-Defend can trigger with 'setprop
vendor.battery.defender.threshold 61'

Change-Id: I4782e2c387b147fc48cf4134d27af8675964dc44
2021-05-18 18:48:49 +00:00
Siddharth Kapoor
d7e3a56290 Increase earlySf duration to accomodate animation cases
Bug: 161945010
Test: traces shared at b/161945010#comment17
Change-Id: I894b139e71b50c9b6e64b6f73a633da67f00dd16
2021-05-18 17:44:58 +00:00