Unverified Commit 447bba08 authored by Luna's avatar Luna
Browse files

linux/common-config: enable DMABUF_MOVE_NOTIFY and HSA_AMD_P2P

These flags are required for P2P transfers between accelerators.
DMABUF_MOVE_NOTIFY is generic for DMABUF but mainly used by ROCm.
HSA_AMD_P2P is ROCm specific.

Enabling for 6.6+ despite support in 6.1+ as I recall these features
being somewhat buggy when initially introduced.
parent 3546c921
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1307,7 +1307,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;