diff options
author | Anthony Cowley <acowley@gmail.com> | 2019-12-07 11:06:42 -0500 |
---|---|---|
committer | Matthieu Coudron <coudron@iij.ad.jp> | 2019-12-08 18:52:43 +0100 |
commit | 8a4603f9c485aef1679b123ac4ac541fa9b269cf (patch) | |
tree | 0dd562181b87b55bc13f5e95d1d8a1bcb5cc4b98 | |
parent | 421e9248c13d4209007917c8093fc3bcf312c811 (diff) |
linux: fix amdgpu memory mapping with kernel >= 5.3
These configuration options are needed for the ROCm GPU compute stack on kernels >= 5.3.
-rw-r--r-- | pkgs/os-specific/linux/kernel/common-config.nix | 3 |
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 8158865ab2991..4bd86a702672a 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -717,6 +717,9 @@ let # Enable AMD's ROCm GPU compute stack HSA_AMD = whenAtLeast "4.20" yes; + ZONE_DEVICE = whenAtLeast "5.3" yes; + HMM_MIRROR = whenAtLeast "5.3" yes; + DRM_AMDGPU_USERPTR = whenAtLeast "5.3" yes; PREEMPT = no; PREEMPT_VOLUNTARY = yes; |