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

Panfrost can skip the reset if TDR has fired before the free-job worker.
Currently, since Panfrost doesn't take any action on these scenarios, the
job is being leaked, considering that `free_job()` won't be called.

To avoid such leaks, 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: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20250714-sched-skip-reset-v6-8-5c5ba4f55039@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
drivers/gpu/drm/panfrost/panfrost_job.c