]> git.baikalelectronics.ru Git - kernel.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)
commit791bd21acb8c940147abc3a9c837aff5d5123cba
tree5631b74fcb2d246d8db62ea2dc15c7a9da0758ba
parentb25202ca11571cca31783fa43c1f7eba71a9a986
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