]> git.baikalelectronics.ru Git - kernel.git/commit
drm/v3d: Delay the scheduler timeout if we're still making progress.
authorEric Anholt <eric@anholt.net>
Tue, 3 Jul 2018 17:05:12 +0000 (10:05 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 5 Jul 2018 18:42:49 +0000 (11:42 -0700)
commit5bdf0401fd60d949556155062f8714bd1203a3c7
tree77e8359a096192108b1ea1359bcf0d75b45dfa6c
parent089e52dba93c251eba61c94aaba848406bbe64a0
drm/v3d: Delay the scheduler timeout if we're still making progress.

GTF-GLES2.gtf.GL.acos.acos_float_vert_xvary submits jobs that take 4
seconds at maximum resolution, but we still want to reset quickly if a
job is really hung.  Sample the CL's current address and the return
address (since we call into tile lists repeatedly) and if either has
changed then assume we've made progress.

Signed-off-by: Eric Anholt <eric@anholt.net>
Cc: Lucas Stach <l.stach@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20180703170515.6298-1-eric@anholt.net
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
drivers/gpu/drm/v3d/v3d_drv.h
drivers/gpu/drm/v3d/v3d_regs.h
drivers/gpu/drm/v3d/v3d_sched.c