1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 02:51:18 +00:00
Commit graph

255 commits

Author SHA1 Message Date
Lassulus bc4921a584
Merge pull request #73328 from magenbluten/af_xdp
linux config: add support for xdp sockets and ebpf jit
2020-01-13 05:54:57 +01:00
Anthony Cowley 8a4603f9c4 linux: fix amdgpu memory mapping with kernel >= 5.3
These configuration options are needed for the ROCm GPU compute stack
on kernels >= 5.3.
2019-12-08 18:52:43 +01:00
Izorkin 928fdab4a1 linux: add in kernel 5.4 lockdown feature 2019-12-07 12:06:23 +01:00
Tim Steinbach 0e670a2e67
linux: Add CRYPTO_AEGIS128_SIMD for aarch64
See comments: 9b67ea9106
2019-11-28 09:21:06 -05:00
magenbluten af808bd826 linux config: add support for xdp sockets and ebpf jit
xdp socket support (AF_XDP) is the new way of implementing high
performance networking on linux. on arch linux and debian this is
already enabled (checked via the links from the nixos manual).

moreover, these flags are suggested by the bpf documentation at cilium:

https://cilium.readthedocs.io/en/latest/bpf/#compiling-the-kernel

additionally the flag `BPF_JIT_ALWAYS_ON` on was suggested to help
spectre attack mitigations:

290af86629
2019-11-17 17:20:23 +01:00
Tim Steinbach 0973f67fd0
linux: Enable KEYBOARD_APPLESPI
This is available for 5.3+ and enables support for
Apple trackpads and keyboards

Closes #71552
2019-10-23 09:03:16 -04:00
Jörg Thalheim 334921ad31
Merge pull request #66841 from Izorkin/kernel-nftables
nftables: enable all features in kernel
2019-10-16 13:39:55 +01:00
Izorkin c1fd98f626 nftables: enable all features 2019-10-15 19:19:43 +03:00
Jörg Thalheim 14a6713aef
linux: remove deprecated kernel config options
Our oldest kernel is 4.4. That's why we can remove configurations that only
applies to kernels older than that.
2019-10-14 11:43:18 +01:00
Jörg Thalheim 827f8a33f7
Merge pull request #69388 from ivan/kernel-inet-diag
kernel/common-config: enable INET_{TCP,UDP,RAW}_DIAG and INET_DIAG_DESTROY
2019-09-26 08:50:54 +01:00
Ivan Kozik 6df3156696 kernel/common-config: enable INET_{TCP,UDP,RAW}_DIAG and INET_DIAG_DESTROY 2019-09-24 21:39:02 +00:00
Ivan Kozik 97cc421cdd kernel/common-config: enable SCHED_DEBUG 2019-09-24 20:29:04 +00:00
Jörg Thalheim 9dd99b7735
Merge pull request #67268 from michaelpj/imp/intel-rapl
kernel: set POWERCAP and INTEL_RAPL
2019-09-23 08:06:23 +01:00
Franz Pletz 471ba8e2e6
linux: build rtw88 module
Adds support for Realtek wireless/bluetooth cards found in some Lenovo
laptops. The old `r8822be` module was removed in favour of this one.
2019-09-10 02:00:15 +02:00
Tim Steinbach 6d6c3f66b0 linux: 5.2-rc7 -> 5.3-rc5 2019-09-09 14:25:31 -04:00
Samuel Dionne-Riel 667712abe4
Merge pull request #68312 from mat8913/patch-2
kernel: Enable X86_AMD_PLATFORM_DEVICE
2019-09-09 09:33:22 -04:00
Matthew Harm Bekkema 2e94b9853c
kernel: Enable X86_AMD_PLATFORM_DEVICE
This is needed to get the toupad working on my Acer Nitro laptop.
2019-09-09 00:22:27 +10:00
Cole Mickens 35bcacc226 linux-kernel: HID_BATTERY_STRENGTH=yes 2019-09-05 17:47:39 +02:00
Florian Klink cb8d815b5b linux/kernel: enable QoS and/or fair queueing
This allows to set queueing disciplines different than a simple fifo,
like fq_codel, which is the default in systemd since quite some time.

NET_SCHED is already set in the kernels x86_64_defconfig, but not on
arm/aarch64, so let's set it here.
2019-09-01 02:37:09 +02:00
Michael Peyton Jones 299e6f07d2
kernel: set POWERCAP and INTEL_RAPL
These enable some power management settings. They are needed for [s-tui
to show power readings](https://github.com/amanusk/s-tui/issues/105).

The values chosen here match what Arch Linux has. In particular
the Intel specific code is loadable as a module rather than compiled in.
2019-08-22 18:11:50 +01:00
Aaron Andersen 3d1905e3f5 linux/kernel: enable automatic cpu hotplug support 2019-07-23 06:23:56 -04:00
Samuel Dionne-Riel 7c819989f9
Merge pull request #63147 from samueldr/aarch64/graphics-fixes
aarch64: misc. graphical boot fixes
2019-06-24 14:53:01 -04:00
Samuel Dionne-Riel adc62907a6 linux: Enables support for the Allwinner Display Engine 2.0 2019-06-15 14:26:20 -04:00
duck 4cd1dd5dc9
linux: enable config option for raw HID devices
This flag allows for things like Uninterruptable Power Supplies to work properly. See https://cateee.net/lkddb/web-lkddb/USB_HIDDEV.html for more information.
2019-06-14 23:15:12 +01:00
dsx 643de9b82c linux: Enable IPv6 support for IPVS (CONFIG_IP_VS_IPV6) 2019-06-08 08:23:48 +00:00
Frederik Rietdijk d4464ff8fe Merge master into staging-next 2019-05-16 08:17:55 +02:00
Linus Heckemann 1d37727453
Merge pull request #61162 from lheckemann/kernel-preempt-voluntary
Kernel config: use PREEMPT_VOLUNTARY
2019-05-14 17:37:19 +02:00
Frederik Rietdijk 8abe5ee07e Merge master into staging-next 2019-05-14 10:23:13 +02:00
Linus Heckemann e4c269813c kernel/common-config: PREEMPT -> PREEMPT_VOLUNTARY 2019-05-08 19:42:24 +02:00
Linus Heckemann ac6337058a kernel/common-config: move criu to its own set
It was previously in the "test" set, which seemed an inappropriate
placement.
2019-05-08 19:40:39 +02:00
Ambroz Bizjak c6934f347a kernel: Disable VirtualBox guest modules.
These break the modules from VirtualBox additions. Fixes issue https://github.com/NixOS/nixpkgs/issues/58127.
2019-05-04 21:14:30 +02:00
Alyssa Ross 58d0134da0
linux: set CONFIG_DRM_VMWGFX_FBCON y
Fixes https://github.com/NixOS/nixpkgs/issues/58070, and brings NixOS
into line with Ubuntu/Fedora/Arch/etc.

Tested that all kernels in Nixpkgs that build before this change build
after it.
2019-05-02 11:13:10 +00:00
Samuel Dionne-Riel 2f30b7924e
Merge pull request #57885 from acowley/hsa_amd
linux: Enable AMD's amdkfd kernel driver in >= 4.20
2019-04-02 16:51:30 -04:00
Tim Steinbach 9ba43c07cb
linux: 5.0-rc8 -> 5.1-rc2 2019-03-31 14:37:51 -04:00
Anthony Cowley 7d9d8874f5 linux: Enable AMD's amdkfd kernel driver in >= 4.20
The amdkfd driver was built (and loaded when support was detected)
without explicit configuration in kernels 4.17-4.19, but not in newer
kernels.
2019-03-17 22:28:25 -04:00
Austin Seipp 3a1f39e1de
kernel: enable pressure stall information on 4.20+
Closes #56207.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-02-22 12:47:37 -06:00
Dan Callahan 0ea8c6e3de
linux: Enable support for Self-Encrypting Drives
To quote block/Kconfig:

> Builds Logic for interfacing with Opal enabled controllers.
> Enabling this option enables users to setup/unlock/lock
> Locking ranges for SED devices using the Opal protocol.

Without `BLK_SED_OPAL`, it is impossible to resume from sleep when using
a locked self-encrypting drive.

This configuration option appeared in earlier kernels, but only reached
maturity in 4.14 according to discussion at:

- https://github.com/Drive-Trust-Alliance/sedutil/issues/90 and
- https://github.com/Drive-Trust-Alliance/sedutil/pull/190

This kernel option is enabled in the default kernels shipped with
Fedora, Debian, and other mainstream Linux distributions.
2019-02-21 12:14:47 +00:00
Linus Heckemann be38a70184 linux: enable SND_OSSEMUL
Fixes #54074
2019-02-18 17:11:37 +01:00
Matthieu Coudron 7aacbdb898 linux: convert hardened-config to a structured one 2019-01-28 09:07:24 +09:00
Matthieu Coudron 3bb7b3f02e linux: ability to merge structured configs
This should make the composability of kernel configurations more straigthforward.

- now distinguish freeform options from tristate ones
- will look for a structured config in kernelPatches too
one can now access the structuredConfig from a kernel via linux_test.configfile.structuredConfig
in order to reinject it into another kernel, no need to rewrite the config from scratch

The following merge strategies are used in case of conflict:
-- freeform items must be equal or they conflict (mergeEqualOption)
-- for tristate (y/m/n) entries, I use the mergeAnswer strategy which takes the best available value, "best" being defined by the user (by default "y" > "m" > "n", e.g. if one entry is both marked "y" and "n", "y" wins)
-- if one item is both marked optional/mandatory, mandatory wins (mergeFalseByDefault)
2019-01-28 09:06:33 +09:00
Vladimír Čunát 3fa77297b5
linux: avoid memory hotplug support on most platforms
It broke i686 build, and it's probably not worth it on others, too.
/cc #54095 e63414078a.
2019-01-19 19:22:02 +01:00
Vladimír Čunát 23eb5e846d
Merge #54095: linux: enable memory hotplug support 2019-01-19 16:26:01 +01:00
Aaron Andersen e63414078a Enable memory hotplug support 2019-01-18 13:17:33 +00:00
Danylo Hlynskyi 23a13b562c
kernel config: add support for CONFIG_SQUASHFS_ZSTD (#52967)
Also, allow override `make-squashfs.nix` compression parameters.
2019-01-17 15:24:44 +02:00
Tim Steinbach 97aba92bcd
linux: 4.20-rc7 -> 5.0-rc1 2019-01-07 07:57:38 -05:00
Tim Steinbach 98ac5710bd
kernel-config: CIFS_POSIX no longer exists 2018-12-21 09:10:17 -05:00
Jörg Thalheim e7a9fc2fca
Merge pull request #49470 from grahamc/enable-mlx5core-by-default
kernel: enable MLX5_CORE_EN when possible
2018-11-30 17:55:45 +00:00
Orivej Desh 08d98b2e38 linux: enable CGROUP_HUGETLB, CGROUP_PERF, CGROUP_RDMA (#50225)
These options were added in:

NAMESPACES 2.6.25
CGROUP_DEVICE 2.6.26
CGROUP_HUGETLB 3.6
CGROUP_PERF 2.6.39
CGROUP_RDMA 4.11
2018-11-13 01:13:00 +00:00
Graham Christensen d65b39a805 kernel: enable MLX5_CORE_EN when possible
Hydra's builders from Packet.net use this option a lot, causing
lots of slow deploys.
2018-10-30 17:29:37 +01:00
John Ericson 2c2f1e37d4 reewide: Purge all uses stdenv.system and top-level system
It is deprecated and will be removed after 18.09.
2018-08-30 17:20:32 -04:00