summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/common-config.nix
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2019-04-02 16:51:30 -0400
committerGitHub <noreply@github.com>2019-04-02 16:51:30 -0400
commit2f30b7924e7763a2fb9df6275599bd438230344e (patch)
treef9e981f5e3529997e5f54305d34d58ec217fb885 /pkgs/os-specific/linux/kernel/common-config.nix
parente23f1a227aadb2d779f84a65c8b5d9b02eac4527 (diff)
parent7d9d8874f5a842583db5b7fce9deba97dbdb31fe (diff)
downloadnixpkgs-2f30b7924e7763a2fb9df6275599bd438230344e.tar
nixpkgs-2f30b7924e7763a2fb9df6275599bd438230344e.tar.gz
nixpkgs-2f30b7924e7763a2fb9df6275599bd438230344e.tar.bz2
nixpkgs-2f30b7924e7763a2fb9df6275599bd438230344e.tar.lz
nixpkgs-2f30b7924e7763a2fb9df6275599bd438230344e.tar.xz
nixpkgs-2f30b7924e7763a2fb9df6275599bd438230344e.tar.zst
nixpkgs-2f30b7924e7763a2fb9df6275599bd438230344e.zip
Merge pull request #57885 from acowley/hsa_amd
linux: Enable AMD's amdkfd kernel driver in >= 4.20
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 ea73a4251f0..5711e019f95 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