drm: kselftest for drm_mm and alignment
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Dec 2016 08:36:16 +0000 (08:36 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Dec 2016 11:37:46 +0000 (12:37 +0100)
commit9b26f2ed29f862f89e68acbc2e75b640b59288f1
treee98d0228e45674b287917f1d851c4140147e0270
parent2fba0de0a9eca81edb737025fece986d4dafa94a
drm: kselftest for drm_mm and alignment

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.

v2: Exercise all allocation flags

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