Commit graph

122 commits

Author SHA1 Message Date
Ziyi Cui
83cf2a40af Merge "init: add memlat parameter stall_floor" 2023-03-04 04:25:05 +00:00
Sayanna Chandula
8d94f5620f Merge "thermal: allow disp_therm trip point change by system" into udc-dev am: cba4a82603 am: b12a3f33b6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/21733880

Change-Id: I17b09f58682ab7896c5fe0228bb4b2405f0d0bb7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-03 18:44:43 +00: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
Ziyi Cui
cb40d6cc4a 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-01 17:52:01 +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
Shams Pirani
bf70784db1 zuma: Trigger ACPM PI table update on boot
Bug: 265042173
Test: Boot device and read PI table from ACPM

Change-Id: I0f6a6148254761323ca68717331d6a7b826f7f2f
Signed-off-by: Shams Pirani <spirani@google.com>
2023-03-01 02:30:43 +00:00
Andrew Chant
a66fece15b Merge "Revert "Zuma: Hold wakelock on boot"" into udc-d1-dev am: fe8380c456
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/21611255

Change-Id: I6e9355b7e17a5b28e7f48877eaa8a4be7460e545
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-28 21:47:09 +00:00
Sayanna Chandula
73a2666347 Merge "thermal: set dfs clock divider to 8" into udc-dev am: 359287372a am: 254daa1333
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/21551760

Change-Id: I5183f55df6dfb04e24462143c691773588be2caf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-28 21:21:07 +00:00
Kenny Root
0739561de4 Merge "zuma: conf: set gsa log group to system" 2023-02-28 21:16:38 +00:00
Andrew Chant
fe8380c456 Merge "Revert "Zuma: Hold wakelock on boot"" into udc-d1-dev 2023-02-28 21:10:32 +00:00
Sayanna Chandula
2c76893efc Merge "thermal: set dfs clock divider to 8" into udc-dev am: 359287372a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/21551760

Change-Id: Ib4075d60ca4a6c185116c7ce7f0ea53a2c8360eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-28 20:56:56 +00:00
Ryan Chu
f1facb2a22 Zuma: Hold wakelock on boot am: 98f3b8a913
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/21648350

Change-Id: I033f5ce4c68a87dd79663977c0f2380a6cf29bc7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-28 19:11:41 +00:00
Andrew Chant
cad4f138ca Revert "Zuma: Hold wakelock on boot"
This reverts commit 98f3b8a913.

Reason for revert: Fix in ag/21649593
Bug: 247032124

Change-Id: Ib7d127d835dde8c1ab9e9e66ce4fa78837947c49
2023-02-28 18:32:57 +00:00
Kenny Root
286ebed626 zuma: conf: set gsa log group to system
dumpstate runs as system group, so in order to prepare for it to be
readable by dumpstate, we need to change the group to system.

Bug: 271125313
Test: ls -l /sys/devices/platform/16490000.gsa-ns/
Change-Id: Ib8f299e99add9cc2f03887cda78f576924c522cd
2023-02-28 10:01:00 -08:00
Ryan Chu
98f3b8a913 Zuma: Hold wakelock on boot
Hold wakelock on boot to mitigate suspend/resume

Bug: 247032124
Change-Id: I113862adbce70604cf184b5b1bb62fde8ab264d5
(cherry picked from commit 99e7d26840)
2023-02-28 17:46:12 +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
Armelle Laine
e4e70f66b1 Merge "Enable Trusty persist storage (TDP) on block-device" 2023-02-27 20:07:35 +00:00
Armelle Laine
e86ccf6392 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-24 02:18:04 +00:00
Sophia Wang
4ce406064f Merge "Zuma:conf Add memlat CPU idle awareness settings" 2023-02-22 21:35:59 +00:00
Sophia Wang
f60e906395 Zuma:conf Add memlat CPU idle awareness settings
Test: cat /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu7_memlat@17000010/memlat_cpuidle_state_aware

Bug: 269148983
Change-Id: I772c53f95c8c1d7f84c34cfd49397a47db0fdf64
Signed-off-by: Sophia Wang <yodagump@google.com>
2023-02-22 10:32:42 -08:00
Randall Huang
5e2783f956 Merge "Enable HCTR2 for filenames encryption" 2023-02-20 02:15:24 +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
Nathan Huckleberry
3d2698105e 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-11 01:20:01 +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