From 8a4603f9c485aef1679b123ac4ac541fa9b269cf Mon Sep 17 00:00:00 2001 From: Anthony Cowley Date: Sat, 7 Dec 2019 11:06:42 -0500 Subject: [PATCH] linux: fix amdgpu memory mapping with kernel >= 5.3 These configuration options are needed for the ROCm GPU compute stack on kernels >= 5.3. --- 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 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;