From: Prike Liang <prike.li...@amd.com>

Update the reset counter for the amdgpu_cs_query_reset_state()

Signed-off-by: Prike Liang <prike.li...@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
Signed-off-by: Alex Deucher <alexander.deuc...@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
index 5d4883df64d8..7107c4d3a3b6 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
@@ -80,6 +80,7 @@ static enum drm_gpu_sched_stat amdgpu_job_timedout(struct 
drm_sched_job *s_job)
                r = amdgpu_ring_reset(ring, job->vmid);
                if (!r) {
                        /* XXX: these are required for subsequent jobs to work 
*/
+                       atomic_inc(&ring->adev->gpu_reset_counter);
                        amdgpu_fence_driver_clear_job_fences(ring);
                        amdgpu_fence_driver_force_completion(ring);
                        drm_sched_increase_karma(s_job);
-- 
2.45.2

Reply via email to