diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-22 08:36:14 +0000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-12-27 12:37:10 +0100 |
commit | 2bd966d106e34e2daedad8eb109d48825ba8b655 (patch) | |
tree | c3d53eb47e80d78f7cafc77691c4588829f5af3f /drivers/gpu/drm/selftests/drm_mm_selftests.h | |
parent | 7886692a58045c5e6953c2efb742bb389d31484d (diff) | |
download | linux-stable-2bd966d106e34e2daedad8eb109d48825ba8b655.tar.gz linux-stable-2bd966d106e34e2daedad8eb109d48825ba8b655.tar.bz2 linux-stable-2bd966d106e34e2daedad8eb109d48825ba8b655.zip |
drm: kselftest for drm_mm_replace_node()
Reuse drm_mm_insert_node() with a temporary node to exercise
drm_mm_replace_node(). We use the previous test in order to exercise the
various lists following replacement.
v2: Check that we copy across the important (user) details of the node.
The internal details (such as lists and hole tracking) we hope to detect
errors by exercise.
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-12-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/selftests/drm_mm_selftests.h')
-rw-r--r-- | drivers/gpu/drm/selftests/drm_mm_selftests.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/selftests/drm_mm_selftests.h b/drivers/gpu/drm/selftests/drm_mm_selftests.h index 727c6d7255e0..dca726baa65d 100644 --- a/drivers/gpu/drm/selftests/drm_mm_selftests.h +++ b/drivers/gpu/drm/selftests/drm_mm_selftests.h @@ -10,3 +10,4 @@ selftest(init, igt_init) selftest(debug, igt_debug) selftest(reserve, igt_reserve) selftest(insert, igt_insert) +selftest(replace, igt_replace) |