DRM range manager selftest run time

Geert Uytterhoeven geert at linux-m68k.org
Thu Feb 9 09:58:38 UTC 2017


Hi Chris, Dave,

Recently, I started seeing ca. 2 minute delays during boot-up on Renesas
R-Car Gen2 boards.

It turned out the DRM range manager selftests started taking quite some time.
With debug output, I get:

[    2.310472] drm_mm: Testing DRM range manger (struct drm_mm), with
random_seed=0x637f8ba8 max_iterations=8192 max_prime=128
[    2.321625] drm_mm: drm: Running sanitycheck
[    2.325905] drm_mm: igt_sanitycheck - ok!
[    2.329915] drm_mm: drm: Running init
[    2.333590] drm_mm: drm: Running debug
[    2.337341] drm_mm: drm: Running reserve
[    2.862878] drm_mm: drm: Running insert
[   49.205174] drm_mm: drm: Running replace
[   95.570840] drm_mm: drm: Running insert_range
[   98.971590] drm_mm: drm: Running align
[   98.975614] drm_mm: drm: Running align32
[   98.979601] drm_mm: drm: Running align64
[   98.983652] drm_mm: drm: Running evict
[  100.321925] drm_mm: drm: Running evict_range
[  101.226411] drm_mm: drm: Running bottomup
[  101.316911] drm_mm: drm: Running topdown
[  101.404385] drm_mm: drm: Running color
[  103.889639] drm_mm: drm: Running color_evict
[  107.318608] drm_mm: drm: Running color_evict_range
[  110.485926] drm_mm: run_selftests: Completed

Perhaps some tests can be simplified, to reduce run time?

Alternatviely, the pr_debug() calls in drivers/gpu/drm/selftests/drm_selftest.c
could be turned into pr_info() calls (cfr. the output above), to give a cue?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds


More information about the dri-devel mailing list