summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/common-config.nix
diff options
context:
space:
mode:
authorAnthony Cowley <acowley@gmail.com>2019-03-17 22:28:25 -0400
committerAnthony Cowley <acowley@gmail.com>2019-03-17 22:28:25 -0400
commit7d9d8874f5a842583db5b7fce9deba97dbdb31fe (patch)
tree8029a5cdd650bb56c0eeece5781edfb8c57002d2 /pkgs/os-specific/linux/kernel/common-config.nix
parentda1a2b1eeafa66b4419b4f275396d8a731eccb61 (diff)
downloadnixpkgs-7d9d8874f5a842583db5b7fce9deba97dbdb31fe.tar
nixpkgs-7d9d8874f5a842583db5b7fce9deba97dbdb31fe.tar.gz
nixpkgs-7d9d8874f5a842583db5b7fce9deba97dbdb31fe.tar.bz2
nixpkgs-7d9d8874f5a842583db5b7fce9deba97dbdb31fe.tar.lz
nixpkgs-7d9d8874f5a842583db5b7fce9deba97dbdb31fe.tar.xz
nixpkgs-7d9d8874f5a842583db5b7fce9deba97dbdb31fe.tar.zst
nixpkgs-7d9d8874f5a842583db5b7fce9deba97dbdb31fe.zip
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.
Diffstat (limited to 'pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 18911044579..46b862da1b7 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -681,6 +681,9 @@ let
       HOTPLUG_PCI_ACPI = yes; # PCI hotplug using ACPI
       HOTPLUG_PCI_PCIE = yes; # PCI-Expresscard hotplug support
 
+      # Enable AMD's ROCm GPU compute stack
+      HSA_AMD = whenAtLeast "4.20" yes;
+
     } // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux") {
       # Enable memory hotplug support
       # Allows you to dynamically add & remove memory to a VM client running NixOS without requiring a reboot