]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Delay spinner before waiting for an interrupt
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Apr 2020 09:39:27 +0000 (10:39 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Apr 2020 13:47:15 +0000 (14:47 +0100)
commit047ee92a0d30a804cb84301216e198637bfc021f
tree2f754fbb8e8d4fade81ae28d4a0ffb595db90ebd
parent4b9820ada0d3613565c940b21abfb164e6c5fa0a
drm/i915/selftests: Delay spinner before waiting for an interrupt

It seems that although (perhaps because of the memory stall?) the
spinner has signaled that it has started, it still takes some time to
spin up to 100% utilisation of the HW. Since the test depends on the
full utilisation of the HW to trigger the RPS interrupt, wait a little
bit and flush the interrupt status to be sure that the event we see if
from the spinner.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200417093928.17822-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_rps.c