drm/i915/selftests: Only switch to kernel context when locked
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 9 May 2018 06:59:26 +0000 (07:59 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 9 May 2018 08:28:45 +0000 (09:28 +0100)
commitb9777c6f86ac8c21f82211ab982ca48302042ede
treea5caec8f1055691547c9afcccb5013e9980bfc1c
parent1d7a99f5148fdcdb9d40367d6d0668a34df161d4
drm/i915/selftests: Only switch to kernel context when locked

In igt_flush_test() we try to switch back to the kernel context, but we
are only able to do so when we are called with struct_mutex held.

More of my CI fallout from lockdep being temporarily suppressed :(

Fixes: 4cdf65ce8cc2 ("drm/i915/selftests: Return to kernel context after each test")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180509065926.19207-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/igt_flush_test.c