It was leftover from when the driver supported drm sched
resubmit.  That was dropped long ago, so drop this as well.
Leaving this in place also causes userspace to treat
the context as innocent.  Removing this fixes reset behavior.

Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 673f65d54accd..4a16001434ea1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -5816,9 +5816,6 @@ int amdgpu_device_pre_asic_reset(struct amdgpu_device 
*adev,
 
        amdgpu_fence_driver_isr_toggle(adev, false);
 
-       if (job && job->vm)
-               drm_sched_increase_karma(&job->base);
-
        r = amdgpu_reset_prepare_hwcontext(adev, reset_context);
        /* If reset handler not implemented, continue; otherwise return */
        if (r == -EOPNOTSUPP)
-- 
2.52.0

Reply via email to