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)
commit9d7e560f432766e5894bfbac41d6faa5f3daf1b7
tree2f754fbb8e8d4fade81ae28d4a0ffb595db90ebd
parent23122a4d992b5d5a660155e2c4640e5a93cc957d
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