On 24/02/2026 11:03, Maxime Ripard wrote:
Some DRM tests cross the 1s execution time threshold that defines a test
as slow. Let's flag them as such.

Curious that both did not trigger for me and I even run them under nested qemu most of the time.

Signed-off-by: Maxime Ripard <[email protected]>
---
  drivers/gpu/drm/scheduler/tests/tests_basic.c | 4 ++--
  drivers/gpu/drm/tests/drm_buddy_test.c        | 2 +-
  2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/scheduler/tests/tests_basic.c 
b/drivers/gpu/drm/scheduler/tests/tests_basic.c
index 82a41a456b0a..a5a5a35a87b0 100644
--- a/drivers/gpu/drm/scheduler/tests/tests_basic.c
+++ b/drivers/gpu/drm/scheduler/tests/tests_basic.c
@@ -419,11 +419,11 @@ static void drm_sched_change_priority(struct kunit *test)
                drm_mock_sched_entity_free(entity[i]);
  }
static struct kunit_case drm_sched_priority_tests[] = {
        KUNIT_CASE(drm_sched_priorities),
-       KUNIT_CASE(drm_sched_change_priority),
+       KUNIT_CASE_SLOW(drm_sched_change_priority),

This one deliberately aims to run for ~1s and I don't have an immediate idea how it would go over 2s.

        {}
  };
static struct kunit_suite drm_sched_priority = {
        .name = "drm_sched_basic_priority_tests",
@@ -544,11 +544,11 @@ static void drm_sched_test_credits(struct kunit *test)
        drm_mock_sched_entity_free(entity);
        drm_mock_sched_fini(sched);
  }
static struct kunit_case drm_sched_credits_tests[] = {
-       KUNIT_CASE(drm_sched_test_credits),
+       KUNIT_CASE_SLOW(drm_sched_test_credits),

Same really.

Anyway, the scheduler parts LGTM and I can follow up trying to optimise these two later.

For the scheduler:

Reviewed-by: Tvrtko Ursulin <[email protected]>

Regards,

Tvrtko

        {}
  };
static struct kunit_suite drm_sched_credits = {
        .name = "drm_sched_basic_credits_tests",
diff --git a/drivers/gpu/drm/tests/drm_buddy_test.c 
b/drivers/gpu/drm/tests/drm_buddy_test.c
index e6f8459c6c54..35ca79525f43 100644
--- a/drivers/gpu/drm/tests/drm_buddy_test.c
+++ b/drivers/gpu/drm/tests/drm_buddy_test.c
@@ -908,11 +908,11 @@ static struct kunit_case drm_buddy_tests[] = {
        KUNIT_CASE(drm_test_buddy_alloc_pessimistic),
        KUNIT_CASE(drm_test_buddy_alloc_pathological),
        KUNIT_CASE(drm_test_buddy_alloc_contiguous),
        KUNIT_CASE(drm_test_buddy_alloc_clear),
        KUNIT_CASE(drm_test_buddy_alloc_range_bias),
-       KUNIT_CASE(drm_test_buddy_fragmentation_performance),
+       KUNIT_CASE_SLOW(drm_test_buddy_fragmentation_performance),
        KUNIT_CASE(drm_test_buddy_alloc_exceeds_max_order),
        {}
  };
static struct kunit_suite drm_buddy_test_suite = {

Reply via email to