diff options
author | Jonathan Teh <30538043+jonathan-teh@users.noreply.github.com> | 2021-03-10 17:40:30 +0000 |
---|---|---|
committer | Jonathan Teh <30538043+jonathan-teh@users.noreply.github.com> | 2021-03-10 17:40:30 +0000 |
commit | 29e7b1ff8235009706338ea9c9853a24ec329b02 (patch) | |
tree | 836c96eae1246f94d93bd72092579cb53228ddd7 /pkgs/os-specific/linux/kernel/common-config.nix | |
parent | 396b7066bfcb3bc43150c8335ece437bb1a16c8e (diff) | |
download | nixpkgs-29e7b1ff8235009706338ea9c9853a24ec329b02.tar nixpkgs-29e7b1ff8235009706338ea9c9853a24ec329b02.tar.gz nixpkgs-29e7b1ff8235009706338ea9c9853a24ec329b02.tar.bz2 nixpkgs-29e7b1ff8235009706338ea9c9853a24ec329b02.tar.lz nixpkgs-29e7b1ff8235009706338ea9c9853a24ec329b02.tar.xz nixpkgs-29e7b1ff8235009706338ea9c9853a24ec329b02.tar.zst nixpkgs-29e7b1ff8235009706338ea9c9853a24ec329b02.zip |
linux: enable NVMe Multipath
Enable NVME_MULTIPATH so that a single /dev/nvmeXnY device will show up for each NVMe namespaces, even if it is accessible through multiple controllers. Can be disabled at boot with `nvme_core.multipath=0`. This is default enabled in Debian [1], Ubuntu 20.04 [2] , Arch [3] and Fedora 33 [4]. [1]: https://salsa.debian.org/kernel-team/linux/-/blob/debian/5.10.19-1/debian/config/config#L4362 [2]: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/focal/tree/debian.master/config/config.common.ubuntu?h=Ubuntu-5.4.0-67.75#n6722 [3]: https://git.archlinux.org/svntogit/packages.git/tree/trunk/config?h=packages/linux#n2423 [4]: https://src.fedoraproject.org/rpms/kernel/blob/f33/f/kernel-x86_64-fedora.config#_4338
Diffstat (limited to 'pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/common-config.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 5e749ed3fcf..4fef56077c0 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -772,6 +772,8 @@ let MLX4_EN_VXLAN = whenOlder "4.8" yes; MLX5_CORE_EN = option yes; + NVME_MULTIPATH = whenAtLeast "4.15" yes; + PSI = whenAtLeast "4.20" yes; MODVERSIONS = whenOlder "4.9" yes; |