300 Commits

Author SHA1 Message Date
baalajimaestro
1bc3162116 sm6250-common: remove Camera2
Just give users their choice to install whatever they want

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
2020-10-11 13:16:27 +00:00
Jaegeuk Kim
e47fcb2fd0 sm6250-common: get back to default from long-standing VM tweaks
This patch removed the old writeout policy tune which was never touched since
2009. In the meantime, most of Android devices are equipped with over 4GB DRAM
and very fast flash storages like UFS, which becomes more like desktop or
servers in 2009. So, it'd be worth to go back to use the default kernel configs.

Bug: 136483670
Bug: 137190999
Bug: 152936751
Test: check value output
Change-Id: I1ebbf9f1f27a921103db51e96a50aadd6ec0dde8
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Martin Liu <liumartin@google.com>
2020-10-11 13:16:27 +00:00
Volodymyr Zhdanov
8b15e1d876 sm6250-common: don't configure zram parameters with init.qcom.post_boot.sh
* let it use whatever is set in fstab
2020-10-11 13:16:27 +00:00
Rick Yiu
26805408b6 sm6250-common: set capacity margin after boot complete
Scheduler will use pure CFS before boot complete, and change to
EAS after boot complete, so set capacity margin here.

Bug: 153216544
Test: capacity margin set as expected
Change-Id: I0f76cb1112a37475422eb5866960dbd3db64ebc3
2020-10-11 13:16:27 +00:00
Ady Abraham
a30159e7e4 sm6250-common: add surface flinger idle timer value
Set SurfaceFlinger idle timer to 50ms.

Test: flashall the build and observe idle timer value
Bug: 126270036
Change-Id: I26a0b3f9f1efedd05f164cdda1d6a1bbd07ba7e5
2020-10-11 13:16:27 +00:00
maxwen
54f88777cc sm6250-common: Update overlay to hide sRGB toggle
* Now expected as an array in Settings package

Change-Id: I92a56abb0fc1379e4482d1889d04d8db6a14ea2b
2020-10-11 13:16:27 +00:00
dianlujitao
8d384409a6 sm6250-common: Hide sRGB toggle in developer options
* This is only available on Nexus/Pixel devices, and we have our own
   implementation in livedisplay.

Change-Id: I8343e4986d7dd8413bd8d36dfad0309a4c08026e
2020-10-11 13:16:27 +00:00
Christine Franks
7a9ebf10bc sm6250-common: 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
2020-10-11 13:16:27 +00:00
Chia-I Wu
f417b85558 sm6250-common: Remove COLOR_MODE_SATURATED
It is replaced by COLOR_MODE_AUTOMATIC.

Bug: 110524699
Test: Settings > Display > Advanced > Colors
Change-Id: I116b50fde456a24c90fd83969cd2fc30f84947ee
2020-10-11 13:16:27 +00:00
Gil
e2f8f06f05 sm6250-common: Enable adaptive color mode
Enable Adaptive color mode setting.

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

Change-Id: I969ec6c3cb1d092a33c0e3a028ff38ad7115dfe2
2020-10-11 13:16:27 +00:00
Minchan Kim
b5823f8387 sm6250-common: Enable zram writeback job scheduler
Bug: 140882488
Change-Id: I9deffcbe25474837d5167024297d06601530aae5
Signed-off-by: Minchan Kim <minchan@google.com>
2020-10-11 13:16:27 +00:00
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