Commit graph

7776 commits

Author SHA1 Message Date
Ksawlii
f270fd9224 Revert "Update susfs4ksu"
This reverts commit 85f7fc17fc.
2025-01-25 21:06:29 +01:00
Ksawlii
c81ada184a build: Add FIRE_DEFCONFIG variable 2025-01-25 14:22:51 +01:00
Ksawlii
fc177fe7bf fs: susfs.c: Set susfs_sus_su_working_mode to 2 2025-01-25 00:08:07 +01:00
Ksawlii
77d9ab5cac fs,include: Update susfs files 2025-01-25 00:06:52 +01:00
Ksawlii
f82861d603 Nuke patches/
Not needed anymore
2025-01-25 00:05:21 +01:00
Ksawlii
39b3566463 Nuke 50_add_susfs_in_gki-android12-5.10.patch 2025-01-25 00:04:38 +01:00
Ksawlii
85f7fc17fc Update susfs4ksu 2025-01-25 00:03:17 +01:00
Ksawlii
ceef61157f build: Change LOCALVERSION
Some apps might detect that a user is using a custom kernel if it has KernelSU,KSU,lineage,dirty in localversion, thank you @ThePedroo
2025-01-24 22:24:25 +01:00
Ksawlii
b7aa1ba8d8 Revert "cal-if: Fix compilation when debugfs is disabled"
This reverts commit 5599f77e14.
2025-01-23 23:02:22 +01:00
Ksawlii
15da988624 Revert "configs: disable DEBUG_FS and PAGE_OWNER/PINNER"
This reverts commit a11f1b3dd0.
2025-01-23 23:02:12 +01:00
Nahuel Gómez
6acef33578 gpu: arm/mali: do not select DEVFREQ_THERMAL
Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-23 19:51:10 +01:00
Nahuel Gómez
c54e723d54 configs: disable DEVFREQ_THERMAL
Not actually necessary as far as I know.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-23 19:51:07 +01:00
Nahuel Gómez
3fc5af75a5 configs: disable a lot of debug settings
* Referenced from: d1870483e4

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-23 19:50:50 +01:00
Nahuel Gómez
4035025e18 configs: disable profiling
We have the basic profiler implementation so we can do this.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-23 19:49:55 +01:00
Rafael J. Wysocki
e76c8f44b7 cpuidle: teo: Use kerneldoc documentation in admin-guide
There are two descriptions of the TEO (Timer Events Oriented) cpuidle
governor in the kernel source tree, one in the C file containing its
code and one in cpuidle.rst which is part of admin-guide.

Instead of trying to keep them both in sync and in order to reduce
text duplication, include the governor description from the C file
directly into cpuidle.rst.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2025-01-23 19:49:51 +01:00
Saravana Kannan
212effe101 pinctrl: gs-samsung: Finish initializing the gpios before registering them
As soon as a gpio is registered, it should be usable by a consumer.  So,
do all the initialization before registering the gpios. Without this
change, a consumer can request a GPIO IRQ and have the gpio to IRQ
mapping fail.

Change-Id: If3e264ab764c633f00fcc280db0e1f9a10af5efb
Signed-off-by: Saravana Kannan <saravanak@google.com>
(cherry picked from commit 32188bddc9d8ba8d5907882ed5bd1dc3a83662a9)
2025-01-23 19:49:23 +01:00
Sultan Alsawaf
5599f77e14 cal-if: Fix compilation when debugfs is disabled
Add a stub for cal_register_pd_lookup_cmu_id() when debugfs is disabled to
fix CONFIG_DEBUG_FS=n compilation.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
2025-01-23 19:49:18 +01:00
Nahuel Gómez
a11f1b3dd0 configs: disable DEBUG_FS and PAGE_OWNER/PINNER
CONFIG_PAGE_OWNER and CONFIG_PAGE_PINNER select DEBUG_FS, so I will disable them.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-23 19:49:14 +01:00
Sultan Alsawaf
7a02051d8c soc/google/cpif: Don't pin workers onto CPU2
There's no reason to pin workers onto CPU2. Instead, allow the workers to
run where the workqueue sees fit, most likely on the CPU which enqueues the
worker, which is better than always dumping the workers onto CPU2.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
2025-01-23 19:49:06 +01:00
Ksawlii
e117973ff8 build: Fix date variables 2025-01-22 23:07:45 +01:00
Ksawlii
41f24ef50b modules.load: Nuke plugin_dbg.ko 2025-01-22 23:06:52 +01:00
Ksawlii
1bb919f2d1 Reapply "configs: Nuke CONFIG_EXYNOS_ACPM_PLGDBG"
This reverts commit 8c6ac67a37.
2025-01-22 21:04:47 +01:00
Ksawlii
c8aa677b57 Revert "drivers: soc: samsung: acpm: disable lto"
This reverts commit 3a31abaa32.
2025-01-22 20:36:33 +01:00
Ksawlii
6dd26e10cb Revert "drivers: cal-if: fix build without CONFIG_CMUCAL_DEBUG"
This reverts commit 2d84789050.
2025-01-22 20:36:26 +01:00
Ksawlii
c76ef25f3f build: Add ccache support 2025-01-22 19:59:35 +01:00
Ksawlii
8c6ac67a37 Revert "configs: Nuke CONFIG_EXYNOS_ACPM_PLGDBG"
This reverts commit 73f0f98fb6.
2025-01-22 19:41:23 +01:00
Sultan Alsawaf
f5e2e1c94e acpm_dvfs: Remove sched_clock() calls
Calling the architected timer adds nontrivial overhead as observed in perf
top, especially since the DVFS functions are hot paths.

Remove all of the sched_clock() calls since they're unneeded by ACPM.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-22 12:05:44 +01:00
Nahuel Gómez
a5f833d5c7 cal-if: acpm_dvfs: guard secdbg_freq_check usage
Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-22 12:05:26 +01:00
Ksawlii
b72ccd1e47 .github: Adapt for a new build script 2025-01-22 11:12:19 +01:00
Ksawlii
0c6024b417 build: Tweak variables 2025-01-22 11:09:49 +01:00
Ksawlii
73f0f98fb6 configs: Nuke CONFIG_EXYNOS_ACPM_PLGDBG 2025-01-22 10:59:09 +01:00
xxmustafacooTR
3a31abaa32 drivers: soc: samsung: acpm: disable lto 2025-01-22 10:51:10 +01:00
Nahuel Gómez
2d84789050 drivers: cal-if: fix build without CONFIG_CMUCAL_DEBUG
Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-22 10:49:20 +01:00
Ksawlii
612d1468a3 configs: Nuke CONFIG_CMUCAL_DEBUG 2025-01-22 10:49:17 +01:00
Ksawlii
45a0d58af8 build: VANILLA_VANILLA_ARGS > VANILLA_ARGS variable 2025-01-22 10:10:17 +01:00
Ksawlii
2ee255693e build: Merge 2 build scripts in to 1
Made it possible by setting a variable FIREASF_VANILLA=true/false, its set automaticly when selecting a build option
2025-01-22 10:03:02 +01:00
Ksawlii
ba2a228c25 defconfigs: Regenerate with regen.sh 2025-01-21 21:38:42 +01:00
Nahuel Gómez
8ad48c3eca cpufreq,configs: remove energystep references
This driver isn't even compatible with our kernel version, though it is present in the ems folder.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-21 21:34:17 +01:00
Nahuel Gómez
c51d003719 configs: enable NTFS read-write support
Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-21 21:32:35 +01:00
Nahuel Gómez
4d8a45c523 Revert "drivers: soc: samsung: acpm: disable lto"
This was applied to fix a suspected reboot issue, but it turns out this was not the source of it.

This reverts commit ed828ec374bbd9f3a538a0c92421e9e0074b078f.
2025-01-21 21:30:36 +01:00
Sultan Alsawaf
6c7dd7bf70 sched: Disable TTWU_QUEUE
Queuing wake-ups is not measurably beneficial in any way. Disable it.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
[Flopster101: Apply to new way of setting features.]
Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-21 21:30:11 +01:00
Nahuel Gómez
838ee567b9 Revert "ARM64: dts/s5e8825: GPU undervolt to 790mV"
This never actually worked, as undervolting is handled in a different way.

This reverts commit 1464058ebd26ae4fa3f3b1fbbfaf84e8c5d74fee.
2025-01-21 21:28:55 +01:00
freak07
58659caf1a treewide: use power efficient workingqueues
(cherry picked from commit 8ddf75b4fb1d7b54a795c1dc70bf480a5f049603)
(cherry picked from commit dbf96ce6987d4361b4135124b81cb40b269366c5)
(cherry picked from commit 3291d145fade85cef2830b9d28fe1c90e154ba9c)
2025-01-21 21:28:39 +01:00
ztc1997
7f393c3513 cpufreq: {schedutil, schedhorizon}: Allow single-CPU frequency to drop without idling
Given that a CPU's clock is gated at even the shallowest idle state,
waiting until a CPU idles at least once before reducing its frequency is
putting the cart before the horse. For long-running workloads with low
compute needs, requiring an idle call since the last frequency update to
lower the CPU's frequency results in significantly increased energy usage.

Given that there is already a mechanism in place to ratelimit frequency
changes, this heuristic is wholly unnecessary.

Allow single-CPU performance domains to drop their frequency without
requiring an idle call in between to improve energy. Right off the bat,
this reduces CPU power consumption by 7.5% playing a cat gif in Firefox on
a Pixel 8 (270 mW -> 250 mW). And there is no visible loss of performance.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
2025-01-21 21:28:32 +01:00
ztc1997
0e4add4b71 schedhorizon: Sync with schedutil 2025-01-21 21:28:28 +01:00
ztc1997
2a7073f6d6 schedhorizon: Introduce schedhorizon cpufreq governor
* This is a modified version of schedutil, introducing two new tunables: "efficient_freq" and "up_delay".
* Only raise cpufreq to the non-efficient one (higher than effcient frequencies) if the governor keeps requiring non-efficient frequencies for more than up_delay time.
* Override the new frequencies with the efficient one if the consecutive request time doesn't reach up_delay.
* The two tunables support multiple args, e.g. you can set "1248000 1401600" for "efficient_freq" and set "50 60" for "up_delay", which means it would wait 50ms before raising the frequency to 1248mhz and wait for 60ms before raising the frequency to 1401mhz.

[Flopster101: move the kconfig entry to the proper section.]
2025-01-21 21:28:17 +01:00
Nahuel Gómez
f32e4cfc40 configs: disable ssg and set kyber as the default I/O scheduler
Performs well on our UFS storage.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-21 21:26:41 +01:00
Nahuel Gómez
b6bbd6efd2 configs: enable 'schedhorizon' gov and set as default
Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-21 21:24:10 +01:00
Nahuel Gómez
010342f95f configs: disable Debug Snapshot API
The driver itself will stay enabled, but we can disable the API.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-21 21:20:34 +01:00
Nahuel Gómez
9c13012c2d cpufreq: apply init protection for governor
Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-21 21:20:26 +01:00