Commit graph

7702 commits

Author SHA1 Message Date
Ksawlii
79785752bf kernel_build: build-ksu.sh: Fix defconfig name 2025-01-17 21:15:31 +01:00
Ksawlii
da4998c695 kernel_build: build*.sh: Fix dates 2025-01-17 21:13:52 +01:00
Ksawlii
9d4b1ab85e include: net: Adapt for bbrplus 5.10 2025-01-17 21:00:27 +01:00
Ksawlii
f248210560 kernel_build: build*.sh: Add date variables, change kernel zip/tar path, modify kernel zip/tar name 2025-01-17 20:55:06 +01:00
Ksawlii
51a5eaa30b kernel_build: build*.sh: Delete word dir after
Looks better
2025-01-17 20:26:27 +01:00
Ksawlii
a87ec2f156 kernel_build: build*.sh: Make the next echo more readable 2025-01-17 20:23:49 +01:00
Ksawlii
5dd06b67b6 kernel_build: build*.sh: Nuke echo duplicate 2025-01-17 20:22:11 +01:00
blankaf
a10d2d996b exec: Extend task_is_booster check to cover newer perf HALs
These are used in devices with newer CAF baselines, hence cover them too.

Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com>
Signed-off-by: rezaadi0105 <rezaadipangestu5@gmail.com>
2025-01-17 20:18:51 +01:00
Panchajanya1999
c46896b509 exec: Add power@2.0 and IOP to tampering blacklist
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com>
Signed-off-by: rezaadi0105 <rezaadipangestu5@gmail.com>
2025-01-17 20:18:47 +01:00
Adam W. Willis
1d1f16ce99 exec: Extend task_is_booster check to cover OxygenOS userspace HALs
Subsequent to 2e20671 ("exec: Add node tampering blacklist function")

This device utilizes vendor.qti.hardware.perf@2.0-service, and
android.hardware.power@1.2-service respectively.

Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
Signed-off-by: Julian Liu <wlootlxt123@gmail.com>
Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com>
Signed-off-by: rezaadi0105 <rezaadipangestu5@gmail.com>
2025-01-17 20:18:43 +01:00
Danny Lin
00c4a222bb exec: Add node tampering blacklist function
We'll be adding checks to block writes from processes which tamper with
values that we control from within the kernel, especially ones that
userspace writes to for boosting. Add a central function to perform the
process check to reduce code duplication.

This blacklists the following processes which are known to tamper with
such values:
  - init
  - libperfmgr (power@1.3-servi and NodeLooperThrea)
  - perfd (perf@1.0-servic)
  - init.qcom.post_boot.sh (init.qcom.post_)

Signed-off-by: Danny Lin <danny@kdrag0n.dev>
Signed-off-by: Julian Liu <wlootlxt123@gmail.com>
Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com>
Signed-off-by: rezaadi0105 <rezaadipangestu5@gmail.com>
2025-01-17 20:18:34 +01:00
Ksawlii
1aaa0360e8 kernel_build: build*.sh: Tweak echo commands 2025-01-17 19:24:28 +01:00
Ksawlii
b419a4cf57 build.sh: Add an option to clean build dirs 2025-01-17 16:37:35 +01:00
Ksawlii
ca7685d6b1 build.sh: Exit after building 2025-01-17 00:06:58 +01:00
Ksawlii
46ef9e7f51 defconfigs: Regenerate with regen.sh 2025-01-17 00:03:07 +01:00
Ksawlii
642aac6c75 kernel_build: regen.sh Set CONFIG_KSU to =n after regeneration 2025-01-17 00:01:05 +01:00
Ksawlii
046f1b47c2 defconfigs: Regenerate with regen.sh 2025-01-16 23:53:44 +01:00
Ksawlii
f0a38abfb0 Ignore *.zip *.tar *.img.lz4 in kernel_build directory 2025-01-16 23:35:34 +01:00
Ksawlii
cbbab54bac Add a script to regenerate defconfigs 2025-01-16 23:32:03 +01:00
Tim Zimmermann
bdd9818338 net: wireless: scsc: Add support for NL80211_WPA_VERSION_3
* Required after V QPR1 wpa_supplicant updates

Change-Id: I0f09cc03ef11260e56c882c12f4f11be1bf2547e
2025-01-16 23:19:27 +01:00
Ksawlii
f697483a60 Makefile,kernel_build: Set PLATFORM_VERSION to 15.0 2025-01-16 23:19:19 +01:00
Nathan Chancellor
d57c773f75 UPSTREAM: Makefile: Only specify '--prefix=' when building with clang + GNU as
When building with LLVM_IAS=1, there is no point to specifying
'--prefix=' because that flag is only used to find GNU cross tools,
which will not be used indirectly when using the integrated assembler.
All of the tools are invoked directly from PATH or a full path specified
via the command line, which does not depend on the value of '--prefix='.

Sharing commands to reproduce issues becomes a little bit easier without
a '--prefix=' value because that '--prefix=' value is specific to a
user's machine due to it being an absolute path.

Some further notes from Fangrui Song:

  clang can spawn GNU as (if -f?no-integrated-as is specified) and GNU
  objcopy (-f?no-integrated-as and -gsplit-dwarf and -g[123]).
  objcopy is only used for GNU as assembled object files.
  With integrated assembler, the object file streamer creates .o and
  .dwo simultaneously.
  With GNU as, two objcopy commands are needed to extract .debug*.dwo to
  .dwo files && another command to remove .debug*.dwo sections.

A small consequence of this change (to keep things simple) is that
'--prefix=' will always be specified now, even with a native build, when
it was not before. This should not be an issue due to the way that the
Makefile searches for the prefix (based on elfedit's location). This
ends up improving the experience for host builds because PATH is better
respected and matches GCC's behavior more closely. See the below thread
for more details:

https://lore.kernel.org/r/20210205213651.GA16907@Ryzen-5-4500U.localdomain/

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
(cherry picked from commit eec08090bcc113643522d4272dc0b945045aba74)
Bug: 209655537
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I90f232a1551afb9118176a61ac5de38384a171fd
2025-01-16 23:17:02 +01:00
Nathan Chancellor
8e358dd764 UPSTREAM: Makefile: Remove '--gcc-toolchain' flag
This flag was originally added to allow clang to find the GNU cross
tools in commit 785f11aa595b ("kbuild: Add better clang cross build
support"). This flag was not enough to find the tools at times so
'--prefix' was added to the list in commit ef8c4ed9db80 ("kbuild: allow
to use GCC toolchain not in Clang search path") and improved upon in
commit ca9b31f6bb9c ("Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang
cross compilation"). Now that '--prefix' specifies a full path and
prefix, '--gcc-toolchain' serves no purpose because the kernel builds
with '-nostdinc' and '-nostdlib'.

This has been verified with self compiled LLVM 10.0.1 and LLVM 13.0.0 as
well as a distribution version of LLVM 11.1.0 without binutils in the
LLVM toolchain locations.

Link: https://reviews.llvm.org/D97902
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Fangrui Song <maskray@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
(cherry picked from commit c91d4e47e10ee4d3163838b1b727fe1d0664115b)
Bug: 209655537
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Ie1f64ed8562964ceba21e402a3d97850f6471508
2025-01-16 23:16:57 +01:00
Masahiro Yamada
d52b4aa77b UPSTREAM: kbuild: remove ld-version macro
There is no direct user of ld-version; you can use CONFIG_LD_VERSION
if needed.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Bug: 209655537
(cherry picked from commit 05f6bbf2d714309607d5533f0265a95d037610b4)
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: If7f82474beea2822340ee8503de5087336766223
2025-01-16 23:16:51 +01:00
LuK1337
4a42267412 Android: Add empty Android.mk file
* This prevents inclusion of drivers/staging/greybus/tools/Android.mk
  which will conflict in case we have more than 1 kernel tree in AOSP
  source dir.

Change-Id: I335bca7b6d6463b1ffc673ab5367603347516e13
2025-01-16 23:15:38 +01:00
Tim Zimmermann
6b53dc899e drivers: misc: samsung: scsc: fix build without CONFIG_SCSC_WLBTD
Change-Id: I13cba302b47e5353656bab86b725e128bdd5e628
2025-01-16 23:15:33 +01:00
Tim Zimmermann
39efa81db3 misc: samsung: scsc_bt: Always set transport unit size to 16
* Our firmware wants this to be 16 (PCM) instead of 0x00 (HCI)
* Removes the need for patching userspace

Change-Id: Ie88a682b5acc6ef73db5d35dbd336544ab0a1a2a
2025-01-16 23:15:22 +01:00
Tim Zimmermann
ac4a6294be battery: sm5714_fuelgauge: Use CHARGE_FULL capacity for CHARGE_COUNTER
Change-Id: Id43d7f233e9492d609eaf2510e85dee8f962c192
2025-01-16 23:09:28 +01:00
Tim Zimmermann
8ef191ee08 battery: sm5714_fuelgauge: Support CAPACITY_AGEDCELL
Change-Id: If9b68c2c931e3003edbbd4ac8a187fdeb5da76b0
2025-01-16 23:08:52 +01:00
Tim Zimmermann
bfbff4db95 drivers: net: wireless: scsc: update slsi_lls_peer_info struct for Android S
* In 359fa1d1ba
  there was a new field added to wifi_peer_info struct, our HAL expects these two
  to match - with the new change num_rate wasn't properly aligned anymore
  causing userspace to allocate a "random" amount of wifi_rate_stat structs

Change-Id: I791a5a26fbb5123d08a8280e3312946b7f89c45c
2025-01-16 23:08:36 +01:00
Tim Zimmermann
50596b1299 configs: s5e8825: Rename AP interface from swlan0 to wlan1
* Needed to get STA/AP concurrency working
* See https://source.android.com/devices/tech/connect/wifi-sta-ap-concurrency?hl=en

Change-Id: I9c3331d14e12325e12ac5af41590ad83ee37ec95
Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-16 23:08:04 +01:00
Tim Zimmermann
b01f73ace1 include: Move videodev2_exynos_media.h to uapi/linux
* For building `hardware/samsung_slsi-linaro/exynos` components after Blueprint transition.

Change-Id: Ida4dd16a5103bea9316638d6cdf6381f08407946
2025-01-16 23:07:16 +01:00
Tim Zimmermann
3358a70312 media: platform: exynos: camera: Fix enum-compare compilation error from clang 19
../../../../../../kernel/samsung/gta4xls/drivers/media/platform/exynos/camera/vendor/mcd_v2/is-vender.c:2686:65: error: comparison of different enumeration types ('enum camera2_sensor_hdr_mode' and 'enum is_senso
r_hdr_mode') [-Werror,-Wenum-compare]
 2686 |         return (((cis_shared_data *)cis_data)->is_data.sensor_hdr_mode == SENSOR_HDR_MODE_2AEB ? true : false);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~
1 error generated.

Change-Id: I8df427a0b86f3a6eff29554d16508f07703b50fb
2025-01-16 23:06:54 +01:00
Arjan van de Ven
54bab59901 fs: ext4: fsync: optimize double-fsync() a bunch
There are cases where EXT4 is a bit too conservative sending barriers down to
the disk; there are cases where the transaction in progress is not the one
that sent the barrier (in other words: the fsync is for a file for which the
IO happened more time ago and all data was already sent to the disk).

For that case, a more performing tradeoff can be made on SSD devices (which
have the ability to flush their dram caches in a hurry on a power fail event)
where the barrier gets sent to the disk, but we don't need to wait for the
barrier to complete. Any consecutive IO will block on the barrier correctly.

Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
(cherry picked from commit 74aa09a7751e438bd15b5cd73f611021b7239240)
(cherry picked from commit fa3bdf1a32cac074ff52403cb9ce18eb18c7f7d1)
2025-01-16 22:01:03 +01:00
ztc1997
8d7a99febf block: Do not allow boosters to adjusting scheduler 2025-01-16 21:58:52 +01:00
Nahuel Gómez
d3fdbe7c8a mm: default overcommit_ratio to 100
Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-16 21:58:05 +01:00
Ksawlii
bea7ef974b defconfigs: Increase log buffer to 1MB 2025-01-16 21:56:54 +01:00
Ksawlii
b1369a53be mm: Don't warn on page allocation failures for OOM-killed processes 2025-01-16 21:46:08 +01:00
Nahuel Gómez
5049015630 net: tcp: bbrplus for 5.10
Taken from: https://github.com/UJX6N/bbrplus-5.10

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-16 21:37:27 +01:00
Ksawlii
ebeaa159e3 android: Add scsi_device_resume 2025-01-16 21:35:18 +01:00
Ksawlii
09fb15e899 defconfig: Disable CONFIG_KSU on vanilla builds 2025-01-15 16:49:21 +01:00
Ksawlii
552619876d defconfigs: Regenerate with regenerate.sh
regenerate.sh: Best work frfr
2025-01-15 16:47:28 +01:00
Nahuel Gómez
1c7179186b configs: turn down undervolt to a safe value
We need to investigate reports of random reboots.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-15 16:40:13 +01:00
Nahuel Gómez
f4634f8802 fvmap: move undervolting settings to Kconfig
Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-15 16:40:04 +01:00
Nahuel Gómez
eb36a10226 exynos: acme: dumb down code to take in any freq table
Don't validate it, just take it.
This will make it much easier to tune CPU frequencies.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-15 16:39:44 +01:00
Nahuel Gómez
e89716836f configs: disable EFI support
We don't use it.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2025-01-15 16:39:25 +01:00
Ksawlii
98564339fe defconfigs: enable CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3 2025-01-15 16:39:12 +01:00
Ksawlii
40426ac858 drivers: fvmap.c: Deprecate voltage_offset
Forgot to nuke this dangerous shit, anyways moved undervolt to Kconfig (Thanks @Flopster101) so it can be controlled in defconfig without issues
2025-01-15 16:39:06 +01:00
Ksawlii
8167679483 Revert "skb_expand_head() adjust skb->truesize incorrectly"
This reverts commit 7f4081157dd46180087c7cad43e37b956dd3ea71.
2025-01-15 16:38:33 +01:00
Ksawlii
46676a78ff Revert "epoll: Add synchronous wakeup support for ep_poll_callback"
This reverts commit b718903719ca67c98f72863873dbedef8900ec2a.
2025-01-15 16:38:29 +01:00