Commit graph

215 commits

Author SHA1 Message Date
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
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
Joen Chen
333fa47ad8 init change owners of sysfs nodes frame_interval and
expected_present_time

init: change file owners of sysfs nodes frame_interval and
expected_present_time in order to grant permission for hwcomposer

Bug: 330392550
Flag:  EXEMPT bugfix
Test: swipe home screen, and check the notifyExpectedPresent()
Change-Id: Ic8f5f2213c483eaa46cf3a6c1b4baa1b886cb6e4
2024-08-12 06:39:54 +00:00
Wei-Hong Hsu
282bb85db7 Merge "[NFC] Add permission for the st33spi" into main 2024-08-12 05:12:11 +00:00
Treehugger Robot
d0e322f53e Merge "Add FSTAB_OWNERS and update OWNERS to include Android.bp" into main 2024-08-09 10:12:47 +00:00
Cyan_Hsieh
c12ebf0a52 Add FSTAB_OWNERS and update OWNERS to include Android.bp
Flag: EXEMPT only changing OWNERS
Bug: 357036384
Change-Id: I7be3c9ff48063e708a8e2251d852ce99b39d9345
2024-08-09 16:22:59 +08:00
Qais Yousef
23b79507ce init.zumapro.soc.rc: Set disable_util_est knob for each group
Set the new disablt_util_est knob for each group. It should be disabled
by default except for few select groups.

Bug: 336169796
Flag: EXEMPT boot time init script
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I225b203756c656ee8b8d3157796b6fe5454c9e26
2024-08-08 12:28:47 +00:00
Paulsu Su
70f1a2b51c Merge "init.zumapro.soc.rc: Set little core min freq to 820MHz" into main 2024-08-08 07:20:01 +00:00
Juan Yescas
a1d5c9b4f3 Rename fstab.postinstall to fstab.ro.postinstall for zumapro devices
Bug: 356425337
Test: $ source build/envsetup.sh
      $ lunch [zumapro]-trunk_staging-userdebug
      $ m
      $ ./vendor/google/tools/flashall -w
Flag: EXEMPT bugfix
Change-Id: I762f8d757739e8c9685df73b7e39f10b4ce25d34
2024-08-06 23:41:48 +00:00
Treehugger Robot
0e6653cecc Merge "Rename fstab.modem to fstab.ro.modem for zumapro devices" into main 2024-08-06 20:43:48 +00:00
Treehugger Robot
1dc4ea0e3e Merge "Move the system read only partitions to fstab.ro.system" into main 2024-08-06 19:10:55 +00:00
Qais Yousef
53d1176fe3 Merge "Revert "init.zumapro.board.rc: Disable util awareness completely"" into main 2024-08-06 08:11:19 +00:00
Paulsu Su
fe3d0dbbfe init.zumapro.soc.rc: Set little core min freq to 820MHz
Test: boot to home
Bug: 348088963
Flag: NONE init.rc do not support flag

Change-Id: I68f3ceaa17559aa27ef8daac98ef69dece39c361
2024-08-06 07:08:30 +00:00
samou
497b93770f Remove BCL from thermal
Flag: EXEMPT tuning changes
Bug: 349935208
Change-Id: I2117380350f6a193b484c536cb758c5fb527edf0
Signed-off-by: samou <samou@google.com>
2024-08-06 02:48:14 +00:00
Juan Yescas
970dfcb4ee Rename fstab.modem to fstab.ro.modem for zumapro devices
Bug: 356425337
Test: $ source build/envsetup.sh
      $ lunch [zumapro]-trunk_staging-userdebug
      $ m
      $ ./vendor/google/tools/flashall -w
Flag: EXEMPT bugfix
Change-Id: I72d7d4138b23457ba23422e59d7745ab2e2017e0
2024-08-05 23:57:59 +00:00
Juan Yescas
ece41241bc Move the system read only partitions to fstab.ro.system
The system/vendor/product read only partitions will be moved
to fstab.ro.system file to easily identify them in the future.

Bug: 356425337
Test: $ source build/envsetup.sh
      $ lunch [zumapro]-trunk_staging-userdebug
      $ m
      $ ./vendor/google/tools/flashall -w
Flag: EXEMPT bugfix
Change-Id: I0402df991160e1fabdfdc5d4e4482320f671ae09
2024-08-05 14:27:20 -07:00
Qais Yousef
02180ccbb4 Revert "init.zumapro.board.rc: Disable util awareness completely"
Revert submission 28549770-disable-teo-util-threshold

Reason for revert: Causes increase in Late Present frames

Reverted changes: /q/submissionid:28549770-disable-teo-util-threshold

Bug: 356992601
Bug: 356967550
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I7dac74f137f0a9f96ad187172367aaffdbdaf102
2024-08-05 14:56:26 +00:00
Juan Yescas
82e7a82825 16kb: Config rw filesystem based on TARGET_RW_FILE_SYSTEM_TYPE
The TARGET_RW_FILE_SYSTEM_TYPE will contain the rw filesystem
to use. The rw filesystem for the devices can be f2fs or ext4.

If TARGET_RW_FILE_SYSTEM_TYPE is not defined, the default
fs will be f2fs.

Bug: 356425337
Test: $ source build/envsetup.sh
      $ lunch [zumapro]-trunk_staging-userdebug
      $ m
      $ ./vendor/google/tools/flashall -w
Flag: EXEMPT bugfix
Change-Id: Ib087a06a98525ca449253dffce9df470a05432d3
2024-08-01 10:44:17 -07:00
Juan Yescas
a17b16ccbd 16kb: Move efs rw partitions to its own fstab file
The efs read/write partitions will be part of the fstab.rw.efs
file and will have their own RC file to mount them.

This change allows us to identify the different partitions and
their types. It will also make easier to select different
RC files depending on the page size.

Bug: 356425337
Test: $ source build/envsetup.sh
      $ lunch [zumapro]-trunk_staging-userdebug
      $ m
      $ ./vendor/google/tools/flashall -w
Flag: EXEMPT bugfix
Change-Id: I3eb877ecc3ccf435110ee0da4a949b44729b3bdb
2024-08-01 08:55:04 -07:00
Wei-Hong Hsu
c9e1a34260 [NFC] Add permission for the st33spi
add permission for the st33spi

Bug: 326345756
Test: build pass
Flag: NONE <no need>
Change-Id: Ie3f3e6300c7d3551c641e0d1d3985f355ec1ab76
2024-08-01 06:00:28 +00:00
Juan Yescas
0c2baf5190 Merge "Revert "16kb: Split fstab.zumapro.in to have f2fs partitions in one file"" into main 2024-07-31 18:21:41 +00:00
Juan Yescas
41a4342d7c Revert "16kb: Split fstab.zumapro.in to have f2fs partitions in one file"
This reverts commit f2e81aefe0.

Reason for revert: Need approval from Pixel team
Bug: 356425337
Change-Id: I39958c586a114370354559780d7784d32aaa6901
2024-07-31 18:21:28 +00:00
Qais Yousef
afdbb77157 init.zumapro.board.rc: Disable util awareness completely
Bug: 355085234
Flag: EXEMPT boot time init script configuration
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I1d5d72a53c079e0f87626e46badf0250a92abbc5
2024-07-31 12:43:28 +00:00