]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit19d434ff9d606f1673357253963fd332ae38f64b
tree2652043ab4e09ea2a1c4c54fd6b5f4ee5b68570b
parentd466c413faeac95950b4e99fcb958304ae8056ed
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