]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sched: Declare entity idle only after HW submission
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 24 Jun 2021 14:08:50 +0000 (16:08 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 28 Jun 2021 11:16:49 +0000 (13:16 +0200)
commit59b21915c2f30beba88f568e7bd0c502c1b247ed
tree58f098068ed1f4a7909c7a9f9789dbe3e5046563
parent062e0daa7e4207066d225941385ae79a02bc2592
drm/sched: Declare entity idle only after HW submission

The panfrost driver tries to kill in-flight jobs on FD close after
destroying the FD scheduler entities. For this to work properly, we
need to make sure the jobs popped from the scheduler entities have
been queued at the HW level before declaring the entity idle, otherwise
we might iterate over a list that doesn't contain those jobs.

Suggested-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210624140850.2229697-1-boris.brezillon@collabora.com
drivers/gpu/drm/scheduler/sched_main.c