drm: kselftest for drm_mm and color eviction
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Dec 2016 08:36:21 +0000 (08:36 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Dec 2016 13:01:27 +0000 (14:01 +0100)
commitc1b702c9a54316362b3c82e2fa36371ae6f4ab53
treea9c15a95dcacc02e2671308450168e35190575dd
parent4c2ba55b5c76835e826564f8623c36a5bfe0d3a9
drm: kselftest for drm_mm and color eviction

Check that after applying the driver's color adjustment, eviction
scanning finds a suitable hole.

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-19-chris@chris-wilson.co.uk
drivers/gpu/drm/selftests/drm_mm_selftests.h
drivers/gpu/drm/selftests/test-drm_mm.c