diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 3f7f485ac87d..cf5b01f3acf4 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -1308,7 +1308,12 @@ let HOTPLUG_PCI_PCIE = yes; # PCI-Expresscard hotplug support # Enable AMD's ROCm GPU compute stack - HSA_AMD = lib.mkIf stdenv.hostPlatform.is64bit (yes); + HSA_AMD = lib.mkIf stdenv.hostPlatform.is64bit yes; + # required for P2P DMABUF + DMABUF_MOVE_NOTIFY = lib.mkIf stdenv.hostPlatform.is64bit (whenAtLeast "6.6" yes); + # required for P2P transfers between accelerators + HSA_AMD_P2P = lib.mkIf stdenv.hostPlatform.is64bit (whenAtLeast "6.6" yes); + ZONE_DEVICE = lib.mkIf stdenv.hostPlatform.is64bit (yes); HMM_MIRROR = yes; DRM_AMDGPU_USERPTR = yes;