lkml.org 
[lkml]   [2022]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.16 0902/1039] Revert "drm/amdgpu: Dont inherit GEM object VMAs in child process"
    Date
    From: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>

    commit 8b5da5a458c95ad49571a6a6285800bf13409616 upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 3 ---
    1 file changed, 3 deletions(-)

    --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
    +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
    @@ -264,9 +264,6 @@ static int amdgpu_gem_object_mmap(struct
    !(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);
    }


    \
     
     \ /
      Last update: 2022-01-25 00:11    [W:4.025 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site