]> 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)
commit6b2aadca3987b468db58f5800bb10f005bd30bde
treefecabfcccb978b7ea2bc5d6e201dcbdb9d8838fd
parent0fb4a648bceecb7cf2dcb6f492900eeab91af98e
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 f58a52a1526c
("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: ecc981244bb3 ("drm/i915/selftests: huge page tests")
Fixes: f58a52a1526c ("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