]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Pin the mock kernel context
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 May 2018 14:23:46 +0000 (15:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 May 2018 16:48:46 +0000 (17:48 +0100)
commit930d1589597676ad2c15254aca81b01d490c4cb2
tree95495acf4cb649c4e5d9afd37aeb6305f6743c2b
parent43ee3798c73a3163c9e8c679646c6ad05c272401
drm/i915/selftests: Pin the mock kernel context

The driver assumes that the kernel context is pinned and always
available for use from any process or atomic context. Make it so for
selftesting as well!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180523142346.27953-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/mock_engine.c
drivers/gpu/drm/i915/selftests/mock_gem_device.c