]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b25b28dc26d0b822f84d47ea2dc2abab1168c5e
treea5caec8f1055691547c9afcccb5013e9980bfc1c
parent6830dd1921d8c8b0f39d9990f0f65d8c98722963
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: 46921d112b4a ("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