Skip to contentSkip to conversation

drm/tests: Remove slow tests

PATCH Superseded Maxime Ripard 1 participant 1 message Sep 19, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Maxime Ripard

author maintainer
#0 lore raw

PATCH 1/1 drm/tests: Remove slow tests

Both the drm_buddy and drm_mm tests have been converted from selftest to kunit recently.

However, both share the same "exploratary" nature and will, in each test, try to discover bugs over multiple iterations and random variations of their parameters.

This is fine in itself but leads to very slow runtime (up 25s for some drm_test_mm_reserve and drm_test_mm_insert on a Ryzen 7950x while running the tests in qemu) which make them a poor fit for kunit.

Let's remove the tests for now, and if it's ever needed we can always create proper unit tests for them later on.

---
 drivers/gpu/drm/tests/Makefile         |    4 -
 drivers/gpu/drm/tests/drm_buddy_test.c |  759 --------
 drivers/gpu/drm/tests/drm_mm_test.c    | 2260 ------------------------
 3 files changed, 3023 deletions(-)
 delete mode 100644 drivers/gpu/drm/tests/drm_buddy_test.c
 delete mode 100644 drivers/gpu/drm/tests/drm_mm_test.c
drivers/gpu/drm/tests/Makefile +0 -4
index ba7baa622675..d1f1130eaf3b 100644
@@ -4,7 +4,6 @@ obj-$(CONFIG_DRM_KUNIT_TEST_HELPERS) += \
 	drm_kunit_helpers.o
 
 obj-$(CONFIG_DRM_KUNIT_TEST) += \
-	drm_buddy_test.o \
 	drm_cmdline_parser_test.o \
 	drm_connector_test.o \
 	drm_damage_helper_test.o \
@@ -13,11 +12,8 @@ obj-$(CONFIG_DRM_KUNIT_TEST) += \
 	drm_format_test.o \
 	drm_framebuffer_test.o \
 	drm_managed_test.o \
-	drm_mm_test.o \
 	drm_modes_test.o \
 	drm_plane_helper_test.o \
 	drm_probe_helper_test.o \
 	drm_rect_test.o	\
 	drm_exec_test.o
-
-CFLAGS_drm_mm_test.o := $(DISABLE_STRUCTLEAK_PLUGIN)
drivers/gpu/drm/tests/drm_buddy_test.c deleted +0 -759

759 lines not on this page · raw message

drivers/gpu/drm/tests/drm_mm_test.c deleted +0 -2260

2,223 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.41.0

Part of the diff is not shown here. View the raw message.