Commit Graph

517 Commits

Author SHA1 Message Date
Fabián Heredia Montiel
884449105e Merge remote-tracking branch 'origin/master' into staging-next 2023-11-13 14:31:51 -06:00
Alyssa Ross
2e891693f2 linux_testing: 6.6-rc7 -> 6.7-rc1
ZSMALLOC is now the default allocator for ZSWAP, so if the allocator
isn't changed, ZSMALLOC must be y on 6.7 (and will default to that).
The script will set all options that can be modules to m anyway, so
there was no need for us to be explicitly setting it to module before
anyway.
2023-11-13 15:33:39 +01:00
8aed
ee137e017c linux: enable the NIST SP800-90A DRBG 2023-11-13 15:33:33 +01:00
github-actions[bot]
29efc257c0
Merge master into staging-next 2023-11-02 18:01:07 +00:00
K900
43c8fb938a
Merge pull request #255804 from sielicki/kernel-arm-alignment-compat
kernel/common-config: arm: configure alignment traps
2023-11-02 15:39:53 +03:00
André Vitor de Lima Matos
e00c606455 kernel: fix framebuffer console after 6.6
These options were already enabled in previous versions, but Kconfig
changes in 6.6 made NixOS kernel disable them. Therefore, we enable
unconditionally, to be explicit that they're needed.
Without them, the fbcon/console on systems with DRM devices freeze/blank
on early boot, even though the system boots normally.
2023-11-02 13:38:15 +01:00
github-actions[bot]
7f11b9b46b
Merge master into staging-next 2023-10-30 12:01:05 +00:00
K900
be33098cff linux/common-config: enable new security features for 6.6 2023-10-30 11:11:15 +03:00
Vladimír Čunát
6976205051
Merge #255683: linux_xanmod*: cleanup extra config
...into staging
2023-10-26 10:13:41 +02:00
Fabián Heredia Montiel
89962f3611 linux: cleanup common-config after drop of 4.14
Previous (4.9): https://github.com/NixOS/nixpkgs/pull/201845
2023-10-20 08:02:12 +00:00
hubofeverything
7eb259b1fb linux-kernel: Add HP drivers on 6.1+ 2023-09-23 18:58:14 +03:00
Nicholas Sielicki
b9495de12e kernel/common-config: arm: configure alignment traps
under armv7l, config.gz already had CONFIG_ALIGNMENT_TRAP=y, but
explicitly enable it and provide some context for the option.

under aarch64, on kernels that are new enough to support it, specify
CONFIG_COMPAT_ALIGNMENT_FIXUPS=y to attempt to resolve alignment
faults identically to how they are handled under 32-bit kernels. This
minimizes the potential for aarch32 userspace to behave differently
under an aarch64 kernel.
2023-09-17 23:14:09 -05:00
Atemu
45c01771fb linux/common-config: enable FSCACHE_STATS
Exposes /proc/fs/fscache/stats that shows some handy stats about fs caching. Can
be useful for debugging, so why not.
2023-09-17 15:39:04 +02:00
Kiskae
813e000742 linux_testing: 6.5-rc7 -> 6.6-rc1
rc1: https://lwn.net/Articles/944122/
2023-09-12 07:45:33 +00:00
github-actions[bot]
9f3079a7c3
Merge master into staging-next 2023-08-12 12:01:01 +00:00
Sergei Trofimovich
b93d18275c linux: disable KUNIT only at 5.5 and later
`KUNIT` knob was added around 5.5 release:
    914cc63eea
2023-08-12 08:13:57 +01:00
github-actions[bot]
37cdcaae78
Merge staging-next into staging 2023-08-09 12:01:51 +00:00
Yureka
80be2b22b0
linux: disable KUnit (#247826) 2023-08-09 09:54:07 +02:00
github-actions[bot]
8181d9443b
Merge staging-next into staging 2023-07-30 18:01:39 +00:00
Ryan Lahfa
a2a9595033
Merge pull request #244345 from RaitoBezarius/update/kernel-testing 2023-07-30 18:58:17 +02:00
github-actions[bot]
85536e3a09
Merge staging-next into staging 2023-07-29 00:02:36 +00:00
Ryan Lahfa
020ff5ccb5
Merge pull request #239780 from RaitoBezarius/nixos-for-aps 2023-07-28 23:12:36 +02:00
Adam Joseph
3aff655361 Revert "linuxManualConfig: install GDB scripts"
This reverts commit d57568fcad.
2023-07-28 12:32:03 -07:00
Florian Klink
45e44dd407 linuxPackages: set IP_ROUTE_MULTIPATH to yes
This already gets set to yes by the x86 defconfig, but is not set to
true on aarch64, which means you can't program IPv4 routes with multiple
nexthops there. Set this to y unconditionally, so we don't have this odd
mismatch between x86_64 and aarch64.
2023-07-20 11:00:20 +03:00
Raito Bezarius
e881a9cb1a linux_testing: 6.4-rc7 -> 6.5-rc2
`VIDEO_STK1160_COMMON` was removed in
 7f7ac101236bd020681f122089b611eca8e507ac ("media: stk1160: Simplify the build config definition").

This is now guarded for newer kernels.
2023-07-19 15:07:09 +02:00
Raito Bezarius
3b07356d2d linux/kernel/common-config: support DFS radiations for ath(9|10)k drivers
This enables shady options because upstream and Atheros probably didn't fix the issue
and their idea of "certification" is quite extreme.

We follow OpenWRT here and apply those changes to reduce "WTFs/min" for users
wondering what is the difference between OpenWRT and NixOS for their APs.

This was tested on Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter on a x86 machine
in the French regulatory domain on frequency 5600MHz, DFS was used successfully by hostapd
instead of a mind-boggling "device or resource busy" error which is what happens without those options.
2023-06-25 18:18:04 +02:00
github-actions[bot]
bc9cc8ad2f
Merge master into staging-next 2023-06-23 12:01:26 +00:00
K900
42e2cee85f kernel/common-config: fix DAMON version checks 2023-06-23 10:35:13 +03:00
K900
d4786b2a7c kernel/common-config: enable TPS68470 driver explicitly for old kernels 2023-06-23 10:32:17 +03:00
Alyssa Ross
0a81cf8e7a linux: set ZPOOL=y
ZBUD depends on ZPOOL.  If we get asked about ZPOOL first, by default
it would be set to m, and it would then not be possible to set ZBUD=y.

This fixes, for example, building Linux 5.15 for microblazeel-linux.
2023-06-22 12:26:50 +00:00
K900
23f23b5603 kernel/common-config: enable DAMON 2023-06-20 15:24:42 +03:00
K900
b79dc4496b kernel/common-config: enable CONFIG_PMIC_OPREGION and friends for Bay Trail
If you have one of these, know that at least nixpkgs still cares about you.
2023-06-20 15:24:42 +03:00
K900
9b6474dd6c kernel/common-config: enable AMD Zen BRS 2023-06-20 15:24:42 +03:00
K900
26db9b9527 linux/common-config: fix i686 2023-05-18 16:30:49 +03:00
Bernardo Meurer
26e7d76c49
Merge pull request #232262 from K900/dont-say-lazy 2023-05-17 11:34:58 -04:00
Alois Wohlschlager
b7ac30197b
linux: enable zram writeback
Zram needs CONFIG_ZRAM_WRITEBACK in order for writeback configuration
to work. Since there is even a NixOS option (zramSwap.writebackDevice)
for configuring writeback, it should be enabled.
2023-05-16 19:05:33 +02:00
K900
d6db303160 linux: enable RCU_LAZY where supported
Supposed to save some power at idle.
2023-05-16 19:18:58 +03:00
David McFarland
a4aa2c0476 linux: enable DRM_AMD_DC_FP on 6.4
In 6.4, DRM_AMD_DC_DCN is renamed to DRM_AMD_DC_FP.

Fixes: f5252cb7e0
2023-05-14 10:13:17 -03:00
github-actions[bot]
71874015ba
Merge master into staging-next 2023-05-10 12:01:10 +00:00
Alexandre Acebedo
f5252cb7e0 linux: fix 6.4-rc1 build 2023-05-09 13:22:29 +02:00
Jared Baur
8d4f643c66 linux: enable CR50 TPM found on chromebooks
Along with other ChromeOS related configs, this change
enables TPM support for Chromebook/Chromebox devices.
2023-05-08 20:29:43 +00:00
Atemu
8939c1042d
Merge pull request #223459 from lorenz/fix-ir-kernel-error
linux: fix error with IR remotes
2023-04-13 08:25:08 +02:00
Ionut Nechita
d645bba8c8 android: with new kernel versions this option is no longer necessary
Description:
 - ANDROID = { optional = true; tristate = whenBetween "5.0" "5.19" "y";};
 - starting from 5.20 and 6.0, this parameter no longer exists.

Change-Id: I34d6638e01eb539de34afe2152ff5927a317b68a
Signed-off-by: Ionut Nechita <ionut_n2001@yahoo.com>
2023-03-29 08:25:16 +03:00
Lorenz Brun
5a6490040c linux: fix error with IR remotes
Support for IR remotes was originally introduced in NixOS in 2013 with
[1]. This worked fine until 2018 with the release of Linux 4.16 which
contained [2], which removed the default-enable on the IR decoders.
This means that kernels since then build with RC_DEVICES enabled, but
RC_DECODERS disabled:
```
CONFIG_RC_DEVICES=y
```

This breaks IR remote support and also leads to the following error on
every bootup when such a device is present as devices have a default
keymap which uses a protocols decoder, but these decoders are not
available:
```
rc_core: Loaded IR protocol module ir-rc6-decoder, but protocol rc-6 still not available
```

Fix this by also enabling RC_DECODERS in the kernel configuration.

[1] b7ccfc258a
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=22756ae7319b0afc2a80fbdec365a6976a1ad350
2023-03-28 01:58:19 +02:00
Maximilian Bosch
e999433b3a
Merge pull request #221707 from NixOS/linuxManualConfig-unpack
linuxManualConfig: install GDB scripts
2023-03-20 20:42:10 +01:00
Alyssa Ross
d57568fcad
linuxManualConfig: install GDB scripts
These are required to debug kernel modules.  Since we're now able to
do that, there's another reason besides BTF to enable DEBUG_INFO, so
I've done that for pre-BTF kernel modules as well here.

For GDB to get configured correctly, vmlinux-gdb.py has to be two
directories up from scripts/gdb, and vmlinux has to be next to
vmlinux-gdb.py.  The least invasive way to satisfy these constraints
is to make vmlinux a symlink, which GDB will resolve before looking
for vmlinux-gdb.py.

Tested both ways of getting the scripts into GDB that I know of:

gdb /nix/store/7n77ijlxkxr6d613h02lr707kvjx6j1k-linux-6.1.19-dev/vmlinux \
    -iex 'add-auto-load-safe-path /nix/store/7n77ijlxkxr6d613h02lr707kvjx6j1k-linux-6.1.19-dev/lib/modules/6.1.19/build/vmlinux-gdb.py' \
    -ex 'lx-version' \
    -ex 'q'
gdb /nix/store/7n77ijlxkxr6d613h02lr707kvjx6j1k-linux-6.1.19-dev/vmlinux \
    -ex 'source /nix/store/7n77ijlxkxr6d613h02lr707kvjx6j1k-linux-6.1.19-dev/lib/modules/6.1.19/build/vmlinux-gdb.py' \
    -ex 'lx-version' \
    -ex 'q'

Also tested that the strip changes don't result in meaningful output
size changes (there's some small variation due to BTF data not always
coming out the same size, which is unrelated), and built every kernel
I can on x86_64 to make sure I'm not relying on build system behaviour
specific to newer kernels.
2023-03-20 00:09:52 +00:00
Ryan Lahfa
618ba94934
Merge pull request #210205 from 9ary/kernel-fonts
Build the large Terminus font into the kernel
2023-03-19 20:13:25 +01:00
Alexandre Acebedo
28065039e6 linux_testing: 6.2-rc6 -> 6.3-rc1 2023-03-12 13:42:10 +00:00
Astro
8f7e647c30 linux: enable VIRTIO_MMIO_CMDLINE_DEVICES 2023-02-27 22:39:23 +01:00
QuantMint
743bd1f29f linux: fix-build on i686 2023-02-19 21:04:50 +01:00