]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: ditch the kernel context
authorMatthew Auld <matthew.auld@intel.com>
Tue, 10 Oct 2017 13:30:30 +0000 (14:30 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Oct 2017 20:30:24 +0000 (21:30 +0100)
commite9b3456537a8dbab276eca5ff5c70062671245a3
treefecabfcccb978b7ea2bc5d6e201dcbdb9d8838fd
parenteaa697152ebbcf2d1fd111271659b9db17a4939d
drm/i915/selftests: ditch the kernel context

There's really no good reason to be using the kernel context for the
huge-page livetests. Also with the introduction of commit 4f5f52bd89ad
("drm/i915: Assert we do not try to expand VMA for hugepage inside GGTT")
we start hitting the bug on in the selftests, since the kernel context
will always return true for i915_vma_is_ggtt(), so now seems like the
opportune time to instead create our own context.

Fixes: 59d5369cda16 ("drm/i915/selftests: huge page tests")
Fixes: 4f5f52bd89ad ("drm/i915: Assert we do not try to expand VMA for hugepage inside GGTT")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20171010133030.12112-1-matthew.auld@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/selftests/huge_pages.c