]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67520d4a04825a291eb9a4636dca7783ac1cb70a
tree1a592cbb59bd987c282c360e74f8e220383d9c29
parent3a05b172caea81bb64454d0b9f0740e131fae21e
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