Skip to contentSkip to conversation

igt/tests: kms_plane_stress: Add plane stress test

PATCH Superseded Stanislav Lisovskiy 1 participant 1 message Aug 20, 2019

Subsystems (2)

v10 of 15 Superseded Latest is v15 →

lore
Share & tools
lore
#0 lore raw

PATCH v10 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)

v10:
- Fix issue in main testing cycle, code refactoring
- Rebased

---
 lib/gpu_cmds.c           |   4 +-
 tests/Makefile.sources   |   1 +
 tests/kms_plane_stress.c | 887 +++++++++++++++++++++++++++++++++++++++
 tests/meson.build        |   1 +
 4 files changed, 891 insertions(+), 2 deletions(-)
 create mode 100644 tests/kms_plane_stress.c
lib/gpu_cmds.c +2 -2
index 8d270ee8..48ddfa0c 100644
@@ -681,12 +681,12 @@ gen8_emit_gpgpu_walk(struct intel_batchbuffer *batch,
 		  0); /* width:1 */
 
 	/* thread group X */
-	OUT_BATCH(0);
+	OUT_BATCH(x);
 	OUT_BATCH(0);
 	OUT_BATCH(x_dim);
 
 	/* thread group Y */
-	OUT_BATCH(0);
+	OUT_BATCH(y);
 	OUT_BATCH(0);
 	OUT_BATCH(y_dim);
 
tests/Makefile.sources +1 -0
index c02e4d94..a7370773 100644
@@ -65,6 +65,7 @@ TESTS_progs = \
 	kms_plane_multiple \
 	kms_plane_scaling \
 	kms_prime \
+	kms_plane_stress \
 	kms_prop_blob \
 	kms_properties \
 	kms_psr \
tests/kms_plane_stress.c new file +887 -0

888 lines not on this page · raw message

tests/meson.build +1 -0
index a7b2b322..b6d7ed45 100644
@@ -50,6 +50,7 @@ test_progs = [
 	'kms_plane_multiple',
 	'kms_plane_scaling',
 	'kms_prime',
+	'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