Commit graph

241 commits

Author SHA1 Message Date
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
Juan Yescas
f2e81aefe0 16kb: Split fstab.zumapro.in to have f2fs partitions in one file
fstab.zumapro.in is splitted in 2 files:

- One file will contain all the partitions that do not use f2fs fs.
- One file will contain all the partitions that use f2fs fs.

This will allow in the future to configure /data and /metadata
with ext4 fs.

Bug: 356425337
Test: $ source build/envsetup.sh
      $ lunch [zumapro]-trunk_staging-userdebug
      $ m
      $ ./vendor/google/tools/flashall -w
Flag: EXEMPT bugfix
Change-Id: I6923fdefadf9299df44e2ba550d5af10446e8a20
2024-07-30 15:31:35 -07:00
Daniel Chapin
edc32dadbf Merge "Revert "strorageproxyd: restart on checkpoint completion"" into main 2024-07-24 21:48:56 +00:00
Daniel Chapin
e96ffb356a Revert "strorageproxyd: restart on checkpoint completion"
Revert submission 28318041-rw_storage

Reason for revert: Droidfood blocking bug b/355163562

Reverted changes: /q/submissionid:28318041-rw_storage

Change-Id: Ia03a829d93d45047af844a9c7b4c4b5a14fa5f92
2024-07-24 20:17:30 +00:00
Juan Yescas
ecfc3d4541 16kb: Set compression algorithm based on the kernel page size
The zram compression algorithm will be set based on the
page size.

- 4kb kernels will use lz77eh
- 16kb kernels will use lzo-rle due Emerald Hill does not
  support 16kb page sizes.

Bug: 354960718
Test: # 4kb kernel
      zumapro:/ # getconf PAGE_SIZE
      4096
      zumapro:/ # cat /sys/block/zram0/comp_algorithm
      [lz77eh] zstd lz4 lzo-rle lzo

      # 16kb kernel
      zumapro:/ # getconf PAGE_SIZE
      16384
      zumapro:/ # cat /sys/block/zram0/comp_algorithm
      lz77eh zstd lz4 [lzo-rle] lzo
Flag: EXEMPT bugfix
Change-Id: I9630c6323860621a48ca9620fcf416372ccdf7f6
2024-07-23 18:05:29 +00:00
Mike McTernan
11ef97edd0 Merge "strorageproxyd: restart on checkpoint completion" into main 2024-07-23 10:02:28 +00:00
Vishvam Mazumdar
b4360283d7 Merge "Defaultly enable cpu idle histogram stats collection for dumpstate." into main 2024-07-18 18:45:14 +00:00
Mike McTernan
077ec5e4da strorageproxyd: restart on checkpoint completion
Flag: EXEMPT rc file change
Bug: 350362101
Test: ABDT
Change-Id: I8c6250155b65c773c657ff09f2a9644e57282f5f
2024-07-17 14:17:17 +01:00
Vishvam Mazumdar
95dc4cb9ed Defaultly enable cpu idle histogram stats collection for dumpstate.
This change is to allow the CPU Idle Histogram Stats to be dumped in
bugreports so that there is more insight into the idle behavior of
devices in the field.

Test: Build/Flash
Test: Collect histogram log
Bug: 344908619
Flag: EXEMPT bugfix
Change-Id: I3a670060048b620c9d20f1a4dedbd4d992e925ca
Signed-off-by: Vishvam Mazumdar <vmazumdar@google.com>
2024-07-11 17:29:46 +00:00
Krzysztof Kosiński
983acd7f5b Merge "Delete PDX sockets for legacy VR services." into main 2024-07-11 04:41:55 +00:00
Krzysztof Kosiński
1f009ad2ba Delete PDX sockets for legacy VR services.
Remove irrelevant copy and paste content. None of the zumapro
devices ever included these services and these sockets are
not doing anything.

Bug: 234559097
Test: presubmit
Flag: EXEMPT dead code removal
Change-Id: I27fc7563f244b96ec75aac3ef929163257975933
2024-07-10 22:13:09 +00:00
Dmitry Skiba
a5dbb18179 Merge "Reland "Restrict kcompactd thread to middle/little cores."" into main 2024-07-09 20:52:17 +00:00
Wei Wang
1e0e88b6ba Merge "init.zumapro.board.rc: Improve max_load_balance_interval value" into main 2024-07-09 17:30:21 +00:00
Dmitry Skiba
e49f89d3a2 Reland "Restrict kcompactd thread to middle/little cores."
This reverts commit e252dc733c.

Reason for revert: 24Q3 has been cut, relanding the original commit 9743ceeba3.

Change-Id: I6bcd2c7277c689201c8bf17ea9d6211b4ee35c8f
Bug: 347272991
2024-07-09 00:36:10 +00:00
Qais Yousef
fe92c2de44 init.zumapro.board.rc: Improve max_load_balance_interval value
This value is in jiffies, setting it to 4 doesn't mean it is 4ms, but it
is 4 ticks or 16ms. Set it to the intended 1 TICK/4ms.

Bug: 351817090
Flag: NONE, init scripts don't support flags
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I23b8eacd13bd12cbab5272e7c72c38ab9ea44719
2024-07-08 15:34:13 +00:00
Jeremy DeHaan
b2427428e5 zumapro: HWC access to panel frame_rate node
Flag: EXEMPT bugfix
Bug: 346461765
Change-Id: I2cdbd8126e5684891b6424d262aa505d2aa641b7
Signed-off-by: Jeremy DeHaan <jdehaan@google.com>
2024-07-04 19:48:09 +00:00
Yvonne Yip
250066c563 Merge changes from topic "auto-margins-main-p24" into main
* changes:
  init.zumapro.soc.rc: Match sched_pixel settings to powerhint's
  init.zumapro.soc.rc: Disable rampup for most groups except top-app and adpf
2024-06-24 23:09:01 +00:00
Qais Yousef
eb5f51eb7a init.zumapro.soc.rc: Match sched_pixel settings to powerhint's
We now default to 500us down_rate_limit_us. Boot with these defaults
too. powerhint can still modify these to whatever setting required by
the specific hint.

Only difference is that down_rate_limit_scale_pow for little is now the
default 1 instead of 2.

Bug: 339664411
Test: PTE A/B test
Flag: NONE no behavior change
Signed-off-by: Qais Yousef <qyousef@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ea40e248c17899d5bb556dad95647db97e30dc4d)
Merged-In: I4f0712faaad87afbb0fc7627c45a61081f91e1e6
Change-Id: I4f0712faaad87afbb0fc7627c45a61081f91e1e6
2024-06-24 23:07:06 +00:00
Qais Yousef
e6afdd099c init.zumapro.soc.rc: Disable rampup for most groups except top-app and adpf
When auto margins are enabled busy tasks will get more appropriate and
coherent rampup time when they get busy. But for most groups, this can
lead to unnecessary power consumption. Disable it except for top-app, sf
and camera group.

For ADPF, a faster rampup is desired as these tasks are usually
sensitive to all sources of latencies. So try to give them more
performance faster.

Bug: 339664411
Test: PTE A/B test
Flag: NONE no behavior change
Signed-off-by: Qais Yousef <qyousef@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:909fadc268c0993e4313ff34a8415daf742c3c15)
Merged-In: Ieb6f3de811d30b62f06809e73dc7df83c87d45d0
Change-Id: Ieb6f3de811d30b62f06809e73dc7df83c87d45d0
2024-06-24 23:06:49 +00:00
Leonard Ian
88f34996be Merge "conf: Enable access for braking time sysfs nodes" into main 2024-06-20 06:22:59 +00:00
Shinru Han
dd41e55105 Merge "gps: maintain one solution" into main 2024-06-04 06:41:30 +00:00
Treehugger Robot
6dab378b81 Merge "Give bthal access to new AOC services" into main 2024-05-31 08:45:20 +00:00
Steven Liu
4c14bb60bb Merge "Modify path to add adbd in nnapi" into main 2024-05-31 06:21:14 +00:00
stevenzlliu
f257d39c65 Modify path to add adbd in nnapi
Modify file path of nnapi and uclamp_min path to add adbd

Bug: 343580927
Flag: NONE <factory only>
Test: check adbd schedule passed
Change-Id: I867cd5a55982d6c2a0b6f02fba7c9a6c464a560c
2024-05-31 06:19:57 +00:00
Madhav Iyengar
3f9a2fb739 Give bthal access to new AOC services
Bug: 342415506
Test: Works with other CLs in topic.

Change-Id: I1fffd6b0dda51df6eb99a8715f6fd9a7d2b89412
2024-05-30 18:10:55 +00:00