From 7d9d8874f5a842583db5b7fce9deba97dbdb31fe Mon Sep 17 00:00:00 2001 From: Anthony Cowley Date: Sun, 17 Mar 2019 22:28:25 -0400 Subject: [PATCH] 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. --- pkgs/os-specific/linux/kernel/common-config.nix | 3 +++ 1 file changed, 3 insertions(+) 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