Commit graph

373 commits

Author SHA1 Message Date
Ray Chi
4f30e468e4 modify the path of shell binary
Currently, we should use the vendor shell to run irq script.
This patch will modify the shell path.

Bug: 202103325
Test: switch functions and check the value of smp_affinity_list
Change-Id: Iae572bb1ee218eb205c5e65d20ba6dfa583b9ad6
Merged-In: Iae572bb1ee218eb205c5e65d20ba6dfa583b9ad6
(cherry picked from commit e4796c373c)
2022-02-21 18:22:53 +00:00
Lais Andrade
0b02e303b1 Add default alarm and media vibration intensity settings
Change-Id: Ib5cbda371672dde8cbcd17692ecf777a3c3c95e1
Fix: 219692498
Test: manual
2022-02-21 12:08:06 +00:00
Jack Diver
4438b07c71 gs201: Build UMD from source
Bug: 185349920
Test: Build gs201 UMD from source
Test: Boot to home
Signed-off-by: Jack Diver <diverj@google.com>
Change-Id: I34be0058ea1272966b0b848d9de365c23d28d5ec
2022-02-18 14:35:48 +00:00
diverj
7c11dd7d0e gs201: Add pixel_mali_soc config var
* Add gs201 soc soong_config_variable
* Remove unused mali soong namespaces

Test: Build UMD from source for gs101, gs201 and zuma
Test: checkbuild
Bug: 185349920
Bug: 174232579
Change-Id: Ie175e70a4a61a14e93225522735e1b789c28f6fa
Signed-off-by: Jack Diver <diverj@google.com>
2022-02-17 12:53:42 +00:00
Midas Chien
e542e25078 display: allow composer to access panel idle node
Change panel idle node ownership to allow composer to access.

Bug: 198808492
Test: init and composer can write to panel idle node
Change-Id: I9fd7fe752cfe0694216d608765c4647dd3c00b95
2022-02-17 09:17:42 +00:00
Ted Lin
805826c2cc fix the avc denied for maxfg/registers
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:28): avc: denied { search } for name="maxfg" dev="debugfs" ino=31872 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=dir permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:29): avc: denied { read } for name="registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:30): avc: denied { open } for path="/sys/kernel/debug/maxfg/registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:31): avc: denied { getattr } for path="/sys/kernel/debug/maxfg/registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo

Bug: 208909060
Test: adb bugreport
Change-Id: I72a6b72e568fe109350edd2a0a91747251e6fba4
Signed-off-by: Ted Lin <tedlin@google.com>
2022-02-17 09:04:23 +00:00
Darren Hsu
8c4f8807fd powerstats: disable AoC power stats reporting
This is a workaround for the AoC long latency issue. Re-enable
AoC power stats reporting when the latency issue is fixed or
the timeout mechanism is merged.

Bug: 210045267
Test: Dump power stats while video streaming and see no timeout
Test: from dumpsys
Change-Id: I83545d45bb1bbb5bb18ca4bff4bd261f332a4570
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-02-17 10:26:50 +08:00
TeYuan Wang
ae8e17631b thermal: provide gxp-cooling user_vote permission for thermalHAL
Bug: 219869479
Test: ls -al dev/thermal/cdev-by-name/gxp-cooling/user_vote
Change-Id: Id11ad3cb6b1770cbaffb760feaad571c678a22df
2022-02-16 19:34:39 +00:00
Robin Hsu
200d13758a config.xml: enable zram writeback
Bug: 207572250
Test: cmd jobscheduler run -f android 812
Signed-off-by: Robin Hsu <robinhsu@google.com>
Change-Id: If956c912325d820ad37c160d2d1d80d3e646a76c
2022-02-16 14:49:28 +00:00
Wei Wang
2b064d7831 Change restricted cpuset dynamically
Currently framework put tasks into restricted cpuset group when display
is off. However, when unlocking screen, SystemUI still runs in
restricted cpuset group leading to jank and delayed UDFPS action. This
CL mitigates problem by dynamically changing restricted cpuset group to
all cpus when display is back on.

Bug: 217481359
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I1a7d49c69c02f97d70cbb4d2d716ec68cf0b8701
2022-02-16 05:39:49 +00:00
Nate Myren
010d787802 Add notification pregrants to gs201
Test: build
Bug: 218409412
Change-Id: I6cfabcb5a54852f75384b2abd8aada898aa64006
2022-02-15 17:18:16 +00:00
Carter Hsu
dd48757095 audio: update AudioExt to 3.0
Bug: 206065000
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ia8decc9cb0962330cb0321b747929efe53f323ba
2022-02-15 09:13:54 +00:00
Gary Jian
9286e0a99f Support 5G on both stacks
Bug: 218650003
Test: manual
Change-Id: I6cd66c1db1c826934008949d7a6007541480d3f9
2022-02-15 07:44:31 +00:00
Sayanna Chandula
589318e5c4 thermal: enable cooling devices cur state permissions
Enable permissions for wcl_fcc and dc_icl cooling devices
current state for charging throttling.

Bug: 204523879
Test: build and boot on device. Check charging throttling
Change-Id: Icf175bd270d0eb6a9d2adcde2199b034683a8b8f
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-02-15 05:10:46 +00:00
Ken Huang
ff3ce560fa Set 120Hz frame rate multiple threshold for gs201
Bug: 215043570
Test: play 24fps video and check refresh rate
Change-Id: Ie638f9dcf11e25bdd903d6cde2d0eeb794668e52
2022-02-15 04:07:54 +00:00
Taeju Park
7fca68cdd9 Port missing hints from powerhint.json of gs101
Bug: 207573395
Signed-off-by: Taeju Park <taeju@google.com>
Change-Id: Ia9289b674c988666c1e7cdd10756a0509ec97b39
2022-02-14 23:25:33 +00:00
Robin Hsu
59615c9496 config.xml: pin /system/bin/surfaceflinger
Add /system/bin/surfaceflinger to the pinner service default pin list

Bug: 207573339
Test: by 'dumpsys pinner' command
Change-Id: If29333eb06f2aaaf88fdfbad27fe9de4258c5b27
2022-02-14 11:36:35 +00:00
Rick Yiu
13a4cde946 Dumpstate: Dump vendor group value
Dump attributes and tasks for each vendor group.

Bug: 216844247
Test: build pass
Change-Id: I001efa93fb1ea2fc283daaa28363a0cfc1eefbe8
2022-02-14 06:05:03 +00:00
Carter Hsu
3069e185ee audio: Update Audio HIDL to 7.1
Bug: 205235270
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ie1d8b20b001936e6c72ffe3644475c4fb8dad604
2022-02-14 01:02:01 +00:00
Victor Liu
379b46448b uwb: removed unused calibration files
Bug: 218719905
Test: builds
Signed-off-by: Victor Liu <victorliu@google.com>
Change-Id: Iabdbbe03f9aa3cad457d2e086f2f567c9687d5a7
2022-02-11 16:29:05 +00:00
Rick Yiu
1b0d78ac5b Sync vendor task_profiles and init rc file
Sync the settings from P21.

Bug: 207573268
Test: build pass
Change-Id: Ia6f761c6247522707d34888347bec6736c227e9e
2022-02-11 13:47:55 +00:00
Kris Chen
0567190969 Configure permission for AOC UDFPS sysfs node.
Bug: 205242782
Bug: 215044794
Test: Verify system process can read/write to the node.
Change-Id: Iecadeb47e08abf300ccd93eb8e95c91eb3195fd2
2022-02-11 02:43:14 +00:00
Lokesh Gidra
a398ee823c Use same dalvik heap config as gs101
A different dalvik heap config is being used than the one used in gs101.
Since all the p22 devices have 6+GB RAM, use the corresponding
configuration.

Bug: 218910184
Test: adb shell getprop
Change-Id: Idcb86c3ae14b3409821c01bc9bf16f5b9a820596
2022-02-11 01:27:59 +00:00
Ankit Goyal
0cde43a0c6 Remove outdated namespaces
Bug: 174232579
Test: Boots to home
Change-Id: Ic41bb8e9b0cde2d9c3ca2ed94d03472e939518c5
2022-02-11 00:52:54 +00:00
Ankit Goyal
6410beb4b5 gs201: Remove prebuilt string from target names
Bug: 174232579
Test: Boots to home (with and without prebuilts)
Change-Id: I07e0e2f6ca5d1ff1e6fe83f04c525207b60224d9
2022-02-11 00:52:54 +00:00
Ankit Goyal
2dceacff25 Update mali_csffw firmware target to match the generated one
Bug: 174232579
Test: Boots to home
Change-Id: I3902ed43059195e5d646473020ba6d33bd9f2f0a
2022-02-11 00:52:54 +00:00
Ankit Goyal
5a66a5bc3a Update vulkan library name to vulkan.mali
Bug: 174232579
Test: Boots to home
Change-Id: I50d73b42accbb6984ae8c5df629bbc0f05e8e727
2022-02-11 00:52:54 +00:00
weichinweng
bb377d000c Added new vendors for Bluetooth config migration
Tag: #feature
Test: manual
Bug: 211570675
Bug: 218454632
Change-Id: I9089bd4a3c8e747db4b1a2501989ae36e68a8d26
2022-02-10 15:15:52 +00:00
Darren Hsu
6dffe2029d powerstats: add devfreq state residency for MFC and DISP
Bug: 218772968
Bug: 216600952
Test: dump power stats and see the state residencies appear
Test: verified that the string buffer is enough
Change-Id: Ib4b2986adf6cdd0ab74daa086ef843caa250ac84
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-02-10 13:00:20 +08:00
Ankit Goyal
fb9c573540 Update EGL library name to be consistent
Bug: 174232579
Bug: 213455888
Test: Check go/r35-merge
Change-Id: I70b12b814c0388bffd79c11fa16fe1cde34a801d
2022-02-05 01:54:10 +00:00
Rick Yiu
f96c71adf6 Remove high_capacity_start_cpu
The node is removed from kernel.


Bug: 201259891
Bug: 217240356
Test: build pass
Change-Id: I65cab433693aa31fdf56e056bede821b0aa5badd
2022-02-01 22:09:39 +00:00
Andrew Scull
661151aa2b Remove BOARD_PREBUILT_PVMFWIMAGE from the common board config
The pvmfw image is included by setting PRODUCT_BUILD_PVMFW_IMAGE in
device.mk and there shouldn't be this prebuilt override.

Bug: 199717422
Test: build
Change-Id: I0ba022e7b222ff89a4b2f991900abb3b4589396c
2022-02-01 13:21:37 +00:00
Yohei Yukawa
d98aaabfdb Migrate "rounded_corner_content_padding"
This CL updates resource overlay of

  rounded_corner_content_padding

so that the same device-specific value can be seen from both the
Framework code and the SysUI.

With my previous CL [1], the SysUI continues to see the same value
even after this migration.

 [1]: I0c3717c0bdfc928167c6eba06247b37caabf33b9
      24d6b891f572f7be419d3acc9793ca68d062cf35

Bug: 215554582
Test: presubmit
Change-Id: I3edd624ce3ae7db479f58d1e8a4ccc4dc3edc3b3
2022-01-29 02:31:34 +00:00
George Lee
5f5dbb824b thermal: enable gpu/tpu permission for user_vote
Bug: 215814890
Test: Local test to verify permission
Signed-off-by: George Lee <geolee@google.com>

Change-Id: I09d3d9bc5033ba2f31adbb34fa8969dc75a767bc
2022-01-28 23:48:56 +00:00
Yifan Hong
83205f3e11 Delete extra health HIDL entry.
The AIDL health entry is already in fragments.

Bug: 216416660
Test: vts_treble_vintf_vendor_test
Change-Id: I237f13d06863adf7089c8930710da31cc479c3b5
2022-01-27 15:41:08 +00:00
Santiago Seifert
363944579b Unpin updatable-media from memory
Bug: 214499288
Change-Id: I9774ca50a453c2ffeae9ac99d0255f4cb90ad9f1
Test: Presubmit
2022-01-27 13:15:48 +00:00
Kurt Chang
27b5af0c92 [Graceful IMS cleanup] Set config_delay_for_ims_dereg_millis = 3000
Bug: 216586309
Test: build
Change-Id: I2193c65c3554f55d46fb76bd502cb78ef4da5636
2022-01-27 09:59:27 +00:00
Yifan Hong
51f88201b1 vendor.charger-gs201 -> vendor.charger
The name of the service is changed during
HIDL to AIDL migration. Since there are
triggers depending on init.svc.vendor.charger,
the name needs to be reverted.

Test: none
Bug: 215152892
Change-Id: Id3522de8f5ec6e6a350cf20998820cdc5afe272e
2022-01-26 15:39:21 -08:00
Craig Dooley
f9b1866978 Export TARGET_BOARD_PLATFORM for AoC
Bug: 215535889
Change-Id: Idba3bf9e9a15625db1a36bee5c30b8c42dea8a52
2022-01-26 19:13:00 +00:00
Kai Shi
fda5286dd1 Increase TCP wmem max size
Increase TCP wmem max size to allow high Tx throughput over wifi.

Bug: 213596972
Test: manual test to confirm TCP memory size is increased and wifi TCP throughput with default TCP window size can reach 700Mbps in HE80 mode.
Change-Id: Id1f6ea94da83825ca39093aba5c85bec5bee4a72
2022-01-26 17:15:38 +00:00
Krzysztof Kosiński
d185483165 Fix builds where LyricCameraHAL is not present.
This file contained incorrect commented-out conditionals that
were apparently copied and pasted from somewhere. Fix them to
match gs101 configuration.

Bug: 212047904
Test: build master-without-vendor
Change-Id: Ibecd05d6e5cf1ee94be57203b63c6aec3cab8aa6
2022-01-26 15:53:11 +00:00
TeYuan Wang
8bf22ece52 BCL: remove thermal zone policy change
ThermalHAL listens genl event, so we do not need to
modify the thermal zone policy to user_space

Bug: 204718864
Test: Confirm no selinux denied log, and thermal zone policy is not changed
Change-Id: I77119d79d65902f6ce5cb632349a8cf7aec1d664
2022-01-26 02:41:03 +00:00
TeYuan Wang
b4f08a7823 thermal: chown quiet_therm trip_point
Bug: 211777844
Test: Confirm quiet_therm trip_point_0_temp can be modified by thermalHAL
Change-Id: I5c1c901bdf979917cca2e60552250cfc8756d806
2022-01-26 02:41:03 +00:00
Midas Chien
ddaaf68b1a Update vsync work duration
Sync vsync work duration as initial setting.

Bug: 199468097
Bug: 199469541
TesT: dumpsys SurfaceFlinger, perfetto
Change-Id: I91f291daba55b24042fd161000109ec69bb3b0b0
2022-01-26 02:17:51 +00:00
Stephane Lee
3f39c58c00 Add device-specific support for GoogleBattery HAL 1.2.
Bug: 205021987
Test: Ensure Adaptive Charging/Battery health flags works as expected.
Change-Id: I147de0f4e46675126e4d9f82bc13f948c89060c4
2022-01-25 22:47:11 +00:00
Jerry Huang
453e50f39c media: Fine tune media_codecs_performance_c2.xml
Update stable performance point

Bug: 201979533
Test: android.video.cts.VideoEncoderDecoderTest
Change-Id: I5ee975a42dd7833fa44d6155e02c846f767f6554
2022-01-25 05:59:01 +00:00
Ray Chi
a872edb528 tune usb irq (dwc3) based on usb function
This among other things greatly increases tethering performance.

Bug: 202103325
Test: tput improved
(synced from commit f9e02b98b8243d2db566df16d4e763250ac9efaf)

Change-Id: I19b22d748352eb04bc27d85c0f69fa2571b63d53
2022-01-25 03:28:35 +00:00
Wiwit Rifa'i
cac15c0134 Enable SF caching by default
Bug: 216107814
Test: builds
Change-Id: I9374fb33e50de89ccb3e31bec22a132c82960617
2022-01-24 16:14:02 +00:00
Thurston Dang
70b9383b97 Backport 'Set /dev/sg1 permissions in ueventd.rc' to P22
... 'This way we don't need to guess when we need to chown.'

This is Tri's change to init.gs101.rc (http://go/a-g/15447093),
applied to init.<censored>.rc.

Under some circumstances (see bug), storageproxyd needs to access
/dev/sg1 but doesn't have permission, leading to other apps
blocking on storage.

Bug: 214910469
Test: Check that steps b/214910469#comment76 no longer gets stuck
Change-Id: I9e4133b6bb9ffab1e0044a16b3582436ccf5dd44
2022-01-24 05:13:57 +00:00
ChengYou Ho
da1cccc09e Report Verified Boot support
Bug: 206062307
Change-Id: I81f3e7390916d1092b7b27d8f389f995ecab0480
2022-01-24 02:37:22 +00:00