tests/kms_setmode: Fix to get a valid config
PATCH 1/1 tests/kms_setmode: Fix to get a valid config
CRTCs in this test will be modesetted one-by-one, we won't get a failure sice each connector has its own CRTC.
--- tests/kms_setmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/kms_setmode.c +1 -1
@@ -361,7 +361,7 @@ static void setup_crtcs(const struct test_config *tconf, }for (i =0 ; i < resources->count_encoders; i++)if (encoder_usage_count[i] >1 && - !!(tconf->flags &TEST_SINGLE_CRTC_CLONE )) + !!(tconf->flags & (TEST_SINGLE_CRTC_CLONE |TEST_TIMINGS )) config_valid = false; *crtc_count_ret = crtc_count;
Signature · 1 line
2.32.0
Patchwork
CI[igt-dev] ✗ Fi.CI.BUILD: failure for tests/kms_setmode: Fix to get a valid config
== Series Details ==
== Series Details ==
Series: tests/kms_setmode: Fix to get a valid config
URL : https://patchwork.freedesktop.org/series/93450/
State : failure
== Summary ==
IGT patchset build failed on latest successful build 2f32b9e0da5f1ac9529318dd5b836c8cf4d3c441 tests/i915/gem_exec_fence: use device_coherent mmap
[122/427] Linking target tests/kms_flip_event_leak.
[123/427] Linking target tests/kms_flip_scaled_crc.
[124/427] Linking target tests/kms_flip.
[125/427] Linking target tests/i915_pm_rps.
[126/427] Linking target tests/i915_pm_dc.
[127/427] Linking target tests/vc4_tiling.
[128/427] Linking target tests/kms_hdmi_inject.
[129/427] Linking target tests/kms_frontbuffer_tracking.
[130/427] Linking target tests/kms_force_connector_basic.
[131/427] Linking target tests/kms_getfb.
[132/427] Linking target tests/kms_legacy_colorkey.
[133/427] Linking target tests/kms_lease.
[134/427] Linking target tests/kms_hdr.
[135/427] Linking target tests/kms_invalid_dotclock.
[136/427] Linking target tests/kms_multipipe_modeset.
[137/427] Linking target tests/kms_mmap_write_crc.
[138/427] Linking target tests/kms_panel_fitting.
[139/427] Linking target tests/kms_pipe_b_c_ivb.
[140/427] Linking target tools/intel_residency.
[141/427] Linking target tools/intel_reg_checker.
[142/427] Linking target tools/intel_gem_info.
[143/427] Linking target tools/intel_stepping.
[144/427] Linking target tests/kms_plane_multiple.
[145/427] Linking target tests/kms_plane_cursor.
[146/427] Linking target tests/kms_plane_lowres.
[147/427] Linking target tests/kms_plane_scaling.
[148/427] Linking target tests/kms_prime.
[149/427] Linking target tests/kms_prop_blob.
[150/427] Linking target tests/kms_properties.
[151/427] Linking target tests/kms_psr.
[152/427] Linking target tests/kms_psr2_su.
[153/427] Linking target tests/kms_psr2_sf.
[154/427] Linking target tests/kms_pwrite_crc.
[155/427] Compiling C object 'tests/tests@@kms_setmode@exe/kms_setmode.c.o'.
FAILED: tests/tests@@kms_setmode@exe/kms_setmode.c.o
ccache cc -Itests/tests@@kms_setmode@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/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/x86_64-linux-gnu -I/usr/include/alsa -I/usr/include -I/home/cidrm/kernel_headers/include -fdiagnostics-color=always -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 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -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 -fcommon -pthread -MD -MQ 'tests/tests@@kms_setmode@exe/kms_setmode.c.o' -MF 'tests/tests@@kms_setmode@exe/kms_setmode.c.o.d' -o 'tests/tests@@kms_setmode@exe/kms_setmode.c.o' -c ../tests/kms_setmode.c ../tests/kms_setmode.c: In function ‘setup_crtcs’:../tests/kms_setmode.c:364:63: error: expected ‘)’ before ‘config_valid’
!!(tconf->flags & (TEST_SINGLE_CRTC_CLONE | TEST_TIMINGS))
^
)
config_valid = false;
~~~~~~~~~~~~
../tests/kms_setmode.c:363:6: note: to match this ‘(’
if (encoder_usage_count[i] > 1 &&
^../tests/kms_setmode.c:369:1: error: expected expression before ‘}’ token
}
^
ninja: build stopped: subcommand failed.
Patchwork
CI[igt-dev] ✗ GitLab.Pipeline: warning for tests/kms_setmode: Fix to get a valid config
In reply to Bhanuprakash Modem== Series Details ==
== Series Details ==
Series: tests/kms_setmode: Fix to get a valid config
URL : https://patchwork.freedesktop.org/series/93450/
State : warning
== Summary ==
Pipeline status: FAILED.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/375993 for the overview.
build:tests-debian-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12557637):
../tests/kms_setmode.c: In function ‘setup_crtcs’:
../tests/kms_setmode.c:364:63: error: expected ‘)’ before ‘config_valid’
!!(tconf->flags & (TEST_SINGLE_CRTC_CLONE | TEST_TIMINGS))
^
)
config_valid = false;
~~~~~~~~~~~~
../tests/kms_setmode.c:363:6: note: to match this ‘(’
if (encoder_usage_count[i] > 1 &&
^ ../tests/kms_setmode.c:369:1: error: expected expression before ‘}’ token
}
^
ninja: build stopped: subcommand failed. section_end:1628246761:step_script section_start:1628246761:cleanup_file_variables
Cleaning up file based variables section_end:1628246762:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12557640):
../tests/kms_setmode.c: In function ‘setup_crtcs’:
../tests/kms_setmode.c:364:63: error: expected ‘)’ before ‘config_valid’
!!(tconf->flags & (TEST_SINGLE_CRTC_CLONE | TEST_TIMINGS))
^
)
config_valid = false;
~~~~~~~~~~~~
../tests/kms_setmode.c:363:6: note: to match this ‘(’
if (encoder_usage_count[i] > 1 &&
^ ../tests/kms_setmode.c:369:1: error: expected expression before ‘}’ token
}
^
ninja: build stopped: subcommand failed. section_end:1628246755:step_script section_start:1628246755:cleanup_file_variables
Cleaning up file based variables section_end:1628246756:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-armhf has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12557639):
../tests/kms_setmode.c: In function ‘setup_crtcs’:
../tests/kms_setmode.c:364:63: error: expected ‘)’ before ‘config_valid’
!!(tconf->flags & (TEST_SINGLE_CRTC_CLONE | TEST_TIMINGS))
^
)
config_valid = false;
~~~~~~~~~~~~
../tests/kms_setmode.c:363:6: note: to match this ‘(’
if (encoder_usage_count[i] > 1 &&
^ ../tests/kms_setmode.c:369:1: error: expected expression before ‘}’ token
}
^
ninja: build stopped: subcommand failed. section_end:1628246755:step_script section_start:1628246755:cleanup_file_variables
Cleaning up file based variables section_end:1628246756:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-mips has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12557641):
../tests/kms_setmode.c: In function ‘setup_crtcs’:
../tests/kms_setmode.c:364:63: error: expected ‘)’ before ‘config_valid’
!!(tconf->flags & (TEST_SINGLE_CRTC_CLONE | TEST_TIMINGS))
^
)
config_valid = false;
~~~~~~~~~~~~
../tests/kms_setmode.c:363:6: note: to match this ‘(’
if (encoder_usage_count[i] > 1 &&
^ ../tests/kms_setmode.c:369:1: error: expected expression before ‘}’ token
}
^
ninja: build stopped: subcommand failed. section_end:1628246758:step_script section_start:1628246758:cleanup_file_variables
Cleaning up file based variables section_end:1628246759:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12557632):
../tests/kms_setmode.c: In function ‘setup_crtcs’:
../tests/kms_setmode.c:364:63: error: expected ‘)’ before ‘config_valid’
364 | !!(tconf->flags & (TEST_SINGLE_CRTC_CLONE | TEST_TIMINGS))
| ^
| )
365 | config_valid = false;
| ~~~~~~~~~~~~
../tests/kms_setmode.c:363:6: note: to match this ‘(’
363 | if (encoder_usage_count[i] > 1 &&
| ^
../tests/kms_setmode.c:369:1: error: expected expression before ‘}’ token
369 | }
| ^ ninja: build stopped: subcommand failed.
section_end:1628246761:step_script
section_start:1628246761:cleanup_file_variables
Cleaning up file based variables
section_end:1628246762:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-clang has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12557636):
ninja: Entering directory `build'
[1/725] Generating version.h with a custom command.
[2/623] Linking target tests/kms_rotation_crc.
[3/623] Compiling C object 'tests/59830eb@@kms_setmode@exe/kms_setmode.c.o'.
FAILED: tests/59830eb@@kms_setmode@exe/kms_setmode.c.o
clang -Itests/59830eb@@kms_setmode@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/libdrm/nouveau -I/usr/include/valgrind -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 -fcommon -pthread -MD -MQ 'tests/59830eb@@kms_setmode@exe/kms_setmode.c.o' -MF 'tests/59830eb@@kms_setmode@exe/kms_setmode.c.o.d' -o 'tests/59830eb@@kms_setmode@exe/kms_setmode.c.o' -c ../tests/kms_setmode.c ../tests/kms_setmode.c:365:4: error: expected ')'
config_valid = false;
^
../tests/kms_setmode.c:363:6: note: to match this '('
if (encoder_usage_count[i] > 1 &&
^ 1 error generated.
ninja: build stopped: subcommand failed.
section_end:1628246771:step_script
section_start:1628246771:cleanup_file_variables
Cleaning up file based variables
section_end:1628246772:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-no-libdrm-nouveau has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12557635):
../tests/kms_setmode.c: In function ‘setup_crtcs’:
../tests/kms_setmode.c:364:63: error: expected ‘)’ before ‘config_valid’
364 | !!(tconf->flags & (TEST_SINGLE_CRTC_CLONE | TEST_TIMINGS))
| ^
| )
365 | config_valid = false;
| ~~~~~~~~~~~~
../tests/kms_setmode.c:363:6: note: to match this ‘(’
363 | if (encoder_usage_count[i] > 1 &&
| ^
../tests/kms_setmode.c:369:1: error: expected expression before ‘}’ token
369 | }
| ^ ninja: build stopped: subcommand failed.
section_end:1628246760:step_script
section_start:1628246760:cleanup_file_variables
Cleaning up file based variables
section_end:1628246762:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-no-libunwind has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12557633):
../tests/kms_setmode.c: In function ‘setup_crtcs’:
../tests/kms_setmode.c:364:63: error: expected ‘)’ before ‘config_valid’
364 | !!(tconf->flags & (TEST_SINGLE_CRTC_CLONE | TEST_TIMINGS))
| ^
| )
365 | config_valid = false;
| ~~~~~~~~~~~~
../tests/kms_setmode.c:363:6: note: to match this ‘(’
363 | if (encoder_usage_count[i] > 1 &&
| ^
../tests/kms_setmode.c:369:1: error: expected expression before ‘}’ token
369 | }
| ^ ninja: build stopped: subcommand failed.
section_end:1628246761:step_script
section_start:1628246761:cleanup_file_variables
Cleaning up file based variables
section_end:1628246763:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-oldest-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12557634):
../tests/kms_setmode.c: In function ‘setup_crtcs’:
../tests/kms_setmode.c:364:63: error: expected ‘)’ before ‘config_valid’
364 | !!(tconf->flags & (TEST_SINGLE_CRTC_CLONE | TEST_TIMINGS))
| ^
| )
365 | config_valid = false;
| ~~~~~~~~~~~~
../tests/kms_setmode.c:363:6: note: to match this ‘(’
363 | if (encoder_usage_count[i] > 1 &&
| ^
../tests/kms_setmode.c:369:1: error: expected expression before ‘}’ token
369 | }
| ^ ninja: build stopped: subcommand failed.
section_end:1628246759:step_script
section_start:1628246759:cleanup_file_variables
Cleaning up file based variables
section_end:1628246760:cleanup_file_variables
ERROR: Job failed: exit code 1
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/375993