]> 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)
commit76650e17b73ef6d0d7f0fb2b0dfe99517f300165
tree1a592cbb59bd987c282c360e74f8e220383d9c29
parente7bbd451f0d454fa34d71ed36b918b32592c58da
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