drm: kselftest for drm_mm and bottom-up allocation
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Feb 2017 11:44:34 +0000 (11:44 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 3 Feb 2017 10:36:49 +0000 (11:36 +0100)
commitbb18dfcc640d0551073e756e0af2ff60bea89e6d
tree2652043ab4e09ea2a1c4c54fd6b5f4ee5b68570b
parent4e64e5539d152e202ad6eea2b6f65f3ab58d9428
drm: kselftest for drm_mm and bottom-up allocation

Check that if we request bottom-up allocation from drm_mm_insert_node()
we receive the next available hole from the bottom.

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