1
0
Fork 0
alistair23-linux/drivers/gpu/drm/v3d
Andrey Grodzovsky 222b5f0441 drm/sched: Refactor ring mirror list handling.
Decauple sched threads stop and start and ring mirror
list handling from the policy of what to do about the
guilty jobs.
When stoppping the sched thread and detaching sched fences
from non signaled HW fenes wait for all signaled HW fences
to complete before rerunning the jobs.

v2: Fix resubmission of guilty job into HW after refactoring.

v4:
Full restart for all the jobs, not only from guilty ring.
Extract karma increase into standalone function.

v5:
Rework waiting for signaled jobs without relying on the job
struct itself as those might already be freed for non 'guilty'
job's schedulers.
Expose karma increase to drivers.

v6:
Use list_for_each_entry_safe_continue and drm_sched_process_job
in case fence already signaled.
Call drm_sched_increase_karma only once for amdgpu and add documentation.

v7:
Wait only for the latest job's fence.

Suggested-by: Christian Koenig <Christian.Koenig@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-01-25 16:15:36 -05:00
..
Kconfig drm/v3d: add CONFIG_MMU dependency 2018-05-30 12:15:18 -07:00
Makefile drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+ 2018-05-03 16:26:30 -07:00
v3d_bo.c drm/v3d: Fix prime imports of buffers from other drivers. 2018-11-30 13:47:34 -08:00
v3d_debugfs.c drm/v3d: Skip debugfs dumping GCA on platforms without GCA. 2018-10-15 13:10:54 -07:00
v3d_drv.c drm/v3d: Add support for submitting jobs to the TFU. 2018-11-30 13:03:32 -08:00
v3d_drv.h drm/v3d: Drop unused v3d_flush_caches(). 2018-12-07 10:55:57 -08:00
v3d_fence.c drm/v3d: Add missing fence timeline name for TFU. 2018-12-03 11:24:58 -08:00
v3d_gem.c drm/v3d: Invalidate the caches from the outside in. 2018-12-07 10:56:51 -08:00
v3d_irq.c drm/v3d: Add more tracepoints for V3D GPU rendering. 2018-12-03 11:26:23 -08:00
v3d_mmu.c drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+ 2018-05-03 16:26:30 -07:00
v3d_regs.h drm/v3d: Add support for submitting jobs to the TFU. 2018-11-30 13:03:32 -08:00
v3d_sched.c drm/sched: Refactor ring mirror list handling. 2019-01-25 16:15:36 -05:00
v3d_trace.h drm/v3d: Add more tracepoints for V3D GPU rendering. 2018-12-03 11:26:23 -08:00
v3d_trace_points.c drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+ 2018-05-03 16:26:30 -07:00