drm/i915/selftests: Disable preemption while setting up fence-timers
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 13 Mar 2019 20:59:44 +0000 (20:59 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Mar 2019 11:47:06 +0000 (11:47 +0000)
commitd2eeaf2bc04941444bfd52285b6183d6c84c262c
tree61e886eeee2fd59f280621f2a76e55059744def7
parent628ac441e8547340ea47f701c3b87ec60831e8f2
drm/i915/selftests: Disable preemption while setting up fence-timers

The impossible happens and a future fence expired while we were still
initialising. The probable cause is that the test was preempted and we
lost our scheduler cpu slice. Disable preemption during this test to
rule out preemption as a source of timer disruption.

References: https://bugs.freedesktop.org/show_bug.cgi?id=110039
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190313205944.5768-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_sw_fence.c