OSDN Git Service

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)
commit624bb0c08b8298cbc6a16f9c68edc93f767716ec
tree77e8359a096192108b1ea1359bcf0d75b45dfa6c
parent408633d2e740221204100efb9c3eed71f39aacd0
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