Commit graph

236 commits

Author SHA1 Message Date
Kelvin Zhang
62ef44c3d8 Merge "Allow metadata to be formatted as ext4" into main 2024-11-25 18:39:33 +00:00
Will Song
4ee7fadcef Revert^2 "devices: Move cpufreq perf settings to gs-common"
Re-land after making SELinux corrections.

35162f9a7c

Bug: 335874870
Flag: NONE code refactor
Test: Boot and check parameters
Signed-off-by: Will Song <jinpengsong@google.com>
Change-Id: I8a7c50d9d4a8e77714a7a87d7d974decdac1e877
2024-11-22 13:51:52 -08:00
Kelvin Zhang
40d34122ef Allow metadata to be formatted as ext4
This does not convert /metadata to ext4, the default is still f2fs.
EXT4 would only be used if we are on 16KB mode

Flag: EXEMPT bugfix
Bug: 379759696

Change-Id: I854f563ecd49fc3d7d73ede581cf3d3081c5e555
2024-11-22 18:11:15 +00:00
Treehugger Robot
94baa04f6b Merge "correct the naming of frame_interval_ns and expected_present_time_ns" into main 2024-11-15 06:54:45 +00:00
Joen Chen
ea2353c51a correct the naming of frame_interval_ns and
expected_present_time_ns

Bug: 378992900
Flag: EXEMPT bugfix
Test: swipe home screen, and check the notifyExpectedPresent()
Change-Id: I062e94c30cdf38da3138617afe0acf01bc1de78a
2024-11-14 06:17:46 +00:00
Juan Yescas
1ef792a230 Move modem setup to init.persist.rc
When the modem setup is done is init.efs.rc file,
there is boot time regression in the 4kb configuration.

Bug: 374435821
Flag: EXEMPT bugfix
Test: Build and tested in abtd
Change-Id: I909f9eb45f783fda45e7782419845d236c263aa0
2024-11-13 15:08:23 -08:00
Steven Tsai
512af9cd55 zumapro: always create the symlink of trusty_persist
Bug: 357015856
Flag: EXEMPT bugfix
Change-Id: I8d523aed3ff5a18456db0c4714e536447ddfee3d
Signed-off-by: Steven Tsai <steventsai@google.com>
2024-11-12 08:20:59 +00:00
Nick Kralevich
ab0b600939 Merge "Enable MTE in -eng builds on zumapro devices." into main 2024-10-29 17:09:41 +00:00
Nick Kralevich
2bf5d31904 Enable MTE in -eng builds on zumapro devices.
MTE is a low overhead tool which enables detection of memory
safety bugs in interactive workloads. See
https://source.android.com/docs/security/test/memory-safety/arm-mte
for background and information.

This change enables MTE by default on -eng builds. See
go/mte-eng for more information.

Co-authored-by: Evgenii Stepanov <eugenis@google.com>
Test: Device boots and no MTE crashes
Bug: 316398899
Flag: EXEMPT only affects eng builds, not shipping code
Change-Id: I8be52af4f0349907651ae661972c85ea46e2aa72
2024-10-28 11:59:41 -07:00
Rick Yiu
19ab0dfe42 Set permission for sched qos nodes.
Bug: 355612114
Flag: NONE init rc file does not support flag
Test: build pass
Change-Id: I2512cad0e4a6f377af0526816caa4f219c658e98
2024-10-25 08:17:21 +00:00
Rick Yiu
30c7fadda5 Enable sched qos for vendor groups
Enable settings by different groups.

Bug: 355612114
Flag: NONE init rc file does not support flag
Test: build pass
Change-Id: Ic4eccc64797cb6511f5f3c50f9e5a0b8f0791edc
2024-10-25 07:59:18 +00:00
Juan Yescas
2a8f6806b2 Mount efs and persist partitions at right stage for 4kb and 16kb
Bug: 373455889
Bug: 347108593
Test: Built and flash zumapro device
Flag: EXEMPT bugfix
Change-Id: Ibe8d50d77c47de6fd75df6a22931d4dd0c05399a
2024-10-17 00:13:57 +00:00
Rick Yiu
76b662b189 Set auto prefer idle task name
Set InputDispatche and InputReader prefer idle explicitly, which is a
workaround and should be removed after they become ADPF.

Bug: 366146314
Flag: NONE init rc file change does not support flags
Test: tasks set as expected
Change-Id: Ica1cc1bcf44205f6ccfb09529a52107b1c5091b3
2024-10-10 08:46:08 +00:00
Juan Yescas
0c1aa1be86 Merge "Copy files on efs/efs_backup/modem_userdata/persist partitions to /data in 16kb mode" into main 2024-10-08 18:33:28 +00:00
Treehugger Robot
740512e745 Merge "Move setup of the persist partition to init.persist.rc" into main 2024-10-08 18:31:32 +00:00
Juan Yescas
60dc676409 Copy files on efs/efs_backup/modem_userdata/persist partitions to /data in 16kb mode
There are 4 partitions that are flashed at the factory and use F2FS fs with
4kb block size:

- /dev/block/by-name/efs
- /dev/block/by-name/efs_backup
- /dev/block/by-name/modem_userdata
- /dev/block/by-name/persist

These partitions can NOT be mounted by 16kb kernels because F2FS
expects BLOCK_SIZE == PAGE_SIZE.

In order to access the files in these partitions by 16kb kernels,
the dump.f2fs tool is used.

This change will perform these steps at boot time ONLY for 16kb mode. For
every partition (efs/efs_backup/modem_userdata/persist):

1. Use dump.f2fs to copy the content of the partition
to /data/vendor/copied/<partition name>.img.
2. If the copy was succesfull, rename /data/vendor/copied/<partition name>.img
to /data/vendor/copied/<partition name>
3. fsync the content of the directory /data/vendor/copied/<partition name>.

After the content of the partitions is in /data/vendor/copied,
bind-mount the partitions to the directory /mnt/vendor. See conf/fstab.efs.from_data.

Note: This change ONLY applies to 16kb kernels. This change does not modify
the original partitions.

Bug: 347015136
Bug: 362368691
Test: $ source build/envsetup.sh
      $ lunch [zumapro]-trunk_staging-userdebug
      $ m
      $ ./vendor/google/tools/flashall -w
Flag: EXEMPT bugfix
Change-Id: Idf46a2a3a4f0b2e91ee4a0322a0c469e055684c8
2024-10-07 22:46:49 +00:00
Madhav Iyengar
a2761f3edc Merge "[chre-hal-xport] Give permissions for new xport" into main 2024-10-07 21:45:41 +00:00
Madhav Iyengar
e6525d245f [chre-hal-xport] Give permissions for new xport
Bug: 369883034
Flag: android.chre.flags.refactor_hal_xport_agnostic
Change-Id: Id22ab1352d38a4e8b37bb8414917efb8f6ed75c0
2024-10-07 21:45:23 +00:00
Treehugger Robot
45722a697e Merge "Set priority task name" into main 2024-10-07 15:45:38 +00:00
Juan Yescas
49a4d989ad Move setup of the persist partition to init.persist.rc
The setup of the persist partition is moved to init.persist.rc.
This will make easier to configure 16kb targets in follow up
changes.

Bug: 347015136
Test: $ source build/envsetup.sh
      $ lunch [zumapro]-trunk_staging-userdebug
      $ m
      $ ./vendor/google/tools/flashall -w
Flag: EXEMPT bugfix
Change-Id: Ifd17fc1f25ea8cf73470630e14a38116e0b7b96a
2024-10-04 08:19:22 -07:00
Pawan Wagh
4bac938c20 Merge "Copy fstab from zuma to zumapro for 16kB developer options" into main 2024-10-03 21:17:50 +00:00
Pawan Wagh
9111a59f32 Copy fstab from zuma to zumapro for 16kB developer options
Update fstab used so that both ext4 and f2fs are supported.
Copying previously release config to zumapro to support pixel
9.

Test: atest Enable16KbTest
Flag: build.RELEASE_GOOGLE_CAIMAN_16K_DEVELOPER_OPTION
Bug: 347108593

Change-Id: I8da600ac8e91e61abc20a324762f19dddf846851
2024-10-03 20:05:56 +00:00
Kostya Yarmash
1285fd9c56 init.zumapro.rc: change permission of SJTAG writable files
On userdebug & eng builds, change permission of SJTAG writable sysfs files that need to be written to 'system'. This became necessary after HSUM separated main user from the SYSTEM user

Bug: 367918586
Flag: EXEMPT bugfix
Test: Ensure that there is "Privileged Debugging" item in BetterBug settings.

Change-Id: Id433aea05d23841bb5b45b7b9464daa72602269b
Signed-off-by: Kostya Yarmash <kyarmash@google.com>
2024-10-01 13:24:46 +00:00
Rick Yiu
dcaeaf64cf Change permission of fg_wi file nodes
Bug: 200769420
Test: build pass
Flag: NONE vendor init file does not support flag
Change-Id: I5830f0faa2230aa8bf66d13f64c3156aab0d8379
2024-09-23 13:43:49 +00:00
Jerry Chang
f10e203586 Merge "Add input event profile to mitigate input latency of input threads" into main 2024-09-19 09:02:34 +00:00
Evgenii Stepanov
70fa33306d Merge "[ZumaPro] Change default MTE mode to Asymm." into main 2024-09-18 17:53:30 +00:00
Sam Ou
b939f29af1 Merge "Remove BCL from thermal" into main 2024-09-18 15:49:46 +00:00
Jerry Chang
c2a8604f03 Add input event profile to mitigate input latency of input threads
Bug: 347122505
Test: check the priority and latency of input thread in Perffeto
Flag: NONE early device setting updates
Change-Id: Ib4f7efd03bb7118b32538b569a6587f4a786ca7b
2024-09-18 12:07:45 +00:00
Treehugger Robot
2c7dc29eac Merge "Set initial value for foreground_window group" into main 2024-09-18 06:46:38 +00:00
Evgenii Stepanov
8d3dd98c47 [ZumaPro] Change default MTE mode to Asymm.
Flag: EXEMPT device rc update
Bug: 367730185
Test: build
Change-Id: Ifd1efba5c081e6b7612ca82110feac4473aceb74
2024-09-17 12:39:33 -07:00
Kuen-Han Tsai
dacaa866b5 Merge "usb: modify initial_descriptor_timeout to 500ms" into main 2024-09-13 09:56:27 +00:00
Kuen-Han Tsai
619db1107c usb: modify initial_descriptor_timeout to 500ms
If the enumeration is too long, it may trigger the watchdog mechanism
to cause device reset. Therefore, this patch will modify the timeout.

Ported from Change-Id: Ib54d8ff5a1e680fc86f2b89ee0d02d63ee5741d8
(usb: modify the initial_descriptor_timeout to 500ms)

Bug: 365715654
Test: verified `initial_descriptor_timeout` is set to 500
Flag: EXEMPT cherry-picked CLs from existing projects
Change-Id: I36c5a0ba0a766720cd7d6601cc56f3a883adac8a
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2024-09-13 09:55:25 +00:00
Juan Yescas
a24d3877e1 16kb: Config fstab for targets that only boot 16kb kernels
The zumapro targets that only boot with 16kb kernels will
have this filesystem setup for data and metadata partitions:

- data partition:     f2fs
- metadata partition: ext4

Important: For the HW file encryption to work in the data partition in 16kb kernels the `dusize_4k` parameter has to be set:

```
fileencryption=:aes-256-hctr2:inlinecrypt_optimized+wrappedkey_v0+dusize_4k
```

Bug: 350101696
Test: built pgagnostic target and checked the fs for mounted
      partitions.
Flag: EXEMPT bugfix
Change-Id: I566618e6fa1db2ff4463e00e8d091e7226ba0399
2024-09-11 23:55:31 +00:00
Rick Yiu
2e83b04a10 Set priority task name
Set task name and boost value for ExoPlayer:Place thread.

Bug: 357956265
Test: build pass
Flag: NONE init rc file change does not support flags
Change-Id: I09e79a16b7b6a0675de606b2f65dfbee154ec943
2024-09-11 02:41:15 +00:00
carmenyip
e7925e4638 extended_log: update directory permissions for zumapro
Bug: 336638376

Test: verify with `ls -la` on directory
Flag: NONE changing directory permissions only
Change-Id: Ic978ae7af017a49564507865641db4d9892449cc
2024-09-05 02:59:26 +00:00
Rick Yiu
13784c0062 Set initial value for foreground_window group
For multi-window foreground app group.

Bug: 200769420
Test: build pass
Flag: NONE vendor init file does not support flag
Change-Id: Ia20ec09e7b4eade86e013b102f81400898c0c54c
2024-09-04 03:16:35 +00:00
KRIS CHEN
1a6e5bb135 Merge "Set permission for local_hbm_delay_frames" into main 2024-08-30 01:19:49 +00:00
Rick Yiu
53452df2c5 Restore preferred_idle_mask to the default setting
The preferred_idle_mask is changed during boot time, but it does not
restore to the default setitng as in powerhint, so some node may keep
the wrong value when framework restarts.

Bug: 248621289
Test: build pass
Flag: NONE init rc file change does not support flags
Change-Id: Ib11681b9a751b1d67d02e9788d888e515d5a3519
2024-08-30 00:06:56 +00:00
chenkris
bcf7f4be23 Set permission for local_hbm_delay_frames
Bug: 362149568
Test: enroll and authenticate fingerprint
Change-Id: I84555689be95f0e0e8d8f1b8b154be438a9483f1
2024-08-29 04:53:40 +00:00
Juan Yescas
14e4154b5e Rename fstab.persist to fstab.rw.persist for zumaproe devices
Bug: 356425337
Test: $ source build/envsetup.sh
      $ lunch [zumapro]-trunk_staging-userdebug
      $ m
      $ ./vendor/google/tools/flashall -w
Flag: EXEMPT bugfix
Change-Id: I457f169f14a937d96d8c1a7022455c58b9240b07
2024-08-27 01:28:17 +00:00
Amit Sunil Dhamne
686df57c05 Merge changes I1bc87291,Id3ae7e7a into main
* changes:
  usb: Modify sdp enumeration timeout value in charger mode
  UsbGadget: Update SDP enum timeout when gadget is pulled up
2024-08-21 01:37:21 +00:00
Amit Sunil Dhamne
b171f02f95 usb: Modify sdp enumeration timeout value in charger mode
Write to /sys/class/typec/port<...>/device/update_sdp_enum_timeout
to reduce SDP enumeration timeout value when device is in charger
mode. This will enable faster detection of a DCP port.

Test: Validate (in charger mode) that the sysfs attribute is 1
      (meaning lower sdp timeout value is being used). Read dmesg to
      see print showing timeout value is 5000ms.
Bug: 356685367
Flag: EXEMPT bugfix
Change-Id: I1bc872911d7f1eab26e62fe6f12fba05608e0f83
(porter from commit 3644ca07e87069fd2bed99f9f1fe13862ad43f62)
Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
2024-08-20 18:36:32 -07:00
Pechetty Sravani (xWF)
6a2b257817 Merge "Revert "devices: Move cpufreq perf settings to gs-common"" into main 2024-08-19 06:53:10 +00:00
Pechetty Sravani (xWF)
35162f9a7c Revert "devices: Move cpufreq perf settings to gs-common"
Revert submission 28323508-common_perf_init

Reason for revert: Potential culprit for b/360746202- verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted changes: /q/submissionid:28323508-common_perf_init

Change-Id: Ice26f3451cec999b3b2b3e2f42c0aa06eff68f75
2024-08-19 05:33:45 +00:00
Joen Chen
c85e95a1a2 Merge "init change owners of sysfs nodes frame_interval and expected_present_time" into main 2024-08-19 04:53:58 +00:00
Will Song
d1b0250fd7 devices: Move cpufreq perf settings to gs-common
Moving common cpufreq configurations to gs-common.

Bug: 335874870
Flag: NONE code refactor
Test: boot and check parameters
Change-Id: Ieff1185a09b310924ea60ebc4f2fbf6047e8592f
Signed-off-by: Will Song <jinpengsong@google.com>
2024-08-17 21:18:09 -07:00
Treehugger Robot
6932c8276c Merge "persist.sys.hdcp_checking: make default drm-only" into main 2024-08-16 15:39:06 +00:00
Ji Soo Shin
cfd26f0431 persist.sys.hdcp_checking: make default drm-only
In case of always, we always enable hdcp regardless of drm status.

Bug: 359951297
Flag: EXEMPT bugfix
Change-Id: I477f5c0cfa1350c295c3722a35ab42fb7a9a73e6
Signed-off-by: Ji Soo Shin <jisshin@google.com>
2024-08-16 11:18:21 +00:00
Treehugger Robot
9e675be8d8 Merge "init.zumapro.soc.rc: Set disable_util_est knob for each group" into main 2024-08-14 07:44:56 +00:00
Salmax Chang
6792878186 init: restorecon and correct the modem efs files
Sync the missing operations on modem efs files with the seperated fstab.

Bug: 359426567
Flag: EXEMPT bugfix
Change-Id: Ib678adc86c36a536ed32861e93d1d973e2c7c34a
2024-08-14 03:41:49 +00:00