Commit graph

149 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
chloedai
2b5427334a Remove NFC/SE settings from common gs201
Bug: 199236672
Test: Build pass
Change-Id: Ie6a6c90946bb51b2c0e8d644c2c9372b4fc9c357
2021-09-13 10:49:47 +00:00
Kyle Tso
1fc334c1c6 dumpstate: dump logbuffer tcpm logs in bugreport
(Port of ag/15018442)

Bug: 189792358
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I936028d0d3360f2611b672bdc353438fb8478ca6
2021-09-02 14:08:05 +08:00
Petri Gynther
d2221258ad gs201: enable vbmeta_vendor
Bug: 197026498
Test: make dist and check [vbmeta_vendor.img + img.zip + ota.zip]
Test: flash [fastboot update + remote_local_flashstation] and boot to home
Change-Id: I0f7c69218d296451da2cef6e47adf3a910ea1cb0
2021-08-31 20:37:21 -07:00
Adam Shih
0f853db94c modularize aocd
Bug: 197585437
Test: boot with aoc started
Change-Id: I61560751a5d81816b7ecdc2e1be0eaae025a29e3
2021-08-24 11:48:00 +08:00
Adam Shih
00a3bf0a8b Merge "reuse gs101 pktrouter" 2021-08-23 06:40:06 +00:00
Adam Shih
d242564abd reuse gs101 pktrouter
Bug: 196916111
Test: boot with pktrouter launched
Change-Id: I10bdeccd32db50152993b64bb4b7ee2e303da017
2021-08-18 12:48:41 +08:00
Albert Wang
09e106422b Merge "Move init.gs201.usb.rc under hw/" 2021-08-17 06:46:38 +00:00
Albert Wang
5d7cfa429a Move init.gs201.usb.rc under hw/
Fix the error log:
init    : Unable to read config file 'init.gs201.usb.rc'

Bug: 196523163
Test: USB works well in Android, bootloader fastboot and
      flash station
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: I7a30ab93477bb3a95cb44fa6f265b5e1d432b69c
2021-08-16 09:42:45 +08:00
Albert Wang
900be82549 Revert "Cloudripper: workaround for USB bring up"
This reverts commit 5294123ac1.

We can revert this workaround since USB driver and HAL get ready

Test: USB works well in Android, bootloader, fastbootd and
      flash station
Change-Id: Icfec04d22c604937b92cd892f5d429aee35e8ce9
2021-08-12 13:54:17 +00:00
Jaegeuk Kim
ada680a338 Enable HW encryption
Bug: 190721536
Bug: 194850360
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I93fa7a18e84b8adbcaeebdffdbecdbfc790e690d
2021-07-28 01:28:18 +00:00
George Lee
ce845eb58d thermal: add permission settings
Bug: 194082511
Test: Local Test
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I7d8a117444746c2363d15d2000f0c4f90692e683
2021-07-19 16:55:07 -07:00
Richard Hsu
70db99f885 gs201: add compatibility path for TPU
This is to expose a common path to runtime. This is the gs201 version of the WCH change ag/15100070. It alias /dev/janeiro to /dev/edgetpu. This is a temporary measure to make /dev/edgetpu work. Once the TPU kernel driver is refactored to produce /dev/edgetpu by default, we'll remove this symlink.

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

Change-Id: Icc70264c0c7d20ea7b6aa43903e109d9180dd022
2021-07-02 14:35:41 -07:00
Thierry Strudel
08b9ee5d45 init.gs201.rc: don't disable SICD
Bug: 187330340
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Change-Id: I65efc3c50d1fe54d445cd8be4cba8fa7d30bdd84
2021-06-30 00:59:17 -07:00
Armelle Laine
ab4c5929db Include /dev/trusty-log0 as one of the Cloudripper's dumpstate_board section
- DumpState add trusty section to dump /dev/trusty-log0
- ueventd.gs101.rc: add /dev/trusty-log0 (system ownership) and r/w permissions to user/group

Test: adb root; adb shell lshal debug android.hardware.dumpstate@1.1::IDumpstateDevice/default trusty
Bug: 192036703
Change-Id: I752ee9c9a88855485d71ed9deb1555df5bb005cd
Signed-off-by: Armelle Laine <armellel@google.com>
2021-06-25 20:37:56 +00:00
Thierry Strudel
c74bbb4df9 Revert "Hold wakelock on boot"
This partially reverts commit 28140b7240.

USB will hold a wakelock preventing suspend to happen

Bug: 188796118
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Change-Id: Idc583a025e429a5b5f13a94b732717e9491e4e55
2021-06-24 16:01:27 +00:00
SalmaxChang
ef1afd402d gs201: fstab: mount modem partition
Bug: 190504416
Change-Id: I51fca8fee2f8a75348152ee408f2c52bec602906
2021-06-23 02:33:08 +00:00
Richard Hsu
b7408c33ee Merge "[Bringup] Update device.mk for TPU (Janeiro) for PRO." 2021-06-18 01:20:29 +00:00
Richard Hsu
45ff75ce19 [Bringup] Update device.mk for TPU (Janeiro) for PRO.
Give TPU device path (/dev/janeiro) the same access permission as /dev/abrolhos. This change is similar
to what we did for WCH, but for PRO.

Bug: 191185522

Test: run_tflite_test_odc passes.
https://paste.googleplex.com/5466657955774464

Change-Id: If735e699c0c9ec842f915ebc7b59d0896f4c776c
2021-06-17 17:23:04 -07:00
Taehwan Kim
d065e12bf9 MFC H/W video bring up
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: I4b39ba082a2f955f4a21fa7f2b107e27c8357681
2021-06-16 23:08:26 +00:00
Aaron Ding
eb7fdf23ad update fstab.gs201
Bug: 183183095
Change-Id: Ic75c341dda02e8bab58542ddb77a7507eabe53ee
2021-06-07 11:55:24 +08:00
Jesse Hall
c6519ab937 Move init.gs201.rc from cloudripper/
Test: boot to home
Change-Id: I35e4c2495029aba1b51ccbd99661c6e83b909ba8
2021-06-02 16:27:10 -07:00
Pat Tjin
5294123ac1 Cloudripper: workaround for USB bring up
This is a workaround to get adb working while USB is being brought up.

(cherry-pick from device/google/cloudripper)
Bug: 188672439
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: Ie114c1f67198a10a6c0dda49d1ed2ee85c8b2bf5
2021-06-02 16:26:59 -07:00
Pat Tjin
28140b7240 Hold wakelock on boot
Hold wakelock on boot to mitigate b/188796118

(cherry-pick from device/google/cloudripper)
Bug: 188796118
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: Ia75d355eaed0d469f791f126aaed1c0059df0abd
2021-06-02 16:26:35 -07:00
weichinweng
ac85fcac51 Change gs201 bluetooth uart port to dev/ttySAC18
Bug: 189727579
Test: Bluetooth can be turned ON from settings
Change-Id: I8712c2af2ef8dd63cd198f6a29aaeaf7ec22b0ca
2021-06-01 16:33:41 +08:00
Hyunki Koo
f398577b5c change name 11110000.usb to 11210000.usb
Bug: 188672439
Signed-off-by: Pat Tjin <pattjin@google.com>
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
Change-Id: I61c874ab37c7a1f9288843dbbba2781dee7ecf1e
2021-05-21 14:58:56 -07:00
Pat Tjin
89841bf57a s/gs101/gs201
do a global substitution

Bug: 186836335
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: Ic79e8983d04615be7da70ebb2b5092aae5178495
2021-05-20 17:54:35 +08:00
Pat Tjin
52f6dc9255 Disable keymaster start
Disable keymaster for bringup

Bug: 186836335
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: I7a1e35e6271aa3f64ee2a90130a438f1692021f6
2021-05-20 17:53:23 +08:00
Aaron Ding
bb4beafe47 Create gs201 device folder baseline
clone from gs101 sha 9d1c97c2

Bug: 183183095
Change-Id: Ie7112bdf0aceb33c9e1956aa52e961b670582733
2021-05-19 13:35:26 +08:00