Minchan Kim
aad7cdd52e
sm6250-common: Enable zram writeback
...
This reverts commit 57ffdb4625238708d4a517e771eea74349f12efe.
Bug: 140882488
Change-Id: I590277c95cb9eaf34ac84ef955628ecdbaf0c279
Signed-off-by: Minchan Kim <minchan@google.com>
2020-10-11 13:16:27 +00:00
Jenhao Chen
f1f52fcd90
sm6250-common: increase ZRAM to 2GB
...
Test: TH
bug: 119988524
Change-Id: I086be89346e8dae32b06188861a6f0c9fe1d768f
2020-10-11 13:16:27 +00:00
Wei Wang
f51fc562c4
sm6250-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
2020-10-11 13:16:27 +00:00
Sushil Chauhan
09d22a08db
sm6250-common: Enable UBWC aligned framebuffer
...
Enable UBWC aligned allocation for framebuffer on sm6250 target.
Change-Id: Ia4fede80e73c8557fb681f4d22cc0e2b0ed2570d
2020-10-11 13:16:27 +00:00
Sushil Chauhan
d0ea5c7bd9
sm6250-common: Enable H/W Composition
...
Change-Id: I9f4c5435d51d1dfaead1c11208059e7a6f922cbb
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
2020-10-11 13:16:26 +00:00
Peiyong Lin
914f312f8f
sm6250-common: Turn on GPU protected composition.
...
BUG: b/130435822, b/130442144
Test: Verified with Youtube
Change-Id: I782b6db6150845c211c991b2587cdb7c6421bc82
2020-10-11 13:16:08 +00:00
Chia-I Wu
198570a213
sm6250-common: Override config_availableColorModes
...
List NATURAL, BOOSTED, and SATURATED.
Bug: 73824924
Test: atest PtsConfigTestCases
Change-Id: I5e57c4940b5fc32dc43684bb6e58b7af1097a4df
2020-10-11 13:16:08 +00:00
Nick C
8840019c30
sm6250-common: enable adaptive sleep
2020-10-11 13:16:08 +00:00
Bruno Martins
fb9cbd50bf
sm6250-common: Update deps and Soong namespaces to account for new repo
...
Consumer IR HAL now lives in hardware/xiaomi.
Change-Id: I90ef81cacfd7e236cef32b6b7ab1252ecc950bbc
2020-10-11 13:16:08 +00:00
Volodymyr Zhdanov
acbe10758c
sm6250-common: Build common consumer IR HAL
2020-10-11 13:16:08 +00:00
Jesse Chan
a36120780a
power-libperfmgr: add a NOT_INTERACTIVE hint for setInteractive
...
Change-Id: I0797c47e0b1d8bfee644f0028eaabd7650e39913
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-10-11 13:16:08 +00:00
Jesse Chan
dad7775864
power-libperfmgr: add an updateHint function for simple hint ops
...
Change-Id: I2e64f23b5435f7262b36acd52916b5ac795dd106
2020-10-11 13:16:08 +00:00
Nick C
feee933b2e
sm6250-common: switch to proton clang
2020-10-11 13:16:08 +00:00
Nick C
79c98138a8
sm6250-common: KERNEL_SUPPORTS_LLVM_TOOLS
2020-10-11 13:16:08 +00:00
Nick C
55e3524d59
sm6250-common: enable zygote preforking
2020-10-11 13:16:08 +00:00
Henrique Silva
a5f01e9cf3
sm6250-common: releasetools: Fix incrementals generation
2020-09-04 17:23:47 +03:00
jhenrique09
1e510f1af4
sm6250-common: add safailnet
...
Signed-off-by: 4PERTURE <slicey2001@gmail.com>
2020-09-04 17:23:47 +03:00
Nick C
d7f84dad36
sm6250-common: lineage => pe
2020-09-04 17:23:47 +03:00
Astile
ae53fed5e2
sm6250-common: import hwui properties from stock
...
> imported from https://github.com/Astile97/dummy_device_xiaomi_curtana
>miui version :11.0.10.0 GLOBAL
2020-09-04 17:23:47 +03:00
Marc Bourgoin
0f64df3dba
sm6250-common: overlay: Increase vibration pattern strength
...
Current values from Marlin are really weak
Change-Id: I01140ec00de8c8f1d67e620e6f39df6ac624394d
2020-09-04 17:23:47 +03:00
Vasishath Kaushal
20ba6dccfc
sm6250-common: overlay: Use vibration pattern from pixel 2
...
Change-Id: I561d7dbc05de46046212e8d2071b7d3496bb63b1
Signed-off-by: Akhil Narang <akhilnarang.1999@gmail.com>
Signed-off-by: Anunay Maheshwari <anunaym14@gmail.com>
2020-09-04 17:23:47 +03:00
Subhajeet Muhuri
a742505a8b
sm6250-common: Add more defaults
2020-09-04 17:23:47 +03:00
Cosme Domínguez Díaz
3216ca5454
sm6250-common: overlay: Set brightness & screen timeout defaults
...
Signed-off-by: Anunay Maheshwari <anunaym14@gmail.com>
2020-09-04 17:23:47 +03:00
Cosme Domínguez Díaz
b7d1c5d356
sm6250-common: overlay: Disable UI touch sounds by default
...
Signed-off-by: Anunay Maheshwari <anunaym14@gmail.com>
2020-09-04 17:23:47 +03:00
Volodymyr Zhdanov
77a9a70da2
Revert "sm6250-common: symlink logical partitions in recovery"
...
* Not needed it seems
This reverts commit ac2d5035c486f17792e9333bef99a476f5880996.
2020-09-04 17:23:47 +03:00
razorloves
537a8bbcc7
sm6250-common: Lower reserved space on system partition
...
Reserving more than 1.5gb sharply decreases free inodes, resulting
in gapps install/restore issues.
Change-Id: I16c0c649b7e06aea6203e34a81d0d0350b80588c
2020-09-04 17:23:47 +03:00
Subhajeet Muhuri
4e817c50a8
sm6250-common: overlay: Add ambient display support
...
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-09-04 17:23:47 +03:00
Miguel de Dios
a001168d9c
sm6250-common: Port over surface flinger vsync offsets from B1C1
...
Bug: 127860147
Test: manual - check builds and device boots
Change-Id: Icb82133a37c6ef1537356d221e0cbaebb9b21215
Signed-off-by: Miguel de Dios <migueldedios@google.com>
2020-08-31 14:29:09 +03:00
tangrobin
17a98a1ad4
sm6250-common: Refined early phase offsets
...
GPU takes long time(>8ms) when app was launching and closing.
This may because GPU is handling some heavy task like color conversion.
By setting NegativeOffset as 5ms to allow SF have more time to handle
when doing animation transaction and shift back 5ms with
early_app_phase_offset_ns such that app still has the same amount of
time to handle each frame.
Test: 1. Open Chrome from homescreen
2. Swipe vertically to go back to home screen
3. Measure the gpu completion time and "FrameMissed" count from systrace result
Bug: 147339695
Change-Id: I157cb11e8ed8c1ca296fc65612752fbb3d985dcd
2020-08-31 14:29:09 +03:00
Jorim Jaggi
3e293a8a22
sm6250-common: Refined early SF configuration for WCG
...
Test: Use photos, observe no jank
Bug: 110112323
Change-Id: Ib331d0b792ee1790963159a17ec24f36b4a1882a
Merged-In: Ib331d0b792ee1790963159a17ec24f36b4a1882a
2020-08-31 14:29:09 +03:00
Jorim Jaggi
6ae38a9e08
sm6250-common: Enable early phase offsets
...
Since we frequently hit GL composition during transitions, it
makes sense to enable early phase offsets on crosshatch.
Test: Open apps, observe no jank
Bug: 79173695
Change-Id: Ie44b116b1a4f2c8fde1ba4decbbc6e3316686a5d
2020-08-31 14:29:09 +03:00
Volodymyr Zhdanov
ac3fb4ca01
sm6250-common: set stock configstore flags as props
...
/sbin # ./configstore-dump
TARGET_HAS_WIDE_COLOR_DISPLAY := true
TARGET_HAS_HDR_DISPLAY := true
TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
MAX_VIRTUAL_DISPLAY_DIMENSION := 4096
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
2020-08-31 14:29:09 +03:00
Volodymyr Zhdanov
fdb4207122
[BLOBS] sm6250-common: compile configstore@1.1 from source
2020-08-31 14:29:07 +03:00
Volodymyr Zhdanov
f8e5c43055
[BLOBS] sm6250-common: remove curtana-specific device features config
2020-08-31 14:27:02 +03:00
Tao Bao
3a54283f96
sm6250-common: Don't build super.img for AOSP targets.
...
super.img is designed to be used for factory use, which is not
meaningful for AOSP targets. And it would cause build failure when
building w/o vendor.img.
Bug: 135752763
Test: `m dist PRODUCT-aosp_coral-userdebug` no longer generates
super.img.
Test: Build the CL in a branch that doesn't have vendor.img.
Change-Id: If020ef21ca8881c1765b38ec8fa78ead1ded97ee
2020-08-31 12:31:05 +03:00
LuK1337
f8e31d5b16
sm6250-common: Add reboot_fastboot action to power menu
...
Change-Id: I7fd47a4ad5e6387e830f3d3318c32f9488e5deb8
2020-08-31 12:27:22 +03:00
Volodymyr Zhdanov
bc8039f973
Revert "sm6250-common: power-libperfmgr: remove Google-specific display LPM control"
...
This reverts commit 0d73bffba1c8ce97ce466976f0ad8e42e11ba4f5.
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
Conflicts:
power-libperfmgr/Power.cpp
2020-08-31 11:43:21 +03:00
Volodymyr Zhdanov
ecba31cbdb
sm6250-common: powerhint: remove "7110" step from CPUBWMinFreq hint
...
* This matches coral that shares same freqs
2020-08-31 11:15:50 +03:00
Subhajeet Muhuri
9dabc4c180
sm6250-common: Kang sepolicy for libperfmgr and powerstats from sunfish
...
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
Conflicts:
sepolicy/vendor/file_contexts
2020-08-31 11:15:05 +03:00
Subhajeet Muhuri
ecf1544b3b
sm6250-common: Switch to sunfish cpuset setup
...
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-08-31 11:14:31 +03:00
Volodymyr Zhdanov
5fc42f464a
sm6250-common: rootdir: Set missing permission for cpu-cpu-llcc-bw min_freq node
2020-08-31 11:14:31 +03:00
Subhajeet Muhuri
a1a49c6da8
sm6250-common: Init changes for pixel sched and libperfmgr
...
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-08-31 11:14:31 +03:00
Volodymyr Zhdanov
a5acb78e21
sm6250-common: powerhint: Don't set max freq for LLCCBWMinFreq hint
...
* restores original logic and fixes this error:
08-27 02:38:48.695 W/libperfmgr(814): Failed to write to node: /sys/class/devfreq/soc:qcom,cpu-llcc-ddr-bw/min_freq with value: 8137, fd: 11
2020-08-31 11:14:31 +03:00
Subhajeet Muhuri
5a5fab1e58
sm6250-common: powerhint: Adapt for atoll
...
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-08-31 11:14:31 +03:00
Subhajeet Muhuri
66757a77e6
sm6250-common: powerhint: Cleanup
...
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-08-31 11:14:31 +03:00
Subhajeet Muhuri
d8d379c864
sm6250-common: Import powerhint from sunfish
...
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-08-31 11:14:31 +03:00
Sultanxda
bb62324795
sm6250-common: Disable AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE
...
We're not using perfd so this is useless.
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
Change-Id: I3b436f3f747c6955335513a133da81d27a6fbf60
2020-08-31 11:14:31 +03:00
Midas Chien
e112c80a6d
sm6250-common: Enable display idle_state mechanism
...
Allows us to check the idle state of the display in order to use perf
hints to improve system performance.
Bug: 124470767
Test: Booted and cated the affected files
Change-Id: Ib22b5209c57725c50f3545c578af7b72e7f08322
2020-08-31 11:14:31 +03:00
Subhajeet Muhuri
d3820f5157
sm6250-common: Add Pixel power stats HAL from sunfish
...
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-08-31 11:14:31 +03:00
Subhajeet Muhuri
b2bca19ea0
sm6250-common: Enable power-libperfmgr
...
Change-Id: Ia5f8fb4a2afc7a453eb09d2092a7872fd8442bc9
2020-08-31 11:14:31 +03:00