Commit graph

907 commits

Author SHA1 Message Date
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
Jing Wang
e4d7cfdbf0 Revert "gps: update gps driver 129.20.23.518727"
This reverts commit 1c28b9b29f.

Bug: 204332282

Test: presubmit P27107402 boots fine on my device.

Signed-off-by: Jing Wang <jwangh@google.com>
Change-Id: Iea0e1a5eeff048659721981de0e81045a8dfa5f2
2021-10-28 04:37:45 +00:00
Wayne Lin
1c28b9b29f 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: I09c78b6a452f611a7d738d17e8e0d474fadb31a4
2021-10-27 03:20:09 +00:00
Dai Li
183de2a96e Remove mfc_fw.bin in original path for gs201
Modify device.mk mfc_fw.bin path according to new release in prebuilts

Bug: 197018291
Test: N/A
Change-Id: I0e34b266536238d214d9722d22432fbdc0e6c51a
2021-10-26 16:34:00 +00:00
Dai Li
74579f987a Change mfc_fw.bin path to bootloader prebuilt bins
Work together with change in bootloader build.sh
go/ppar/41146

Bug: 197018291
Test: N/A
Change-Id: I862aba3c5c251953928a3d3a67c5b9059d699af3
2021-10-26 16:34:00 +00:00
Jiyong Park
4f427b5c2b Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

The prebuilt files had a reference to
android.hardware.gnss-V1-ndk_platform.so. Change it to
android.hardware.gnss-V1-ndk.so by diretly editing the DT_NEEDED entry.

Bug: 161456198
Test: m
Change-Id: Ib682bad5acefeb2e3ed27cd372a359c92ef5165a
2021-10-20 01:05:45 +00:00
Joseph Jang
24b6c9320a dumpstate: Add support to get GSC DEBUG DUMP
In order to get GSC DEBUG DUMP in bugreport zip file, we add a new
console command "./vendor/bin/hw/citadel_updater -D" to retrieve 1KB
GSC DEBUG DUMP for dumpstate.

If so, we could check GSC DEBUG DUMP in dumpstate_board.txt from bugreport.

File: dumpstate_board.txt
------ Citadel VERSION (vendor/bin/hw/citadel_updater -lv) ------
0.0.2/nugget_v0.0.1138-399621c+ 2021-10-07 08:53:24 josephjang
Chip:    Google Dauntless D2 (evt)
Board:   0
RO_A:    0.1.1/17af49b9 ok
RO_B:  * 0.1.1/b0de9d69 ok
RW_A:  * 0.0.2/nugget_v0.0.1138-399621c+ ok
RW_B:    Error

------ Citadel STATS (vendor/bin/hw/citadel_updater --stats) ------
hard_reset_count            1
time_since_hard_reset       335976980
wake_count                  5
time_at_last_wake           335920127
time_spent_awake            50563801
deep_sleep_count            4
time_at_last_deep_sleep     268360610
time_spent_in_deep_sleep    285413177
time_at_ap_reset            11401
time_at_ap_bootloader_done  10939493
PHONE_ON_L: 1
VOL_UP_L: 1
VOL_DN_L: 1
TEMP.RANGE: 39,39
------ GSC DEBUG DUMP (vendor/bin/hw/citadel_updater -D) ------
debug dump start
000007d70605 85 00 0174aa0d 00000000
000007f56df5 85 00 0174aa0d 00000000
0000080212cd 85 00 0174aa0d 00000000
00000b73fe80 85 00 0174aa0d 00000000
debug dump end

------ Section end: gsc ------

Bug: 194113345
Change-Id: I48feabac2bf2b42f8f0b10a396ea066ace67b694
2021-10-18 14:49:38 +00:00
Jiyong Park
46dae6074b Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Change-Id: Id17572137091b295457dc98fdd1742da0983e738
2021-10-15 18:41:12 +09:00
Jaegeuk Kim
d1a44fd9c4 gs201: convert /modem_userdata to f2fs
Bug: 201348703
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ib2ce2692e321fdb4d594336feb6f582b1fcbffc9
2021-10-14 21:15:21 +00:00
Jaegeuk Kim
aef1f11fa6 gs201: switch /modem_userdata to f2fs
Bug: 201348703
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ic0add0848e062774030ecf0dd23140cfaf6ab35c
2021-10-14 21:15:21 +00:00
Jaegeuk Kim
5720048e25 gs201: convert /efs_backup to f2fs
Bug: 201348703
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ied79a3b2c96f1123996e3e98e9d7ba77d901e74c
2021-10-14 21:15:21 +00:00
Jaegeuk Kim
c688b6214a gs201: switch /efs_backup to f2fs
Bug: 201348703
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I1d0c66d97eef384cd2d85c912bce4a939245b5e6
2021-10-14 21:15:21 +00:00
Ocean Chen
2095b04e76 init.rc: change the ownership of gc segment info sysfs nodes
Changed the ownership of gc segment info sysfs nodes for Pixelstats
to access these values.

Test: check the ownership of
/dev/sys/fs/by-name/userdata/<gc_segment_mode|gc_reclaimed_segments>
Bug: 201503046
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Ocean Chen <oceanchen@google.com>
Change-Id: I827538be0801cd8abc26b095df56849fd2ff141a
2021-10-14 16:51:44 +00:00
Wayne Lin
b8633e8cdd gps: refine gps module in gs201
- Update gps driver to 129.20.23.516938
 - Build gps module separably

Bug: 202919589
Test: build pass and standalone GPS pass
Change-Id: I451837f2e783ab2e8890e212eb7d3897c9854ca5
2021-10-14 04:07:11 +00:00
Jaegeuk Kim
e9a8cfaf7c gs201: switch /efs to f2fs
Bug: 201348703
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I308b4a8d806c968b5b03b6d41285113f3086502c
2021-10-13 15:03:26 -07:00
Jaegeuk Kim
7ba733f58b gs201: convert /efs to f2fs
Bug: 201348703
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ibe766941e09205b7431f2149856f8f0998743af6
2021-10-13 15:03:25 -07:00
Konstantin Vyshetsky
7b4f21e81d gs201: add script to convert persist to f2fs
Currently the persist partition is formatted as ext4. In order to
convert the partition to f2fs without losing data, add a script which
will copy the partition contents out, format the partition as f2fs and
then copy the contents back.

Bug: 202511062
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Change-Id: I89502694d1e02261902525c11ac875dd7756721b
2021-10-13 14:05:17 -07:00
Jaegeuk Kim
e8d42059e6 Deprecated ext4 for RW partitions: /persist
Bug: 200853457
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I64bfce98dfa4565dff9a6fbfd6e2d843583e5e66
2021-10-07 18:50:12 -07:00
Jaegeuk Kim
d28744874b Deprecate ext4 for RW partitions: /metadata
Bug: 200853457
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Icd85b8f12cadd756fac4aded0db3b08021d644c3
2021-10-07 18:50:12 -07:00
Pierre-Clément Tosi
4dae22c494 gs201: Build pvmfw.img through the Android framework
Enable building pvmfw.img through PRODUCT_BUILD_PVMFW_IMAGE for products
that currently enable pKVM. Note that the board-provided
BOARD_PREBUILT_PVMFWIMAGE may still overshadow that flag.

Bug: 199831815
Test: m ${ANDROID_PRODUCT_OUT}/pvmfw.img
Change-Id: Iefd5fcf1ce04b14b37ff9555db9acabffb010cff
2021-10-07 08:40:15 +00:00
Grace Chen
5a75515a09 Config overlay to set slot 0 as non-removable eUICC.
Bug: 197252913
Test: Confirm non-removable eUICC config.
Change-Id: I01a75250943578ee7c9fd667d5ab9a659964fa40
2021-10-06 07:54:32 -07:00
Adam Shih
ad214bed2a centralize wifi_ext config
Bug: 201599426
Test: boot with wifi_ext started
Change-Id: I9a266fbb0e50326b882dc1acdbec0b8c20fe0194
2021-09-30 14:17:27 +08:00
Adam Shih
f9427b2355 use gs101 neuralnetwork armnn
Bug: 196916111
Test: boot with armnn started
Change-Id: I1c8c113621314525c46bf6572b4c5b6a613dbfef
2021-09-27 23:54:37 +00:00
Roger Fang
0d2cf52ae0 device: gs201: add speaker health stats
Add the sysfs that required by the new ATOM of VendorSpeakerStatsReported.
Copy the file sysfs from ag/15659556

Bug: 201250553
Test: Manually test with ATOM

Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: Ic98d26ebb384e567f7016868777f951f00a0b27d
2021-09-27 15:21:37 +08:00
Roger Fang
328c3f7c98 device: google: gs201: IAudioMetricExt hidl manifest settings
Porting IAudioMetricExt manifests from ag/14281931

Bug: 201099654
Test: N/A

Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: I1977b88230244a1c59d333dbd076e69231130507
2021-09-27 15:11:53 +08:00
Albert Wang
3773ce8687 usb: support both rndis and ncm, but not rndis + ncm
A cherry pick from 49a13bf for gs101

Bug: 199252036
Test: Boot to home and usb hal bring up normally
Change-Id: Ia4e344aa9cf7762b71cbfe35ff9cbcccb4474b11
2021-09-24 03:44:56 +00:00
Arthur Ishiguro
210475ce59 Use Context Hub AIDL for gs201
Bug: 194285834
Test: Load on device
Change-Id: If81c1eda860b931533afaf0447ae2e7fc99532d5
2021-09-23 10:21:40 -07:00