Compare commits

...

10 Commits

Author SHA1 Message Date
lemezohaib
9682ef4dc4 sm6150-common: parts: Move Xiaomi Doze inside stock ambient display preference
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:18:01 +08:00
3c188a0a88 Revert "sm6150-common: overlay: Remove COLOR_MODE_SATURATED"
This reverts commit 2db5017df7.

Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:18:01 +08:00
bc1971f4c3 sm6150-common: nuke dependencies file
* all dependencies file are on device specific tree

Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:18:01 +08:00
itsshashanksp
cc038a5658 sm6150-common: Cleanup Kernel
Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:17:41 +08:00
itsshashanksp
08a3ed0a6e sm6150-common: Compile kernel with AOSP clang version 19.0.0
Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:15:45 +08:00
Adithya R
a72c57559f sm6150-common: Disable backpressure propagation in SF
* based on 7e86e7588a
 * depends on 3bc0f96f58

Change-Id: I4816ba34e0ddf96c9d6f1c049bf584a4190c9a8e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:15:45 +08:00
Midas Chien
a155e9d55b sm6150-common: Don't latch unsignal buffers
Set debug.sf.latch_unsignaled=1 is used to allow surfaceflinger to
latch unsignal buffers that can give more time for buffer to render.
But if the buffer takes longer time to finish, it will block whole
display pipeline result to jank.

Bug: 157964883
Test: scrolling, launch
Change-Id: I56c3e05921de5fc9569bf3f93fde03022a64b6a4
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:15:45 +08:00
itsshashanksp
528e0d3d77 sm6150-common: memory: Enable SVELTE memory configuration
Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:15:45 +08:00
itsshashanksp
020560689e sm6150-common: rootdir: Drop suspend to idle mode
* Actually we don't use s2idle because of its buggy behavior.

Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:15:45 +08:00
itsshashanksp
64846319f5 sm6150-common: Include kernel dtb.img
Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:15:45 +08:00
7 changed files with 32 additions and 28 deletions

View File

@ -49,6 +49,10 @@ TARGET_NO_BOOTLOADER := true
# Camera # Camera
TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED := true TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED := true
# Malloc
MALLOC_SVELTE := true
MALLOC_SVELTE_FOR_LIBC32 := true
# Display # Display
TARGET_USES_COLOR_METADATA := true TARGET_USES_COLOR_METADATA := true
TARGET_USES_DISPLAY_RENDER_INTENTS := true TARGET_USES_DISPLAY_RENDER_INTENTS := true
@ -73,26 +77,40 @@ DEVICE_MANIFEST_FILE += hardware/qcom-caf/sm8150/media/conf_files/sm6150/c2_mani
DEVICE_MATRIX_FILE := hardware/qcom-caf/common/compatibility_matrix.xml DEVICE_MATRIX_FILE := hardware/qcom-caf/common/compatibility_matrix.xml
# Kernel # Kernel
TARGET_KERNEL_ARCH := $(TARGET_ARCH)
TARGET_KERNEL_HEADER_ARCH := $(TARGET_ARCH)
BOARD_KERNEL_BASE := 0x00000000 BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_IMAGE_NAME := Image.gz
BOARD_KERNEL_PAGESIZE := 4096 BOARD_KERNEL_PAGESIZE := 4096
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
BOARD_KERNEL_SEPARATED_DTBO := true BOARD_KERNEL_SEPARATED_DTBO := true
# Enable DTB in bootimage and set header version
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
# Kernel Path
TARGET_KERNEL_SOURCE := kernel/xiaomi/sm6150 TARGET_KERNEL_SOURCE := kernel/xiaomi/sm6150
TARGET_KERNEL_CONFIG := vendor/sdmsteppe-perf_defconfig TARGET_KERNEL_CONFIG := vendor/sdmsteppe-perf_defconfig
# Kernel Compile with Clang version
TARGET_KERNEL_CLANG_VERSION := r530567
# Kernel Build with LLVM tools
KERNEL_SUPPORTS_LLVM_TOOLS := true KERNEL_SUPPORTS_LLVM_TOOLS := true
TARGET_KERNEL_ADDITIONAL_FLAGS := LLVM=1 LLVM_IAS=1 TARGET_KERNEL_ADDITIONAL_FLAGS := LLVM=1 LLVM_IAS=1
KERNEL_LD := LD=ld.lld KERNEL_LD := LD=ld.lld
BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0x880000 # Kernel Cmdline
BOARD_KERNEL_CMDLINE += androidboot.hardware=qcom androidboot.console=ttyMSM0 BOARD_KERNEL_CMDLINE := \
BOARD_KERNEL_CMDLINE += androidboot.usbcontroller=a600000.dwc3 console=ttyMSM0,115200n8 \
BOARD_KERNEL_CMDLINE += service_locator.enable=1 earlycon=msm_geni_serial,0x880000 \
BOARD_KERNEL_CMDLINE += lpm_levels.sleep_disabled=1 androidboot.hardware=qcom \
BOARD_KERNEL_CMDLINE += loop.max_part=7 androidboot.console=ttyMSM0 \
androidboot.usbcontroller=a600000.dwc3 \
service_locator.enable=1 \
lpm_levels.sleep_disabled=1 \
loop.max_part=7
# Enable DTB in bootimage and set header version # Enable set header version
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
BOARD_BOOTIMG_HEADER_VERSION := 2 BOARD_BOOTIMG_HEADER_VERSION := 2
BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOTIMG_HEADER_VERSION) BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOTIMG_HEADER_VERSION)

View File

@ -1,10 +0,0 @@
[
{
"repository": "android_kernel_xiaomi_sm6150",
"target_path": "kernel/xiaomi/sm6150"
},
{
"repository": "android_hardware_xiaomi",
"target_path": "hardware/xiaomi"
}
]

View File

@ -252,6 +252,7 @@
<integer-array name="config_availableColorModes"> <integer-array name="config_availableColorModes">
<item>0</item> <!-- COLOR_MODE_NATURAL --> <item>0</item> <!-- COLOR_MODE_NATURAL -->
<item>1</item> <!-- COLOR_MODE_BOOSTED --> <item>1</item> <!-- COLOR_MODE_BOOSTED -->
<item>2</item> <!-- COLOR_MODE_SATURATED -->
<item>3</item> <!-- COLOR_MODE_AUTOMATIC --> <item>3</item> <!-- COLOR_MODE_AUTOMATIC -->
</integer-array> </integer-array>

View File

@ -36,4 +36,7 @@
<!-- Whether to show the Preference for Adaptive connectivity --> <!-- Whether to show the Preference for Adaptive connectivity -->
<bool name="config_show_adaptive_connectivity">false</bool> <bool name="config_show_adaptive_connectivity">false</bool>
<!-- Device specific doze package -->
<string name="config_customDozePackage" translatable="false">org.lineageos.settings/org.lineageos.settings.doze.DozeSettingsActivity</string>
</resources> </resources>

View File

@ -49,10 +49,6 @@
android:exported="false" android:exported="false"
android:label="@string/ambient_display_title" android:label="@string/ambient_display_title"
android:theme="@style/Theme.SubSettingsBase"> android:theme="@style/Theme.SubSettingsBase">
<intent-filter>
<action android:name="org.lineageos.settings.device.DOZE_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity> </activity>
<activity <activity

View File

@ -87,9 +87,6 @@ on boot
# Disable console_suspend to get better logging for kernel crashes # Disable console_suspend to get better logging for kernel crashes
write /sys/module/printk/parameters/console_suspend N write /sys/module/printk/parameters/console_suspend N
# Enable suspend to idle mode to reduce latency during suspend/resume
write /sys/power/mem_sleep "s2idle"
on property:sys.boot_completed=1 && property:init.svc.console=running on property:sys.boot_completed=1 && property:init.svc.console=running
# If UART is on, enable console_suspend on boot_complete to save power # If UART is on, enable console_suspend on boot_complete to save power
write /sys/module/printk/parameters/console_suspend Y write /sys/module/printk/parameters/console_suspend Y

View File

@ -135,7 +135,7 @@ persist.vendor.dpmhalservice.enable=1
debug.egl.hw=0 debug.egl.hw=0
debug.mdpcomp.logs=0 debug.mdpcomp.logs=0
debug.sf.auto_latch_unsignaled=0 debug.sf.auto_latch_unsignaled=0
debug.sf.disable_client_composition_cache=1 debug.sf.disable_backpressure=1
debug.sf.enable_gl_backpressure=0 debug.sf.enable_gl_backpressure=0
debug.sf.enable_transaction_tracing=false debug.sf.enable_transaction_tracing=false
debug.sf.use_phase_offsets_as_durations=1 debug.sf.use_phase_offsets_as_durations=1
@ -148,7 +148,6 @@ debug.sf.earlyGl.app.duration=21000000
debug.sf.enable_hwc_vds=1 debug.sf.enable_hwc_vds=1
debug.sf.hw=0 debug.sf.hw=0
debug.sf.predict_hwc_composition_strategy=0 debug.sf.predict_hwc_composition_strategy=0
debug.sf.latch_unsignaled=1
debug.sf.treat_170m_as_sRGB=1 debug.sf.treat_170m_as_sRGB=1
ro.hardware.egl=adreno ro.hardware.egl=adreno
ro.hardware.vulkan=adreno ro.hardware.vulkan=adreno