]> git.baikalelectronics.ru Git - kernel.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)
commit198a1e5f0883b0a84f4f637dea3b743e5b2eb223
treefbf963760d9bccaf32d2ad329d17670a209da8b6
parent1f06ef4b77fe98e50a3b7fe320345ceb49be3852
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