Skip to contentSkip to conversation

igt/tests: kms_plane_stress: Add plane stress test

PATCH Superseded Stanislav Lisovskiy 2 participants 2 messages Aug 19, 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

---
 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 250dbd33..33ae75e0 100644
@@ -63,6 +63,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 +887 -0

888 lines not on this page · raw message

tests/meson.build +1 -0
index 34a74025..6e42402c 100644
@@ -48,6 +48,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
#1 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for igt/tests: kms_plane_stress: Add plane stress test (rev13)

== Series Details ==

== Series Details ==

Series: igt/tests: kms_plane_stress: Add plane stress test (rev13)
URL : https://patchwork.freedesktop.org/series/58524/
State : failure

== Summary ==

Applying: igt/tests: kms_plane_stress: Add plane stress test Using index info to reconstruct a base tree...
M tests/Makefile.sources
M tests/meson.build
Falling back to patching base and 3-way merge... Auto-merging tests/meson.build
CONFLICT (content): Merge conflict in tests/meson.build Auto-merging tests/Makefile.sources
CONFLICT (content): Merge conflict in tests/Makefile.sources Patch failed at 0001 igt/tests: kms_plane_stress: Add plane stress test When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".

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