Hi Krzysztof,

On 2025-10-21 at 18:43:42 +0200, Krzysztof Niemiec wrote:
> Mark the newly introduced drm_test_buddy_fragmentation_performance test
> as KUNIT_SPEED_SLOW, as it might take more than a second on some
> systems.
> 
> Fixes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15095
> 
> Signed-off-by: Krzysztof Niemiec <[email protected]>
> ---
>  drivers/gpu/drm/tests/drm_buddy_test.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/tests/drm_buddy_test.c 
> b/drivers/gpu/drm/tests/drm_buddy_test.c
> index 5f40b5343bd8..672423af7c17 100644
> --- a/drivers/gpu/drm/tests/drm_buddy_test.c
> +++ b/drivers/gpu/drm/tests/drm_buddy_test.c
> @@ -876,7 +876,7 @@ static struct kunit_case drm_buddy_tests[] = {
>       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),
>       {}
>  };

Reviewed-by: Krzysztof Karas <[email protected]>

I wonder if we have more tests like this, but nobody ever
noticed their slowness. We should keep an eye out for such cases
and switch to KUNIT_CASE_SLOW if we find any.
-- 
Best Regards,
Krzysztof

Reply via email to