]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/selftests: Check timeout before flush and cond checks
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Mar 2020 12:16:44 +0000 (13:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Mar 2020 16:56:00 +0000 (17:56 +0100)
commit4b379a48ded0cb4d95471edfe91d55fe41f1d120
tree5631b74fcb2d246d8db62ea2dc15c7a9da0758ba
parent8b6d457f953290b494e05444ad920fc4baa1162b
drm/i915/selftests: Check timeout before flush and cond checks

Allow a bit of leniency for the CPU scheduler to be distracted while we
flush the tasklet and so ensure that we always check the status of the
request once more before timing out.

v2: Wait until the HW acked the submit, and we do any secondary actions
for the submit (e.g. timeslices)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200330121644.25277-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c