Commit graph

385 commits

Author SHA1 Message Date
Deokgyu Yang
ff9fc48134 Revert "gts3l-common: sepolicy: Add power HAL policy"
This reverts commit 09b7f4e7a7.
2022-02-23 02:23:23 +09:00
Deokgyu Yang
9278ad5b0c gts3l-common: perf: No, we can't use libqti-perfd
It needs /proc/sys/kernel/sched_boost anyway

The log spam:
ANDR-PERF-OPTSHANDLER: Failed to read /proc/sys/kernel/sched_boost

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-23 02:15:39 +09:00
Deokgyu Yang
351a1a9196 gts3l-common: perf: We don't have sched_boost
As the related kernel commits are reverted

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-23 01:48:36 +09:00
Deokgyu Yang
07b156680d gts3l-common: boardconfig: Drop TARGET_QTI_USB_SUPPORTS_AUDIO_ACCESSORY
It was never needed here anyway:

  gts3llte:/ $ cat /sys/class/typec/port0/supported_accessory_modes
  none

Refers:
https://review.lineageos.org/c/LineageOS/android_device_samsung_gts4lv-common/+/312411

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-23 01:42:52 +09:00
Deokgyu Yang
1e5bf589f4 gts3l-common: power: Add power_mode_ext for enabling hints
In common power hal this (and other) hints are disabled.
To not interfere with common implementation, add additional
logic to handle this hint by calling the existing implementation on
power-8996.c.

Refers this commit:
4c186bc66e

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-23 01:27:12 +09:00
Deokgyu Yang
de47c677ce gts3l-common: power: Rename power_ext.c to power_interactive_ext.c
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-23 01:24:45 +09:00
Deokgyu Yang
0ed9212f18 Revert "gts3l-common: power: Import marlin power HAL"
The marlin power HAL needs perfd but it doesn't work on our device

This reverts commit 06d1732a08.
2022-02-23 01:23:03 +09:00
Deokgyu Yang
42a28d69cf Revert "gts3l-common: power: Merge power-ext function in the power HAL and apply ours"
This reverts commit a00f867501.
2022-02-23 01:15:58 +09:00
Deokgyu Yang
494b52d87a Revert "gts3l-common: power: Set SCHED_GOVERNOR to blu_schedutil that currently used"
This reverts commit 7693fb2746.
2022-02-23 01:15:35 +09:00
Deokgyu Yang
09b7f4e7a7 gts3l-common: sepolicy: Add power HAL policy
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-23 00:44:50 +09:00
Deokgyu Yang
e2da6b2900 Revert "gts3l-common: perf: Import perfd from lge_msm8996-common"
perfd is not working as the following error on our device
[0:          perfd:  955] devbw soc:qcom,cpubw: dev_pm_opp_get_opp_count: device OPP not found (-19)

So I reverted all the perfd stuffs

This reverts commit 21dcb08866.
2022-02-23 00:44:12 +09:00
Deokgyu Yang
5d88133076 gts3l-common: rootdir/etc: Online CPU 0 explicitly
Maybe sometimes the governor properties are not set properly so add this
line to enable CPU 0 explicitly

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-22 18:37:56 +09:00
Deokgyu Yang
9da0c2be83 gts3l-common: rootdir/etc: Set default GPU power level to 6
For better battery on idle state. It will run at 133 MHz rather than
214 MHz before.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-22 18:37:13 +09:00
Deokgyu Yang
b4c4ebe9e3 gts3l-common: rootdir/etc: Change ipacm service specs and disable ipacm-diag
This change makes TetherConfig HAL runs without error

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-22 17:22:50 +09:00
Deokgyu Yang
7693fb2746 gts3l-common: power: Set SCHED_GOVERNOR to blu_schedutil that currently used
Then this power HAL will optimize the schedutil properties by a hint
from the device condition.

By the way, is this feature corrupted on LG devices where I got the
power HAL from? Why they don't edit this string?

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-22 17:00:52 +09:00
Deokgyu Yang
460d2268b0 gts3l-common: rootdir/etc: Set properties for blu_schedutil
Set up_rate_limit_us to 250 and down_rate_limit_us 10000 unlike
schedutil that uses 500 and 20000 repectively. The new values are from
lge_msm8996-common.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 20:30:38 +09:00
Deokgyu Yang
919dbcd04f gts3l-common: perf: Set the interactive configs to unsupported
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 11:33:29 +09:00
Deokgyu Yang
6c9dca6051 gts3l-common: perf: Involve perf configs to the device tree
The configs are set for interactive, not EAS. So we have to edit those
configs to be based on EAS system.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 11:23:53 +09:00
Deokgyu Yang
6d6ef4a828 gts3l-common: sepolicy: Now we have sched_boost
I imported sched_boost implement to my custom kernel, which is for HMP system
basically but to use the CAF power optimizations we should have that node.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 11:00:46 +09:00
Deokgyu Yang
21dcb08866 gts3l-common: perf: Import perfd from lge_msm8996-common
As our power HAL only can work when if perfd exists, we have to import this
binary from another device.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 11:00:44 +09:00
Deokgyu Yang
615fa58f40 gts3l-common: rootdir: Remove duplicate energy-awareness service
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 09:02:12 +09:00
Deokgyu Yang
c6512651ca gts3l-common: rootdir: Change the default CPU governor to blu_schedutil
blu_schedutil is basically from the Pixel 3 kernel, and I did import
this to my custom kernel. This has been developed for the better battery
performance based on schedutil.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 01:38:44 +09:00
Deokgyu Yang
53ef5f6211 gts3l-common: perf: Remove perf-profiles excepts profile 0
For our power HAL, there is only one power profile needed.

Refers:
486641d489

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 01:38:44 +09:00
Deokgyu Yang
523ff7a21c gts3l-common: irq: Import msm_irqbalance from lge_msm8996-common
The msm_irqbalance configuration of lge_msm8996-common has more IRQ
numbers for excepting mdss and kgsl-3d0. This is good to improve UX stability.

Refers:
d5f348aedd

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 01:36:52 +09:00
Deokgyu Yang
b7d9ca6015 gts3l-common: thermal: We don't need thermal-engine configs
Settings are involved in the thermal HAL

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 23:20:47 +09:00
Deokgyu Yang
a00f867501 gts3l-common: power: Merge power-ext function in the power HAL and apply ours
As we're building our power HAL ourselves, the
TARGET_POWERHAL_SET_INTERACTIVE_EXT flag doesn't working at all. So I
merged this feature to our power HAL to use the extension works, which
is disabling S-Pen panel, LCD, hardware touch key power.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 21:45:44 +09:00
Deokgyu Yang
f54275789c gts3l-common: device: Remove building unnecessary OMX libs
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 21:18:15 +09:00
Deokgyu Yang
2307ff94cb gts3l-common: thermal: Implement thermal HAL to fix sensors
This fixes thermal management and thermal_zone number for the
GPU, battery, skin sensors

Refers:
https://github.com/LineageOS/android_device_lge_msm8996-common

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 21:18:15 +09:00
Deokgyu Yang
06d1732a08 gts3l-common: power: Import marlin power HAL
By copying files from LineageOS/android_device_lge_msm8996-common, it is
more proper for supporting EAS.

Refers:
- ca20a0d81e

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I55cfcb3b764059aac81d265529bdb979c6334f45
2022-02-20 21:18:12 +09:00
Deokgyu Yang
1362e5c29b gts3l-common: power_ext: Rename it for managing power_ext separately
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ib8a0ecf4a35f16c9ba874b1580735c696852dd7e
2022-02-20 20:09:54 +09:00
Deokgyu Yang
60c339b97c gts3l-common: blobs: Import media, OMX blobs from daisy
From daisy - QKQ1.191002.002

And remove Samsung OMX files as info described in:
https://review.lineageos.org/c/LineageOS/android_device_samsung_gta4xl-common/+/299021

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 16:54:33 +09:00
Deokgyu Yang
4d472d4aff gts3l-common: blobs: Import perf, thermal blobs from oneplus3
From oneplus3 - PKQ1.181203.001

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 16:54:33 +09:00
Deokgyu Yang
e025d6f38a gts3l-common: blobs: Update graphics blobs from daisy
From daisy - QKQ1.191002.002, which is based on Android 10

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 15:02:43 +09:00
Deokgyu Yang
100185f44f gts3l-common: blobs: Remove old camera firmwares
These files are not loaded anyway

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 14:43:44 +09:00
Deokgyu Yang
1b5e30e592 gts3l-common: blobs: Enable msm_irqbalance
Refers this commit:
e975bda056

Import msm_irqbalance binary from oneplus3 blobs.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 14:43:42 +09:00
Deokgyu Yang
1b8aa77576 gts3l-common: boardconfig: Let builder know our kernel version
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ic2e6c85b01bdc1c0b00886553ed97f0c1b017546
2022-02-20 14:33:24 +09:00
Deokgyu Yang
7d5e7de6bd gts3l-common: boardconfig: Use lld instead of ld
This also resolves my workaround for building kernel,
780bb8553c

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ia6baaa3f2055206f7e21fbf97d2616b03b95ff79
2022-02-20 14:33:24 +09:00
Deokgyu Yang
a28c2c4e82 gts3l-common: boardconfig: Our tablet has HDR, wide color display
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I2543d69b4f66283a2dc82966b954b1bc214c8c2a
2022-02-20 14:33:24 +09:00
Deokgyu Yang
d78f085f81 gts3l-common: boardconfig: Enable triple buffering
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I751fac1ddca482aaf08a9b845bc12f1c181dc24e
2022-02-20 14:33:24 +09:00
Deokgyu Yang
66aab5c3bc gts3l-common: boardconfig: Enable partitions on loop devices
This is used by the new "virtual disk" feature used by vold to help
debug and test storage code on devices without physical media.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I89c9263f4d1843a751f39fb5c7d7d2150267a295
2022-02-20 14:33:24 +09:00
Deokgyu Yang
6d630439d2 gts3l-common: sepolicy: Address some denials
This includes crash_dump, gmscore_app, and so on.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I97496ba8aa380d45c8374e52eba2050a757ec27d
2022-02-20 14:33:24 +09:00
Deokgyu Yang
85805b0000 gts3l-common: rootdir/etc: Set dynamic_stune_boost to 10
Setting 10 is enough to use smoothely

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Iae69c3a7255a4ecee261039b43c1c7ab0e3e8ff4
2022-02-20 14:33:24 +09:00
Deokgyu Yang
bf64496924 gts3l-common: sepolicy: Add some missing policies and add genfs_contexts
Temporarility

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I4611d613a38f64fb0156f329983d1d6248f0b37b
2022-02-20 14:33:24 +09:00
Deokgyu Yang
6f1d7bef0b gts3l-common: sepolicy: Add touch HAL policies
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I8f6f3757d7e16080ddf2e7b4dbb977912fe38a17
2022-02-20 14:33:24 +09:00
Deokgyu Yang
5f43768923 gts3l-common: overlay: Move hw key properties to overlay/frameworks/base
This enables the hardware navigation bar feature on HavocOS
Configuration Center

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-09 01:25:08 +09:00
Deokgyu Yang
e9377b7f80 Revert "gts3l-common: fastcharge: Build fastcharge HIDL"
This reverts commit e6a3db5299.
2021-12-19 19:26:23 +09:00
Deokgyu Yang
57ba7cff63 gts3l-common: audio: Remove unsupported hw_acc effect
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ib117d4862d4bd7d6cf078ee9dfe251a698fd8a80
2021-12-19 18:18:42 +09:00
Deokgyu Yang
98b74e74a3 gts3l-common: boardconfig: Override SDK API level 26 for mm-qcamera-daemon
Update of the commit 24df69b

Confirmed this working with clean installation

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I21ddd66000d18fa93a77e1eb6714f1ae6fd7f0b2
2021-12-19 18:17:31 +09:00
Deokgyu Yang
b5b52e9383 gts3l-common: overlay: Set lockscreenAntiFalsing.. to false
Seems settings this to true breaks unlocking process sometimes on our
device

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I0e1f9bd260e62f76a06c5cca2576c5d925c9b91c
2021-12-19 17:59:16 +09:00
Deokgyu Yang
0a6d07aa1d gts3l-common: media: Import LineageOS/Oneplus3 media configs
Ours somewhat contaminated for Samsung specific setups. So I removed all
the stock media configs and import them from
LineageOS/android_device_oneplus_oneplus3

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I36cbc17d0f6da25733b4d4bc9c57469ddf0fb866
2021-12-19 17:16:53 +09:00