262 Commits

Author SHA1 Message Date
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
Subhajeet Muhuri
8dd85e63a9 sm6250-common: power-libperfmgr: Remove ATRACE instances
Change-Id: I50eaf5fd6c3763ab005ec965c3dfa173808313e3
2020-08-31 11:14:31 +03:00
Bruno Martins
e41ad9878e sm6250-common: power-libperfmgr: Scan input devices for eligible DT2W node
It is no longer a surprise for anyone to see Xiaomi shipping the same
device with different displays and different displays usually mean
different touchscreen drivers.

The current double tap handling in the power HAL only takes into
account one specific node, meant to be set in the device tree.
However, if the touchscreen was registered as a different input device
it would cause the feature to be broken. Address the issue by iterating
through the input devices in order to find one supported touchscreen
input to be used.

Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I2f7fb4a8b0c9cd1a16d6c2b93602d285a191f170
2020-08-31 11:14:31 +03:00
AbhiShek Aggarwal
be94045ad9 sm6250-common: Add support for event-based tap to wake gesture control
Change-Id: Id963e3c7302a7ee46a5a6b6d1b743a5718d71f4c
2020-08-31 11:14:31 +03:00
Jesse Chan
74c8ed136b sm6250-common: power-libperfmgr: initialize powerHAL when boot is completed
Change-Id: I801b3aba05ef0be14c7af1969ddf9318c05ef64c
2020-08-31 11:14:31 +03:00
Subhajeet Muhuri
b7fa4db574 sm6250-common: power-libperfmgr: Remove dumpstate support
Change-Id: I28416d1b09c1157119ea3ac0de3d015b71896c02
2020-08-31 11:14:31 +03:00
Subhajeet Muhuri
6e22dec64b sm6250-common: power-libperfmgr: completely remove camera hints handling
Change-Id: I1749eb76b0a3aa4afd68fc532b98f1022c4e773a
2020-08-31 11:14:31 +03:00
Demon Singur
adb780b40e sm6250-common: power-libperfmgr: remove VR hints handling
Change-Id: I4da9b175c3df713f5befd9364ff75b5c1b41a48d
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-08-31 11:14:31 +03:00
Jesse Chan
20fb700a8a sm6250-common: power-libperfmgr: remove Google-specific camera and audio hints
Change-Id: I65285ca8c7248bd1e55d3800862e96c00f00effd
2020-08-31 11:14:31 +03:00
Jesse Chan
0d73bffba1 sm6250-common: power-libperfmgr: remove Google-specific display LPM control
Change-Id: If58f38b99bf6fbd73f6b6ab2144293c63e18b600
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-08-31 11:14:31 +03:00
Jesse Chan
ff37699a86 sm6250-common: power-libperfmgr: simply wait if idle state node is not present
Change-Id: I93dd97e5437761d2d969f93a5af0cae864fd0a65
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-08-31 11:14:31 +03:00
Subhajeet Muhuri
92e0ba3049 sm6250-common: power-libperfmgr: adapt and rebrand for xiaomi_sm6250
Change-Id: Ia9643f9b842849b6e9cf5a987fc84fc02dcb9c7e
2020-08-31 11:14:31 +03:00
Jesse Chan
291b9cadff sm6250-common: import Pixel libperfmgr Power HAL
hardware/google/pixel/power-libperfmgr from android-10.0.0_r39

Change-Id: I969f76219e6507627d3689b3c2dc025983bcfde4
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-08-31 11:14:31 +03:00
Subhajeet Muhuri
8038668577 sm6250-common: Remove QTI perf blobs as we will use libperfmgr now
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-08-31 11:14:31 +03:00
Subhajeet Muhuri
4f99554617 Revert "sm6250-common: power: add no-op 1.3 interface implementation"
This reverts commit 40eda54cb1b688efd1bc89ab29a6edc021428eed.

Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>

 Conflicts:
	sepolicy/vendor/file_contexts
2020-08-31 11:14:19 +03:00
Subhajeet Muhuri
db8339d7a2 Revert "sm6250-common: power: Add support for DT2W feature"
This reverts commit a587e4ebb8e87c3eb5e41e9eafcca0511d4b76b6.
2020-08-31 11:13:38 +03:00
Subhajeet Muhuri
4a00c3e9af Revert "sm6250-common: power: add DT2W support FTS and NVT touchscreens"
This reverts commit 57de65795389b42c0d608ded8c5a20959e309cad.
2020-08-31 11:13:38 +03:00
Demon000
dfdc5e42b2 sm6250-common: define sepolicy for xiaomi battery services 2020-08-30 00:40:02 +03:00
Nick C
45daab797e sm6250-common: add FM 2020-08-25 16:49:31 +03:00
Demon000
2594a4727e sm6250-common: update vendor security patch 2020-08-25 16:49:30 +03:00
Nick C
7614e3da96 [BLOBS] sm6250-common: add FM blobs 2020-08-25 13:35:03 +03:00
Demon000
322dc33c3f Revert "sm6250-common: remove xiaomi specific battery services"
This reverts commit acdc91e92df4f26f2826bd9f513581bb9ac7e9fb.
2020-08-22 00:50:52 +03:00
Demon000
9807c13368 sm6250-common: manifest: remove QTI WiFi entries
Change-Id: I33da186d036f336585af716d62eda9b62cd9c618
2020-08-18 15:48:18 +03:00
Demon000
99ed2b49d1 sm6250-common: build WiFi packages 2020-08-18 14:56:37 +03:00
Demon000
ba2e32a7ce sm6250-common: import WiFi configs 2020-08-18 14:55:15 +03:00
Demon000
767ceea3dd sm6250-common: remove prebuilt QTI WiFI blobs
Change-Id: I0c006768432a520e64ba510f5136fcd3496e028f
2020-08-18 14:51:26 +03:00
Demon000
5d74742307 sm6250-common: overlay: enable DT2W 2020-08-18 14:44:17 +03:00
Demon000
997f392e71 sm6250-common: manifest: upgrade power to 1.3
Change-Id: I0c4b842bd4d28aae11927a216383b3d1186585df
2020-08-18 12:57:26 +03:00