Commit Graph

703 Commits

Author SHA1 Message Date
Martin Liu
d299288eaf
sm6150-common: mm: Adjust zram write back policy
The first default zram write back time is 3 hours which
is for go device to quickly save more ram. For Pixel
devices, we have more working set and could bring launch
time impact if we write back too fast. Thus, adjust the
first time write back time to 24 hours which is aligned
with periodic write back time.

Bug: 166739872
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I2388dd6d75ab0a938fe0edae0563fd26e48c9908
2021-08-06 19:28:33 +02:00
YH_Lin
997e8f03cd
sm6150-common: fstab: Correct zram parameter names
[libfs_mgr]Warning: unknown flag: zram_loopback_path=/data/per_boot/zram_swap
[libfs_mgr]Warning: unknown flag: zram_loopback_size=512M

We don't use zram_loopback_path any longer so remove it.
We also changed zram_loopback_size with zram_backingdev_size so correct it.

Bug: 145330273
Bug: 145116439
Test: confirmed there is no warning and zram backing device was configured

Change-Id: I51be34c59203813a2f493eee6ab442c9940b75d7
Signed-off-by: Minchan Kim <minchan@google.com>
Signed-off-by: YH_Lin <yhli@google.com>
2021-08-06 19:27:29 +02:00
YH_Lin
30494c543a
sm6150-common: fstab: Switch zram swap to /data/per_boot
Put zram writeback backing store into /data/per_boot

Bug: 144354600
Bug: 140882488

Change-Id: I405bc12d4b90b9f236deba23c7c8973311ad7bf4
Signed-off-by: YH_Lin <yhli@google.com>
2021-08-06 19:26:28 +02:00
Jenhao Chen
9010fc737d
sm6150-common: Enable zram writeback
Bug: 128889899
Test: Boot to home

Change-Id: I48ae06e54a66a7d6965afbe8db3d2f157cf8a1f4
2021-08-06 19:25:07 +02:00
Tim Murray
560aefb174
sm6150-common: Increase ZRAM to 2GB
Test: boots, works
bug 119988524

Change-Id: I09272e7c753569d16f2be0771835bfdbdc0bf270
2021-07-23 22:59:07 +02:00
Wei Wang
73becf7452
sm6150-common: Tune zram performance
-Switch to LZ4 for better overall performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.
-Set page-cluster to 0 as the incremental cost of reading 1 page at a
time is negligible for zram

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
2021-07-23 22:54:56 +02:00
Adithya R
b2d8bf6c26
sm6150-common: Configure zram from separate fstab
Change-Id: I3d093f06b08ad1cc049325d0136b60cab70c29d0
2021-07-23 22:53:14 +02:00
Arian
2df667662f
sm6150-common: releasetools: Make firmware assertions region specific
Change-Id: Idfe58815a2623a29a81d23ee7e8d7d75aff967f2
2021-07-16 00:19:26 +02:00
Arian
9dcfed3a3f
sm6150-common: releasetools: Drop support for '*' in modem version
* In case we don't need to assert, it's easier to just leave it empty.

Change-Id: I3d58081315f69d065c4f5694102c3ff5fbf68a24
2021-07-15 18:16:14 +02:00
Arian
7de8311de3
sm6150-common: releasetools: Drop support for multiple modem version
* The modem version is a minimum requirement, hence it's useless to
  assert on multiple modem versions.

Change-Id: I206b05365681d2292417dfbdc78b9faf11e2a295
2021-07-15 18:11:57 +02:00
Arian
2c30dfedda
sm6150-common: releaseteools: Rename timestamp to modem_version
Change-Id: Ieb258d37fccd1a4371183ca73d5c836d9d8d4941
2021-07-15 18:07:04 +02:00
Arian
514f6bb6b0
sm6150-common: sepolicy: Allow power HAL to read idle_state node
Change-Id: I53e0f3ed275a93d6d5cd0001a438221a043e3ea8
2021-07-14 21:05:07 +02:00
Arian
5875449baa
sm6150-common: sepolicy: Label fastrpc adsprpc wakeup nodes
Change-Id: Ia0268c7aa4cc9344e5a2a76dd661ff1a15b747ef
2021-07-14 20:59:14 +02:00
Arian
a73e27936f
sm6150-common: Set permissions on /dev/xiaomi-touch
Change-Id: I94f9b64f983098b6497ffcdee9817c72d471528f
2021-07-13 22:13:56 +02:00
Arian
18ee1a3486
sm6150-common: parts: Rename doze brightness to always on brightness
Change-Id: I0950ee3d5b4bae6ada1a8defcd6a13c20ae222a9
2021-07-12 18:26:36 +02:00
Arian
67e472edba
sm6150-common: parts: Ensure doze_mode is set to LBM when disabling AOD
* When setting the doze mode to HBM, disabling AOD and enabling it again
  the doze mode was still set to HBM but the listpreference was reset to
  LBM.

Change-Id: Ibd9682c97757335ac4df48a21c7b64f7b36dd585
2021-07-12 18:23:26 +02:00
Arian
7764bbddc7
sm6150-common: parts: Hide doze brightness if it is not supported
Change-Id: Ib88dd2db8c872ebb2d4daf3f3b0c996d766dfd9e
2021-07-03 21:36:12 +02:00
Arian
10f101e143
sm6150-common: parts: Enable doze_status on screen off
* This allows to enter the doze state faster when unlocking from lockscreen

Change-Id: I1900436c974a605555275ef67b283ead2cf720b5
2021-07-03 21:23:39 +02:00
Arian
dd8b25b294
sm6150-common: parts: Set default doze brightness icon
Change-Id: I9d6b4b045af4a0e3a8865e17fc88b72e93c9c711
2021-07-03 21:23:39 +02:00
Arian
8720bb5de8
sm6150-common: parts: Add support for zero brightness doze mode
Change-Id: I027f7d1b3787b5b7140315ca6dced19a1f93361c
2021-07-03 21:23:37 +02:00
Arian
727405d31d
sm6150-common: parts: Implement doze modes and auto brightness
Change-Id: I03888d1997b09cb539952dfed935a7ace5e3444c
2021-07-03 21:23:14 +02:00
Luca Stefani
c202629e95
sm6150-common: parts: Add local FileUtils
Change-Id: I5e06015c8ea65399bb3643183dd17641ca0d3ad7
2021-07-03 20:40:16 +02:00
Arian
93ca9d0fe5
sm6150-common: parts: Move doze gestures into a preference category
Change-Id: I9ab73bcc8c590e6f93106922ecf4830f558ffcb3
2021-07-03 20:40:00 +02:00
Arian
8cf1d5dda3
sm6150-common: power: Use xiaomi-touch to handle dt2w
Change-Id: I73f95e32daf9e2c702662ac2c2c8182e6b8eb214
2021-06-25 19:22:00 +02:00
Arian
cf3b3272ae
davinci: sepolicy: Label idle_state sysfs nodes
Change-Id: Iad52c65df63f858c0019155d47ccbb1ee46b5984
2021-06-25 12:31:35 +02:00
Robb Glasser
3135fd7008
sm6150-common: rootdir: Enable idle_state mechanism
Allows us to check the idle state of the display in order to use perf
hints to improve system performance.

Bug: 69270928
Bug: 69915886

Test: Booted and cat-ed the affected files
Change-Id: I8717093e9b8ed9ed35b6ca51a20225abbf71f775
2021-06-25 12:10:25 +02:00
Arian
c1baef0dd8
sm6150-common: sepolicy: Address power HAL denials
Change-Id: I7327bd54c0d12fde03472695a5598d2a3d22f716
2021-06-21 23:43:39 +02:00
Arian
3d1697d76f
sm6150-common: rootdir: Enable PowerHAL hint processing
Change-Id: I4de6ec81eaf002c094df53ff26ed24db02972dfe
2021-06-21 23:43:39 +02:00
Kyle Lin
0280d9cb17
sm6150-comon: rootdir: Modify the cpuset setting
Because the arch is similiar with SDM670, we aling the setting with
bonito.

Bug: 142552311
Test: build , munaual check the settings
Change-Id: Ica44125c8ed71a85cfd6bde77c9107bceed7b094
2021-06-21 23:43:39 +02:00
Arian
7d83a2b6a6
sm6150-common: rootdir: Kang scheduler settings from sunfish
Change-Id: I2fd16a6d94f4d306960429e88569b1abf1a4a58e
2021-06-21 23:43:39 +02:00
Arian
50f85ceb1b
sm6150-common: rootdir: Kang governor settings from sunfish
Change-Id: I91b54aee5020f7e43ce0d9a6637aea07a06c1259
2021-06-21 23:43:39 +02:00
Arian
656a445165
sm6150-common: rootdir: Remove CAF input boost
Change-Id: I4fd567962dac1e043139eb01ae756ad00a67c528
2021-06-21 23:43:39 +02:00
celtare21
bc4811101f
sm6150-common: rootdir: Disable core control
Change-Id: If8a0eda3353a164f83409cb4785de93cb2cce971
2021-06-21 23:43:39 +02:00
Andres Oportus
e66b019316
sm6150-common: rootdir: Add SchedTune configuration
Bug: 36367381
Test: Boot and check stune configuration effect on sysfs

Change-Id: I838c31d164684a5d88550c92284b65bb50f2ed56
Signed-off-by: Andres Oportus <andresoportus@google.com>
Signed-off-by: Arian <arian.kulmer@web.de>
2021-06-21 23:43:39 +02:00
Bruno Martins
7e0b1d8983
sm6150-common: Migrate to Xiaomi power HAL AIDL
Change-Id: I42170d51a517170b58d532addd9c38496e43457c
2021-06-21 23:43:14 +02:00
Arian
87351664e4
Revert "sm6150-common: rootdir: Override power HAL service and add input group"
This reverts commit 585f60615e881235e35ad042d6fe73c854f26ffd.

Change-Id: Ib97effba6f25e0adb787d903d5c55229a64b4862
2021-06-18 18:37:35 +02:00
Sultanxda
ce8581cf92
sm6150-common: Disable AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE
We're not using perfd so this is useless.

Change-Id: I01c5e5985ba0f06b84e3e4fd59d8e5cc9659d89a
2021-06-18 18:37:35 +02:00
Wei Wang
fe82d2824b
sm6150-common: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2021-06-18 18:37:26 +02:00
LuK1337
907ff515f3
sm6150-common: audio: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2021-06-18 18:34:31 +02:00
dianlujitao
548f696fba
sm6150-common: audio: Disable audio ULL mode
* fixes crackling noise while playing some sounds

Change-Id: I9cd1d63fbd1f55a034944f419ae42121bae9c51d
2021-06-18 18:34:31 +02:00
Nolen Johnson
7068a36b3f
sm6150-common: Simplify AVB flag logic
* AVB's `--flags 3` arguement builds a disabled VBMeta with
  disabled hashtree, so no need to set both flags individually.

Signed-off-by: raghavt20 <raghavtandon2000@gmail.com>
2021-06-18 18:34:30 +02:00
Rasenkai
724c2c814c
sm6150-common: Welcome Redmi Note 10 Pro
Signed-off-by: Rasenkai <rasenkai99@gmail.com>
Change-Id: Iee3b13051419f446a2d17e08dfc933c13765b7d6
2021-06-18 18:34:30 +02:00
Chia-I Wu
2db5017df7
sm6150-common: overlay: Remove COLOR_MODE_SATURATED
It is replaced by COLOR_MODE_AUTOMATIC.

Bug: 110524699
Test: Settings > Display > Advanced > Colors
Change-Id: I116b50fde456a24c90fd83969cd2fc30f84947ee
2021-06-18 18:34:30 +02:00
Gil
b612c65f72
sm6150-common: overlay: [Display] Enable adaptive color mode
Enable Adaptive color mode setting.

Bug: 143513730
Test: Boot test and measure the adaptive color value

Change-Id: I969ec6c3cb1d092a33c0e3a028ff38ad7115dfe2
2021-06-18 18:34:30 +02:00
Christine Franks
3ee56cb4c4
sm6150-common: overlay: Add config value for a11y color mode
Accessibility transforms require a specific color mode that is not
always available for the user to select.

Bug: 130376719
Test: atest com.google.android.config.pts
Change-Id: Ia3211d5aa6e117c5361dea44d944064b23260a81
2021-06-18 18:34:30 +02:00
Adithya R
6139e3481e
Revert "davinci: overlay: Hide sRGB toggle in developer options"
This reverts commit e793668fec.

Change-Id: Ia6a2bd810b0c98efca3fecffe174ba53067013bd
2021-06-18 18:34:30 +02:00
Arian
83fd7346ac
sm6150-common: overlay: Decommonize brightness overlays
Change-Id: I70b781a8d9a30555848dbf2783c69aeb4b9e1425
2021-06-18 18:34:30 +02:00
Chirayu Desai
a9988f304c
sm6150-common: rro_overlays: Move CarrierConfig to RRO
Change-Id: Ia57acd244608848f70fdcc30d5694c919db60671
2021-06-18 18:34:30 +02:00
Arian
ce60eb66d0
Revert "sm6150-common: Exclude CarrierConfig overlays from RRO"
This reverts commit 959ceb5f99.

Change-Id: I0b82719f123218d0f63f621dfe588421217975ef
2021-06-18 18:34:30 +02:00
Arian
da8bb7dbb8
sm6150-common: Import missing libops.so
This is required with blobs and firmware from global stable Android 11 builds.

Fixes this error:

05-31 00:05:23.600   687   687 E QCOM-OEMCrypto: Error at trusted_app_decrypt_cenc : 2563
05-31 00:05:23.600   687   687 E QCOM-OEMCrypto: TA Result : 45 OEMCryptoResult : 38
05-31 00:05:23.601   687   687 I QCOM-OEMCrypto: -----------------------------------------------------------------
05-31 00:05:23.601   687   687 I QCOM-OEMCrypto: Error stack trace[5] for TA version 1:71
05-31 00:05:23.601   687   687 E QCOM-OEMCrypto: 	 drm_get_ops_obj : 1174
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: 	 drm_enforce_hdcp_level : 1204
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: 	 validate_key_control_for_decrypt : 1216
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: 	 process_subsample : 1403
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: 	 i_widevine_session_decrypt_cenc : 1739
05-31 00:05:23.602   687   687 I QCOM-OEMCrypto: -----------------------------------------------------------------
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: Error at decrypt_data : 1874
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: Error at _oecc48 : 2322
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: Error at _oecc105 : 3119
05-31 00:05:23.602   687   687 E WVCdm   : [crypto_session.cpp(1541):Decrypt] OEMCrypto_DecryptCENC failed: status = 38
05-31 00:05:23.602   687   687 E WVCdm   : Decrypt error in session sid8 during a sample with protected data: 179

Change-Id: Icb7467e1e4b4e9260c34ac7a0bda6f48e5c6f34a
2021-06-18 18:34:30 +02:00