drm/i915/selftests: add missing gtt shrinker test
authorMatthew Auld <matthew.auld@intel.com>
Wed, 31 Jan 2018 21:44:40 +0000 (21:44 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 1 Feb 2018 07:22:47 +0000 (07:22 +0000)
commitfe215c8bc42695621bbeee92ed5ebe7c5a2f4f86
tree510db698b39ec293b4d1eb55834486612ecf875f
parentb715a2f0c7714a399e7f8e951cc8dea9cd4eeb4b
drm/i915/selftests: add missing gtt shrinker test

Try to catch a bug we've seen in the wild where the shrinker purges the
pd/pdp from under us while allocating our paging structures.

References: https://bugs.freedesktop.org/show_bug.cgi?id=104773
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180131191453.12676-1-matthew.auld@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180131214440.7141-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c