mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 01:24:12 +08:00
drm/lima: fix sched context destroy
The drm sched entity must be flushed before finishing, to account for jobs potentially still in flight at that time. Lima did not do this flush until now, so switch the destroy call to the drm_sched_entity_destroy() wrapper which will take care of that. This fixes a regression on lima which started since the rework in commit2fdb8a8f07
("drm/scheduler: rework entity flush, kill and fini") where some specific types of applications may hang indefinitely. Fixes:2fdb8a8f07
("drm/scheduler: rework entity flush, kill and fini") Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230606143247.433018-1-nunes.erico@gmail.com
This commit is contained in:
parent
411360257c
commit
6eea63c709
@ -165,7 +165,7 @@ int lima_sched_context_init(struct lima_sched_pipe *pipe,
|
||||
void lima_sched_context_fini(struct lima_sched_pipe *pipe,
|
||||
struct lima_sched_context *context)
|
||||
{
|
||||
drm_sched_entity_fini(&context->base);
|
||||
drm_sched_entity_destroy(&context->base);
|
||||
}
|
||||
|
||||
struct dma_fence *lima_sched_context_queue_task(struct lima_sched_task *task)
|
||||
|
Loading…
Reference in New Issue
Block a user