diff options
author | Christian König <christian.koenig@amd.com> | 2023-04-27 15:05:43 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2023-05-03 11:56:04 +0300 |
commit | 03877d621db082610c9b7602c6e8cd6ebcb75a8f (patch) | |
tree | 35fc430181ae88098c42ca8cabacd8cfd989ff05 /drivers/gpu/drm/scheduler | |
parent | bfdede3a58ea970333d77a05144a7bcec13cf515 (diff) | |
download | linux-03877d621db082610c9b7602c6e8cd6ebcb75a8f.tar.xz |
drm/scheduler: mark jobs without fence as canceled
When no hw fence is provided for a job that means that the job didn't executed.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230427122726.1290170-1-christian.koenig@amd.com
Diffstat (limited to 'drivers/gpu/drm/scheduler')
-rw-r--r-- | drivers/gpu/drm/scheduler/sched_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c index 8d248ce233c8..3e2d453296dd 100644 --- a/drivers/gpu/drm/scheduler/sched_main.c +++ b/drivers/gpu/drm/scheduler/sched_main.c @@ -542,7 +542,7 @@ void drm_sched_start(struct drm_gpu_scheduler *sched, bool full_recovery) DRM_DEV_ERROR(sched->dev, "fence add callback failed (%d)\n", r); } else - drm_sched_job_done(s_job, 0); + drm_sched_job_done(s_job, -ECANCELED); } if (full_recovery) { |