Commit graph

241 commits

Author SHA1 Message Date
Angela Wu
3907a2283c Change /dev/video12's permission to 666 for hardware JPG encoder for zumapro. am: 1c753f658b am: 51080a4a46
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/25835292

Change-Id: I6493cd0d202621f2ecd65ce7015ba19370770c2f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 09:21:42 +00:00
Angela Wu
1c753f658b Change /dev/video12's permission to 666 for hardware JPG encoder for zumapro.
This change is the zumapro version of ag/23052928.

Bug: b/296330134
Test: https://android-build.corp.google.com/builds/abtd/run/L22000030001255046

Change-Id: Ic16b954a0e434bb64a5566822b40097afb49f1ce
2024-01-12 03:34:48 +00:00
Kyle Lin
3ae69cc295 rc: adjust memlat parameters
Increased performance and reduced power consumption.
Improved benchmarks as well.


Bug: 308973423
Test: benchmakrs
Change-Id: I35380bf2dbde1953aa09e0e6059bc2876b383169
2024-01-11 15:21:20 +00:00
Mahesh Kallelil
689bca59fe Merge "Set owner as system for logbuffer_cpif" into main 2024-01-09 03:03:24 +00:00
George Lee
61695f5536 bm: Remove thermal dependency
Bug: 319136643
Test: Confirm battery_mitigation loaded
Change-Id: Idfe17e6f41c3642a2dac4aec560318ee6f05c101
Signed-off-by: George Lee <geolee@google.com>
2024-01-08 20:31:43 +00:00
Mahesh Kallelil
2e8150ddc1 Set owner as system for logbuffer_cpif
Setting the owner of /dev/logbuffer_cpif as system to allow the
dump_modem script to read the logs as part of bugreport

Test: Tested bugreport on device
Bug: 318949647
Change-Id: I402049e9b7b42b31f6fd07e8bf3a9cafefdc6526
Signed-off-by: Mahesh Kallelil <kallelil@google.com>
2024-01-06 09:59:41 -08:00
Jaegeuk Kim
3d2be07a50 Migrate to gs-common/storage/init.storage.rc
Bug: 311655524
Change-Id: I084717957a3bdf0bcbdca06502867d8e108ac139
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2023-12-20 10:51:01 -08:00
Carter Hsu
41ac0a2050 audio: add acd-mel-processor to system/audio
Bug: 315915954
Test: build pass
Change-Id: Id7fa6975ebf3ee4a927355449053a75a14d853b0
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-12-20 13:42:02 +08:00
Zheng Pan
64ac4b2c86 Remove unused init.zuma.rc
init.zuma.soc.rc is added

Bug: 311016628
Test: Flash and boot on KM4
Change-Id: I3b5e3e3a879c8745f7eb5e60ce4aa4f9cea77de3
2023-12-14 12:05:49 -08:00
Zheng Pan
0ae0381c75 Refactor init.rc for zuma/zumapro
init.zuma.soc.rc and init.zumapro.soc.rc only contain SOC related settings.
init.zumapro.board.rc contain board related settings

Bug: 311016628
Test: Build image and flash on KM4
Change-Id: I8f805a58a146009f301b9cb0da9d781c0f2245d9
2023-12-12 19:09:50 -08:00
Hiroshi Akiyama
3c1bfe0c61 Merge "bcl: update heavy gpu and heavy tpu mitigation" into main 2023-12-12 22:59:50 +00:00
Kuen-Han Tsai
9fa4ab5163 usb: enable media-presence polling for SD cards
After USB enumeration, some SD card readers do not send signals to the
device when the SD card is inserted or removed.

To support SD card hotplugging, this patch enables in-kernel
media-presence polling, which will check the SD card status every 2
seconds after a SD card reader is attached.

Bug: 186479576
Test: SD card insertion/removal and data copy (see b/301566595)
Change-Id: I46ebaa4321d0e7bfbc048910ff8cc72e8e4f9a92
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2023-12-12 14:14:40 +08:00
Bart Van Assche
8a15203216 Switch from the BFQ to the mq-deadline I/O scheduler
The mq-deadline I/O scheduler is more stable than BFQ. Additionally, the
boot time is shorter with the mq-deadline I/O scheduler. Hence this CL.

Bug: 186902601
Change-Id: I3db5f132ca3485af9a84a3df63c8b0881c5fbdc8
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2023-12-11 12:50:16 -08:00
Hiroshi Akiyama
5404418614 bcl: update heavy gpu and heavy tpu mitigation
For tuning gpu and tpu heavy mitigation, update divider to /4 instead of
/8. For triggering level, update TPU to 13.5A from 12A and update GPU
from 8A to 9A.

Bug: 315520392
Bug: 315519863
Bug: 315522696
Test: build and readback changes
Change-Id: If0b459ccc071ee9d25884e0c830b829f12eca314
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-12-11 19:42:43 +00:00
George Lee
794070c9d7 Merge "Revert "bcl: Update soft_ocp_gpu to 5A and ocp_gpu to 8A"" into main 2023-12-06 15:52:20 +00:00
TeYuan Wang
9fd35059c2 thermal: modify the permission for batoilo2 thermal trip point
Bug: 313014721
Test: ls -al dev/thermal/tz-by-name/batoilo2/
Change-Id: I4784935cc7e404028c1301f69f9c9fee40488305
2023-12-06 01:12:24 +00:00
Hiroshi Akiyama
6ad6f3218e Revert "bcl: Update soft_ocp_gpu to 5A and ocp_gpu to 8A"
This reverts commit 47fcb7d7b4.

Reason for revert: Observing large number of soft_ocp_gpu events

Change-Id: I40772e115fad8e285e9f3726a7dc8c521becd7f6
2023-12-05 18:01:58 +00:00
Hiroshi Akiyama
73bb11fccb Merge "bcl: Update soft_ocp_gpu to 5A and ocp_gpu to 8A" into main 2023-12-01 19:14:04 +00:00
Treehugger Robot
aff12f912d Merge "Add ueventd entries for new BT channel in AoC" into main 2023-11-30 00:32:17 +00:00
Hiroshi Akiyama
47fcb7d7b4 bcl: Update soft_ocp_gpu to 5A and ocp_gpu to 8A
Presently the SOFT_OCP_GPU setting is very close to the actual OCP_GPU
level. Lower to 5A to separate the trigger levels. Update OCP_GPU to 8A
from 12A which exceeds programmable threshold.

Bug: 311832771
Test: boot device and check sysfs node readout for triggered_lvl
Change-Id: I27f9834200af1a85a1cf1abee2d9b58374cbb321
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-11-30 00:17:31 +00:00
guibing
4e71b9adf2 zumapro: init: port the zuma perf configurations to proto device init.zuma.rc.
Current zumapro proto devices are using init.zuma.rc which is a copy of
init.zumapro.rc. It won't work well for proto devices since it's based
on zuma soc. This change ports perf related configurations from zuma.

Also fix few perf configurations in current zumapro init rc file.

Bugs: 313501809
Test: build, flash and device boots
Change-Id: I3825f0b2e3fa8023ae6f953bb674cd32ddc53581
2023-11-29 00:45:04 +00:00
Luis Delgado de Mendoza
c7323284f3 Add ueventd entries for new BT channel in AoC
Bug: 308452948
Test: Validated locally on husky.
Change-Id: If3b1741e09fbd9402c938d806e9673772da3973c
2023-11-27 18:10:08 +00:00
Zheng Pan
3e8822cb4d Remove the debug line
Debug line is not removed when merge ag/25455125

Bug: 311016628
Test: None
Change-Id: I61f7a7f62c177c969e2554b0eec0b70932342117
2023-11-27 09:48:31 -08:00
Zheng Pan
5a86729634 Rename init.p24.zuma.rc to init.zuma.rc
Bug: 311016628
Test: make image and boot to home
Change-Id: I3240ce46a425150d7b87dd9ac0b3c38769d78be1
2023-11-22 15:10:59 -08:00
Donnie Pollitz
5b899a731f Merge "Fix ueventd for trusty_userdata" into main 2023-11-22 08:07:38 +00:00
Will McVicker
736b796c90 fstab: allow unlocked devices to boot with AVB test key
Set `avb_keys=no_such_key` for dynamic kernel partitions to allow booting
unlocked devices with a custom kernel. This allows a few things:

1) Dogfooders can flash a custom kernel without wiping their device.
   This can help developers track down hard-to-reproduce bugs without
   rolling out a patch to the whole dogfooder population.
2) Developers can uprev their device's kernel without wiping their
   device or packaging the kernel with an Android platform build.

Note: we are using "no_such_key" to ensure an AVB keys file doesn't
accidentally get created.

Test: Flash CI build. Then flash custom kernel on top.
Bug: 274825778
Change-Id: If5ec2d8bcada451bb8291e66ca17014d2fa4ba1b
2023-11-21 16:41:54 -08:00
Donnie Pollitz
68e2fd7ecb Fix ueventd for trusty_userdata
Bug: 301677815
Test: Ran trusty storage port tests
Change-Id: I1bf309d61594e7481e2847e36acf5b714db90876
Signed-off-by: Donnie Pollitz <donpollitz@google.com>
2023-11-21 09:16:08 +01:00
Zheng Pan
e8f94e37f6 Add init.p24.zuma.rc
For P24 proto devices, they use zuma soc, it should load init.zuma.rc.
However due to hw difference between P23 and P24, init.zuma.rc cannot
be used on P24 directly. As P24 is brought up using init.zumapro.rc.
Fork init.p24.zuma.rc from init.zumapro.rc for P24 only.

Bug: 311016628
Test: flash KM4 proto and make sure init.zuma.rc is loaded.
Change-Id: Ib28b7ed5cf8b6f1bad1a7494a31a4eeaab608b67
2023-11-16 19:54:12 -08:00
Hiroshi Akiyama
dd488a57b5 Merge "bcl: change SMPL_WARN voltage to 3.0V from 3.1V" into main 2023-11-14 22:40:49 +00:00
Guibing Cai
cba7aafcef Merge "zumapro: init: update vendor_sched procfs paths." into main 2023-11-14 20:17:36 +00:00
guibing
dce82707ac zumapro: init: pmu_poll_enable node readable
This is from zuma change: ag/23020748
Bug: 309473644
Test: Manual check on device

Change-Id: I4d319550d74e74cbfe7364ef1306f61b3bacc945
2023-11-14 19:04:47 +00:00
guibing
30adf5098f zumapro: init: update vendor_sched procfs paths.
Vendor sched procfs path hierarchy gets updated in kernel.
Update the paths in init rc file and task profiles to match the change.

Bug: 289151587
Test: pts-tradefed run commandAndExit pts -m PtsPerfWbsTestCases
      -t com.google.android.perfwbs.pts.SchedulerTest
Change-Id: I22a97a08a87a402fb661a90a1e1c7a7a7f8536b3
2023-11-14 18:44:52 +00:00
Yvonne Yip
ff36b058f5 init: copy over perf related settings from zuma
Test: boot on device
Bug: b/309473644
Change-Id: I526c4d771a0580a75afa661026e932558b97a543
2023-11-13 21:31:26 -08:00
Midas Chien
18f0596840 Merge "display: allow hwcomposer to access DRM module debug file" into main 2023-11-08 02:57:49 +00:00
Midas Chien
cf1dcfd3cb display: allow hwcomposer to access DRM module debug file
Change the owner and group of the DRM module debug file to system to
grant permission for hwcomposer.

Bug: 301599195
Bug: 305948305
Test: check HWC can access it
Change-Id: Ib7ef46173bae350da85521f1baf19a0498481c10
2023-11-07 13:46:07 +00:00
Jikai Ma
c164ec40d2 thermal: update access permissions for rfpa therm
allow ThermalHAL to overwrite trip point of rfpa_therm

Bug: 296476775
Test: adb shell ls -al dev/thermal/tz-by-name/rfpa_therm/trip_point_*
      to validate permissions
Change-Id: Ib74e21d1c18f4e59f10cea3b52473e6935deed33
2023-11-07 06:35:15 +00:00
Hiroshi Akiyama
ac23e2b6c8 bcl: change SMPL_WARN voltage to 3.0V from 3.1V
SMPL_WARN will trigger heavy mitigation while UVLO1 will trigger lighter
mitigation. This change will lower SMPL_WARN's voltage trigger threshold
to 3.0V and increase UVLO1's voltage trigger to 3.1V.

Bug: 308670320
Test: Read sysfs node for correct value
Change-Id: I7b179c442ee54df1971ffe882a363a45826a3f5b
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-10-31 22:10:30 +00:00
Treehugger Robot
50751f0529 Merge "zumapro: HWC access to panel refresh_ctrl node" into main 2023-10-31 04:05:09 +00:00
Ramya Subramanian
6558812653 Merge "thermal: update access permissions for charge therm" into main 2023-10-30 18:48:30 +00:00
Ramya Subramanian
17c6bd6ec5 thermal: update access permissions for charge therm
Bug: 306307541
Test: Tested on p1.0 and observed genl trip events in log

Change-Id: If9c65e6baf2b623202408562a635ad60fa0e7a70
Signed-off-by: Ramya Subramanian <rsubr@google.com>
2023-10-30 18:48:24 +00:00
Daniel Okazaki
7fb00c91c3 dump_power: adding defender logs for charger and active time
Bug: 306108267
Test: build/flash
Test: adb bugreport
Change-Id: If9bf3e6ab1c6008cbefd4b09a8bb2802ff196207
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
2023-10-27 18:47:43 +00:00
Wei Wang
34d496919a Merge changes I1378fe11,I2286a94c into main
* changes:
  zumapro: Disable kmem cgroup accounting
  zumapro: Set PELT HALFLIFE to 8ms before early init boot stage
2023-10-26 17:47:43 +00:00
guibing
66e9b5470b zumapro: Set PELT HALFLIFE to 8ms before early init boot stage
It's for early boot stage boost. After early init stage, change
it back to the default 32ms.

This is from the similar change we had in zuma: ag/23681609

Bug: 300516320
Test: check the device boot.
Change-Id: I2286a94c31480766540e20cab619cc87363bdd1f
2023-10-25 18:00:50 +00:00
Jenny Ho
41c52056f7 init: add battery persist folder
add persist battery folder for BatteryDefender

Bug: 303191266
Change-Id: I7e0e8721e57c356088a1ba09a15a9651aa80e30d
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-10-19 15:44:04 +08:00
Joner Lin
4dbec98bf9 Merge "bt: set rfkill device nodes permission setting on early_boot stage" into main 2023-10-18 12:51:57 +00:00
Guibing Cai
513b22bd07 Merge "zumapro: init: Enable powerhal" into main 2023-10-17 17:56:02 +00:00
jonerlin
369bd2f9ce bt: set rfkill device nodes permission setting on early_boot stage
move the rfkill permission setting from post-fs-data to early_boot
stage because the kernel/net/rfkill/rfkill.ko may not be loaded on
post-fs-data stage and cause the permission setting failed.

Bug: 305968983
Test: reboot and check Bluetooth status
Change-Id: I985f53076066f5b69b919285faa52d1bed6892a7
2023-10-17 16:49:15 +00:00
Jeremy DeHaan
397925e25d zumapro: HWC access to panel refresh_ctrl node
Bug: 300703751
Change-Id: Ia2acef4cc565382bcba6acce3e3a271ece1f96f0
Signed-off-by: Jeremy DeHaan <jdehaan@google.com>
2023-10-14 00:12:19 +00:00
RD Babiera
52d276e80f Merge "usb: enable/disable displayport alt mode through enableUsbData" into main 2023-10-13 21:23:36 +00:00
guibing
60b048c4b2 zumapro: init: Enable powerhal
Powerhal was disabled because the kernel vendor scheduler was disabled.
It caused log spamming since lots of procfs nodes were missing.
Now vendor schedule has been enabled, so enable the powerhal here.

Bug: 300514842
Test: manual device test.
Change-Id: Ia7407c15f68c31ede29442b4dc0e2777d749dcab
2023-10-11 17:42:05 +00:00