linux-imx/drivers/gpu/drm/etnaviv
Lucas Stach 92d3ca3f46 drm/etnaviv: don't block scheduler when GPU is still active
commit 704d3d60fe upstream.

Since 45ecaea738 ("drm/sched: Partial revert of 'drm/sched: Keep
s_fence->parent pointer'") still active jobs aren't put back in the
pending list on drm_sched_start(), as they don't have a active
parent fence anymore, so if the GPU is still working and the timeout
is extended, all currently active jobs will be freed.

To avoid prematurely freeing jobs that are still active on the GPU,
don't block the scheduler until we are fully committed to actually
reset the GPU.

As the current job is already removed from the pending list and
will not be put back when drm_sched_start() isn't called, we must
make sure to put the job back on the pending list when extending
the timeout.

Cc: stable@vger.kernel.org #6.0
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-03 08:54:32 +02:00
..
cmdstream.xml.h
common.xml.h
etnaviv_buffer.c drm/etnaviv: slow down FE idle polling 2023-06-21 15:18:14 +02:00
etnaviv_cmd_parser.c
etnaviv_cmdbuf.c
etnaviv_cmdbuf.h
etnaviv_drv.c
etnaviv_drv.h
etnaviv_dump.c
etnaviv_dump.h
etnaviv_gem_prime.c drm/etnaviv: fix reference leak when mmaping imported buffer 2023-03-30 17:47:05 +02:00
etnaviv_gem_submit.c drm/etnaviv: move runtime PM handling to events 2023-07-17 11:32:13 +02:00
etnaviv_gem.c drm/etnaviv: fix DMA direction handling for cached RW buffers 2024-08-03 08:53:52 +02:00
etnaviv_gem.h
etnaviv_gpu.c
etnaviv_gpu.h
etnaviv_hwdb.c
etnaviv_iommu_v2.c
etnaviv_iommu.c
etnaviv_mmu.c
etnaviv_mmu.h
etnaviv_perfmon.c
etnaviv_perfmon.h
etnaviv_sched.c drm/etnaviv: don't block scheduler when GPU is still active 2024-08-03 08:54:32 +02:00
etnaviv_sched.h
Kconfig
Makefile
state_3d.xml.h
state_blt.xml.h
state_hi.xml.h
state.xml.h