Skip to contentSkip to conversation

igt/tests: kms_plane_stress: Add plane stress test

PATCH Superseded Stanislav Lisovskiy 2 participants 2 messages Mar 25, 2019

Subsystems (2)

v3 of 15 Superseded Latest is v15 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 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.

---
 lib/igt_kms.h            |   7 +
 tests/Makefile.sources   |   1 +
 tests/kms_plane_stress.c | 537 +++++++++++++++++++++++++++++++++++++++
 tests/meson.build        |   1 +
 4 files changed, 546 insertions(+)
 create mode 100644 tests/kms_plane_stress.c
lib/igt_kms.h +7 -0
index 679d4e84..48177caa 100644
@@ -508,6 +508,13 @@ static inline bool igt_output_is_connected(igt_output_t *output)
 		for_each_if ((((output) = &(display)->outputs[con__]), \
 			     igt_pipe_connector_valid((pipe), (output))))
 
+#define for_each_pipe_with_new_output(display, pipe, output) \
+			for (int con = 0, (pipe) = 0; con < (display)->n_outputs; con++) \
+				for_each_if((output) = &(display)->outputs[con]) \
+					for_each_if((pipe) < IGT_MAX_PIPES) \
+						for_each_if(igt_pipe_connector_valid((pipe), (output)))
+
+
 igt_output_t **__igt_pipe_populate_outputs(igt_display_t *display,
 					   igt_output_t **chosen_outputs);
 
tests/Makefile.sources +1 -0
index a234fa5d..61a537cd 100644
@@ -60,6 +60,7 @@ TESTS_progs = \
 	kms_plane_lowres \
 	kms_plane_multiple \
 	kms_plane_scaling \
+	kms_plane_stress \
 	kms_properties \
 	kms_psr \
 	kms_pwrite_crc \
tests/kms_plane_stress.c new file +537 -0

538 lines not on this page · raw message

tests/meson.build +1 -0
index 0f12df26..b0d032cf 100644
@@ -47,6 +47,7 @@ test_progs = [
 	'kms_plane_lowres',
 	'kms_plane_multiple',
 	'kms_plane_scaling',
+	'kms_plane_stress',
 	'kms_properties',
 	'kms_psr',
 	'kms_pwrite_crc',
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 (rev3)

== Series Details ==

== Series Details ==

Series: igt/tests: kms_plane_stress: Add plane stress test (rev3)
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 lib/igt_kms.h
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 Auto-merging lib/igt_kms.h
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