Commit graph

7764 commits

Author SHA1 Message Date
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
Nahuel Gómez
41b2ee9adb sound: samsung/abox: also allow disabling abox_debug
Affected by CONFIG_SND_SOC_SAMSUNG_DEBUG.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-21 21:19:44 +01:00
Nahuel Gómez
f8342c269f fvmap: remove G3D undervolting
As can be seen in the device-tree, this domain is unused for our device:

			devfreq_g3d {
				dm-index = <0x08>;
				available = "false";
				cal_id = <0xb040008>;
				dm_type_name = "dm_gpu";
			};

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-21 21:19:39 +01:00
Nahuel Gómez
2552d29cfe fs: susfs: default to sus_su mode 2
This is equivalent to using manual hooks.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-21 21:19:25 +01:00
Ksawlii
0ddcd18c3a configs,modules.load: Nuke SEC_PM_DEBUG 2025-01-20 12:13:11 +01:00
Nahuel Gómez
1166bf9afc vboot_dlkm: remove sec_audio_debug module
Unused now.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-20 11:09:24 +01:00
Nahuel Gómez
6ee48af6a6 sound: abox: make debugging code optional
sec_audio_debug can now be built by enabling CONFIG_SND_SOC_SAMSUNG_DEBUG.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-20 11:05:06 +01:00
Ksawlii
f4bef3316b Revert "modules.load: Nuke sec_pm_debug.ko and sec_audio_debug.ko"
This reverts commit 0606c9a1d2.
2025-01-19 22:03:05 +01:00
Ksawlii
ff935ccefe Revert "dts: Nuke abox-dbg and abox-debug stuff"
This reverts commit 6e318661f7.
2025-01-19 21:30:50 +01:00
Ksawlii
dcbdc227f1 Revert "ANDROID: binder: fix ptrdiff_t printk-format issue"
This reverts commit 1c68de3f24.
2025-01-19 21:13:55 +01:00
Ksawlii
5d542492e1 Revert "BACKPORT: FROMGIT: binder: fix memleak of proc->delivered_freeze"
This reverts commit 7f900cc47b.
2025-01-19 21:06:46 +01:00
Ksawlii
447c8f90c8 Revert "BACKPORT: FROMGIT: binder: add delivered_freeze to debugfs output"
This reverts commit 9b5b1ffec3.
2025-01-19 21:01:28 +01:00
Ksawlii
1b696e9b5d Revert "workqueue: Make queue_rcu_work() use call_rcu_flush()"
This reverts commit d9f15863ae.
2025-01-19 20:29:35 +01:00