OSDN Git Service

drm/i915/selftests: Fill all the drm_vma_manager holes
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Nov 2019 12:27:06 +0000 (12:27 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Nov 2019 12:41:37 +0000 (12:41 +0000)
commit1af65515e36306a3dbe935b46e1d970188b1e5e0
treeccf5b74af07921f375d5427370fbf998d135a22d
parent34485832cb98727fb9ceaf68a51160ad2f942344
drm/i915/selftests: Fill all the drm_vma_manager holes

To test mmap_offset_exhaustion, we first have to fill the entire vma
manager leaving a single page. Don't assume that the vma manager is not
already fragment, and fill all the holes.

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