Fix IGT Warnings due to dynamic subtest inclusion
PATCH 1/1 Fix IGT Warnings due to dynamic subtest inclusion
From: Nidhi Gupta <[email protected]>
--- tests/kms_atomic_interruptible.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
tests/kms_atomic_interruptible.c +14 -0
@@ -288,7 +288,9 @@ igt_mainfor_each_pipe_with_valid_output (&display, pipe, output) { igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))run_plane_test (&display, pipe, output, test_legacy_modeset,DRM_PLANE_TYPE_PRIMARY ); + {break ; + } } }
@@ -296,7 +298,9 @@ igt_mainfor_each_pipe_with_valid_output (&display, pipe, output) { igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))run_plane_test (&display, pipe, output, test_atomic_modeset,DRM_PLANE_TYPE_PRIMARY ); + {break ; + } } }
@@ -304,7 +308,9 @@ igt_mainfor_each_pipe_with_valid_output (&display, pipe, output) { igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))run_plane_test (&display, pipe, output, test_legacy_dpms,DRM_PLANE_TYPE_PRIMARY ); + {break ; + } } }
@@ -312,7 +318,9 @@ igt_mainfor_each_pipe_with_valid_output (&display, pipe, output) { igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))run_plane_test (&display, pipe, output, test_pageflip,DRM_PLANE_TYPE_PRIMARY ); + {break ; + } } }
@@ -320,7 +328,9 @@ igt_mainfor_each_pipe_with_valid_output (&display, pipe, output) { igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))run_plane_test (&display, pipe, output, test_setcursor,DRM_PLANE_TYPE_CURSOR ); + {break ; + } } }
@@ -328,7 +338,9 @@ igt_mainfor_each_pipe_with_valid_output (&display, pipe, output) { igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))run_plane_test (&display, pipe, output, test_setplane,DRM_PLANE_TYPE_PRIMARY ); + {break ; + } } }
@@ -336,7 +348,9 @@ igt_mainfor_each_pipe_with_valid_output (&display, pipe, output) { igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))run_plane_test (&display, pipe, output, test_setplane,DRM_PLANE_TYPE_CURSOR ); + {break ; + } } }
Signature · 6 lines
2.26.2 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 13 lines · On Mon, 09 Nov 2020 20:55:10 -0800, <[email protected]> wrote:
From: Nidhi Gupta <[email protected]>
Signed-off-by Nidhi Gupta <[email protected]>--- tests/kms_atomic_interruptible.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)tests/kms_atomic_interruptible.c +0
-0
tests/kms_atomic_interruptible.c igt_main · line 294
Quoted 7 lines
tests/kms_atomic_interruptible.c +2
-0@@ -288,7 +288,9 @@ igt_mainfor_each_pipe_with_valid_output (&display, pipe, output) { igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))run_plane_test (&display, pipe, output, test_legacy_modeset,DRM_PLANE_TYPE_PRIMARY ); + {break ; + } }
Are we trying to break after the first call to run_plane_test() here? In that case why are we using a for loop (for_each_pipe_with_valid_output)? I am not sure if igt_subtest_with_dynamic/igt_dynamic_f combinations can take a break statement, this code pattern is certainly not used elsewhere.
So the patch does fix the warnings (which is a relief) but otherwise I don't know if it makes sense. If not, I'd say revert the previous patch and do it a different way.
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 27 lines · Ashutosh
Quoted 13 lines · On Mon, 09 Nov 2020 20:55:10 -0800, <[email protected]> wrote:
From: Nidhi Gupta <[email protected]>
Signed-off-by Nidhi Gupta <[email protected]>--- tests/kms_atomic_interruptible.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)tests/kms_atomic_interruptible.c +0
-0tests/kms_atomic_interruptible.c igt_main · line 294
Quoted 7 lines
tests/kms_atomic_interruptible.c +2
-0@@ -288,7 +288,9 @@ igt_mainfor_each_pipe_with_valid_output (&display, pipe, output) { igt_dynamic_f("%s-pipe-%s", igt_output_name(output), kmstest_pipe_name(pipe))run_plane_test (&display, pipe, output, test_legacy_modeset,DRM_PLANE_TYPE_PRIMARY ); + {break ; + } }Are we trying to break after the first call to
run_plane_test()here? In that case why are we using a for loop (for_each_pipe_with_valid_output)? I am not sure if igt_subtest_with_dynamic/igt_dynamic_f combinations can take a break statement, this code pattern is certainly not used elsewhere.
Quoted 3 lines
So the patch does fix the warnings (which is a relief) but otherwise I don't know if it makes sense. If not, I'd say revert the previous patch and do it a different way.
IMO patch doesn't makes sense. @Nidhi - please decide which "for" loop you want to break and resend.
--
Zbigneiw
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev