Commit graph

119 commits

Author SHA1 Message Date
Ziyi Cui
1647fa1446 [ DO NOT MERGE ] init: add memlat parameter stall_floor
Bug: 232948888
Test: build, flash, gb5 and sjeng test
Change-Id: If6d588752daec14853fdf1e515b88ce22355cc60
Signed-off-by: Ziyi Cui <ziyic@google.com>
2023-03-18 04:52:21 +00:00
Sayanna Chandula
ea41d22186 Merge "thermal: add charger thermalHAL setup into project" into udc-d1-dev 2023-03-17 17:04:42 +00:00
Ocean Chen
2f0014487b Merge "init.rc: change the atomic write info sysfs ownership" into udc-dev am: 8406ba0283
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/21987852

Change-Id: I3cf3a60b1d7e09166d20e709bb9fc02d51d913d2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16 03:19:20 +00:00
Ocean Chen
8406ba0283 Merge "init.rc: change the atomic write info sysfs ownership" into udc-dev 2023-03-16 02:45:07 +00:00
TreeHugger Robot
0344c553f4 Merge "dsulat: Add dsulat ratio_ceil value" into udc-d1-dev 2023-03-15 02:35:19 +00:00
Zac Iqbal
f1d3b4c97c Merge "Added system:graphics permissions for faceauth_dsp-secure node." into udc-dev am: 51a090eef0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/22077187

Change-Id: Id91bf6fe828ad3ade628284581f7276a9f05b6f2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 21:41:20 +00:00
Zac Iqbal
51a090eef0 Merge "Added system:graphics permissions for faceauth_dsp-secure node." into udc-dev 2023-03-14 21:10:19 +00:00
Zac Iqbal
46c6aeec19 Added system:graphics permissions for faceauth_dsp-secure node.
Notes:
- The faceauth_dsp-secure heap node didn't have permissions set,
  so it defaulted to root:root, making it inaccessible to our HAL.

Bug: 268669923
Test: atest
Change-Id: I35212fb6da4c49ab372b9c9d7ab20c8b85489364
2023-03-14 18:59:59 +00:00
Ocean Chen
023f5952d5 init.rc: change the atomic write info sysfs ownership
Changed the ownership of atomic write sysfs nodes for Pixelstats.
These nodes contain values such as peak_atomic_write, committed_atomic_block,
and revoked_atomic_block.

Bug: 242766542
Bug: 259351100
Test: check these ownership under /dev/sys/fs/by-name/userdata/

Change-Id: I4f27eb91d62829ef069565a65b262aaad95a443d
Signed-off-by: Ocean Chen <oceanchen@google.com>
2023-03-14 16:00:39 +08:00
Kyle Lin
cd19b765f7 dsulat: Add dsulat ratio_ceil value
Bug: 263261269
Test: build, boot and verify performance/power
Change-Id: Iead39fac367ea6884d89e2cb07eed7a50addd924
2023-03-14 15:11:10 +08:00
Wei Wang
bc4783bb0a Merge "thermal: add support for multiple trigger sensors" into udc-dev am: f8a4a27c11
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/21893091

Change-Id: Ie6611c3faf07b28fab4c749be72154cba1168426
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 06:00:15 +00:00
Wei Wang
f8a4a27c11 Merge "thermal: add support for multiple trigger sensors" into udc-dev 2023-03-14 05:35:39 +00:00
Jaegeuk Kim
b5aa93edf2 Enable ZUFS
Bug: 197782466
Change-Id: Ib4901274b0936792e8836dc9f58a02b4a66921c0
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2023-03-13 09:13:13 -07:00
David Chao
5f28454244 thermal: add charger thermalHAL setup into project
Bug: 272701980
Test: thermal_symlinks worked properly in charging mode
Change-Id: I3a5163ba3ccbdd134898dc682407a7a9136751e3
2023-03-13 14:52:06 +08:00
Kris Chen
ca44e39b68 Set permission for dpu hibernation sysfs node
Bug: 256947811
Bug: 251239489
Bug: 267271482
Test: Perform udfps osc compensation.
Change-Id: I0e9e48387d89cc5d51a23e659fb7e31d5a3e4d7c
2023-03-08 03:13:27 +00:00
Sayanna Chandula
66aa28ff3e thermal: add support for multiple trigger sensors
Bug: 271378726
Test: Build and boot on device. Test with emul temp

Change-Id: I3cc53cb11e5dabbb894990c57e10da3a895244e7
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2023-03-07 14:58:07 -08:00
Sayanna Chandula
5bfd0dfe4b thermal: allow disp_therm trip point change by system
Bug: 268735739
Test: Build and boot on device

Change-Id: I255c97f6155cdbad79209f96d7a16c5580635ead
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2023-03-03 18:00:32 +00:00
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