OSDN Git Service

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)
commit4a774ee35c9f57feaf332b252ecb2d4275521c8a
tree95495acf4cb649c4e5d9afd37aeb6305f6743c2b
parentf0d2b758e05e209f4572182afade180cda22c9c8
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