]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commitab84a110490d38d40780113a1cdfce03b1cdec13
tree2d0b7ac89098bc264115a5fb9565371639c4db30
parentec5b65a97c60f482bd23d513ce8c398797d40156
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