]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Use a full emulation of a user ppgtt context
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Jul 2018 19:47:45 +0000 (20:47 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Jul 2018 12:32:07 +0000 (13:32 +0100)
commit000b97f4e17481aeecc112948bd1dd1fc552c9e9
tree2d0b7ac89098bc264115a5fb9565371639c4db30
parent80c80de593eeb482e22f7d333d34ac9acd13b4d2
drm/i915/selftests: Use a full emulation of a user ppgtt context

To test eviction from a ppgtt, we just want a ppgtt i.e. something other
than the Global GTT which is shared and used by the kernel for HW
features like fencing and scanout. However, we also need it to pass
!i915_is_ggtt() and the simplest way is to emulate a full user context
rather than the internal kernel context that is used for the GGTT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180719194746.19111-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/intel_hangcheck.c