Commit graph

408 commits

Author SHA1 Message Date
Rick Yiu
43288889bc gs101: dumpstate: Dump vendor group value am: c8e72fb5c4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14671623

Change-Id: Iea6b7038793ff53066ab83d6f2b9ab08e1b4ac19
2021-05-28 01:44:27 +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
a67bb08912 Move AoC debug utilities to PRODUCT_PACKAGES_DEBUG am: 6e71f4a6fd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14727164

Change-Id: I8e952736bc89fdfe50f90948735edb1c107b035c
2021-05-27 22:15:05 +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
0a1326f3ea powerstats: Add CAM, INTCAM, and TNR devfreq stats am: 0d3c683f38
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14442841

Change-Id: I69e8628940c0b2af4716dd6b1262cfc67a72f9ff
2021-05-27 18:22:17 +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
a234c45e20 gps: Add Rakuten cert am: 1489e09a6a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14730576

Change-Id: I99ad5be7a46f309bc24f3ff9d2eb246c3030d47e
2021-05-27 12:42:53 +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
ae433768b5 Modify attributes path for USB data on/off am: 836c31f812
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14730575

Change-Id: If2001ba809afcca1e44c01a335c9485eae622ab5
2021-05-27 04:11:18 +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
e32a8a8810 gs101: Set top-app prefer_high_cap for GCA am: 91649c7458
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14715575

Change-Id: Id13851dd6fd902e7be831720f7864cff80bbad54
2021-05-27 01:39:17 +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
bd348a17bb Disable Early Cmaping feature am: 18b4a0ca3f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14715561

Change-Id: I7e32034e9c6d79cda45c3d7b08c82e516e39f518
2021-05-26 09:40:12 +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
c10a975ddd dumpstate: dump panel extra info am: 11959e7b63
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14617780

Change-Id: I5f94f22ba58caca4f37cd16aea78924627ca4dce
2021-05-25 11:50:56 +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
013ab66a80 gps: update gnss RF path loss and remove log for user build am: c20437c5ba
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14689774

Change-Id: I08e4ae17d391f975727ca8422dbd8dc81b51073c
2021-05-25 09:31:41 +00:00
Edwin Tung
9936fde322 gps: update gps driver 128.20.23.501503 am: 54a7f2d090
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14689773

Change-Id: I6aca926caa5dc960701938f6d6f41d4feda826cc
2021-05-25 09:31:38 +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
a9dc47e6f9 Remove the RenderScript HAL from the vendor manifest am: 4ba92f991f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14702502

Change-Id: I45c3840a6d1b977f3b02ff107f5f8ed98581bad6
2021-05-25 07:08:14 +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
d0de5cda33 Change TA default boost to 1 am: e3a8b86776
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14706520

Change-Id: I65c13349ddbca46018da9bbeedd157c19ac56b42
2021-05-25 06:43:46 +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
5239e8db46 Update GCH configuration for gs101. am: f7395d2bf5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14687087

Change-Id: Ifa5170aaf69ef797e378bb0ba8ee191c939c0771
2021-05-25 05:12:37 +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
73431f3d60 Revert "gs101: usb: add state of usb extcon to monitorffs" am: cc02825538
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14518349

Change-Id: Ie2e406d3bb6bdd9ee3ec7721b7122412eb71be9c
2021-05-24 16:28:12 +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
a8a44a559a gs101: use 64-bit dex2oat am: 1435f7e99c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680446

Change-Id: I979e5100c1667c0fa250b209aee5f1722e1e0214
2021-05-24 15:56:11 +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
37e1e7c0f7 init.gs101.rc: Change owner/group of SJTAG files am: adaa5d69fb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14653698

Change-Id: I6036c38c98029e4e4e832f540af91dfa93f17159
2021-05-21 23:27: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
7e1755a604 gs101: Modify system and system-background gropus am: c589f13219
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680130

Change-Id: I40119db9650f570c58710eaa18443b3193b8d6af
2021-05-21 17:19:15 +00: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
cdf2dc61f2 Add rebalance_interrupts am: 77ceae1c09
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14603549

Change-Id: I99b937c42a0dfac80de77a4313c9dc3c1a916b77
2021-05-21 17:11:13 +00:00
Jesse Hall
b31c817dcf device.mk: Collect and clean up gpu-related settings am: e2be4ec29a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680370

Change-Id: I9669629d7ce87f0c5a72b726a8b4c028daab377b
2021-05-21 17:11:06 +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
Jesse Hall
56aa41bcf4 device.mk: Collect and clean up gpu-related settings
Mostly this change just collects existing GPU-related settings into one
place so they can be found more easily. It also removes some vestigial
and redundant settings.

* Renderscript is deprecated and we never planned to include the RS HAL.
  But it was copied in (twice) from some previous device. Remove it and
  things that only the RS HAL depends on.
* The separate "*32" PRODUCT_PACKAGES entries were left over from when
  prebuilts had separate prebuilts modules for 32-bit and 64-bit
  variants of the package, instead of using a single multilib package.

Bug: 188672865
Test: boot to home, check all moved properties are still correct
Change-Id: Id9a9152b3b4c3a7167f147558f5f01da7f940311
2021-05-21 16:46:55 +00:00
eddielan
5686503666 fpc: Refine fpc HIDL & AIDL build mechanism
Bug: 185464439
Test: Build Pass
Change-Id: Id78789186efc1edf7480e61ab9f60b0286df6e45
2021-05-21 08:49:35 +00:00
Ted Wang
303cb012cd Enable Bluetooth Ccc Timesnyc feature for gs101
Bug: 175836015
Test: make; ccc_tes
Change-Id: I235eaf0e1fc42d4882eeb7c57729fa96c6f2e80c
2021-05-21 06:41:18 +00:00
Meng Wang
d4768daa65 Temporarily revoke location pre-grant to SCONE
Will revert once issue fixed and CBRS will launch.

Bug: 188236995
Test: manual
Change-Id: I5f0577a90ba2c60a7bd5a9d796ba8803f6206a27
2021-05-21 03:16:11 +00:00
Peter Liu
5618aa14c8 camera power hint: add mid cap based on current constraint
Current mid cpu max clock is constrained by little cpu cap.
The cpu cluster clock constraint is going to be significantly reduced,
so put the current mid cap to avoid mid cpu regression.

Further fine tuning on the cap will be continued later.

Bug: 186564130

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: I1e4568bb6e6167c91d8f98da337b1dd849a278bb
2021-05-21 00:48:44 +00:00
Yuriy Romanenko
103f3cad62 Revert "Update GCH configuration for gs101."
Revert "Directly link Lyric into GCH."

Revert "Adjust reference to libgoogle_camera_hal_tests."

Revert "Only compile camera HAL tests for primary arch."

Revert "Update commented-out GCH configuration for zebu201."

Revert "Adjust reference to libgoogle_camera_hal_tests."

Revert "Changes to support direct linking of Lyric into GCH."

Revert "Update GCH configuration for coral."

Revert submission 14596214-gch_dlopen

Reason for revert: Breaks master-without-vendor because of hardware/google/camera -> vendor/google/services/LyricCameraHAL/src dependency that needs to be broken somehow.

Bug: 188731034

Reverted Changes:
I7f1780f25:Adjust reference to libgoogle_camera_hal_tests.
Ief35ee657:Adjust reference to libgoogle_camera_hal_tests.
I9070712e1:Update commented-out GCH configuration for zebu201...
I33c989b24:Adjust reference to libgoogle_camera_hal_tests.
I8250a5874:Update GCH configuration for coral.
I76cb1957a:Adjust reference to libgoogle_camera_hal_tests.
I628ac0367:Use a single toplevel library for Lyric.
I647189d9f:Only compile camera HAL tests for primary arch.
I72cf7918b:Changes to support direct linking of Lyric into GC...
I556322b01:Update GCH configuration for gs101.
I43f7f675e:Directly link Lyric into GCH.

Change-Id: Ia72c97f4044ecac8bda438fdb917a978643cbbfe
2021-05-20 20:32:43 +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
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
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
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
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
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