Commit graph

586 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
b68ce6e795 gs101: declare IDisplay to V2
Bug: 190793567
test: check manifest
Change-Id: If1ca683897809eec20bc1f5a23c6a017e3783714
2021-07-02 04:21: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
Yu-Chi Cheng
f9ef83b5d4 Added edgetpu_config_chip soong config variable to edgetpu.mk.
This variable helps the EdgeTPU components to build different
targets per target chip accordingly.

Bug: 192096682
Test: tested on local Oriole.
Change-Id: I3de4082148392b184ed7e7e40de3fa93cbfe845d
2021-07-01 00:49:24 +00:00
Jeffrey Carlyle
15d83480cb add gs101-specific recovery library
This library is hooked into the recovery code via
hardware/google/pixel/recovery and contains routines specific to the
GS101-based hardware.

Bug: 182508814
Test: did master reset on device with keys, verified no keys present after reset
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Signed-off-by: Harpreet Eli Sangha <eliptus@google.com>
Change-Id: I18357f5ac8db7a765a5464fd3366af3d14928ce6
2021-06-30 17:39:37 +00:00
Lucas Dupin
5f6d69182a Disable blurs during app launch
Test: m -j && flashall
Fixes: 191740153
Change-Id: I650c6433c3df238e6d72f0c55ec2f4ee3487a236
2021-06-30 16:58:45 +00:00
Adam Shih
701ce138cd remove memtrack example
Bug: 190331117
Test: make sure ROM does not have the file
Change-Id: Iaec753ca0a1acbe1ecfb83d8cb65ede027a77d18
2021-06-30 11:29:06 +08:00
terrycrhuang
249aa26272 Enable Early Camping Feature
Bug: 189312225
Test: manual
Change-Id: I0bab215e06a96cac10ef5765cb78ebb840fb5a21
2021-06-30 00:07:39 +00:00
Erick Reyes
1c54b52a93 gs101: add compatibility path for TPU
This is to expose a common path to runtime.

Test: Manual. Verified edgetpu_logging works with modified path
Bug: 191193044

Signed-off-by: Erick Reyes <erickreyes@google.com>
Change-Id: I11865108931443d96389640c89b6cc29aee3a634
2021-06-29 23:19:45 +00:00
Vinay Kalia
1f198556c5 Revert "firmware: update MFC F/W(21/06/14)"
Revert submission 14993383-IDR_SYNC_FRAME

Reason for revert: Causes crash while stopping camera recording.
bug: 192362037

Reverted Changes:
Ia9d94fc58:videocodec: ExynosVideoApi: clean up MFC flags
I6f7d808e6:enc, videocodec: change to set SYNC_FRAME when it ...
I3f83c9a8a:firmware: update MFC F/W(21/06/14)

Change-Id: I7ae15be42830af91a8bdf6f65b5336212e661953
2021-06-29 20:43:10 +00:00
Kevin Han
432f3bc640 Revert "add gs101-specific recovery library"
Revert "recovery: enable support for device-specific WipeSe impl..."

Revert "clear secure element of Digital Car Keys during factory ..."

Revert submission 14983788-clear_keys

Reason for revert: b/192373955
Reverted Changes:
Ia8fc29e6c:add gs101-specific recovery library
Icc1eabfd4:clear secure element of Digital Car Keys during fa...
I943d97b26:recovery: enable support for device-specific WipeS...
I15c7fbd7f:allow recovery and fastboot to access secure elmen...

Change-Id: I545698bc7da1aa12f520c0190775358dae70de61
2021-06-29 19:19:24 +00:00
Jeffrey Carlyle
7af529801c add gs101-specific recovery library
This library is hooked into the recovery code via
hardware/google/pixel/recovery and contains routines specific to the
GS101-based hardware.

Bug: 182508814
Test: did master reset on device with keys, verified no keys present after reset
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Change-Id: Ia8fc29e6c043c58c09f189ac5dc91c4093cf64b6
2021-06-29 17:50:34 +00:00
seungmin.ahn
36d54272ae firmware: update MFC F/W(21/06/14)
- 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: 189759631
Signed-off-by: seungmin.ahn <seungmin.ahn@samsung.com>
Change-Id: I3f83c9a8adae6bbcb1fb74b86c777811993b8c27
2021-06-29 08:19:35 +00:00
Nicole Lee
258dbfa767 Only stop modem logging when it is always-on logging
Bug: 192128095
Change-Id: Ic51e0c9837f1d702e6d4b58e9cb9b4a94dc9e12c
2021-06-29 05:11:30 +00:00
Edwin Tung
4e3b80d9fc gps: update gps driver 129.20.23.506213
Fix time_ns is zero issue with Host Periodic request.
Implement GNSS PAL close()
Increase syncin req's timeout if autoTimeSyncGroupDelay calibrating is ongoing
Reduce spinning time on Ifc:active command
Fix a race condition when stopping sensors scanning thread
Update L1/L5 bias

Bug: 191807159
Bug: 191298215
Bug: 191109136
Bug: 189412038
Bug: 189063063
BUg: 191413681

Sanity test: 192061672
Test: build pass

Change-Id: Ie14a141f4fae91a5cb90460f30ad59bc28bd8cfa
2021-06-29 03:03:40 +00:00
Yu(Swim) Chih Ren
ab64b15ec9 Add CAMERA_BACKEND_BOOST powerhint configuration to increase backend ISP
clock when camera lauch and secure camera is not used

Add mem, mid CPU cluster power hint configuration when CAMERA_LAUCH

Bug: 168654554

Test: 1. Check clock freq related file when camera start
      2. Check perfetto to make sure CPU clock setting does not reset by
      BACKEN boost power hint
      3. P21 camera checklist

Change-Id: Iadc7058c605533f8bd394dff1d9711bb7aca6897
2021-06-29 02:52:13 +00:00
Denny cy Lee
f2227732cb PixelStat: Suez: Porting wireless charging
Wireless ptmc uevent is not supported,
replace it with reading file node

Bug: 171853251
Test: manually, do wirelees charge, check logcat

Signed-off-by: Denny cy Lee <dennycylee@google.com>
Change-Id: I8d4bbff09826fb76b0bce4321e9b5081a1487435
2021-06-29 01:16:34 +00:00
Kyle Tso
22484eb00d usb: Enable midi function in charger mode
It needs a USB function in charger mode to set the charging current to
500mA/900mA.

Bug: 188744218
Test: charging at 900mA in charger mode
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I95c98ecec30dd4394228f7290412c303771a3158
2021-06-28 03:46:22 +00:00
Wei Wang
4ff1973c29 Add vendor proc dump
Bug: 172112042
Test: build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I88bd7f1961e4e9bbe853e3122a7525ec93ae7fd0
2021-06-25 22:04:53 -07:00
Carter Hsu
977c44c195 audio: add AOSP build flag
Bug: 184016430
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I4a32e82fdcdd51f813c9dc6b013b26aabf66c078
2021-06-25 10:08:04 +00:00
millerliang
1fce97cea2 audio: add the files for low latency
They are use by the GOogle Play Store to filter devices
that might need low latency feature.

Bug: 189793763
Test: Build and check the files
Change-Id: Ibf71147b971bfc4fe4e769772851e604203395b8
2021-06-25 02:46:02 +00:00
Lisa Liu
2261184ed9 Remove wait_for_keymaster and all references
No longer needed now init listens for property changes on a
separate thread.

Bug: 186580823
Bug: 191646246
Test: Boot test
Change-Id: I7e5e12c4422aa516cd9d8c63b1e5be37b6aa80bf
2021-06-25 01:50:01 +00:00
Adam Shih
4b2b930396 modularize dmd
Bug: 190331463
Test: build ROM and make sure dmd is launched
Change-Id: Ie7ee06cbefeced5a69292e22012f533296081319
2021-06-25 01:12:49 +00:00
Rachel Lee
d901ee0b5d Set 120Hz frame rate multiple threshold for gs101.
BUG: 190815773
Test: atest libsurfaceflinger_tests
Change-Id: I515aadf0305c306a1c58248daf9b38cec0161cf8
2021-06-24 22:14:45 +00:00
SalmaxChang
0979e06146 dumpstate: Sync features from P20
- Create thread to collect modem related logs into dumpstate_board.bin.
- Reference verbose logging property

Bug: 176176656
Bug: 190329829

Change-Id: I514ae6d00599239238d0f1a2a2ec0cc2c8c15043
2021-06-24 10:02:11 +00:00
Edwin Tung
d19326ae76 gps: update gps driver 129.20.23.505774
Make CP report velocity measurement if requested
Make ellipsoidPointWithUncertaintyEllipse location type supported.
Add min Horizontal EA check to comply with VTS test
Fixed SIGSEGV at BrcmLppeHalSensors::OnMessage() while VZW AGPS E911 testing
Fixed issue that endTransaction is set to false for final ProvideLocationInformation in EarlyFix SUPL testing
Added EarlyFix support to Control Plane
Added guard time (CpEarlyFixGuardTimeSec, defalut = 0) for EarlyFix Control Plane

Bug: 190780462
Bug: 187244665
Bug: 191215893
Bug: 190459104

Sanity test: 191727022
Test: build pass

Change-Id: I3ebf15d7c451df635e1757ceea280e2d31dce450
2021-06-24 09:04:09 +00:00
Adam Shih
c7884a192e modularize pktrouter
Bug: 190331212
Test: make sure pktrouter gets initialized
06-23 13:21:19.372  1 1 I init : Parsing file /vendor/etc/init/pktrouter.rc...
06-23 13:21:23.510     1     1 I init    : processing action (vendor.pktrouter=1) from (/vendor/etc/init/pktrouter.rc:7)
06-23 13:21:23.510     1     1 I init    : starting service 'pktrouter'...
Change-Id: I89de2b2dd151bba877dea0bd5db0df1048b2ab6b
2021-06-24 07:24:45 +00:00
Minchan Kim
48a283b16e dumpstate: dump cma information into bugreport
Dump pixel cma metric into dumpstate_board.txt
It hepls to find cma allocation latency issues.

output example)
..

Change-Id: I697ade197617e3c19be1d83d38f2f93b44905ff8
--- /sys/kernel/pixel_stat/mm/cma/faceauth_tpu/alloc_pages_attempts
0
..
--- /sys/kernel/pixel_stat/mm/cma/faceauth_tpu/latency_low
0
--- /sys/kernel/pixel_stat/mm/cma/faceauth_tpu/latency_low_bound
10
--- /sys/kernel/pixel_stat/mm/cma/faceauth_tpu/latency_mid
0
..
--- /sys/kernel/pixel_stat/mm/cma/reserved/alloc_pages_attempts
1162
--- /sys/kernel/pixel_stat/mm/cma/reserved/alloc_pages_failfast_attempts
0
..

Change-Id: I08e34841617768f53e38f25a1b8035ade886d008
Bug: 191904985
Test: Run "adb bugreport <zip>" and verify it contains the output
      from dumpstate_board.txt
Signed-off-by: Minchan Kim <minchan@google.com>
2021-06-24 01:45:11 +00:00