Skip to contentSkip to conversation

igt/tests: kms_plane_stress: Add plane stress test

PATCH Superseded Stanislav Lisovskiy 1 participant 1 message Apr 18, 2019 Arm/Amlogic Meson SoC support

v9 of 15 Superseded Latest is v15 →

lore
Share & tools
lore
#0 lore raw

PATCH v9 1/1 igt/tests: kms_plane_stress: Add plane stress test

This test attempts to utilize all connected
outputs at the same time, using maximum possible
resolution and amount of planes, to check whether
we are hiting any kind of bandwidth, watermark or
other limitations.

v2: Added cpu and gpu load threads, which consume
additional bandwidth.

v3: Removed binary picture file, using pattern fb
instead.

v4: Moved FB creation/removal to better place.

v5: Fixed rebase conflict and changed "fb->tiling"

    to "fb->modifier".

v6: Removed unnecessary new macro for iterating on
pipes. Taken into use igt_gettime instead of clock_gettime.

v7: Put fb reinit into igt_fixture to avoid problems.
Move stress function under igt_subtest. Release planes, remove redundant commit, assert if no planes can be used.

v8: - Add blitting also, to have more fun
- Now using separate framebuffer per each plane.
- Fixed magic number for bpp value(now based on format)
- Some optimizations, like not applying same mode if it hasn't change, also don't do highest mode search on each iteration, just calculate once and use it.
- Some code refactoring: extracted some lengthy code to separate functions.
- Fixed wrong index for cursor FB(cursor FB is one per pipe)

v9:
- More helper functions(start/stop threads, test init)
- Now doing GPU work in pthreads also
- Do GPU work in a separate framebuffer(not displayed)

---
 tests/Makefile.sources   |   1 +
 tests/kms_plane_stress.c | 785 +++++++++++++++++++++++++++++++++++++++
 tests/meson.build        |   1 +
 3 files changed, 787 insertions(+)
 create mode 100644 tests/kms_plane_stress.c
tests/Makefile.sources +1 -0
index 71ccf00a..9d04d888 100644
@@ -59,6 +59,7 @@ TESTS_progs = \
 	kms_plane_lowres \
 	kms_plane_multiple \
 	kms_plane_scaling \
+	kms_plane_stress \
 	kms_prop_blob \
 	kms_properties \
 	kms_psr \
tests/kms_plane_stress.c new file +785 -0

786 lines not on this page · raw message

tests/meson.build +1 -0
index 9015f809..c586642c 100644
@@ -46,6 +46,7 @@ test_progs = [
 	'kms_plane_lowres',
 	'kms_plane_multiple',
 	'kms_plane_scaling',
+	'kms_plane_stress',
 	'kms_prop_blob',
 	'kms_properties',
 	'kms_psr',
Signature · 6 lines
2.17.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev