Commit graph

907 commits

Author SHA1 Message Date
Stephane Lee
3899da706e Add DC Charging/Temp defend clear to server configurable parameters; ensure sysfs node is writable am: 47dad1c045
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15193536

Change-Id: Ie9cd9b9a52b0794a5432cfa822f29c2ba30b9aed
2021-07-13 08:34:22 +00:00
Stephane Lee
113bb9059a Add DC Charging/Temp defend clear to server configurable parameters; ensure sysfs node is writable
Test: Ensure there are no errors on logcat | grep google_battery@
Bug: 183772980
Bug: 192921867
Change-Id: Id55a6a1670cc0c46b787baec16efec8c0bb4521d
2021-07-12 13:27:54 -07:00
Shawn Willden
2bf2970745 Set boot security patch level for gs101 am: 90177c1d89
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15261350

Change-Id: I6afec07b10f3ff9c5ecf1ee152704f23e16a526c
2021-07-12 19:48:51 +00:00
Shawn Willden
baa3bf3801 Set boot security patch level for gs101
Bug: 193423844
Test: Build and see if the AVB property has the field
Change-Id: I44fdf4f58d41650d53ba2aac470232fa71c228bb
2021-07-12 19:31:29 +00:00
YiHo Cheng
21f322efb9 thermal: Update neutral_therm trip point am: d2d4277099
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15258563

Change-Id: Id0b759232be4253b2db53666235b51cfa741472f
2021-07-12 15:33:22 +00:00
Long Ling
77fd8be577 init: update sysfs early_wake attribute am: 04ab31fc67
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14969482

Change-Id: I2be581e012f1651531886ac61a666cfc53e190de
2021-07-12 15:33:04 +00:00
YiHo Cheng
e90e9f58bf thermal: Update neutral_therm trip point
Allow to thermalhal to update trip points for neutral_therm which is the
triggering sensor of virtual skin sensor for o6 proto.

Bug: 193373779
Test: neutral_therm can be updated to the correct threshold
Change-Id: I16dcd44ce9e69f456df322664756dc74357bf50b
2021-07-12 15:25:37 +00:00
Long Ling
7983b026c6 init: update sysfs early_wake attribute
Allow HWC to modfiy early_wakeup

Bug: 187763532
Change-Id: If3b6e664bf510895aae06ba3cac2620c267d6a60
2021-07-12 15:14:59 +00:00
Jerry Huang
eef1f97b3b gs101: Fine tune media_codecs_performance_c2.xml am: fb073e2488
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15242258

Change-Id: I93b6b07f5e64c64ae047bd55838a041bc7274c6e
2021-07-12 13:27:08 +00:00
Jerry Huang
3b0aae52c4 gs101: Fine tune media_codecs_performance_c2.xml
Update stable performance point for O6/R4

Bug: 185454126
Test: android.video.cts.VideoEncoderDecoderTest
Change-Id: I3890e5dd3a10894e1da18fb5c12df9b7d3d1a916
2021-07-12 13:14:37 +00:00
Siddharth Kapoor
8257027dcf Move launcher prop from vendor to system am: d9617218f4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15219913

Change-Id: I52c3720e0a4524f1884d8644d6ae028779775fad
2021-07-12 04:50:34 +00:00
Siddharth Kapoor
41e6e14ee0 Move launcher prop from vendor to system
Launcher prop needs to be accessed in system partition only,
hence move the related prop to /system/build.prop

Bug: 192621663
Test: ro.launcher.blur.appLaunch prop is set correctly,
  and Blurs are disabled on App launch.
Change-Id: I6721d59498c5d35dfd560f429b8aed7a01ac29fc
2021-07-12 04:36:34 +00:00
Michael Eastwood
f6050479d5 Attach the latest .cpa file collected due to a high drop rate to bugreports. am: 7284be3847
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15244428

Change-Id: I94e0c57b350e08e4342fecd12e106d89446cf843
2021-07-09 17:26:36 +00:00
Michael Eastwood
ffa2b4b620 Attach the latest .cpa file collected due to a high drop rate to bugreports.
Bug: 191169822
Test: `adb bugreport`, unzip, `tar -xvf dumpstate_board.bin`, find
expected .cpa file

Change-Id: I8a16a594b738bbd7b985edcbac44f5451089f010
2021-07-09 08:42:13 -07:00
Michael Eastwood
75ebdc7e0b Attach the latest .cpa file to bugreports. am: 78d3928543
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15241340

Change-Id: I1ea3d27f927c6320413df2b86b9f7fed91caa380
2021-07-09 15:30:33 +00:00
Michael Eastwood
65e028b428 Attach the latest .cpa file to bugreports.
* Latest is determined by alphabetical order
* To find the .cpa file, unzip the bug report and run `tar -xvf dumpstate_board.bin`
* The .cpa file can then be found under the `camera/` directory
* This can be disabled with the prop `vendor.camera.debug.camera_performance_analyzer.attach_to_bugreport`

Bug: 191169822
Test: `adb bugreport`, unzip, `tar -xvf dumpstate_board.bin`, find expected .cpa file
Change-Id: Ie05e8d446588cebea46492b267491065161915a1
2021-07-09 15:18:01 +00:00
Kyle Tso
8a4f3ed313 usb: Rename the config to "charger" in charger mode am: 9811d03930
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15242252

Change-Id: Id3343f77bfaaa3c7f3b19512d2114d0bb609fa40
2021-07-09 11:00:49 +00:00
Kyle Tso
d5fa4a5534 usb: Rename the config to "charger" in charger mode
init.usb.configfs.rc has the same trigger condition of midi function.
Rename the config name to "charger" to avoid triggerring twice of the
midi function.

Bug: 188744218
Test: USB enumerated in charger mode
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: Ica112fb4be66356901f6d5f21b79b9e648d49f35
2021-07-09 10:22:02 +00:00
Matthew Markwell
0e0de01c43 Adding a power hint for face unlock. am: 0d0b768250
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15180107

Change-Id: I3a49c5cb134ff3cf8462160051b8deda8832c3b6
2021-07-09 04:20:33 +00:00
Matthew Markwell
5edd757a24 Adding a power hint for face unlock.
During Tuscany runs, the Camera HAL is requesting a CAMERA_LAUNCH power
hint, which runs big and small CPU clusters at FMAX for 1 second. This is
overkill for Tuscany, so we are requesting that the hint be removed.

Tuscany should only boost during the computationally expensive image
processing, and should stop boosting as soon as a decision is reached.

This CL adds a new power hint for Tuscany. The other CLs in this topic
use this hint to boost CPU frequency during the critical section of
Tuscany by adding a call from the FaceHAL to the PowerHAL.

Running camera open and camera close without CAMERA_LAUNCH hint saves a
measured ~1W of power. The common case for this boost in Tuscany will be
a few frames at ~60ms per frame, so much less than 1 second of boost.
The worst case scenario is falsing - no attempted unlock. We will allow
the hint to time out after 1 second in that case, but that case is less
common.

Measured latency improvement per-frame from running the CPU at FMAX is
~15ms per frame. Power measurements can be found at go/tuscany-power.

NOTE: This change will _reduce_ the power/battery impact of Tuscany by
boosting for a more precise window of time.

Bug: 190755782
Test: E2E testing, validating frequency in systrace.
Change-Id: Ibca2687d2dffa4e3d2d23a9a588a2eae0b225952
2021-07-09 04:05:28 +00:00
Harpreet Eli Sangha
d91948dbb6 Disable UWB Feature am: e44a1eb9b5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15222047

Change-Id: I22e959a23f78b619777f98eda975a4a542451cf9
2021-07-09 03:57:16 +00:00
Harpreet Eli Sangha
d5d1799a90 Disable UWB Feature
Bug: 193084128
Test: Build and Boot

Signed-off-by: Harpreet Eli Sangha <eliptus@google.com>
Change-Id: I305a535654fabfbb24ade954372db1bb905465cc
2021-07-09 03:35:46 +00:00
Krzysztof Kosiński
d65131b19f Remove gralloc3 support for gs101. am: 942c0fd2f3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15194381

Change-Id: I8d4cf240762f39ce3a5f3730a9c0e025d8427ece
2021-07-08 22:46:44 +00:00
Krzysztof Kosiński
74b7a2a871 Remove gralloc3 support for gs101.
All devices use gralloc4 now, so this code is unused.

Bug: 174998182
Test: builds for the affected devices
Change-Id: Icff36a0204f7f9fd10ae7269248aef8a08c5fc1e
2021-07-08 22:28:25 +00:00
yihsiangpeng
492c003eca dumpstate: add pca9468 logbuffer am: 5a74c9a585
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15184581

Change-Id: I0d664c69a02e1548bcfaca5c92ef5bf2c0dd50a0
2021-07-08 19:49:17 +00:00
yihsiangpeng
86a339dfab dumpstate: add pca9468 logbuffer
also remove duplicate logbuffer_rtx/wireless

Bug: 188752986
Signed-off-by: yihsiangpeng <yihsiangpeng@google.com>
Change-Id: Iabedf9c7c247cc5ca89f65ca17317a53569959b6
2021-07-08 19:36:49 +00:00
Kevin DuBois
b1333f7bd0 mali: disable backend thread affinity. am: 82feef805e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15176970

Change-Id: Id147610db222277598893238bdac31de5c5527cf
2021-07-08 18:07:38 +00:00
Kevin DuBois
757500e40f mali: disable backend thread affinity.
Setting backend thread affinity with higher uclamp value can cause
governor to clock little cores to max. Disable explicit affinity for
driver backend threads.

Fixes: 192486236
Test: build, see SF's backend threads on mid cores in gpu comp.
Change-Id: Id1b17d9783fc65f2d2541fa9c6166d771494cd42
2021-07-08 17:53:28 +00:00
Yu(Swim) Chih Ren
7e77fdf306 Use CPU 4-7 when CAMERA_LAUNCH am: 7e40643a8a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15208817

Change-Id: I5b904012f551d8e372dd03b567af92483d36e1a3
2021-07-08 03:52:52 +00:00
Yu(Swim) Chih Ren
31270ed1f3 Use CPU 4-7 when CAMERA_LAUNCH
Add powerhint configuration to use CPU 4-7 when CAMERA_LAUNCH

Bug: 188369995

Test: 1. Check camera daemon move to CPU 4-7 when camera launch
      2. P21 Camera Test Checklist done

Change-Id: I6ddc9ce664166c5b78c9a5bc427c800f0714b6ea
2021-07-08 03:37:49 +00:00
Maciej Żenczykowski
3774b023d7 tune usb irq (dwc3) based on usb function am: f9e02b98b8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15217381

Change-Id: I793c5e7fd820bf79c2eba226cbd0d8853930c5e7
2021-07-07 16:36:33 +00:00
Maciej Żenczykowski
a24469c9d0 tune usb irq (dwc3) based on usb function
This among other things greatly increases tethering performance.

Bug: 185092876
Test: TreeHugger, built and booted on an oriole, enabled tethering
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ic9f0b4bef05250bb38c91dc1e046366098d98dc0
2021-07-07 16:23:12 +00:00
Albert Wang
b64e7cb973 Move init.gs101.usb.rc under hw/ am: b6c1a1d04e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15167660

Change-Id: I0f3871f3668a6bc4719879165ab3d2d11a520423
2021-07-07 15:33:07 +00:00
Albert Wang
ed651c86bf Move init.gs101.usb.rc under hw/
Bug: 192498561
Test: boot to home normally
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: I465a668035cf03c6ac9587a6d48d22e2f52133d0
2021-07-07 15:18:17 +00:00
Ethan Lin
386f25fbbc Modify GCA_CAMERA_SHOT power hints for better performance. am: c2264dc421
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15207634

Change-Id: I63433d8879303b710b3167c12cd286773e9bdaef
2021-07-06 14:52:51 +00:00
Ethan Lin
8ef3f6cc02 Modify GCA_CAMERA_SHOT power hints for better performance.
CAMERA_STREAMING has the setting "TAPreferHighCap=1". GCA_CAMERA_SHOT should set "TAPreferHighCap=1" as well in case user leaves the viewfinder.
We could get better performance with "HighCapacityStartCpu=6".

Bug: 192534118
Test: manual R4
Change-Id: I85c77ac1ccc2176312b54a6acdd37df55a658f04
2021-07-06 14:32:39 +00:00
byunggwan kang
497744b4bd update performance-point at media_codecs_aosp_c2.xml am: 8b67e6da73
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15167661

Change-Id: If51ac8ce341d9c0d6c4cbbfa2db54d678465df84
2021-07-06 09:38:09 +00:00
byunggwan kang
676f94117f update performance-point at media_codecs_aosp_c2.xml
Bug: 187191316
Test: android.mediapc.cts.MultiTranscoderPairPerfTest

Signed-off-by: byunggwan kang <bk0917.kang@samsung.com>
Change-Id: I69d1244770c118d5e37234b9d1ab85a288d09505
2021-07-06 09:23:00 +00:00
Yu(Swim) Chih Ren
9b0fc87063 boost INT clock when CAMERA_BACKEND_BOOST am: 52594b749d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15152131

Change-Id: I03a6ceed53db735f2d1b9921021d18d2355c7baf
2021-07-06 01:27:27 +00:00
Yu(Swim) Chih Ren
9ab67ae5cd boost INT clock when CAMERA_BACKEND_BOOST
Add MIF, INT boost powerhint configuration for CAMERA_BACKEND_BOOST to
improve stability

Bug: 168654554

Test: 1. Check clock freq related file when camera start
      2. Check face id function work correctly
      3. P21 Camera Test Checklist done

Change-Id: Ia39acd531063bcf93c2db9971d783f6da8006502
2021-07-06 01:12:20 +00:00
Konstantin Vyshetsky
697c7eb2c5 ufs: set clkgate_enable when in offmode charging am: dbdc3ac5bf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15191999

Change-Id: Ia28b1f0097c390a81ce6699cfa6f3ccaaa5efbe9
2021-07-04 04:14:56 +00:00
Konstantin Vyshetsky
cf18666812 ufs: set clkgate_enable when in offmode charging
Bug: 190729148
Bug: 190727603
Test: manual R4
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Change-Id: I2f544cc01af18a0a6e85a2abd37d8621f24e286d
2021-07-04 03:56:30 +00:00
Midas Chien
14afbfedf9 init: allow hwcomposer to write early wake up node am: 9b58274d36
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15096170

Change-Id: I7e91c8139b3a3e4359158aceda779133f30091d6
2021-07-02 18:52:34 +00:00
Midas Chien
69e6504dec init: allow hwcomposer to write early wake up node
Bug: 189173278
Bug: 191386940
Test: hwcomposer able to write node
Change-Id: Iede3d6121d5157732cfa1f18491bc7a3292ff2f3
2021-07-02 18:36:38 +00:00
Midas Chien
d757d92787 dumpstate: dump DPU IDMA error count am: 2caeb13740
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15171193

Change-Id: I688ec5d7b75f501f95d96cd0b7990e7a2838154f
2021-07-02 16:34:11 +00:00
Midas Chien
8e099ae8da dumpstate: dump DPU IDMA error count
Bug: 190864548
Test: verified contents in bugreport
Change-Id: Icf5e1946cf882f0245c7b5cb54488b8dc1d48efd
2021-07-02 16:21:39 +00:00
linpeter
92cce7fe97 gs101: declare IDisplay to V2 am: fc96694696
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14972995

Change-Id: I95c58e943f865c255362a645473c3ab6e162fe33
2021-07-02 04:37:23 +00:00
linpeter
b68ce6e795 gs101: declare IDisplay to V2
Bug: 190793567
test: check manifest
Change-Id: If1ca683897809eec20bc1f5a23c6a017e3783714
2021-07-02 04:21:28 +00:00
seungmin.ahn
d4e2066e79 RELAND firmware: update MFC F/W(21/06/14) am: 3f52cd4ca8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15151606

Change-Id: I1254af3fb904b17718346ebae81d28fac258be05
2021-07-01 06:58:28 +00:00
seungmin.ahn
00ab8fdd7c RELAND firmware: update MFC F/W(21/06/14)
- Set SYNC_FRAME when it's IDR frame.

Bug: 189759631
Test: screen recording and check thumbnails
Signed-off-by: seungmin.ahn <seungmin.ahn@samsung.com>
Change-Id: If75e7db4a7fbf4c66a71d3367e0f2e08d986bd40
2021-07-01 06:44:23 +00:00