drm/i915/selftests: Impose a timeout for request submission
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Jan 2020 11:42:30 +0000 (11:42 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Jan 2020 14:38:55 +0000 (14:38 +0000)
commit6d728d92d8cca7dcc2d04e468181933453ea1486
tree6501b3f0eafb06b97407750c7f0529624c1ac17a
parenta5799832c317d1505bb00a234ffd39db900f1613
drm/i915/selftests: Impose a timeout for request submission

Avoid spinning indefinitely waiting for the request to be submitted, and
instead apply a timeout. A secondary benefit is that the error message
will show which suspect is blocked.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200106114234.2529613-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c