diff options
author | Qiang Yu <yuq825@gmail.com> | 2020-01-01 18:38:31 +0800 |
---|---|---|
committer | Qiang Yu <yuq825@gmail.com> | 2020-01-09 09:27:38 +0800 |
commit | 5c544dafc0722daa41b57cbd7c245186645474d5 (patch) | |
tree | fbf963760d9bccaf32d2ad329d17670a209da8b6 /drivers/gpu/drm/lima/lima_sched.h | |
parent | da458286a5e288ad18500f89ae28cbbc7512b3e1 (diff) |
drm/lima: use drm_sched_fault for error task handling
drm_sched_job_timedout works with drm_sched_stop as a pair,
so we'd better use the drm_sched_fault helper to make the
error and timeout handling go the same path.
This also fixes application hang when task error.
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Tested-by: Andreas Baierl <ichgeh@imkreisrum.de>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200101103831.22429-1-yuq825@gmail.com
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.h')
-rw-r--r-- | drivers/gpu/drm/lima/lima_sched.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/lima/lima_sched.h b/drivers/gpu/drm/lima/lima_sched.h index 928af91c1118..1d814fecbcc0 100644 --- a/drivers/gpu/drm/lima/lima_sched.h +++ b/drivers/gpu/drm/lima/lima_sched.h @@ -68,8 +68,6 @@ struct lima_sched_pipe { void (*task_fini)(struct lima_sched_pipe *pipe); void (*task_error)(struct lima_sched_pipe *pipe); void (*task_mmu_error)(struct lima_sched_pipe *pipe); - - struct work_struct error_work; }; int lima_sched_task_init(struct lima_sched_task *task, |