Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You Won't Believe These Performance & Battery Hacks #2

Open
wants to merge 24 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f15978b
ARM64: configs: surya: Enable CONFIG_HZ_300
Jun 1, 2024
a6b93ae
Revert "defconfig: set schedutil as the default governor"
taalojarvi Jun 1, 2024
a236be7
Revert "defconfig: enable FFC driver"
taalojarvi Jun 1, 2024
1751b5b
Revert "drivers: misc/power: Implement USB2 fast charge mode"
taalojarvi Jun 1, 2024
8cc3ed0
Revert "techpack/audio: Fix Ximi bug"
taalojarvi Jun 1, 2024
b25a00b
defconfig: Disable devfreq and CIB
taalojarvi Jun 1, 2024
c045bc8
drivers: power: Fix audio while charging
taalojarvi Jan 31, 2022
7402193
arm64: configs: Disable ThinLTO for performance impact
SENSEIIIII Jun 2, 2024
6815905
aw8624_haptic: Nuke useless firmware
Rasenkai May 6, 2021
f4300f3
ARM64: configs: surya: Remove sdcardfs
drosen-google Jun 2, 2024
43efa28
defconfig: Fix for SonyDualSenseEdge cts failures
Jun 2, 2024
acb51c9
Revert "Revert "techpack/audio: Fix Ximi bug""
taalojarvi Jul 13, 2024
025537e
Revert "drivers: power: Fix audio while charging"
taalojarvi Jul 13, 2024
808ae6f
Revert "defconfig: enable oplus memory management hacks"
taalojarvi Jul 13, 2024
456c5a5
Revert "mm: Import oplus memory management hacks"
taalojarvi Jul 13, 2024
372a9bc
zstd: Merge optimizations from Samsung
DevriesL Apr 20, 2019
c648d79
lib: zstd: Upgrade to latest upstream zstd version 1.5.4
cyberknight777 Feb 23, 2023
85730b3
lib/zstd: update to v1.5.5
RealJohnGalt Oct 3, 2023
3e22873
Makefile: Drop broken whole-program-vtables
RealJohnGalt Jul 13, 2024
bf0bd32
vmscan: Reduce swapping aggressiveness to 10
Panchajanya1999 Sep 30, 2022
dcc8179
Kernel/sched: Reduce latency for better responsiveness
holyangel Jun 12, 2016
a3dbdbf
Kernel/sched: Reduce Latency [Pafcholini]
friedrich420 Jan 16, 2015
4c7446f
Revert " arm64: configs: Disable ThinLTO for performance impact"
taalojarvi Jul 14, 2024
feb9059
ci_build.sh: Conditionally set Full LTO
taalojarvi Jul 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,7 @@ KBUILD_CFLAGS += -mcpu=cortex-a76.cortex-a55+crypto+crc
endif
ifeq ($(cc-name),clang)
KBUILD_CFLAGS += -mcpu=cortex-a76+crypto+crc
ifdef CONFIG_LTO_CLANG
KBUILD_CFLAG += -fwhole-program-vtables
endif

ifdef CONFIG_GCC_GRAPHITE
GRAPHITE_FLAGS += -floop-block \
-ftree-vectorize \
Expand Down
35 changes: 10 additions & 25 deletions arch/arm64/configs/surya_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,11 @@ CONFIG_HOLES_IN_ZONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y
CONFIG_PREEMPT_COUNT=y
CONFIG_HZ_100=y
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
CONFIG_HZ_300=y
# CONFIG_HZ_1000 is not set
CONFIG_HZ=100
CONFIG_HZ=300
CONFIG_SCHED_HRTICK=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
Expand Down Expand Up @@ -650,7 +650,6 @@ CONFIG_ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT=y
# CONFIG_PROCESS_RECLAIM is not set
# CONFIG_FORCE_ALLOC_FROM_DMA_ZONE is not set
CONFIG_VMSTAT_INTERVAL=20
CONFIG_OPLUS_MM_HACKS=y
CONFIG_LRU_GEN=y
CONFIG_LRU_GEN_ENABLED=y
# CONFIG_LRU_GEN_STATS is not set
Expand Down Expand Up @@ -765,12 +764,12 @@ CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_TIMES is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
Expand All @@ -784,16 +783,7 @@ CONFIG_SCHEDUTIL_DOWN_RATE_LIMIT_BIG=1000
CONFIG_SCHEDUTIL_UP_RATE_LIMIT_LITTLE=500
CONFIG_SCHEDUTIL_DOWN_RATE_LIMIT_LITTLE=20000
# CONFIG_CPU_FREQ_GOV_INTERACTIVE is not set
CONFIG_CPU_INPUT_BOOST=y
CONFIG_INPUT_BOOST_DURATION_MS=58
CONFIG_WAKE_BOOST_DURATION_MS=12298
CONFIG_INPUT_BOOST_FREQ_LP=1785600
CONFIG_INPUT_BOOST_FREQ_PERF=1401600
CONFIG_MAX_BOOST_FREQ_LP=0
CONFIG_MAX_BOOST_FREQ_PERF=0
CONFIG_MIN_FREQ_LP=0
CONFIG_MIN_FREQ_PERF=0

# CONFIG_CPU_INPUT_BOOST is not set
#
# CPU frequency scaling drivers
#
Expand Down Expand Up @@ -1515,7 +1505,6 @@ CONFIG_UID_SYS_STATS=y
# CONFIG_UID_SYS_STATS_DEBUG is not set
# CONFIG_QPNP_MISC is not set
CONFIG_LDO_WL2866D=y
CONFIG_FORCE_FAST_CHARGE=y
CONFIG_BATTERY_SAVER=y
# CONFIG_C2PORT is not set

Expand Down Expand Up @@ -3583,8 +3572,8 @@ CONFIG_HID_GENERIC=y
# CONFIG_HID_PETALYNX is not set
# CONFIG_HID_PICOLCD is not set
# CONFIG_HID_PLANTRONICS is not set
CONFIG_HID_PLAYSTATION=y
CONFIG_PLAYSTATION_FF=y
# CONFIG_HID_PLAYSTATION is not set
# CONFIG_PLAYSTATION_FF is not set
# CONFIG_HID_PRIMAX is not set
# CONFIG_HID_RETRODE is not set
# CONFIG_HID_ROCCAT is not set
Expand Down Expand Up @@ -4635,11 +4624,7 @@ CONFIG_DEVFREQ_SIMPLE_DEV=y
CONFIG_QCOM_DEVFREQ_DEVBW=y
# CONFIG_DEVFREQ_SPDM is not set
CONFIG_DEVFREQ_GOV_CDSPL3=y
CONFIG_DEVFREQ_BOOST=y
CONFIG_DEVFREQ_INPUT_BOOST_DURATION_MS=58
CONFIG_DEVFREQ_WAKE_BOOST_DURATION_MS=12298
CONFIG_DEVFREQ_MSM_CPUBW_BOOST_FREQ=12298
CONFIG_DEVFREQ_MSM_LLCCBW_BOOST_FREQ=5931
# CONFIG_DEVFREQ_BOOST is not set
# CONFIG_PM_DEVFREQ_EVENT is not set
CONFIG_EXTCON=y

Expand Down Expand Up @@ -5206,7 +5191,7 @@ CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_ECRYPT_FS is not set
CONFIG_SDCARD_FS=y
# CONFIG_SDCARD_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
Expand Down
9 changes: 8 additions & 1 deletion ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ tg_post_build() {
-F caption="$2 | *MD5 Checksum : *\`$MD5CHECK\`"
}

if [[ "$GITHUB_ACTIONS" =~ true ]]; then
echo -e "GitHub Actions runner detected. Switching to Full LTO"
sed -i 's/CONFIG_THINLTO=y/# CONFIG_THINLTO is not set/' arch/arm64/configs/surya_defconfig
else
echo -e "Skipping patch: $patch_file"
fi

# Make defconfig
# make $DEFCONFIG LD=aarch64-elf-ld.lld O=out/
make $DEFCONFIG -j$THREADS CC=clang LD=ld.lld AS=llvm-as AR=llvm-ar NM=llvm-nm OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump STRIP=llvm-strip O=out
Expand Down Expand Up @@ -112,4 +119,4 @@ curl -sLo zipsigner-3.0.jar https://github.com/Magisk-Modules-Repo/zipsigner/raw
java -jar zipsigner-3.0.jar UPDATE-AnyKernel3.zip Sunscape-$GITBRNCH-$BUILD_ID.zip
BUILD_END=$(date +"%s")
DIFF=$((BUILD_END - BUILD_START))
tg_post_build "Sunscape-$GITBRNCH-$BUILD_ID.zip" "Build took : $((DIFF / 60)) minute(s) and $((DIFF % 60)) second(s)"
tg_post_build "Sunscape-$GITBRNCH-$BUILD_ID.zip" "Build took : $((DIFF / 60)) minute(s) and $((DIFF % 60)) second(s)"
6 changes: 0 additions & 6 deletions drivers/misc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -600,12 +600,6 @@ config LDO_WL2866D
---help---
This option enables multi ldo wl2866d.

config FORCE_FAST_CHARGE
bool "Force faster charge rate for USB"
default n
help
This allows users to override default charge rate for USB

config BATTERY_SAVER
bool "Battery saver mode for kernelspace"
help
Expand Down
2 changes: 0 additions & 2 deletions drivers/misc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,3 @@ obj-$(CONFIG_OKL4_LINK_SHBUF) += okl4-link-shbuf.o
obj-$(CONFIG_AW8624_HAPTIC) += aw8624_haptic/
obj-$(CONFIG_DRV2624_HAPTIC) += drv2624_haptic/
obj-$(CONFIG_LDO_WL2866D) += wl2866d.o

obj-$(CONFIG_FORCE_FAST_CHARGE) += fastchg.o
122 changes: 0 additions & 122 deletions drivers/misc/aw8624_haptic/aw8624.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,128 +68,6 @@ static char *aw8624_ram_name = "aw8624_haptic.bin";

static char aw8624_rtp_name[][AW8624_RTP_NAME_MAX] = {
{"osc_rtp_24K_5s.bin"},
{"AcousticGuitar_RTP.bin"}, //21
{"Blues_RTP.bin"},
{"Candy_RTP.bin"},
{"Carousel_RTP.bin"},
{"Celesta_RTP.bin"},
{"Childhood_RTP.bin"},
{"Country_RTP.bin"},
{"Cowboy_RTP.bin"},
{"Echo_RTP.bin"},
{"Fairyland_RTP.bin"},
{"Fantasy_RTP.bin"},
{"Field_Trip_RTP.bin"},
{"Glee_RTP.bin"},
{"Glockenspiel_RTP.bin"},
{"Ice_Latte_RTP.bin"},
{"Kung_Fu_RTP.bin"},
{"Leisure_RTP.bin"},
{"Lollipop_RTP.bin"},
{"MiMix2_RTP.bin"},
{"Mi_RTP.bin"},
{"MiHouse_RTP.bin"},
{"MiJazz_RTP.bin"},
{"MiRemix_RTP.bin"},
{"Mountain_Spring_RTP.bin"},
{"Orange_RTP.bin"},
{"WindChime_RTP.bin"},
{"Space_Age_RTP.bin"},
{"ToyRobot_RTP.bin"},
{"Vigor_RTP.bin"},
{"Bottle_RTP.bin"},
{"Bubble_RTP.bin"},
{"Bullfrog_RTP.bin"},
{"Burst_RTP.bin"},
{"Chirp_RTP.bin"},
{"Clank_RTP.bin"},
{"Crystal_RTP.bin"},
{"FadeIn_RTP.bin"},
{"FadeOut_RTP.bin"},
{"Flute_RTP.bin"},
{"Fresh_RTP.bin"},
{"Frog_RTP.bin"},
{"Guitar_RTP.bin"},
{"Harp_RTP.bin"},
{"IncomingMessage_RTP.bin"},
{"MessageSent_RTP.bin"},
{"Moment_RTP.bin"},
{"NotificationXylophone_RTP.bin"},
{"Potion_RTP.bin"},
{"Radar_RTP.bin"},
{"Spring_RTP.bin"},
{"Swoosh_RTP.bin"}, //71
{"Gesture_UpSlide_RTP.bin"},
{"Gesture_UpHold_RTP.bin"},
{"Charge_Wire_RTP.bin"},
{"Charge_Wireless_RTP.bin"},
{"Unlock_Failed_RTP.bin"},
{"FOD_Motion1_RTP.bin"},
{"FOD_Motion2_RTP.bin"},
{"FOD_Motion3_RTP.bin"},
{"FOD_Motion4_RTP.bin"},
{"FaceID_Wrong1_RTP.bin"},
{"FaceID_Wrong2_RTP.bin"}, //82
{"uninstall_animation_rtp.bin"},
{"uninstall_dialog_rtp.bin"},
{"screenshot_rtp.bin"},
{"lockscreen_camera_entry_rtp.bin"},
{"launcher_edit_rtp.bin"},
{"launcher_icon_selection_rtp.bin"},
{"taskcard_remove_rtp.bin"},
{"task_cleanall_rtp.bin"},
{"new_iconfolder_rtp.bin"},
{"notification_remove_rtp.bin"},
{"notification_cleanall_rtp.bin"},
{"notification_setting_rtp.bin"},
{"game_turbo_rtp.bin"},
{"NFC_card_rtp.bin"},
{"wakeup_voice_assistant_rtp.bin"},
{"NFC_card_slow_rtp.bin"},
{"aw8624_rtp_1.bin"}, //99
{"aw8624_rtp_1.bin"}, //100
{"offline_countdown_RTP.bin"},
{"scene_bomb_injury_RTP.bin"},
{"scene_bomb_RTP.bin"}, //103
{"door_open_RTP.bin"},
{"aw8624_rtp_1.bin"},
{"scene_step_RTP.bin"}, //106
{"crawl_RTP.bin"},
{"scope_on_RTP.bin"},
{"scope_off_RTP.bin"},
{"magazine_quick_RTP.bin"},
{"grenade_RTP.bin"},
{"scene_getshot_RTP.bin"}, //112
{"grenade_explosion_RTP.bin"},
{"punch_RTP.bin"},
{"pan_RTP.bin"},
{"bandage_RTP.bin"},
{"aw8624_rtp_1.bin"},
{"scene_jump_RTP.bin"},
{"vehicle_plane_RTP.bin"}, //119
{"scene_openparachute_RTP.bin"}, //120
{"scene_closeparachute_RTP.bin"}, //121
{"vehicle_collision_RTP.bin"},
{"vehicle_buggy_RTP.bin"}, //123
{"vehicle_dacia_RTP.bin"}, //124
{"vehicle_moto_RTP.bin"}, //125
{"firearms_akm_RTP.bin"}, //126
{"firearms_m16a4_RTP.bin"}, //127
{"aw8624_rtp_1.bin"},
{"firearms_awm_RTP.bin"}, //129
{"firearms_mini14_RTP.bin"}, //130
{"firearms_vss_RTP.bin"}, //131
{"firearms_qbz_RTP.bin"}, //132
{"firearms_ump9_RTP.bin"}, //133
{"firearms_dp28_RTP.bin"}, //134
{"firearms_s1897_RTP.bin"}, //135
{"aw8624_rtp_1.bin"},
{"firearms_p18c_RTP.bin"}, //137
{"aw8624_rtp_1.bin"},
{"aw8624_rtp_1.bin"},
{"aw8624_rtp_1.bin"},
{"aw8624_rtp_1.bin"}, //141
{"aw8624_rtp_1.bin"},
};

struct aw8624_container *aw8624_rtp;
Expand Down
103 changes: 0 additions & 103 deletions drivers/misc/fastchg.c

This file was deleted.

Loading