]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/v3d: Use DRM_GPU_SCHED_STAT_NO_HANG to skip the reset
authorMaíra Canal <mcanal@igalia.com>
Mon, 14 Jul 2025 22:07:06 +0000 (19:07 -0300)
committerMaíra Canal <mcanal@igalia.com>
Tue, 15 Jul 2025 11:27:07 +0000 (08:27 -0300)
commit6b37fbacd087fbd517b6b276ca8bebd1dc052fb7
treeeb6d1c05d172ce9398c582fbcd9948edc6405e37
parent1472e7549f84c472a9ebb9a8bb0aaafe985ea608
drm/v3d: Use DRM_GPU_SCHED_STAT_NO_HANG to skip the reset

When a CL/CSD job times out, we check if the GPU has made any progress
since the last timeout. If so, instead of resetting the hardware, we skip
the reset and allow the timer to be rearmed. This gives long-running jobs
a chance to complete.

Instead of manipulating scheduler's internals, inform the scheduler that
the job did not actually timeout and no reset was performed through
the new status code DRM_GPU_SCHED_STAT_NO_HANG.

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Link: https://lore.kernel.org/r/20250714-sched-skip-reset-v6-5-5c5ba4f55039@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
drivers/gpu/drm/v3d/v3d_sched.c