Introduce i915 pipe stress test
v15 cover Introduce i915 pipe stress test
This test case will challenge hardware, by using as maximum display buffer/memory bandwidth as possible. To achieve that it runs some workload on each CPU core, also it runs some GPU load simultaneously, also uses kms to add as much planes as possible using highest possible mode.
Stanislav Lisovskiy (1):
igt/tests: kms_plane_stress: Add plane stress test
tests/Makefile.sources | 3 + tests/i915/i915_pipe_stress.c | 888 ++++++++++++++++++++++++++++++++++ tests/meson.build | 1 + 3 files changed, 892 insertions(+) create mode 100644 tests/i915/i915_pipe_stress.c
Signature · 6 lines
2.17.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v15 1/1 igt/tests: 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
v11:
- Fixed issue with suspending/resuming GPU threads to get crc. Added num_rectangles to be able to customize number of gpgpu_fill calls.
v12:
- Removed unneeded shared fb functionality and gpu thread pause/resume.
- Now also using different formats for cursor fb.
- Removed unnecessary parameters for stress function.
- Changed plane_stress function name to pipe_stress(makes sense)
- Put gpgpu_walk x and y bug fix into separate patch.
v13:
- Added tests documentation.
v14:
- Start using igt_get_pipe_crc_current instead in order to analyze crc in a more efficient way.
- Now checking every frame
- Also now using for_each_connected_output for iterating on pipes.
v15:
- Code refactoring, extracted gpu fill into separate function.
- Renamed kms_plane_stress to i915_pipe_stress
- Moved to i915 specific folder, where it should be
- Fixed Makefile.sources build failure
--- tests/Makefile.sources | 3 + tests/i915/i915_pipe_stress.c | 888 ++++++++++++++++++++++++++++++++++ tests/meson.build | 1 + 3 files changed, 892 insertions(+) create mode 100644 tests/i915/i915_pipe_stress.c
tests/Makefile.sources +3 -0
@@ -510,6 +510,9 @@ i915_pm_lpsp_SOURCES = i915/i915_pm_lpsp.c TESTS_progs += i915_pm_rc6_residency i915_pm_rc6_residency_SOURCES = i915/i915_pm_rc6_residency.c +TESTS_progs += i915_pipe_stress +i915_pipe_stress_SOURCES = i915/i915_pipe_stress.c + TESTS_progs += i915_pm_rpm i915_pm_rpm_SOURCES = i915/i915_pm_rpm.c
tests/i915/i915_pipe_stress.c new file +888 -0
888 lines not on this page · raw message
tests/meson.build +1 -0
@@ -228,6 +228,7 @@ i915_progs = [ 'i915_fb_tiling', 'i915_getparams_basic', 'i915_hangman', + 'i915_pipe_stress', 'i915_module_load', 'i915_pm_backlight', 'i915_pm_lpsp',
Signature · 6 lines
2.24.1.485.gad05a3d8e5 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ GitLab.Pipeline: warning for Introduce i915 pipe stress test (rev4)
In reply to Stanislav Lisovskiy== Series Details ==
== Series Details ==
Series: Introduce i915 pipe stress test (rev4)
URL : https://patchwork.freedesktop.org/series/70815/
State : warning
== Summary ==
Did not get list of undocumented tests for this run, something is wrong!
Other than that, pipeline status: FAILED.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/93534 for the overview.
build:tests-fedora has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1265265):
| ^~
../tests/i915/i915_pipe_stress.c:213:5: error: ‘struct igt_buf’ has no member named ‘size’
213 | buf->size = width * height * bpp / 8;
| ^~
../tests/i915/i915_pipe_stress.c: In function ‘stress’:
../tests/i915/i915_pipe_stress.c:615:4: warning: cast from function call of type ‘double’ to non-matching type ‘int’ [-Wbad-function-cast]
615 | (int)igt_time_elapsed(&start, &end) < MIN_DURATION_SEC;
| ^
../tests/i915/i915_pipe_stress.c: In function ‘prepare_test’:
../tests/i915/i915_pipe_stress.c:755:6: warning: variable ‘num_connectors’ set but not used [-Wunused-but-set-variable]
755 | int num_connectors;
| ^~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. section_end:1578054620:build_script [0Ksection_start:1578054620:after_script [0Ksection_end:1578054622:after_script [0Ksection_start:1578054622:upload_artifacts_on_failure [0Ksection_end:1578054623:upload_artifacts_on_failure [0K[31;1mERROR: Job failed: exit code 1
[0;m
build:tests-fedora-no-libunwind has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1265266):
| ^~
../tests/i915/i915_pipe_stress.c:213:5: error: ‘struct igt_buf’ has no member named ‘size’
213 | buf->size = width * height * bpp / 8;
| ^~
../tests/i915/i915_pipe_stress.c: In function ‘stress’:
../tests/i915/i915_pipe_stress.c:615:4: warning: cast from function call of type ‘double’ to non-matching type ‘int’ [-Wbad-function-cast]
615 | (int)igt_time_elapsed(&start, &end) < MIN_DURATION_SEC;
| ^
../tests/i915/i915_pipe_stress.c: In function ‘prepare_test’:
../tests/i915/i915_pipe_stress.c:755:6: warning: variable ‘num_connectors’ set but not used [-Wunused-but-set-variable]
755 | int num_connectors;
| ^~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. section_end:1578054618:build_script [0Ksection_start:1578054618:after_script [0Ksection_end:1578054619:after_script [0Ksection_start:1578054619:upload_artifacts_on_failure [0Ksection_end:1578054621:upload_artifacts_on_failure [0K[31;1mERROR: Job failed: exit code 1
[0;m
build:tests-fedora-oldest-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1265267):
| ^~
../tests/i915/i915_pipe_stress.c:213:5: error: ‘struct igt_buf’ has no member named ‘size’
213 | buf->size = width * height * bpp / 8;
| ^~
../tests/i915/i915_pipe_stress.c: In function ‘stress’:
../tests/i915/i915_pipe_stress.c:615:4: warning: cast from function call of type ‘double’ to non-matching type ‘int’ [-Wbad-function-cast]
615 | (int)igt_time_elapsed(&start, &end) < MIN_DURATION_SEC;
| ^
../tests/i915/i915_pipe_stress.c: In function ‘prepare_test’:
../tests/i915/i915_pipe_stress.c:755:6: warning: variable ‘num_connectors’ set but not used [-Wunused-but-set-variable]
755 | int num_connectors;
| ^~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. section_end:1578054622:build_script [0Ksection_start:1578054622:after_script [0Ksection_end:1578054623:after_script [0Ksection_start:1578054623:upload_artifacts_on_failure [0Ksection_end:1578054624:upload_artifacts_on_failure [0K[31;1mERROR: Job failed: exit code 1
[0;m
build:tests-fedora-clang has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1265268):
FAILED: tests/59830eb@@i915_pipe_stress@exe/i915_i915_pipe_stress.c.o
clang -Itests/59830eb@@i915_pipe_stress@exe -Itests -I../tests -I../include/drm-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/valgrind -I/usr/include/libdrm/nouveau -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/59830eb@@i915_pipe_stress@exe/i915_i915_pipe_stress.c.o' -MF 'tests/59830eb@@i915_pipe_stress@exe/i915_i915_pipe_stress.c.o.d' -o 'tests/59830eb@@i915_pipe_stress@exe/i915_i915_pipe_stress.c.o' -c ../tests/i915/i915_pipe_stress.c ../tests/i915/i915_pipe_stress.c:211:7: error: no member named 'stride' in 'struct igt_buf'
buf->stride = stride;
~~~ ^
../tests/i915/i915_pipe_stress.c:213:7: error: no member named 'size' in 'struct igt_buf'
buf->size = width * height * bpp / 8;
~~~ ^
../tests/i915/i915_pipe_stress.c:615:9: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast]
(int)igt_time_elapsed(&start, &end) < MIN_DURATION_SEC;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning and 2 errors generated.
ninja: build stopped: subcommand failed. section_end:1578054628:build_script [0Ksection_start:1578054628:after_script [0Ksection_end:1578054629:after_script [0Ksection_start:1578054629:upload_artifacts_on_failure [0Ksection_end:1578054631:upload_artifacts_on_failure [0K[31;1mERROR: Job failed: exit code 1
[0;m
build:tests-debian-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1265269):
^~
../tests/i915/i915_pipe_stress.c:213:5: error: ‘struct igt_buf’ has no member named ‘size’
buf->size = width * height * bpp / 8;
^~
../tests/i915/i915_pipe_stress.c: In function ‘stress’:
../tests/i915/i915_pipe_stress.c:615:4: warning: cast from function call of type ‘double’ to non-matching type ‘int’ [-Wbad-function-cast]
(int)igt_time_elapsed(&start, &end) < MIN_DURATION_SEC;
^
../tests/i915/i915_pipe_stress.c: In function ‘prepare_test’:
../tests/i915/i915_pipe_stress.c:755:6: warning: variable ‘num_connectors’ set but not used [-Wunused-but-set-variable]
int num_connectors;
^~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. section_end:1578054621:build_script [0Ksection_start:1578054621:after_script [0Ksection_end:1578054623:after_script [0Ksection_start:1578054623:upload_artifacts_on_failure [0Ksection_end:1578054624:upload_artifacts_on_failure [0K[31;1mERROR: Job failed: exit code 1
[0;m
build:tests-debian-meson-armhf has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1265271):
^~
../tests/i915/i915_pipe_stress.c:213:5: error: ‘struct igt_buf’ has no member named ‘size’
buf->size = width * height * bpp / 8;
^~
../tests/i915/i915_pipe_stress.c: In function ‘stress’:
../tests/i915/i915_pipe_stress.c:615:4: warning: cast from function call of type ‘double’ to non-matching type ‘int’ [-Wbad-function-cast]
(int)igt_time_elapsed(&start, &end) < MIN_DURATION_SEC;
^
../tests/i915/i915_pipe_stress.c: In function ‘prepare_test’:
../tests/i915/i915_pipe_stress.c:755:6: warning: variable ‘num_connectors’ set but not used [-Wunused-but-set-variable]
int num_connectors;
^~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. section_end:1578054664:build_script [0Ksection_start:1578054664:after_script [0Ksection_end:1578054666:after_script [0Ksection_start:1578054666:upload_artifacts_on_failure [0Ksection_end:1578054667:upload_artifacts_on_failure [0K[31;1mERROR: Job failed: exit code 1
[0;m
build:tests-debian-meson-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1265272):
^~
../tests/i915/i915_pipe_stress.c:213:5: error: ‘struct igt_buf’ has no member named ‘size’
buf->size = width * height * bpp / 8;
^~
../tests/i915/i915_pipe_stress.c: In function ‘stress’:
../tests/i915/i915_pipe_stress.c:615:4: warning: cast from function call of type ‘double’ to non-matching type ‘int’ [-Wbad-function-cast]
(int)igt_time_elapsed(&start, &end) < MIN_DURATION_SEC;
^
../tests/i915/i915_pipe_stress.c: In function ‘prepare_test’:
../tests/i915/i915_pipe_stress.c:755:6: warning: variable ‘num_connectors’ set but not used [-Wunused-but-set-variable]
int num_connectors;
^~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. section_end:1578054609:build_script [0Ksection_start:1578054609:after_script [0Ksection_end:1578054610:after_script [0Ksection_start:1578054610:upload_artifacts_on_failure [0Ksection_end:1578054612:upload_artifacts_on_failure [0K[31;1mERROR: Job failed: exit code 1
[0;m
build:tests-debian-meson-mips has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1265273):
^~
../tests/i915/i915_pipe_stress.c:213:5: error: ‘struct igt_buf’ has no member named ‘size’
buf->size = width * height * bpp / 8;
^~
../tests/i915/i915_pipe_stress.c: In function ‘stress’:
../tests/i915/i915_pipe_stress.c:615:4: warning: cast from function call of type ‘double’ to non-matching type ‘int’ [-Wbad-function-cast]
(int)igt_time_elapsed(&start, &end) < MIN_DURATION_SEC;
^
../tests/i915/i915_pipe_stress.c: In function ‘prepare_test’:
../tests/i915/i915_pipe_stress.c:755:6: warning: variable ‘num_connectors’ set but not used [-Wunused-but-set-variable]
int num_connectors;
^~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. section_end:1578054608:build_script [0Ksection_start:1578054608:after_script [0Ksection_end:1578054609:after_script [0Ksection_start:1578054609:upload_artifacts_on_failure [0Ksection_end:1578054611:upload_artifacts_on_failure [0K[31;1mERROR: Job failed: exit code 1
[0;m
build:tests-debian-autotools has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1265274):
(int)igt_time_elapsed(&start, &end) < MIN_DURATION_SEC;
^
i915/i915_pipe_stress.c: In function ‘prepare_test’:
i915/i915_pipe_stress.c:755:6: warning: variable ‘num_connectors’ set but not used [-Wunused-but-set-variable]
int num_connectors;
^~~~~~~~~~~~~~ make[3]: Leaving directory '/builds/gfx-ci/igt-ci-tags/tests' make[3]: *** [Makefile:4841: i915/i915_pipe_stress.o] Error 1 make[2]: *** [Makefile:5284: all-recursive] Error 1 make[2]: Leaving directory '/builds/gfx-ci/igt-ci-tags/tests' make[1]: *** [Makefile:514: all-recursive] Error 1 make[1]: Leaving directory '/builds/gfx-ci/igt-ci-tags'
make: *** [Makefile:446: all] Error 2 section_end:1578054724:build_script [0Ksection_start:1578054724:after_script [0Ksection_end:1578054726:after_script [0Ksection_start:1578054726:upload_artifacts_on_failure [0Ksection_end:1578054727:upload_artifacts_on_failure [0K[31;1mERROR: Job failed: exit code 1
[0;m
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/93534
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev