Commit graph

4233 commits

Author SHA1 Message Date
Ray Chi
bdd4728a17 usb: modify the permission of USB gadget hal
Currently, USB gadgdet hal couldn't access configfs nodes during
device booting. The permission of configfs nodes are root as default,
and they are modified to system by init process. Therefore, USB
gadget HAL can't access them before permission changes completely.

The patch will modify permission of USB gadget hal so that it can
access configfs nodes without permission change.

Bug: 204378488
Test: check connection time
Change-Id: I97f5446a51183225227744043e4a6e0088fecf0b
2021-11-18 17:06:56 +08:00
Shiyong Li
f574475006 display: allow framework to access local hbm node
Change local hbm node ownership to allow framework to access.

Bug: 205640231
Test: check ownership after boot
Signed-off-by: Shiyong Li <shiyongli@google.com>
Change-Id: Iba041a9cf8672682411f2167f8677b30e5979027
2021-11-16 20:19:16 +00:00
Roger Wang
197e2a096b wifi: move configuration to project specific
In this commit, I remove project specific content.
For example, I remove p2p interface property,
supplicant service definition and board configurations.

Bug: 203635329
Test: check functionality and output as follows
$ adb shell ifconfig
Output: p2p-wlan0-0 Link encap:Ethernet

$ adb shell getprop wifi.direct.interface
p2p-dev-wlan0

Log output:
wl_cfgvendor_set_hal_started, HAL version: BCMDHD vendor HAL
wpa_supplicant: Configuration file '/data/vendor/wifi/wpa/wpa_supplicant.conf' -> '/data/vendor/wifi/wpa/wpa_supplicant.conf'
wpa_supplicant: Reading configuration file '/data/vendor/wifi/wpa/wpa_supplicant.conf'
wpa_supplicant: update_config=1
wpa_supplicant: eapol_version=1
wpa_supplicant: ap_scan=1
wpa_supplicant: fast_reauth=1
wpa_supplicant: pmf=1
wpa_supplicant: p2p_add_cli_chan=1
wpa_supplicant: oce=1
wpa_supplicant: sae_pwe=2
wpa_supplicant: Reading configuration file '/vendor/etc/wifi/wpa_supplicant_overlay.conf'
wpa_supplicant: sae_pwe=2
wpa_supplicant: driver_param='use_p2p_group_interface=1p2p_device=1'
wpa_supplicant: disable_scan_offload=1
wpa_supplicant: wowlan_triggers='any'

Change-Id: If18f13e7c4c8fc13fb68e50145cc407c91d3fa60
2021-11-15 09:20:32 +00:00
Jenny Ho
49425acfb8 dumpstate: sync battery dumpstate data
Bug: 205071645
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I16dbfb492311e532fa14a001686ca1d3386b57aa
2021-11-15 01:53:30 +00:00
Long Ling
91d7dd17d2 upgrade to hwc3
Bug: 201321174
Change-Id: Ifa12a2174d82547b6708021a24a6e9cee6b66fd5
2021-11-12 04:39:24 +00:00
Bob Badour
a52cd301cd [LSC] Add LOCAL_LICENSE_KINDS
Added SPDX-license-identifier-Apache-2.0 to:
  conf/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Ie09443987ffc0749d8400387415c7257c033ddb6
2021-11-11 17:36:28 -08:00
Alec Mouri
4ef29314fd Set renderengine backend to skiaglthreaded
gles isn't going to be the final device configuration anywhere

Bug: 206036423
Test: builds
Change-Id: Ie66e2db85e68ef267534fafa2b67a49d3231cf04
2021-11-12 00:19:10 +00:00
Stephane Lee
7a3738058d Add cpm/pca9468 logbuffer directories so that bugreports can take a snapshot
Test: adb bugreport; check dumpstate_board.txt
Bug: 193894298
Change-Id: I548a1715fe2ee679fef304fc4da9465c691e70c0
2021-11-11 06:48:39 +00:00
Ted Lin
270a005cb4 dumpstate: eeprom and fix the permission problem
Bug: 200119012
Change-Id: I753ab06c819f6b1c739a87f27785bcdab05282b6
Signed-off-by: Ted Lin <tedlin@google.com>
2021-11-11 06:48:39 +00:00
Jenny Ho
184fe31622 dumpstate: dump battery maxfg monitor log
Bug: 196755019
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I04e2be21680c2cc673af1205cdb772fa3b845bd4
2021-11-11 06:48:39 +00:00
Ted Lin
189567984c dumpstate: initialize for gs201
Sync code for charger/guage/PPS/gvotables/Mitigation.

Bug:200119012
Change-Id: I1046626185ac516c5ed4d491e4d7fe7822d1db1b
Signed-off-by: Ted Lin <tedlin@google.com>
2021-11-11 06:48:39 +00:00
neoyu
34cd74d651 Enable RIL audio client implementation for P22
Enable RIL audio client implementation for P22

Bug: 202831948
Test: manual
Change-Id: Ie9ad605e2d6f80504d26211c3f77e479344ce44d
2021-11-11 06:12:34 +00:00
Konstantin Vyshetsky
067512ec32 Generate a separate fstab file for FIPS mode
Add a file "fstab.gs201-fips" alongside the existing "fstab.gs201" in
order to specify different encryption settings in FIPS mode.

"androidboot.fstab_suffix=gs201-fips" on the kernel command line will be
used to select the FIPS fstab when needed.

As the two fstabs should be otherwise identical, generate them from a
template file so that they will stay in sync.

Note that generating the fstabs requires that they be installed as build
system modules rather than via PRODUCT_COPY_FILES, which results in the
vendor_ramdisk copy of the fstabs being installed to system/etc rather
than /.  This shouldn't cause any problem, now that Android has been
updated to look for the fstab in this location too.

(cherry-pick from device/google/gs101)
Test: Boot to home screen with/without fips mode
Bug: 202417706
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Change-Id: I8fdc1c9a91399816fa2d4c53f282d63e988ce7d5
2021-11-11 05:04:50 +00:00
Nicole Lee
11475b1588 device.mk: enable modem always on logging by default
Bug: 205420203
Change-Id: I7a4af69d93f0c5b64dbf69ac93ca1a10b06c0c63
2021-11-11 03:39:51 +00:00
Minghui Tan
c0e8609cde Update CPU throttle frequencies.
(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 199761265
Test: CTS
Change-Id: Ie1c907cd96367374f0b51086f54b4d18ab9907da
2021-11-10 18:29:46 +00:00
Peter Liu
3399027688 remove camera prefer idle for streaming low
Currently, the streaming low hint is not used yet.
but we plan to use it with 30fps mode or at the modes that can remove
prefer idle.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 195327798

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: Ibc75bf596bd05831605643c3fe427154fa626093
2021-11-10 18:29:25 +00:00
Minghui Tan
cf361790f7 Add CAMERA_CPU_THROTTLE as power hint.
(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 195327798
Test: CPU cores max frequencies updated properly
Change-Id: Idaacbfa1b4dca7765e9754d4aff997dd2495c2a9
2021-11-10 18:28:54 +00:00
vincechiu
86c6a376a7 Camera: create three new groups for camera threads
high-group is running on CPU 6-7.
mid-group is running on CPU 4-5.
mid-high-gropu is running on CPU 4-7.
Move camera tasks to CPU 4-7 for 1 seconds when AP launch.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 194271751
Test: GCA
Change-Id: I8e13e9ad0057b8f42f8ed3958bf0c6d58a5a02bc
2021-11-10 18:28:28 +00:00
Firman Hadi Prayoga
a24669c1fd Add CAMERA_SHOT power hint.
This will improve the snapshot performance, especially JPEG encode.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 192067605
Test: Boot, CTS
Change-Id: I9b879d2c462e0a59891d9a36c770484d00b53e6e
2021-11-10 18:27:31 +00:00
Ethan Lin
d8833073da 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".

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 192534118
Test: manual R4
Change-Id: I85c77ac1ccc2176312b54a6acdd37df55a658f04
2021-11-10 18:27:02 +00:00
Yu(Swim) Chih Ren
99eec5aaf1 boost INT clock when CAMERA_BACKEND_BOOST
Add MIF, INT boost powerhint configuration for CAMERA_BACKEND_BOOST to
improve stability

(cherry-pick from device/google/gs101)
Bug: 205010238
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-11-10 18:26:27 +00:00
Yu(Swim) Chih Ren
d24f5d832e 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

(cherry-pick from device/google/gs101)
Bug: 205010238
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-11-10 18:25:47 +00:00
Sung-fang Tsai
c9202135b8 Add GCA_CAMERA_SHOT power hint.
GCA need intensive processing for camera shot and need to tune the
system performance to speed up the processing time. Adds
GCA_CAMERA_SHOT_{BIGCPU/BIGMIDCPU/ALLCPU} power hints to enable GCA to do
adequate power hint for this situation.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 187373665
Test: On device with GCA: b/187373665#comment8 with forrest.
Change-Id: Ife75e52a60de4d67369280998b193fe3ca7f8173
2021-11-10 18:25:21 +00:00
Yu(Swim) Chih Ren
629a071056 Remove clock boost configuration for MIF,TNR,CAMINT when CAMERA_LAUNCH in powerhint.json
Reason for remove: face enroll fail

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 168654554
Bug: 187759712

Test: check ISP clock freq no change on local device
Change-Id: I7d70c1fdd7e5d067db1941cced69a375b66ebc89
2021-11-10 18:24:23 +00:00
Peter Liu
fe6cf44ff3 camera power hint: add prefer high cap and prefer idle = 0 to top app
Prefer high cap and prefer idle is to optimize power and
trade off with scheduling latency.
Applying to app side does has no regression on frame drops.
And we can not apply prefer idle to hal process as it impact performance.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 190127212

Test:
1080p60: 20mW power saving, 59fps no regression
slow-mo 240fps: 239+fps

Change-Id: I548becbd2d6ccac8b576cfe54f9021bbf30b4801
2021-11-10 18:23:50 +00:00
Yu(Swim) Chih Ren
89346fc3fb Use powerhint to increase mem, intcam, tnr clock when camera lunch to
improve camera start performace

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 168654554

Test: 1. check clock freq related file when camera start
      2. P21 camera checklist

Change-Id: I3447a6028846cc873e9c7195826c470bceaf03c8
2021-11-10 18:23:18 +00:00
Peter Liu
6c34617c55 camera power hint: add extreme and low power hint
Add two more mode for power hint fine tuning.
streaming extreme targets 240fps mode and streaming low targets photo
mode.

Test:
this change is no op, so we will do the test on corresponding lyric
change (ag/14804030).

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 189886881

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: Icd31501347108ccb5b0ec278a92bee89f543c192
2021-11-10 18:22:41 +00:00
Rick Yiu
b42ebbc91a 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.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 188777413
Test: ta_prefer_high_cap set correctly
Change-Id: I2fd444635a352d1c6236fd82eb82e67ca1799c97
2021-11-10 18:21:57 +00:00
Peter Liu
a632e32449 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.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 186564130

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: I1e4568bb6e6167c91d8f98da337b1dd849a278bb
2021-11-10 18:20:46 +00:00
Peter Liu
9fa0863b13 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.

(cherry-pick from device/google/gs101)
Bug: 205010238
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-11-10 18:20:12 +00:00
Peter Liu
f8f72e99d9 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

(cherry-pick from device/google/gs101)
Bug: 205010238
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-11-10 18:19:40 +00:00
Jaegeuk Kim
50536e0099 Compress vdex/odex on /data
Bug: 186107892
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I62d82c4c25f68797910d176440dad0f77b29466b
2021-11-09 18:12:39 -08:00
Roger Wang
95c9b5b2a6 gs201: remove WiFiOverlay
In this commit, I remove WiFiOverlay and will add it into project
folder.

Bug: 204946036
Test: overlay configuration works as expected.
Change-Id: Iac69ff8749de7c2f43117f8e136bbfd0bd9a719d
2021-11-05 20:20:31 +08:00
Krzysztof Kosiński
373e520a92 Add Lyric camera IQ tuning configuration.
Bug: 200221875
Test: build and check camera HAL APEX content for affected devices
Change-Id: I441a158231fd1c8fb950e2c1c0d1539cea1af70c
2021-11-04 07:41:04 +00:00
Bowgo Tsai
f883475ba9 Removing 'verity_update_state'
This is not needed in device-specific init.rc file, because it's
is superseded by commit https://r.android.com/1866693.

Bug: 203720638
Test: presubmit
Change-Id: I74cfa6f3aa0c9125559f3241ed8e23f8a8510616
2021-11-04 07:03:04 +00:00
Wayne Lin
65318b7882 gps: update gps driver 129.20.23.518727
Fix to delete RTO too when delete all aiding received
Add mutex to protect malloc/free
Fix for the bug of power mode logging in ONCHIP_NMEA
[GNSS] Enable CHPP for P22
Reporting PLMN (MCC+MNC) of SIM and Network
[O6] 5s GPS outage when OnChip/Host switching
5G E911 AGPS implementation
Please clarify gnss error message
[SQ1A] [O6] Native crash - AID_GPS - signal 6 (SIGABRT)../gpsd (BrcmGpsHalLogJava::Log)

Bug:195383842
Bug:197716902
Bug:199048681
Bug:199265307
Bug:199818363
Bug:199114573
Bug:200107911
Bug:201582435
Bug:203068978

Verify Test: 203751055
Test: build pass and GNSS verify test pass

Change-Id: I2b667c559c1d955c981561c56bb11ab9a9952044
2021-11-04 01:38:46 +00:00
Andrew Reardon
0cf06f4a7f [WAR] Fix Ravenclaw build by Defaulting gs201 to slider
- This fixes ravenclaw build by continuing to use slider as
target_device for camera tuning.
- Can be updated in the future by properly providing ravenclaw
target_device throughout 3A.

Bug: 204945921
Test: Compiles.

Change-Id: Icb010127eedde87e2c2e0f59d6061d52f53e3ec5
2021-11-03 19:38:17 +00:00
Krzysztof Kosiński
7b8cce3974 Rename Lyric configuration "device" to "soc".
The current name is confusing, as "device" normally refers to the
product name, not the SOC name.

Bug: 203283069
Test: build and flash affected devices
Change-Id: I51014a3316dec4509e0113280b723efb95d26fad
2021-11-02 19:50:06 -07:00
David Kimmel
b94c2fc9ad gs201: Soft max freq persistent properties
Bug: 204105895
Test: adb shell setprop persist.vendor.softmaxfreq.cl0 1328000

Change-Id: I8333a12ff12af674329733120402713dca7e32e3
Signed-off-by: David Kimmel <davidkimmel@google.com>
2021-11-02 21:12:39 +00:00
Andrew Reardon
43b8bedd21 [Camera 3A Tuning] Update LOCAL_TARGET_PRODUCT for gs201 to pancheetah device names
Bug: 200878689
Test: Compilation.

Change-Id: Iab2b213a0b37520f0d44dc4822fc26577efca9b6
2021-11-02 20:22:51 +00:00
Thierry Strudel
29aa1e225f vendor_dlkm.blocklist: add gxp driver preventing device suspend
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Change-Id: Iee61dc96514f23d4b718a46926447779ee327743
2021-11-02 12:09:58 -07:00
Michael Eastwood
54862e27b5 Save .cpa files generated when camera HAL is killed by the watchdog thread.
Bug: 197979923
Test: m -j
Change-Id: Ifbf22dbd9f5fe58d69e27ec157c10fafde4b18e3
2021-11-01 22:58:37 +00:00
millerliang
47153227a4 gs201: Enable AAudio support
Enable the realted property and the needed files
for MMAP use cases.

Bug: 202810406
Test: Oboetester
Change-Id: Ie851dc0152589f405558c744b0101115d9f1d9b0
2021-11-01 08:24:12 +00:00
Tommy Chiu
3a041b7055 Set boot security patch level for gs201
Bug: 201946955
Test: Build and see if the AVB property has the field
Change-Id: If2aa32ed689271dd553bcc18cb0ec309a2051ae0
2021-11-01 02:35:51 +00:00
Rex Lin
3d43409602 uwb: add uwb configuration file
- use P7 config file as first draft
- add uwb country conf script
- add country config file (b/196073172)

Signed-off-by: Rex Lin <rexcylin@google.com>

Bug: 201232020

Test: ranging works with local build
Change-Id: I8c912becaa5b04f5656ff5b182028c02cc07fe06
2021-10-29 06:25:17 +00:00
joeshih
96f0d28a31 [P22]Phase in FactoryOtaPrebuilt
- Phase in FactoryOtaPrebuilt to P22

Bug: 204401723
Test: Forrest build
Change-Id: Id139e9b8159583bd5917676a0c256f8e33092657
2021-10-29 02:39:13 +00:00
Donghui Han
4f0140b954 Lyric: Set conditional variable device for Lyric
Bug: 203651233
Test: P21/P22 build
Change-Id: Ifc1d4970f8e81c2254e77792cf57a2c2bbaf4ef1
2021-10-28 23:57:02 +00:00
Peter Csaszar
71a2c8287a init.debug.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', so that BetterBug is able to write
these files.

Bug: 204381544

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: I1fd61f702960a266bc8a2f84d1a1358ccefe3c9c
2021-10-28 16:02:13 +00:00
Kris Chen
e6d10041e9 gs201: set permission for UDFPS factory apk to control HBM
Bug: 204142361
Test: Perform UDFPS calibration.
Change-Id: Ie60ddbea72ebe6c3c3998e7cdb8a5809ec47ffd2
2021-10-28 08:43:12 +00:00
Max Kogan
56ea9bfc5b dumpstate: merge AoC gs101 dumpstate
Bug: 203827311
Change-Id: Icb7a925445992d534cae86625b249b46952d9d53
2021-10-28 05:14:06 +00:00