drm: kselftest for drm_mm and range restricted eviction
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Dec 2016 08:36:18 +0000 (08:36 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Dec 2016 13:00:12 +0000 (14:00 +0100)
commit0e483254e578e106d66f4881d86e8364c8752a16
tree5da0bb94f0d5e2e05ae90934a018787b18a8c60f
parent560b32842912f9271ea47879f9b374693b724721
drm: kselftest for drm_mm and range restricted eviction

Check that we add arbitrary blocks to a restrited eviction scanner in
order to find the first minimal hole that matches our request.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161222083641.2691-16-chris@chris-wilson.co.uk
drivers/gpu/drm/selftests/drm_mm_selftests.h
drivers/gpu/drm/selftests/test-drm_mm.c