]> 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)
commite1ca2cfa34db6626fe7c37138edfdf1b5e3af87b
tree95495acf4cb649c4e5d9afd37aeb6305f6743c2b
parentf3725ca7570372f788b838a849d927d7b9438814
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