]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Flush tasklet on wait_for_submit()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 18 Feb 2020 21:12:15 +0000 (21:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 18 Feb 2020 21:21:53 +0000 (21:21 +0000)
commitb1f8cea2f7cb02c2f97fa48cf3ce804d66e60217
treec7eabbcafa3a6628bac73d47610776392658edb5
parent7836e982d03ea4a87930a738acd7912226db2a9a
drm/i915/selftests: Flush tasklet on wait_for_submit()

Always flush the tasklet if we have pending submissions in
wait_for_submit(), so that even if we see the HW has started before we
process its ack, when we return the execlists state is well defined.

Fixes: 97afcad74df0 ("drm/i915/selftests: Check for any sign of request starting in wait_for_submit()")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200218211215.1336341-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c