]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: stop checking GPU reset counter during VMID grab
authorChristian König <christian.koenig@amd.com>
Wed, 31 Jan 2018 10:21:23 +0000 (11:21 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:15 +0000 (14:19 -0500)
We do this later on when we flush the VMID anyway.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c

index ac31740d1cd37a38398efd94ce24580c8f5bc612..5761a659baf224f614cb11d2e89abc92ecd82e08 100644 (file)
@@ -266,8 +266,7 @@ static int amdgpu_vmid_grab_reserved_locked(struct amdgpu_vm *vm,
        bool needs_flush = vm->use_cpu_for_update;
 
        flushed  = id->flushed_updates;
-       if ((amdgpu_vmid_had_gpu_reset(adev, id)) ||
-           (id->owner != vm->entity.fence_context) ||
+       if ((id->owner != vm->entity.fence_context) ||
            (job->vm_pd_addr != id->pd_gpu_addr) ||
            (updates && (!flushed || updates->context != flushed->context ||
                        dma_fence_is_later(updates, flushed))) ||
@@ -350,9 +349,6 @@ int amdgpu_vmid_grab(struct amdgpu_vm *vm, struct amdgpu_ring *ring,
                bool needs_flush = vm->use_cpu_for_update;
 
                /* Check all the prerequisites to using this VMID */
-               if (amdgpu_vmid_had_gpu_reset(adev, id))
-                       continue;
-
                if (id->owner != vm->entity.fence_context)
                        continue;