OSDN Git Service

drm/scheduler: rework entity flush, kill and fini
authorChristian König <christian.koenig@amd.com>
Thu, 29 Sep 2022 12:50:56 +0000 (14:50 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 3 Nov 2022 11:45:20 +0000 (12:45 +0100)
commit2fdb8a8f07c2f1353770a324fd19b8114e4329ac
treeabcf52a786761450b190b9321c8a47096cf6a93e
parent2cf9886e281678ae9ee57e24a656749071d543bb
drm/scheduler: rework entity flush, kill and fini

This was buggy because when we had to wait for entities which were
killed as well we would just deadlock.

Instead move all the dependency handling into the callbacks so that
will all happen asynchronously.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014084641.128280-13-christian.koenig@amd.com
drivers/gpu/drm/scheduler/sched_entity.c