Commit graph

167 commits

Author SHA1 Message Date
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
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
Dmitry Skiba
e252dc733c Revert "Restrict kcompactd thread to middle/little cores."
This reverts commit 9743ceeba3.

Reason for revert: avoid 24Q3 (will reland later)

Bug: 340872453
Change-Id: Iee54d1b89a983ea07baa89c0fa34dbbfd0da137d
2024-05-30 18:03:38 +00:00
Dmitry Skiba
9743ceeba3 Restrict kcompactd thread to middle/little cores.
Bug: 340872453
Test: Confirmed kcompactd affinity with taskset -p
Change-Id: I3312b984e98dee40d65d07096e8baf8d797d4897
Signed-off-by: Dmitry Skiba <dskiba@google.com>
2024-05-28 22:38:19 +00:00
leonardian
06804cf82a conf: Enable access for braking time sysfs nodes
Sysfs nodes:
- braking_time_bank
- braking_time_index
- braking_time_ms

Bug: 325121485
Test: Open sysfs nodes successfully during HAL init
Change-Id: I15438c2cf2ebb4dbc0952f4c767904d5c73ffe02
Signed-off-by: leonardian <leonardian@google.com>
2024-05-16 10:43:56 +00:00
Shiyong Li
180de5a364 Merge "Add sepolicy for power_state node" into 24D1-dev am: 76b4579312
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/27059465

Change-Id: I25c69bb43ff9efd94da260e7588e9dae98c72063
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-09 05:21:38 +00:00
Shiyong Li
76b4579312 Merge "Add sepolicy for power_state node" into 24D1-dev 2024-05-09 05:16:16 +00:00
Treehugger Robot
5736310413 Merge "Adjust the fstab option for ZUFS" into main 2024-05-06 07:35:55 +00:00
Wayne Lin
0e5cd769fe gps: maintain one solution
Bug: 315915958
Test: build pass and GPS function works
Change-Id: I873fca68597188ccca7cd83e6665da5f047068aa
2024-05-06 03:02:07 +00:00
Jaegeuk Kim
7c8c88823d Adjust the fstab option for ZUFS
Bug: 336319772
Change-Id: Ic3088e693d4dd9f784215da27a5c4b6c47759ef2
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2024-05-03 10:00:32 -07:00
Ram Chandrasekar
ac715ab11d init: zumapro: update thermal uclamp cooling device owner
Update the thermal uclamp cooling device cur_state owner to system. This
will allow thermal-HAL to update any mitigation.

Bug: 338150183
Test: Validate the node permission

Change-Id: I8cd35b12442ab6a314d8c9b9375877dc62cd19b6
Signed-off-by: Ram Chandrasekar <rchandrasekar@google.com>
2024-05-03 06:28:59 +00:00
Ram Chandrasekar
650cc5eef7 init: zumapro: update thermal uclamp cooling device owner
Update the thermal uclamp cooling device cur_state owner to system. This
will allow thermal-HAL to update any mitigation.

Bug: 338150183
Test: Validate the node permission

Change-Id: I8cd35b12442ab6a314d8c9b9375877dc62cd19b6
Signed-off-by: Ram Chandrasekar <rchandrasekar@google.com>
2024-05-02 10:58:06 -06:00
Minchan Kim
fafb06168e Restrict running pa_kill threads on middle/little am: 3584b14a53
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/27147547

Change-Id: I51458fff59370f0b7c715a4181f861f1497aff2a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-30 21:59:48 +00:00
Minchan Kim
3584b14a53 Restrict running pa_kill threads on middle/little
Bug: 298662883
Test: Confirmed pa_kill threads's affinity with taskset -p pid
Change-Id: Iec47f3f44450d5271a1ef3a4ab51f9f37990bb6d
Signed-off-by: Minchan Kim <minchan@google.com>
2024-04-29 23:28:21 +00:00
Taeju Park
383aaec72e init: tuning PMU paramter am: 6d55164a24
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/27032047

Change-Id: I4411e1050cb469221f22f150aa63471a2e7c01f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-26 21:27:42 +00:00
Taeju Park
6d55164a24 init: tuning PMU paramter
Bug: 310237445
Change-Id: I91e1e9b112bb34960ea9981e03ae6c6826d67e3c
Signed-off-by: Taeju Park <taeju@google.com>
2024-04-26 18:11:04 +00:00
Wei Wang
1fca8eb132 Merge "init: remove lcpi paramter for PMU limit" into 24D1-dev am: 92a3db5c6c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/27003560

Change-Id: Ic772158f9da6622da0752991d463df08f2304004
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-26 18:08:08 +00:00
Wei Wang
92a3db5c6c Merge "init: remove lcpi paramter for PMU limit" into 24D1-dev 2024-04-26 17:49:54 +00:00
George Lee
709519335d Merge "init: zumapro: Remove all BCL related initial val" into 24D1-dev am: 0c46083475
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/27083866

Change-Id: Iaa3cd6ad669815a1c809d73c564d4823cbf97a04
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 22:52:21 +00:00
George Lee
0c46083475 Merge "init: zumapro: Remove all BCL related initial val" into 24D1-dev 2024-04-24 22:27:19 +00:00
George Lee
b480785fcf init: zumapro: Remove all BCL related initial val
The initialization will be reverted to device tree instead.

Bug: 336064574
Test: Confirm no race condition during boot
Change-Id: I57fd893fb22a2cf9d3b007d023edd6989b3db1ba
Signed-off-by: George Lee <geolee@google.com>
2024-04-24 13:30:46 +00:00
Kevin Ying
84555a6e6a Add sepolicy for power_state node
Bug: 329703995
Test: manual - used camera
Change-Id: I6df9b149fd977613d01b0fd20a0fe92ad809ae70
Signed-off-by: Kevin Ying <kevinying@google.com>
2024-04-23 22:00:53 +00:00
Donnie Pollitz
72c31fc3e4 storageproxyd: Integrate new command arguments
Background:
* Adds argument to explicitly define storage backings for secure
  storage files.  Storageproxy will also internally manage the creation
  of symlinks as necessary (Useful for determining if a userdata wipe
  has occurred).
* Adds an argument to define the max size for file backed storages.

Bug: 324989972
Test: Storage port tests running
Change-Id: Iafdf6d87a786665c118cd652243a34842f5f789d
Signed-off-by: Donnie Pollitz <donpollitz@google.com>
2024-04-22 23:10:23 +00:00
Treehugger Robot
9ece2892ff Merge "init.zumapro.board.rc: Tune scheduler parameter" into 24D1-dev am: f7bcc15d04
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/26909445

Change-Id: I958fdbd57af8bbe2328aadf18ec36f195e09cd83
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-19 18:46:48 +00:00
Treehugger Robot
f7bcc15d04 Merge "init.zumapro.board.rc: Tune scheduler parameter" into 24D1-dev 2024-04-19 18:31:58 +00:00
Taeju Park
bc854b4539 init: remove lcpi paramter for PMU limit
PMU-based soft freq limit no longer use lcpi parameter

Bug: 295054083
Change-Id: I0c43c944278852388384c4e8647d3c5dc5b36f94
Signed-off-by: Taeju Park <taeju@google.com>
2024-04-18 21:03:57 +00:00