drm/i915/selftests: Don't try to queue a request with zero delay
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Oct 2017 22:08:54 +0000 (23:08 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 25 Oct 2017 11:13:03 +0000 (12:13 +0100)
commitb1f9107e1b251b2cbd413062fad3636570d2ea20
tree08203f9bd6f8a81764dd1af9e334d65a87be5427
parent753bdbd001dca74f9f4528d7be415801f043748a
drm/i915/selftests: Don't try to queue a request with zero delay

Instead of trying to create a timer with zero delay (i.e. with expires
set to the current jiffies and not the future, an already expired
timer), execute that request immediately.

v2: Refactor list_del_init+signal into its own little function.
v3: Reorder testing so as not to immediately signal a delayed request.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20171024220855.30155-1-chris@chris-wilson.co.uk
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/selftests/mock_engine.c