Commit graph

5831 commits

Author SHA1 Message Date
Alex Hong
22a820cc89 Remove the RenderScript HAL from the vendor manifest am: 4ba92f991f am: 7ace830c29
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14702502

Change-Id: I2831ce604160319d946379bce8d93df66b20fb4f
2021-05-25 07:34:05 +00:00
Alex Hong
3d6a1ddee1 Remove the RenderScript HAL from the vendor manifest am: 4ba92f991f am: 80cdba3b41 am: 0b2326be63
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14702502

Change-Id: Ie23f08823a08f71ac285da2c73f6a0d40b9313dd
2021-05-25 07:33:38 +00:00
Alex Hong
7a2e28204d Remove the RenderScript HAL from the vendor manifest am: 4ba92f991f am: 80cdba3b41
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14702502

Change-Id: Idf858d243417e427ae3830a76adfac1cdb1d17fa
2021-05-25 07:26:30 +00:00
Wei Wang
2fe14546cd Change TA default boost to 1 am: e3a8b86776 am: 117349904e am: 1e024b25b6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14706520

Change-Id: If75b6285aadd9243964920b4278acefd9c7f02d7
2021-05-25 07:24:39 +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
Wei Wang
c6d846e5c5 Change TA default boost to 1 am: e3a8b86776 am: 117349904e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14706520

Change-Id: Ifdafcbf87b1ef0e81f8746866ee16068e769095b
2021-05-25 06:58:17 +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
fd777a1a3a Update GCH configuration for gs101. am: f7395d2bf5 am: e976e00eb8 am: 3e3d51f9bd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14687087

Change-Id: I410a21423628d30063844b22646005bf1204fea4
2021-05-25 05:41:04 +00:00
Krzysztof Kosiński
5730dbeb7a Update GCH configuration for gs101. am: f7395d2bf5 am: e976e00eb8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14687087

Change-Id: I2672bd6c74f8db26f6e0d2639df35907c663264e
2021-05-25 05:27:02 +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
bca90d67d1 Revert "gs101: usb: add state of usb extcon to monitorffs" am: cc02825538 am: a37064101d am: 335e4a499d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14518349

Change-Id: I09e88ce800e1fe217ad34bc310c5c0f79ebb9ce0
2021-05-24 16:36:26 +00:00
Tim Murray
90b6533523 gs101: use 64-bit dex2oat am: 1435f7e99c am: 43481be53a am: ecb4ab8025
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680446

Change-Id: Ib525ddcb807fc91bfe0ffcd9caa4f169d2b68136
2021-05-24 16:35:57 +00:00
Ray Chi
4fe310eb80 Revert "gs101: usb: add state of usb extcon to monitorffs" am: cc02825538 am: a37064101d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14518349

Change-Id: I82c6926eaa943e508fca7eaa27872b043b1b025c
2021-05-24 16:35:28 +00:00
Tim Murray
d15f2c5aa7 gs101: use 64-bit dex2oat am: 1435f7e99c am: 8c746a8541 am: b05b99b2ad
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680446

Change-Id: I10fd327fb55264cfca4a3b4273da265a2cbe769e
2021-05-24 16:35:28 +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
Tim Murray
f9bdb856d5 gs101: use 64-bit dex2oat am: 1435f7e99c am: 43481be53a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680446

Change-Id: Ide8b71dba3102bcc9c12cd3a318dbc14c28e182e
2021-05-24 16:26:02 +00:00
Tim Murray
2238b25e23 gs101: use 64-bit dex2oat am: 1435f7e99c am: 8c746a8541
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680446

Change-Id: Iccc5b40255bc41265e817ee2de7f737f0bab6444
2021-05-24 16:12:53 +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
29ca11c3cc init.gs101.rc: Change owner/group of SJTAG files am: adaa5d69fb am: 1bba2a174a am: 8b2fcec2e4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14653698

Change-Id: I0ce08664b0ce38648f6811df0e4e42e95e1ed84b
2021-05-22 00:00:57 +00:00
Peter Csaszar
e59ce05dd5 init.gs101.rc: Change owner/group of SJTAG files am: adaa5d69fb am: 9c9bdd4215 am: d762f01241
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14653698

Change-Id: I98fef73f5cdf771c4644238bdb98bc76b513f35f
2021-05-22 00:00:51 +00:00
Peter Csaszar
bb1d1c5f1f init.gs101.rc: Change owner/group of SJTAG files am: adaa5d69fb am: 1bba2a174a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14653698

Change-Id: I9d2a7627b5855a7459cc220f9a0570a6e55d5830
2021-05-21 23:53:46 +00:00
Peter Csaszar
8c22f52fe6 init.gs101.rc: Change owner/group of SJTAG files am: adaa5d69fb am: 9c9bdd4215
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14653698

Change-Id: Ic415889f02ea0fc202df8f3fb83de9e1107e4cf1
2021-05-21 23:42:05 +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
2f62159e98 gs101: Modify system and system-background gropus am: c589f13219 am: cea4f164a4 am: 390928d6a4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680130

Change-Id: Ic1ff6a4e976ac0d9e842c4f34890a5deffe221be
2021-05-21 17:44:36 +00:00
Andrew Chant
de59eb17b9 Add rebalance_interrupts am: 77ceae1c09 am: 91cf1ed1c1 am: c2bdbefda5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14603549

Change-Id: If220da895402b8d0c2a00bbc28219392cdc8dc03
2021-05-21 17:44:18 +00:00
Jesse Hall
03d3d12b56 device.mk: Collect and clean up gpu-related settings am: e2be4ec29a am: 796018839f am: 3f982c0d96
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680370

Change-Id: Id3b40b2e93bc3ebc71c005613f12e2685fd1e038
2021-05-21 17:43:37 +00: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
e1e1d73383 fpc: Refine fpc HIDL & AIDL build mechanism am: 014b0d24b0 am: 8bea1934c9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14671622

Change-Id: I37b3a4ee6b514b0939a236b7384a5e39d43df1f6
2021-05-21 11:06:52 +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
ec092d6ea0 Enable Bluetooth Ccc Timesnyc feature for gs101 am: cfd76e11b6 am: 1526825ff2 am: 763b4c978d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14160945

Change-Id: I340d6b22a5f8b79039d540e5ba0d5547581e41f2
2021-05-21 07:35:13 +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
76f7806d8c Temporarily revoke location pre-grant to SCONE am: f5eab4c317 am: da1aeea221 am: 9f567f29f6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14670241

Change-Id: Id0f2ea7c6588f085c852f2e4ecc6cf3386bb39f0
2021-05-21 04:22:36 +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
038339341d camera power hint: add mid cap based on current constraint am: f06e3a4603 am: 5d53adccb3 am: 8af95c17e8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14669208

Change-Id: I7d2c437ea4e2a144627e93392e14bfe81bccce8a
2021-05-21 01:52:05 +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
7f4fd3e4e4 Revert "Update GCH configuration for gs101." am: 63f9e61da3 am: 1f22d43135 am: 33689799f7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14663260

Change-Id: I8551b9a3144d9bed51ef792457e8ce432dcd6dd7
2021-05-20 21:14:56 +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
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