Commit graph

410 commits

Author SHA1 Message Date
ivanmeler
55fc59f8dc Correct bootdevice 2023-03-29 09:43:14 +02:00
ivanmeler
392edc8f09 temp: no quota, and we dont have hidden 2023-03-29 08:30:48 +02:00
ivanmeler
712c9be2db all of the logs 2023-03-28 21:46:19 +00:00
ivanmeler
df156c559d Enable some debugging 2023-03-28 18:30:56 +00:00
ivanmeler
d8c496009a dont append dtb
Change-Id: I7c26e90360212a5409b848cc19c546c8db91504b
2022-12-06 23:29:25 +00:00
ivanmeler
29f6e1836b Revert back to original kernel cmdline 2022-12-02 10:28:44 +00:00
ivanmeler
67b9897b28 correct few more parameters for heroq 2022-12-01 19:49:52 +00:00
ivanmeler
0b3102edf1 Add loggy service 2022-12-01 19:37:31 +00:00
ivanmeler
c5afdb6c1d gts3l-common to msm8996-common 2022-12-01 17:22:49 +00:00
Deokgyu Yang
5b80ec6669 gts3l-common: keymaster: Build only 64bit impl
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ibcd2beee2429344fddcb3cdaf55067fc39ae1188
2022-05-08 00:15:41 +09:00
Deokgyu Yang
21dc75c733 gts3l-common: keymaster: Use mdfpp keymaster, gatekeeper
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Icaf66a24800704038523b0e988089e6a89276f7d
2022-05-08 00:15:17 +09:00
Deokgyu Yang
dbf15ff6d3 gts3l-common: camera: Import UniPlugin libraries
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ie66e361afa68178ca9995c5a2f74dfe52d5f9f3b
2022-05-07 23:36:19 +09:00
Deokgyu Yang
8c0156df25 gts3l-common: config_fs: Change vendor/firmware_mnt/image ownership to system
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I915249beaf7e7b40a2076c2fdb00d676c82b5bd9
2022-05-07 23:32:34 +09:00
Deokgyu Yang
50ce3a2a72 gts3l-common: config_fs: Update config.fs from stock firmware
Generated by config_fs_gen from lineage

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I3e5c2151b48bb9f49c0b1694086e42a201e125e1
2022-05-07 23:32:15 +09:00
Deokgyu Yang
a1248ff138 gts3l-common: props: Set ro.hardware.egl, ro.hardware.vulkan
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I1dd5852364cd63af85c3a1b5c493df0364a2d731
2022-05-07 23:30:17 +09:00
Deokgyu Yang
91a2b8bfb2 gts3l-common: blobs: Move vulkan hal out of hw/ folder
[aleasto]
After 4264917141
the vulkan HAL library is only searched with linker namespaces.
Since our device is not treblized, the only valid namespace is the
default namespace which does not include /vendor/lib(64)?/hw

Refers to:
https://review.lineageos.org/c/LineageOS/android_device_lge_msm8996-common/+/325923

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: If48ea1d1a725cb01141d2bd2050e5763d32d3eec
2022-05-07 23:29:50 +09:00
Deokgyu Yang
126383744c gts3l-common: overlay: We have a fingerprint sensor
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ie99dd74d95b0e14fddc41198e9cb09dd938c5192
2022-05-07 23:16:46 +09:00
Deokgyu Yang
b1b5c2d23a gts3l-common: overlay: Add hardware button props for LineageOS
I removed this file by the commit,
  5f43768 gts3l-common: overlay: Move hw key properties to overlay/frameworks/base

But LineageOS still needs this file. So I restore this back.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Idb81e2dbb6864303bda321198b1a5675a4b161a5
2022-03-01 23:12:48 +09:00
Deokgyu Yang
335b61efe1 Update README.md
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-24 00:34:01 +09:00
Deokgyu Yang
8faa84e8c6 Revert "Revert "gts3l-common: fastcharge: Build fastcharge HIDL""
Mis-merged from "eleven-havoc" branch

This reverts commit e9377b7f80.
2022-02-23 23:47:25 +09:00
Deokgyu Yang
b7c4d2e20a Merge branch 'havoc-eleven' into lineage-18.1 2022-02-23 23:45:37 +09:00
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