Unverified Commit 5ad91d4b authored by K900's avatar K900 Committed by GitHub
Browse files

linux/common-config: enable DMABUF_MOVE_NOTIFY and HSA_AMD_P2P (#447016)

parents 326114df 447bba08
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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;