Commit graph

312 commits

Author SHA1 Message Date
Kuen-Han Tsai
559da7282a 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: I044aeffd9386c0bee6138402e5130c39e1adbc9f
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2023-12-12 14:11:31 +08:00
Kieran Cyphus
8534e092af Merge "LogMaskLibrary: Add newlines and fix posix perms" into main 2023-12-01 07:24:52 +00:00
Treehugger Robot
73592fb6ac Merge "Ueventd changes for new BT channel in zuma" into main 2023-11-30 00:32:17 +00:00
Martin Liu
e55232fbac adjust PCP high level
We have observed more reclaiming activities as upstream
has changed how PCP high is calculated since 5.15 kernel.
Re-align the level back to 5.10 first so we can monitor
how it impacts the MM metrics.

Bug: 309409009
Test: boot
Change-Id: I7ac1eb88a8dae7c823330a2c75aec9547bd5c427
Signed-off-by: Martin Liu <liumartin@google.com>
2023-11-21 10:24:32 +00:00
kierancyphus
741d0c09d7 LogMaskLibrary: Add newlines and fix posix perms
Bug:302435001
Test: Manually build, flash, `adb shell ls -l \
/data/vendor/radio`

Change-Id: If2696c577e66ee27a042ebe8d6ff61a9e832caec
2023-11-21 05:52:39 +00:00
Luis Delgado de Mendoza
9344919fe5 Ueventd changes for new BT channel in zuma
Bug: 308452948
Test: Validated locally on husky.
Change-Id: I4534d3c007f93e7dbd2ec3ed1f32d30ba8a90ea9
2023-11-17 20:02:43 -08:00
Will McVicker
d6716ccd63 fstab: allow unlocked devices to boot with AVB test key am: 1bc7e21a38 am: 9e663230ab
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25347023

Change-Id: I21eed5267eeff6443478301fe9b039c27aaf3f99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 04:39:36 +00:00
Will McVicker
1bc7e21a38 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: Ibf3cee491404b9efc18c49936edf64c2e3084adf
2023-11-11 15:44:29 -08:00
Chris Lu
c09eb8dc6b zuma: HWC access to panel refresh_ctrl node
Bug: 295603692
Test: write the node successfully
Change-Id: I7a5e908ec6d253791954d1b2071f3d59871650eb
2023-11-06 08:02:29 +00:00
Jacky Liu
a3772510e6 Update i2c pathes with new static i2c bus numbers
Bug: 305242309
Test: Boot to home
Change-Id: I87687b2e3a479a166257ad958ddd07af7967f416
2023-10-23 14:17:22 +08:00
RD Babiera
5cc2bfebf4 Merge "usb: enable/disable displayport alt mode through enableUsbData" into main 2023-10-13 21:23:38 +00:00
Tom Huang
b25c109b04 Merge "init.zuma.rc: bluetooth own uart debug node" into udc-qpr-dev am: 16c49ab709 am: 1dcc691194
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24947930

Change-Id: I2a4a229a25d7f95c901c0c1787f91d2183d5c76c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-13 03:14:05 +00:00
Tom Huang
16c49ab709 Merge "init.zuma.rc: bluetooth own uart debug node" into udc-qpr-dev 2023-10-13 02:47:34 +00:00
jonerlin
7b5f2ae7a5 init.zuma.rc: bluetooth own uart debug node
Bug: 294747612
Test: v2/pixel-pts/release/bootstress/1200counts/suspend-resume
Change-Id: I2d381e37df4e179cc967a0cbc6fbe71458bc23f2
2023-10-11 06:43:35 +00:00
Guibing Cai
a7648dfb45 Merge "init: update vendor_sched procfs paths" into main 2023-10-10 21:45:58 +00:00
Jenny Ho
1886c605a6 Merge "init: add battery persist folder" into main 2023-10-04 07:39:41 +00:00
Jenny Ho
f800b2645c init: add battery persist folder
add persist battery folder for BatteryDefender

Bug: 303191266
Change-Id: I7e8c1e536510f24572a6c69c460f00d41e652fe4
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-10-04 00:46:12 +08:00
Midas Chien
78a11c134a Merge "display: allow hwcomposer to access DRM module debug file" into main 2023-10-02 01:52:31 +00:00
Jing Wang
77b0f3fc8c Revert "init.debug.rc: enable etm/etm2dram when SJTAG is unlocked"
Revert submission 24754347-zuma-etm2dram

Reason for revert: b/302352974

Reverted changes: /q/submissionid:24754347-zuma-etm2dram

Bug: 302352974
Change-Id: I937658f7c78a97e2c3065a05058353b5cf16e860
Signed-off-by: Jing Wang <jwangh@google.com>
2023-09-29 01:22:30 +00:00
guibing
c367051d69 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: I14d07c4525f4bf60318bca31a89b9130c4236600
2023-09-28 23:45:30 +00:00
David Kimmel
160a33cd99 Merge "Game Mode Sched lib affinity" into udc-qpr-dev am: 04635112d1 am: 15d23880e3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24865566

Change-Id: I8bc21f0d2f794161f28fbe5b4a7e1e9131948915
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-27 20:47:08 +00:00
David Kimmel
ea0cc7f075 Game Mode Sched lib affinity
Bug: 170648047

Test: sched / hints applied correctly

Change-Id: Id781d42a93085981301b5278a67e8e4e1f47617d
Signed-off-by: David Kimmel <davidkimmel@google.com>
2023-09-26 10:58:33 -07:00
Qais Yousef
3a73468bc5 init.zuma.rc: Tune uclamp_max values for Zuma and enable uclamp_max_filter am: 4d16a3505e am: 351ce93d94
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24733248

Change-Id: I7abde255373d256e4276393de6914a6fa4ab9469
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-23 02:18:46 +00:00
Qais Yousef
4d16a3505e init.zuma.rc: Tune uclamp_max values for Zuma and enable uclamp_max_filter
The values are based on most efficient frequencies from EM default
profile.

Bug: 289083704
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: Iab3f17c9f32e0ea01e1a8f414373aac0fece8b46
2023-09-22 23:16:08 +00:00
Midas Chien
cdd405ec70 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
Test: check HWC can access it
Change-Id: I985c402bc2d920a43493dddd73e9470ab0228104
2023-09-22 16:01:34 +00:00
Treehugger Robot
a20daced19 Merge "usb.rc: Advertise 360p and 480p support through UVC" into udc-qpr-dev am: d9c5533695 am: a505906121
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24812887

Change-Id: I846c2b8c04e73f4f3b3471ba1e4dae2b9eaa26af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 04:38:37 +00:00
Treehugger Robot
d9c5533695 Merge "usb.rc: Advertise 360p and 480p support through UVC" into udc-qpr-dev 2023-09-22 02:44:20 +00:00
Treehugger Robot
b9abd19bc2 Merge "Set owner for dp_hotplug_error_code" into main 2023-09-21 20:42:33 +00:00
Jonglin Lee
7a36dc3576 Merge "Revert "Sched lib affinity and freq settings"" into udc-qpr-dev am: 67ce7e3fa8 am: 7b5ed115a0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24814561

Change-Id: Ifcc48d916b40fa273f1dd5c2f153d6c1a2c9582f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 22:07:39 +00:00
Sergey Volk
69e8e28d1e Set owner for dp_hotplug_error_code
dp_hotplug_error_code owner needs to be the system user, since HWC
needs to be able to write into it, to reset the error code.

Test: manual
Bug: 283461313
Change-Id: I0866e39f3cd75878628d44b4afaf53df61448213
2023-09-20 20:19:37 +00:00
Jonglin Lee
67ce7e3fa8 Merge "Revert "Sched lib affinity and freq settings"" into udc-qpr-dev 2023-09-20 20:08:45 +00:00
RD Babiera
05cedc1314 usb: enable/disable displayport alt mode through enableUsbData
Adds functionality for enabling and disabling DisplayPort Alt Mode
on the port through enableUsbData in the USB HAL to comply with USB
restrictions for heightened security mode.

Test: manual test on device - use enableUsbData dumpsys command to
      turn off DisplayPort and then turn it back on while connected to a
      partner sink.
Bug: 297208252
Change-Id: I9f071bce802b728f2229abc08efb2204e4c2505a
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-09-20 19:52:07 +00:00
David Kimmel
b833218671 Revert "Sched lib affinity and freq settings"
This reverts commit 253d3d48fa.

Reason for revert: Scheduling while atomic b/301031609

Bug: 301031609
Change-Id: I8179a926315da55ede03653a1517f13f61f3fdeb
2023-09-20 19:51:15 +00:00
Amit Sunil Dhamne
c666d98b7d Merge "usb: Modify sdp enumeration timeout value in charger mode" into udc-qpr-dev am: 1cc4aff2c4 am: 4506a64624
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24805555

Change-Id: Ic0e04355dc132bebfacc8c92e764e2fcafe07875
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 18:35:12 +00:00
Avichal Rakesh
429d54af35 usb.rc: Advertise 360p and 480p support through UVC
Many host applications expect and ask for lower resolution streams when
streaming from a USB webcam. To support those applications, this CL
adds support for 640x480 and 640x360 streams.

Bug: 301170431
Test: Manually tested that the resolution is advertised and streamed.
Change-Id: Ifda2322747fced10c164afa98420fd35b17dbdd1
2023-09-20 10:20:55 -07:00
Treehugger Robot
19957d8abc Merge "init.debug.rc: enable etm/etm2dram when SJTAG is unlocked" into main 2023-09-20 08:24:55 +00:00
Amit Sunil Dhamne
e97fc75c92 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.

ported from 6710e31a629f81cf308e1099f75a01c82db6d006

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: 275687235
Change-Id: I1bc872911d7f1eab26e62fe6f12fba05608e0f83
Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
2023-09-19 13:58:20 -07:00
Wei Wang
c54ce72fc0 Merge "Sched lib affinity and freq settings" into udc-qpr-dev 2023-09-15 23:48:33 +00:00
David Kimmel
253d3d48fa Sched lib affinity and freq settings
Bug: 170648047
Test: sched / hints applied correctly
Change-Id: Ib4d820b0d12d1bbd7fe9340eaf184aaf7fff9c9a
2023-09-15 22:01:10 +00:00
Woody Lin
0184b772a9 init.debug.rc: enable etm/etm2dram when SJTAG is unlocked
Enables the debug features required an unlocked SJTAG to the section
`on property:ro.vendor.sjtag_ap_is_unlocked=true`, so they can be
enabled when 1. PD is available on non-fused device on boot, or 2. PD is
available after betterbug acquires it from the corp service.

Bug: 299043634
Change-Id: I43f8364d7624af1d98b79afffeb1c6dc8bb6faf0
2023-09-14 10:51:31 +08:00
Florian Mayer
070611ca06 Merge "Allow to override MTE mode from device config" into udc-qpr-dev 2023-09-13 17:52:49 +00:00
Florian Mayer
f4915a01f6 Allow to override MTE mode from device config
Test:
  # setprop persist.device_config.runtime_native_boot.bootloader_override force_on
  # setprop persist.device_config.runtime_native_boot.mode_override sync
  # cat /sys/devices/system/cpu/cpu?/mte_tcf_preferred

Bug: 299536833
Change-Id: If919c002a91b50448aa2ce47e206005e2301a4a6
2023-09-08 18:15:32 +00:00
Kalesh Singh
21c643b232 zuma: Disable MGLRU
Disable mglru in P23 devices.

Bug: 299636739
Change-Id: I73c997f76b02a08c38b8e8d8a9c0bec24237fce6
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
2023-09-08 17:03:40 +00:00
Jayant Chowdhary
969c01c3f2 Merge changes from topic "webcam-shusky" into udc-qpr-dev
* changes:
  usb gadget: Add config for UVC in init
  UsbGadget: Add support for UVC function
2023-09-07 19:38:53 +00:00
Avichal Rakesh
9f58739630 usb gadget: Add config for UVC in init
The UVC gadget requires some setup in configfs before it can be used by
the gadget HAL. This CL adds that setup to usb specific init.rc file.

Currently, UVC is setup to advertise mjpeg streams at 720p and 1080p.

Bug: 242344221

Test: Manually tested that UVC is correctly set up on boot.

Merged-In: I71cf4727fb23744c5aef368c1750784a19ba8c5d
Change-Id: I71cf4727fb23744c5aef368c1750784a19ba8c5d
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2023-09-06 20:53:58 +00:00
Jenny Ho
d175d70886 dump_power: add eeprom path to dump
Bug: 298219364
Change-Id: I233a92e51b215cc712a9344fa369c1a0f7d78d5f
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-09-01 08:32:46 +08:00
Qais Yousef
7d55c7a459 init.zuma.rc: Disable util-awareness for mids and bigs
There are power regression reports for low activity use cases on mids
and bigs. Disable util-awareness on mids and bigs for now until this is
better investigated and either use a slightly higher threshold or fix
any potential root cause that is causing unnecessary higher activities
on these cores.

Bug: 289293494
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I7ab2dca998c749567c5e1908d57b2174313e8390
(cherry picked from commit 4c559d3334)
2023-08-30 23:46:54 +00:00
KRIS CHEN
3782d703a4 Merge "Add task_profiles MaxPerformance for storageproxyd" into udc-d1-dev am: 0a77f9c0d2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24464638

Change-Id: I343d53bb07666de283ba15c59d01309102a88a17
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-21 06:33:12 +00:00
KRIS CHEN
0a77f9c0d2 Merge "Add task_profiles MaxPerformance for storageproxyd" into udc-d1-dev 2023-08-21 06:00:35 +00:00
Ken Sun
a190c688ec Revert "init.zuma.rc: Disable util-awareness for mids and bigs" am: 1bf61f399f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24483947

Change-Id: I8d059fc45fe2ac49ccfb5f08f9112459384149ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-19 01:19:26 +00:00