]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sched: Avoid infinite waits in the drm_sched_entity_destroy() path
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 2 Oct 2020 06:55:18 +0000 (08:55 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 5 Oct 2020 13:06:33 +0000 (15:06 +0200)
commit8452a5cf469fd6d932ff068631410cbffa5100e8
treedf3cea0adea84ed66528d39e1ce9aa4f9b221834
parent0cfcc893455f6693eb9e7e8858452956565103f0
drm/sched: Avoid infinite waits in the drm_sched_entity_destroy() path

If we don't initialize the entity to idle and the entity is never
scheduled before being destroyed we end up with an infinite wait in the
destroy path.

v2:
- Add Steven's R-b

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/393486/
drivers/gpu/drm/scheduler/sched_entity.c