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 /pkgs/os-specific | |
parent | 421e9248c13d4209007917c8093fc3bcf312c811 (diff) | |
download | nixpkgs-8a4603f9c485aef1679b123ac4ac541fa9b269cf.tar nixpkgs-8a4603f9c485aef1679b123ac4ac541fa9b269cf.tar.gz nixpkgs-8a4603f9c485aef1679b123ac4ac541fa9b269cf.tar.bz2 nixpkgs-8a4603f9c485aef1679b123ac4ac541fa9b269cf.tar.lz nixpkgs-8a4603f9c485aef1679b123ac4ac541fa9b269cf.tar.xz nixpkgs-8a4603f9c485aef1679b123ac4ac541fa9b269cf.tar.zst nixpkgs-8a4603f9c485aef1679b123ac4ac541fa9b269cf.zip |
linux: fix amdgpu memory mapping with kernel >= 5.3
These configuration options are needed for the ROCm GPU compute stack on kernels >= 5.3.
Diffstat (limited to 'pkgs/os-specific')
-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 8158865ab29..4bd86a70267 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; |