diff options
author | Bojan Radovic <Bojan.Radovic@amd.com> | 2020-08-20 16:34:05 +0200 |
---|---|---|
committer | Marko Zekovic <Marko.Zekovic@amd.com> | 2020-09-22 17:04:55 +0200 |
commit | b29cd4677d7b29381b851a24cedb6d7cd15f747b (patch) | |
tree | bb19a497d1b152909b2bcb2572635100e68fbce8 | |
parent | 8b1d728b2ff45bb285fd9858d7f1fb03cbb3b6f1 (diff) |
drm/amdgpu: Fix for timeout after TDR
Adding update of guilty flag for job that caused hang in amdgpu_device_gpu_recover
Change-Id: Ia6db7231d1aa47b4ad6223e66161bc7e35207511
Signed-off-by: Bojan Radovic <Bojan.Radovic@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index d04526f2a0ff..c34b1a6751b5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -4542,6 +4542,9 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev, goto skip_hw_reset; } + if(job) + drm_sched_increase_karma(&job->base); + retry: /* Rest of adevs pre asic reset from XGMI hive. */ list_for_each_entry(tmp_adev, device_list_handle, gmc.xgmi.head) { r = amdgpu_device_pre_asic_reset(tmp_adev, |