]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdkfd: remove an unnecessary amdgpu_bo_ref
authorLang Yu <Lang.Yu@amd.com>
Mon, 25 Jul 2022 07:06:55 +0000 (15:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jul 2022 20:26:01 +0000 (16:26 -0400)
No need to reference the BO here, dmabuf framework will handle that.

Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c

index 87a3a3ae94481d93660acbfe7525afc7fd9b2557..a699134a1e8cf5dd8c92fd0ddfe2f1a449eb3b7b 100644 (file)
@@ -778,7 +778,6 @@ kfd_mem_attach_dmabuf(struct amdgpu_device *adev, struct kgd_mem *mem,
 
        *bo = gem_to_amdgpu_bo(gobj);
        (*bo)->flags |= AMDGPU_GEM_CREATE_PREEMPTIBLE;
-       (*bo)->parent = amdgpu_bo_ref(mem->bo);
 
        return 0;
 }