drm: kselftest for drm_mm and top-down allocation
authorChris Wilson <[email protected]>
Thu, 22 Dec 2016 08:36:19 +0000 (08:36 +0000)
committerDaniel Vetter <[email protected]>
Tue, 27 Dec 2016 13:01:06 +0000 (14:01 +0100)
commit05ab3c2eec74507712cd5f2b027c7c8b9a66f190
treec18b5c8b0f9c78d6d205a99700fa8113715e5ec6
parent0e483254e578e106d66f4881d86e8364c8752a16
drm: kselftest for drm_mm and top-down allocation

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

v2: Flip sign on conditional assert.

Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/selftests/drm_mm_selftests.h
drivers/gpu/drm/selftests/test-drm_mm.c