[PATCH 3/3] drm/amdkfd: remove an unnecessary amdgpu_bo_ref
Yu, Lang
Lang.Yu at amd.com
Thu Jul 28 02:33:03 UTC 2022
[Public]
Ping for this single patch.
>-----Original Message-----
>From: Yu, Lang <Lang.Yu at amd.com>
>Sent: Monday, July 25, 2022 6:32 PM
>To: amd-gfx at lists.freedesktop.org
>Cc: Kuehling, Felix <Felix.Kuehling at amd.com>; Koenig, Christian
><Christian.Koenig at amd.com>; Deucher, Alexander
><Alexander.Deucher at amd.com>; Huang, Ray <Ray.Huang at amd.com>; Yu, Lang
><Lang.Yu at amd.com>
>Subject: [PATCH 3/3] drm/amdkfd: remove an unnecessary amdgpu_bo_ref
>
>No need to reference the BO here, dmabuf framework will handle that.
>
>Signed-off-by: Lang Yu <Lang.Yu at amd.com>
>---
> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 1 -
> 1 file changed, 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
>b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
>index c1855b72a3f0..802c762108b2 100644
>--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
>+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
>@@ -827,7 +827,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;
> }
>--
>2.25.1
More information about the amd-gfx
mailing list