Commit graph

102 commits

Author SHA1 Message Date
Armelle Laine
ef7ce3877c Merge "Enable Trusty persist storage (TDP) on block-device" into udc-dev 2023-03-01 03:41:09 +00:00
Armelle Laine
35a81f6207 Enable Trusty persist storage (TDP) on block-device
- Define selinux property for /dev/block/by-name/trusty_persist
- Add symlink into init.zuma.rc

Bug: 247013568
Test: - Verify that this change is a NOP for devices with TDP already
        created on top of the legacy f2f2 partition /mnt/vendor/persist/ss
      - Verify that this change creates a valid symlink on a manually
        migrated block device
Change-Id: I231938e708e5a5d6d64818e184a92acdc0ba37de
2023-02-27 22:42:08 +00:00
Sayanna Chandula
fadc2aeb42 thermal: set dfs clock divider to 8
Increase the DFS clock divider to avoid thermal reset.
Disable CPU cluster power down during clock settings.

Bug: 268768104
Test: Build and boot on device. Check with geek bench test

Change-Id: Ic4b959a7db0c5e903d617531d449b08cc5c81d0a
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2023-02-27 22:33:33 +00:00
Nathan Huckleberry
d4aea9089b Enable HCTR2 for filenames encryption
Fix prefix-correlation weakness in filenames encryption by switching to
AES-256-HCTR2.  Enabling HCTR2 fixes a longstanding known weakness in
filenames encryption.

Also enable HCTR2 for adoptable storage.  Pixel phones don't have an SD
card slot.  So they can only have adoptable storage through the "Virtual
SD Card", which is for testing only.

Bug: 265046004
Test: Equivalent changes were tested on P21 since I don't have a P23.
Will be tested with storage-qa.

Change-Id: I0666eb07c4b93b1bab4da41e3b4f5019ac38c213
2023-02-18 02:03:15 +00:00
Florian Mayer
538441d7cd Merge "[Zuma] set mte_tcf_preferred to sync for little and mid cores" 2023-02-15 00:47:02 +00:00
Florian Mayer
0a55c41d15 [Zuma] set mte_tcf_preferred to sync for little and mid cores
SYNC mode increases report quality. It slightly degrades performance
over ASYNC, but for early dogfooding we value debuggability over
performance, as performance is not representative yet.

SYNC is prohibitively slow on the big core.

Test: cat /sys/devices/system/cpu/cpu?/mte_tcf_preferred
Bug: 239832365
Change-Id: I71f552898808ffceba13de74526b7e50538e290f
2023-02-14 00:53:27 +00:00
Salmax Chang
9d136a1f4a Merge "init: restorecon modem persist file" 2023-02-08 07:49:19 +00:00
Salmax Chang
ee7873d879 init: restorecon modem persist file
Re-label the SElinux context of modem persist file

Bug: 258744063

Change-Id: Ibd06a8d0eb4f8aa1762c27497e88cde9d37d14b9
2023-02-08 07:47:52 +00:00
shengchiliu
94cc9e9c99 Create a folder to store the calibration file
This folder was created previously by a factory calibration script. On some 2023 devices, auto calibration will replace factory calibration, so the folder won't be automatically created in the factory anymore. We create the folder as part of the device initialization, so it is available by the time we try to write a new calibration file into the folder.

Bug: 246991030
Test: test on device
Change-Id: I8548bc7f7058f435cf3df6734de33bed62b86469
2023-02-07 18:36:09 -08:00
Jenny Ho
5059368362 dumpstate: dump battery defend logbuffer
Bug: 242679204
Change-Id: I85b1b7917445b0c53cff66d51a1af0e00ab488ec
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-02-05 14:03:30 +08:00
Jack Wu
cadef9557f init: add permission for charging_policy access
Bug: 251425963
Test: write charging_policy sysfs node successfully
Change-Id: I2ee0788c5983bccd85d6e01aa6ea826b9addac41
Signed-off-by: Jack Wu <wjack@google.com>
2023-02-02 12:20:50 +00:00
Doug Zobel
9b6a17e071 Merge "pixelstats: Configure PCIe link stats pathnames and access" 2023-02-01 15:04:04 +00:00
Sajid Dalvi
c649651b04 Merge "init: add dumpstate for pcie" 2023-01-31 19:53:26 +00:00
Doug Zobel
ecb02c9cc0 pixelstats: Configure PCIe link stats pathnames and access
Test: adb logcat "pixelstats-vendor:D *:S"
Bug: 266689144
Change-Id: Ie528c3273e43e0a3401449a057eeb9c7e6004ecf
Signed-off-by: Doug Zobel <zobel@google.com>
2023-01-25 09:57:06 -06:00
Sajid Dalvi
9d79164804 init: add dumpstate for pcie
Add logbuffer support to pcie driver to reduce dmesg spam.

Bug: 228870318
Change-Id: I714110a83bd04972db1017fae7dd08ea61b7a31c
Signed-off-by: Sajid Dalvi <sdalvi@google.com>
2023-01-24 18:56:37 -06:00
Mahesh Sivasubramanian
5cb0ef1f4a zuma: Enable SICD after boot
Bug: 238226940
Change-Id: I43a00d12d97a8c5f86e6163c0fcf0160f9b5791f
Signed-off-by: Mahesh Sivasubramanian <msivasub@google.com>
2023-01-24 00:22:07 +00:00
TreeHugger Robot
7f59f49e22 Merge changes I9465cf81,Ic7c048e1
* changes:
  Set pKVM to enabled in /misc on A0 chips
  Set pKVM metrics tag
2023-01-23 17:57:00 +00:00
David Brazdil
f347cd224d Set pKVM to enabled in /misc on A0 chips
pKVM provides a workaround for A0 hardware issue. Signal to tests that
an A0 device should not be run without it by enabling it in /misc on
first boot. We only do this on debug builds.

Bug: 266183966
Test: flash, boot, reboot to bootloader, check 'fastboot oem pkvm'
Change-Id: I9465cf816c65943cba6e04b1d939b0bb5af4395d
2023-01-23 14:48:26 +00:00
David Brazdil
3900802833 Set pKVM metrics tag
Performance of pKVM differs between hardware revisions. Set AVF's debug
property on A0 chips to separate benchmark results from each other.

Bug: 266183966
Test: getprop | grep 'debug.hypervisor.metrics_tag'
Change-Id: Ic7c048e1209bf957cef2373b92dc2e9de2733a9c
2023-01-23 12:55:43 +00:00
Jaegeuk Kim
613c3a39a8 zuma: add no encryption fstab rule
Change-Id: I573d47c9df408ec9ba22d98474a21ef635fd3fbf
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2023-01-12 09:41:15 -08:00
Jaegeuk Kim
205be45bca Remove wait_for_keymaster
Bug: 186580823
Change-Id: Ie13e99f9890ca06c21e1b4290cacbf843fadb962
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2023-01-12 03:28:16 +00:00
TreeHugger Robot
b09ab548fe Merge "init: fix permission for logbuffer" 2023-01-12 02:07:51 +00:00
yihsiangpeng
c6ba6df4a5 init: fix permission for logbuffer
Move permission setting for logbuffer to early-boot to avoid timing
problem.

Bug: 261921843
Change-Id: Ia335a2cf0361a05c4921354ff80878627faf5010
Signed-off-by: yihsiangpeng <yihsiangpeng@google.com>
2023-01-12 01:40:27 +00:00
TreeHugger Robot
513f2a6c29 Merge "Set /dev/video12 file permissions for zuma" 2023-01-05 22:19:47 +00:00
Mahesh Sivasubramanian
8070fab2e9 Remove wakelock that prevents suspend/resume
Removing wake locks as crashes around suspend are addressed with revert
of b/210162308.

Change-Id: Ia71d7cfe7748bc7b3cf7f16b18106d23a8a4439d
2022-12-22 11:34:57 -07:00
Ben Schwartz
46b34c6bda Merge "Revert "Remove wakelock that prevents suspend/resum"" 2022-12-21 23:39:58 +00:00
TreeHugger Robot
2b0228a5a1 Merge "init: adjust memlat parameters" 2022-12-21 16:12:57 +00:00
Mahesh Sivasubramanian
be61e6854f Revert "Remove wakelock that prevents suspend/resum"
This reverts commit abea026a7e.

Change-Id: Idb79b73cfc08bae16dd8f46c734965c43f7452c0
2022-12-20 19:16:07 -07:00
Mahesh Sivasubramanian
abea026a7e Remove wakelock that prevents suspend/resum
Removing wake locks as crashes around AOC SSR have been addressed.

Change-Id: I2ff948868b2d6540718fff02a4f20a3d7fd74459
2022-12-20 19:10:39 -07:00
Kyle Lin
c9738d69e1 init: adjust memlat parameters
Bug: 255398465
Test: build, boot and UiBench
Change-Id: I9ea154dc5d11615a39fe8b5c9939eebd8aa20d8f
2022-12-20 19:54:35 +08:00
TreeHugger Robot
d766110827 Merge "Remove UClamp Threshold setting" 2022-12-20 06:38:58 +00:00
Bruce Po
85483643fd Set acd-audio_rtp_* permissions to "radio" for vowifi
Set /dev/acd-audio_rtp_rx and /dev/acd-audio_rtp_tx permissions
to system:radio so that ImsMedia can use them for VoWIFI.

BUG: 259874554
Change-Id: Ie5e0500b09c91b450f55d5748fd7e9abd6b65510
Signed-off-by: brucepo@google.com
2022-12-14 18:08:11 +00:00
TreeHugger Robot
ebfa0e4705 Merge "remove obsolete script" 2022-12-14 04:39:29 +00:00
Adam Shih
62ca2d4bb4 remove obsolete script
Bug: 254378739
Test: boot to home
Change-Id: I34b297a8783e17dd382ee8a745aef7ea5e9ce97a
2022-12-14 09:33:17 +08:00
Bruce Po
40bc0094b8 Set acd-audio_rtp_tx permissions for vowifi
The nodes /dev/acd-audio_rtp_rx and /dev/acd-audio_rtp_tx permissions
should be set system:audio so that ImsMedia can use them, for VoWIFI.

BUG: 259874554
Change-Id: I245bd3f2539ba30cb557525eaf95b300efff5d37
Signed-off-by: brucepo@google.com
2022-12-13 18:17:26 +00:00
Chungkai Mei
a1f0836796 Remove UClamp Threshold setting
the file node was removed so also remove these
dummy setting

Bug: 260806701
Change-Id: I23044f7f32cf4b2b2cc93205ec5751525f05ee7f
Signed-off-by: Chungkai Mei <chungkai@google.com>
2022-12-13 09:41:29 +00:00
Michelle Yang
e640600da2 Set /dev/video12 file permissions for zuma
This is required so Lyric is able to talk to smfc driver

Bug: 257084044
Test: ls -la /dev/video12 shows proper file permissions
Change-Id: I626ba5f97ce28373eb34ee86d392c17afb9779bd
2022-12-06 16:01:51 +00:00
George Chang
7d96eb8387 Remove legacy eSE dev from ueventd.zuma.rc
Bug: 240125555
Test: manual
Change-Id: I19b1c0e9ad5fc71ff381ac4fb6fe0c4ad9430fe1
2022-12-06 22:00:22 +08:00
Jenny Ho
db6f54a105 dumpstate: add wc68 logbuffer into bugreport
Bug: 260756283
Change-Id: I9a3b4af22dec4ff37de23091eae7f498e791a58f
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2022-12-06 00:52:14 +00:00
TreeHugger Robot
6d3723f8ed Merge "conf: remove the bcdDevice control" 2022-11-28 08:21:28 +00:00
Ray Chi
c730457151 conf: remove the bcdDevice control
bcdDevice will use the kernel version as default, so this patch will
remove it.

Bug: 260539020
Test: build pass
Change-Id: I2f51533e76775707b96cc13a6b29e5500b2ce4dd
2022-11-28 15:03:42 +08:00
Siddharth Kapoor
ce0e1e2bb1 Merge "Revert "[REVERTME] Keep mali always_on"" 2022-11-18 01:10:22 +00:00
Siddharth Kapoor
5a68ee6cc3 Revert "[REVERTME] Keep mali always_on"
This reverts commit 3155288db0.

Reason for revert: pa/2325851 should fix the original issue, kernel prebuilts for which are merged with ag/20505306

Change-Id: Iaf921269852b14ecbe49bf17fbd41159f864d7c0
2022-11-17 22:58:49 +00:00
Salmax Chang
1cb8d48af0 conf: label /dev/oem_test
Bug: 258744063
Change-Id: Ida87de75fbc6deaecb362e0ca66cba312986c4f4
2022-11-17 14:30:52 +08:00
Kevin DuBois
e67e08b092 zuma: disable GPU fw log
Disable GPU fw log. This incurs performance penalty when left on.

Bug: 228779790
Test: benchmark before and after setting this switch
Change-Id: I4c9717b0915b85a18d0feb5044ecc56843137fcc
2022-11-08 16:48:22 +00:00
Jenny Ho
e08adf8bb2 Merge "set dev_sn for battery pairing" 2022-11-08 06:35:00 +00:00
Jenny Ho
1723365999 set dev_sn for battery pairing
Bug: 255894697
Bug: 238307181
Change-Id: I17605097cf2d480832aa1fbe215982685ab0c884
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2022-11-07 18:20:19 +08:00
Yen-Chao Chen
3586b36d91 Merge "init: change touch file owner" 2022-11-04 06:13:55 +00:00
Jenny Ho
fe75eb7e14 Merge "dumpstate: dump battery eeprom into bugreport" 2022-11-04 03:30:15 +00:00
David Kimmel
acc32747f7 Merge "init: Soft max dev freq persistent properties" 2022-11-02 18:50:02 +00:00