]> git.hungrycats.org Git - linux/commit
drm/panthor: Don't declare a queue blocked if deferred operations are pending
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Sep 2024 07:19:14 +0000 (09:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:01:07 +0000 (12:01 +0200)
commit9c8c396ba700c534dcd67c543305b710338df2be
tree279a640cd05e57ece276a80b8c1973fb437fb56b
parentac2ca5e5148a0d4d78ac01c2d8348d0757c7367f
drm/panthor: Don't declare a queue blocked if deferred operations are pending

commit 7a1f30afe97294281a2ba05977688385744f9844 upstream.

If deferred operations are pending, we want to wait for those to
land before declaring the queue blocked on a SYNC_WAIT. We need
this to deal with the case where the sync object is signalled through
a deferred SYNC_{ADD,SET} from the same queue. If we don't do that
and the group gets scheduled out before the deferred SYNC_{SET,ADD}
is executed, we'll end up with a timeout, because no external
SYNC_{SET,ADD} will make the scheduler reconsider the group for
execution.

Fixes: de8548813824 ("drm/panthor: Add the scheduler logical block")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240905071914.3278599-1-boris.brezillon@collabora.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/panthor/panthor_sched.c