drm/amdgpu: Remove one duplicated ef removal
authorjsg <jsg@openbsd.org>
Thu, 18 Aug 2022 00:46:01 +0000 (00:46 +0000)
committerjsg <jsg@openbsd.org>
Thu, 18 Aug 2022 00:46:01 +0000 (00:46 +0000)
From xinhui pan
e45491556e2ae96d02eb4ccf18a5cc6ff2d30edc in linux 5.15.y/5.15.61
e1aadbab445b06e072013a1365fd0cf2aa25e843 in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c

index 898a235..8bbc279 100644 (file)
@@ -1318,16 +1318,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--;