]> 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)
commit1d0c8b2db73fd9da9cb24d637c703ac589f708d5
tree77e8359a096192108b1ea1359bcf0d75b45dfa6c
parent267fceeb7650dc4e7b66e10fe4bcc5f9f3ad7081
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