]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/lima: use drm_sched_fault for error task handling
authorQiang Yu <yuq825@gmail.com>
Wed, 1 Jan 2020 10:38:31 +0000 (18:38 +0800)
committerQiang Yu <yuq825@gmail.com>
Thu, 9 Jan 2020 01:27:38 +0000 (09:27 +0800)
commit5c544dafc0722daa41b57cbd7c245186645474d5
treefbf963760d9bccaf32d2ad329d17670a209da8b6
parentda458286a5e288ad18500f89ae28cbbc7512b3e1
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
drivers/gpu/drm/lima/lima_sched.c
drivers/gpu/drm/lima/lima_sched.h