]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Check for the error interrupt before we wait!
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Feb 2020 12:06:59 +0000 (12:06 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Feb 2020 15:47:24 +0000 (15:47 +0000)
commit957f7bc205e5f4c0c5135a89b96d958c7547aee5
treea1f5036e9c656a2b8c57ef27b4dd8a14cf4c3c91
parent9653884fbdb5a7a0c56d534734db696319a4c51c
drm/i915/selftests: Check for the error interrupt before we wait!

Sometimes the error interrupt can fire even before we have seen the
request go active -- in which case, we end up waiting until the timeout
as the request is already completed. Double check for this case!

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