]> 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)
commit566e3cf9acad8f3028225dadb1df7549e358f55a
treea5caec8f1055691547c9afcccb5013e9980bfc1c
parentab7bab778546501c6bba1163ce00d2f5dd28c95c
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: 765dcca8250b ("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