drm/i915/selftests: Test vm isolation
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 29 Oct 2018 17:29:25 +0000 (17:29 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 29 Oct 2018 18:15:25 +0000 (18:15 +0000)
commitc5def85c0847189b547f378d400a3a45a2a1101e
tree8c875220d6deca0c44c975c3271d4f77f0e17dcb
parent42882336e62aab00278114392a16374f272a0c99
drm/i915/selftests: Test vm isolation

The vm of two contexts are supposed to be independent, such that a stray
write by one cannot be detected by another. Normally the GTT is filled
explicitly by userspace, but the space in between objects is filled with
a scratch page -- and that scratch page should not be able to form an
inter-context backchannel.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181029172925.10159-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_context.c