[PATCH 12/34] drm: kselftest for drm_mm and alignment

2016-12-15 Thread Joonas Lahtinen
On ma, 2016-12-12 at 11:53 +, Chris Wilson wrote: > Check that we can request alignment to any power-of-two or prime using a > plain drm_mm_node_insert(), and also handle a reasonable selection of > primes. > > Signed-off-by: Chris Wilson > +static int igt_align(void *ignored) > +{ > +

[PATCH 12/34] drm: kselftest for drm_mm and alignment

2016-12-15 Thread Chris Wilson
On Thu, Dec 15, 2016 at 10:59:10AM +0200, Joonas Lahtinen wrote: > On ma, 2016-12-12 at 11:53 +, Chris Wilson wrote: > > Check that we can request alignment to any power-of-two or prime using a > > plain drm_mm_node_insert(), and also handle a reasonable selection of > > primes. > > > >

[PATCH 12/34] drm: kselftest for drm_mm and alignment

2016-12-12 Thread Chris Wilson
Check that we can request alignment to any power-of-two or prime using a plain drm_mm_node_insert(), and also handle a reasonable selection of primes. Signed-off-by: Chris Wilson --- drivers/gpu/drm/selftests/drm_mm_selftests.h | 3 + drivers/gpu/drm/selftests/test-drm_mm.c | 104