]> 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)
commiteac283fb55cc598f44a9c929b57facd166869cac
tree2f754fbb8e8d4fade81ae28d4a0ffb595db90ebd
parentb1d5df9af03ffc287c3bc4e800761d4e94205396
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