]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/lima: fix sched context destroy
authorErico Nunes <nunes.erico@gmail.com>
Tue, 6 Jun 2023 14:32:47 +0000 (16:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 09:16:49 +0000 (11:16 +0200)
commitdada3ba887f90f994f4607f73eb6d65b0a1365c8
treedf46961838408af70e5f630091d9d5fcf33f1643
parentd2d15270080824c30a6a395ad0912c5db7f5a64d
drm/lima: fix sched context destroy

[ Upstream commit 6eea63c7090b20ee41032d3e478e617b219d69aa ]

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
commit 2fdb8a8f07c2 ("drm/scheduler: rework entity flush, kill and fini")
where some specific types of applications may hang indefinitely.

Fixes: 2fdb8a8f07c2 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/lima/lima_sched.c