[PATCH 13/34] drm: kselftest for drm_mm and eviction

2016-12-15 Thread Joonas Lahtinen
On ma, 2016-12-12 at 11:53 +, Chris Wilson wrote: > Check that we add arbitrary blocks to the eviction scanner in order to > find the first minimal hole that matches our request. > > Signed-off-by: Chris Wilson > + if ((int)tmp.start % n || tmp.size != nsize || >

[PATCH 13/34] drm: kselftest for drm_mm and eviction

2016-12-12 Thread Chris Wilson
Check that we add arbitrary blocks to the eviction scanner in order to find the first minimal hole that matches our request. Signed-off-by: Chris Wilson --- drivers/gpu/drm/selftests/drm_mm_selftests.h | 1 + drivers/gpu/drm/selftests/test-drm_mm.c | 252 +++ 2