drm/etnaviv: Use DRM_GPU_SCHED_STAT_NO_HANG to skip the reset
authorMaíra Canal <mcanal@igalia.com>
Mon, 14 Jul 2025 22:07:07 +0000 (19:07 -0300)
committerMaíra Canal <mcanal@igalia.com>
Tue, 15 Jul 2025 11:27:08 +0000 (08:27 -0300)
commit8902c2b17a6ec723ab7924bc4113bef47603c0dc
tree2f43a66f276d044879f08f6130e703a70507d0e2
parent6b37fbacd087fbd517b6b276ca8bebd1dc052fb7
drm/etnaviv: Use DRM_GPU_SCHED_STAT_NO_HANG to skip the reset

Etnaviv can skip a hardware reset in two situations:

  1. TDR has fired before the free-job worker and the timeout is spurious.
  2. The GPU is still making progress on the front-end and we can give
     the job 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: Lucas Stach <l.stach@pengutronix.de>
Link: https://lore.kernel.org/r/20250714-sched-skip-reset-v6-6-5c5ba4f55039@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
drivers/gpu/drm/etnaviv/etnaviv_sched.c