drm/i915/selftests: Assert that the idle_pulse is sent
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 Oct 2019 09:42:59 +0000 (09:42 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 Oct 2019 14:43:09 +0000 (14:43 +0000)
commit1db257c55f0c9f54a429eb603ffa30bd8b0e06e6
tree1a592cbb59bd987c282c360e74f8e220383d9c29
parent29b27657dbae8d4c4bdc6bfbf6dd8c69f648e075
drm/i915/selftests: Assert that the idle_pulse is sent

When checking the heartbeat pulse, we expect it to have been sent by the
time we have slept. We can verify this by checking the engine serial
number to see if that matches the predicted pulse serial. It will always
be true if, and only if, the pulse was sent by itself (as designed by
the test).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191031094259.23028-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c