Revert "drm/amdgpu: Don't inherit GEM object VMAs in child process"
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Mon, 10 Jan 2022 17:14:10 +0000 (12:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jan 2022 20:44:27 +0000 (15:44 -0500)
This reverts commit fbcdbfde87509d523132b59f661a355c731139d0.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c

index 9a6507af16703b07f4b0e4c9d8f52a53961cd23c..c0d8f40a5b45cb861c27bd226ee2f4293a74d00c 100644 (file)
@@ -264,9 +264,6 @@ static int amdgpu_gem_object_mmap(struct drm_gem_object *obj, struct vm_area_str
            !(vma->vm_flags & (VM_READ | VM_WRITE | VM_EXEC)))
                vma->vm_flags &= ~VM_MAYWRITE;
 
-       if (bo->kfd_bo)
-               vma->vm_flags |= VM_DONTCOPY;
-
        return drm_gem_ttm_mmap(obj, vma);
 }