drm/amdgpu: Remove one duplicated ef removal
authorxinhui pan <xinhui.pan@amd.com>
Fri, 8 Jul 2022 01:22:44 +0000 (09:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Jul 2022 19:33:17 +0000 (15:33 -0400)
That has been done in BO release notify.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Acked-by: Christian König <christian.koenig@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 41c2bf4d9345bd55dea1f7e5fab97b33d2cf032e..581c7ae411020b2d5a87502279dfc151ee267607 100644 (file)
@@ -1541,16 +1541,10 @@ void amdgpu_amdkfd_gpuvm_destroy_cb(struct amdgpu_device *adev,
                                    struct amdgpu_vm *vm)
 {
        struct amdkfd_process_info *process_info = vm->process_info;
-       struct amdgpu_bo *pd = vm->root.bo;
 
        if (!process_info)
                return;
 
-       /* Release eviction fence from PD */
-       amdgpu_bo_reserve(pd, false);
-       amdgpu_bo_fence(pd, NULL, false);
-       amdgpu_bo_unreserve(pd);
-
        /* Update process info */
        mutex_lock(&process_info->lock);
        process_info->n_vms--;