Commit Graph

133 Commits

Author SHA1 Message Date
John Galt a38353afec sm8150-common: Drop legacy power hal double tap to wake
We will no longer support legacy power hal double tap node, only the modern double tap sensor.

Change-Id: Ie218975274dbbae013189296bb3d1081a34de81a
2023-10-16 04:43:16 +02:00
Jake Weinstein dd8b6b1b35 sm8150-common: Use common compatibility matrix
Change-Id: I877824cc6c15cee7bdae4457984a6130430efd11
2023-02-18 20:47:10 +01:00
Omkar Chandorkar 3fe8b4ed6a sm8150-common: cleanup boardconfig and device makefiles
Change-Id: Iefb6dffcd07e8e6cb2d4c9df42388cfd89a5bda7
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-18 20:47:09 +01:00
Omkar Chandorkar e3748615fe sm8150-common: move to lz4 for EROFS
- while lz4hc,9 provides better compression ratio, it has the cost of
  tremendous compression time and potential hit while decompressing
- internal tests on aarch64 seem to suggest the decompression hit
  is larger than x86_64

Change-Id: I5c102c03f95ace982b85a6ffa5c33aa9ce4637a4
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-18 20:47:09 +01:00
timocapa 2a00cf083b BoardConfig: Update EROFS PCLUSTER SIZE
* Follow Google docs:
   https://source.android.com/docs/core/architecture/kernel/erofs

Change-Id: I1eb8b78583b13d422c5335465695b6e069846927
2022-08-30 01:26:42 +02:00
timocapa 2e987ada56 small cleanup 2022-08-09 06:38:50 +02:00
Omkar Chandorkar b6057b31c1 BoardConfig: shift recovery margin down to match notch
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2022-07-09 18:59:09 +02:00
Lisa Liu 72a6dbb4f0 BoardConfig: Enable LZ4 compression for ramdisk
Change-Id: Id23daba43ae7a6003cbde29480d2f433f344df73
2022-06-16 23:04:37 +02:00
timocapa b21394246d Revert "BoardConfig: Enable Vulkan"
* Needs some user reviews if their camera issues are resolved

This reverts commit 9151bf9d3a.
2022-05-23 00:49:22 +02:00
John Galt 2f43a1fb49 BoardConfigCommon: set erofs pcluster size
Used on cuttlefish as part of erofs switch. Benefits performance
considerably..

 - Pre big cluster product size: 1.1GB
 - Post product size: 875MB
2022-05-12 09:14:32 +02:00
timocapa 416030ed32 BoardConfigCommon: Enable KERNEL_LLVM_SUPPORT 2022-05-09 11:10:32 +02:00
timocapa 483527db73 sm8150-common: Enable Wifi Aware
* A year ago this didn't work at all and caused major log spam
   Log spam seems to be gone and not affect anything else, however
   I can't verify whether it actually works.
2022-05-07 00:30:30 +02:00
timocapa 221ebef251 Revert "Revert "sm8150-common: enable KERNEL_CUSTOM_LLVM""
This reverts commit 37f256efae.
2022-05-06 20:04:02 +02:00
timocapa 69043bde85 common: move to erofs 2022-05-04 23:03:54 +02:00
timocapa 37f256efae Revert "sm8150-common: enable KERNEL_CUSTOM_LLVM"
This reverts commit 7fb1fe01c9.
2022-04-21 13:57:27 +02:00
timocapa fde667ffe0 BoardConfigCommon: Enable PRODUCT_FS_COMPRESSION 2022-04-19 23:22:39 +02:00
Juhyung Park 7fb1fe01c9 sm8150-common: enable KERNEL_CUSTOM_LLVM
Change-Id: I9824f54f5b7942cd65a2536b9d7c8dbf8b11ae19
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
2022-04-19 14:36:39 +02:00
timocapa 9151bf9d3a BoardConfig: Enable Vulkan
* We're probably fine using this now
  Testing showed no issues in apps that were known to have issues
2022-04-19 14:32:40 +02:00
Omkar Chandorkar efa1095059
sm8150-common: relocate init scripts
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-18 14:07:57 +09:00
Omkar Chandorkar 051564ae19
sm8150-common: commonize dynamic/non-dynamic configs
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-18 14:07:50 +09:00
Omkar Chandorkar c719aaed37
sm8150-common: the big cleanup
* move to as many components as we reasonably can
* drop all duplicate configs and properties
* add missing oneplus usb additions

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 16:24:41 +09:00
Omkar Chandorkar 06d4f95e1e
sm8150-common: update for new oneplus common tree
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:25:10 +09:00
Roger Ellis 3455e94187
sm8150-common: Allow ELF prebuilts in PRODUCT_COPY_FILES.
* ELF prebuilts were banned in PRODUCT_COPY_FILES starting
   May 11th. See b/156534160 for long-term fix which should
   override this change.

Change-Id: Icd25b40ca4e4285319775046a1b70de30572be07
2022-03-03 15:25:04 +09:00
Tri Vo cfa4c2fcfe
sm8150-common: Use PRODUCT_*_SEPOLICY_DIRS to build product sepolicy.
We are restoring the old behavior of BOARD_PLAT_*_SEPOLICY_DIR that
extends system sepolicy. To that end, we use another make variable to
specify product sepolicy.

Bug: 119305624
Test: m selinux_policy
Change-Id: I67636b7aaff2bd5ae5309981f9fa2f8ce51edf6f
2022-03-03 15:25:03 +09:00
LuK1337 ca4a668092
sm8150-common: Build HWC from source
Change-Id: Idea9dacb2df45ba7f27e1dac691d1353eebf4c1a
2022-03-03 15:25:03 +09:00
Sebastiano Barezzi 249de6330f
sm8150-common: Remove USE_XML_AUDIO_POLICY_CONF
* Dead since Q, where XML audio policies weren't enforced yet

Change-Id: I302a0ed97964b052176dc3bb0141db1ba85e78c8
2022-03-03 15:24:55 +09:00
Omkar Chandorkar e3752d0117
sm8150-common: drop secure_element
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I36ec5382484a1dc9030f118ffbe7f16c06837d33
2022-03-03 15:24:49 +09:00
Omkar Chandorkar 05cb2d39e4
sm8150-common: switch to bt component
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:48 +09:00
timocapa d031dc3ec3
sm8150-common: switch to qti telephony component
Change-Id: I58178a8c663dd0b5c61c68ec03b2775083a062ed
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:47 +09:00
Omkar Chandorkar 0a68ddbf98
sm8150-common: inital bringup for aospa
* drop in-tree bootctrl and dependencies
* drop unused flags
* use usb component
* update HIDL manifests for CAF
* blob perf deps
* drop non-existent overlays and general cleanup

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I7babead03416479ad6928d359b1cb68def0565cc
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:40 +09:00
Omkar Chandorkar b294a01bc4
sm8150-common: update to OnePlus7ProOxygen_21.P.37_OTA_0370_all_2105200027
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-23 04:41:26 +00:00
Rahul Shahare 3d67ba937d
sm8150-common: Add kpti=off to boot command line
This will OFF kernel page table isolation.

Change-Id: Idd36c359d4955701e9ee3ee27a58177a8d622c86
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-16 12:31:42 +00:00
Danny Lin 3583a7600d
sm8150-common: Optimize native executables for Cortex-A76 CPU
Allow the compiler to take advantage of ARMv8.2 extensions to improve
performance in native executables, not just Java code compiled by ART.

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-16 05:28:37 +00:00
Alexander Koskovich b5171ba364
sm8150-common: Remove virtual framebuffer.
* It's largely for testing purposes and it consumes
   a large amount of memory. If your hardware doesn't
   have graphics then it can be useful, which isn't the
   case for shipped devices.

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-10 15:44:02 +00:00
Nolen Johnson ec8deceec4
sm8150-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: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-10 15:44:01 +00:00
Omkar Chandorkar c306d0eae6
Revert "sm8150-common: enable WiFi Aware and RTT"
`NAN separate vdev supported by host, not supported by firmware`
Press F

This reverts commit dcf2bbef34.
2021-05-09 15:27:25 +00:00
Omkar Chandorkar dcf2bbef34
sm8150-common: enable WiFi Aware and RTT
* now that we are loading correct wlan firmware,
  wifi aware service doesn't crash anymore.

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-09 08:08:50 +00:00
Nolen Johnson 4846f4cda2
sm8150-common: Kill deprecated/unneeded board flags
* ENABLE_CPUSETS - Not used anywhere.
* ENABLE_SCHEDBOOST - Not used anywhere.
* MAX_EGL_CACHE_KEY_SIZE - Not used anywhere.
* MAX_EGL_CACHE_SIZE - Not used anywhere.
* BOARD_USES_QCNE - Only referenced in very old BSPs.
* TARGET_KERNEL_ARCH - no-op unless it differs from TARGET_ARCH.
* TARGET_KERNEL_HEADER_ARCH -  no-op unless it differs from TARGET_ARCH.
* BOARD_KERNEL_TAGS_OFFSET  - Not used anywhere.
* BOARD_RAMDISK_OFFSET - Not used anywhere.
* TARGET_USES_UEFI - used nowhere in tree.
* TARGET_USES_QCOM_BSP - Not used anywhere.
* QCOM_BOARD_PLATFORMS - We shouldn't manipulate it from the device tree.

Change-Id: I8d140fecdbbaac979bc8398745ffa95b911e4c89
2021-04-24 07:45:14 +05:30
LuK1337 a4d3658ffd
sm8150-common: Remove unused power HAL related board config flags
Change-Id: Id47c5425292ab18fed4e836dfc833d133e9b10df
2021-04-24 07:45:13 +05:30
LuK1337 a5afe0bafa
sm8150-common: Remove unnecessary GPS board config flags
Change-Id: I5328ab57d9d43d5fe9e84c329001eeb382d1bd36
2021-04-24 07:45:12 +05:30
Bruno Martins d516552106
sm8150-common: Remove flag not applicable to the target devices
TARGET_PROVIDES_KEYMASTER is a no-op because there's no OSS
keystore for sm8150 devices.

Change-Id: I740bdc65d04cdde7b4965a9ee4705b6d317daa4f
2021-04-24 07:45:12 +05:30
Nolen Johnson 30ee6b4c07
sm8150-common: Kill deprecated TARGET_USES_MKE2FS
* This has been useless since some time in Pie.

Change-Id: Ic02238aa0f1c25cfad20a2b827c3c2fe128f3543
2021-04-24 07:45:11 +05:30
Nolen Johnson f83ec0ef68
sm8150-common: Kill deprecated TARGET_RIL_VARIANT
* We use the AOSP one with a few picks now, as the CAF
  variant was never forked.

Change-Id: I0a32f11c84340257a31fd419b4086a059eec5b34
2021-04-24 07:45:10 +05:30
LuK1337 506bb9a186
sm8150-common: Update vendor SPL from OOS 11.0.0.2
Change-Id: I5791e74157cee963429a2135d984c6ae85313a8a
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-24 07:45:09 +05:30
Omkar Chandorkar 3b1230fb01
sm8150-common: BoardConfig: switch to Image.gz-dtb
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-14 10:51:55 +05:30
LuK1337 c3ca14e92b
sm8150-common: Sync vendor SPL with OOS 11
Change-Id: If609d25dec3de0485786cd224fa5466b0b700b3e
2021-04-13 15:09:06 +05:30
Omkar Chandorkar e6bd024ba6
sm8150-common: compile kernel with proton clang
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-13 15:07:21 +05:30
LuK1337 99dd4fdee9
sm8150-common: Build libtinycompress from source
It's kinda embarassing that I forgot about extended compress format flag.

Change-Id: I47ff18e71ed1c08274e039936250feb8388e222b
2021-04-11 08:37:51 +05:30
Nicolas Geoffray e1a41db779
sm8150-common: Update in pinned files.
Remove or update paths that don't exist.

Bug: 119800099
Test: boots
Change-Id: Idd0066e2ab737c9edcf9a745a19aca7421f62575
2021-04-06 20:30:25 +05:30
Omkar Chandorkar 7f8b1ab010
sm8150-common: include manifest-qva for sku_2 as well
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-06 20:30:17 +05:30