lib/tests: fix conflicting args test
PATCH 1/5 lib/tests: fix conflicting args test
We want to check if the long option conflicts with one from the core. The check for conflicting short option already exists just above.
--- lib/tests/igt_conflicting_args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/tests/igt_conflicting_args.c +1 -1
@@ -91,7 +91,7 @@ int main(int argc, char **argv)internal_assert_wsignaled (do_fork (),SIGABRT );/* conflict on long option 'val' representations */ - long_options[0 ] = (struct option ) {"iterations" , required_argument,NULL ,0 }; + long_options[0 ] = (struct option ) {"list-subtests" , required_argument,NULL ,0 }; short_options ="" ;internal_assert_wsignaled (do_fork (),SIGABRT );
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/5 lib/igt_core: reserve long options for individual tests
Start the core optiosn from 500 so the individual tests can have their own options starting from 0. This makes it easier to set the long options without conflicting.
500 is just a magic number, higher than any ascii char that could be used in the individual test.
While at it, fix the coding style to use tab rather than space.
--- lib/igt_core.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-)
lib/igt_core.c +10 -6
@@ -280,12 +280,16 @@ int test_children_sz;bool test_child;enum { -OPT_LIST_SUBTESTS , -OPT_RUN_SUBTEST , -OPT_DESCRIPTION , -OPT_DEBUG , -OPT_INTERACTIVE_DEBUG , -OPT_HELP ='h' +/* +* Let the first values be used by individual tests so options don't +* conflict with core ones +*/ +OPT_LIST_SUBTESTS =500 , +OPT_RUN_SUBTEST , +OPT_DESCRIPTION , +OPT_DEBUG , +OPT_INTERACTIVE_DEBUG , +OPT_HELP ='h' };static int igt_exitcode =IGT_EXIT_SUCCESS ;
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH i-g-t 2/5] lib/igt_core: reserve long options for individual tests
Quoted 10 lines · Lucas De Marchi
Start the core optiosn from 500 so the individual tests can have their own options starting from 0. This makes it easier to set the long options without conflicting.
500 is just a magic number, higher than any ascii char that could be used in the individual test.
While at it, fix the coding style to use tab rather than space.
Signed-off-by Lucas De Marchi <[email protected]>
Quoted 22 lines
--- lib/igt_core.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-)lib/igt_core.c +3
-6@@ -280,12 +280,16 @@ int test_children_sz;bool test_child;enum { -OPT_LIST_SUBTESTS , -OPT_RUN_SUBTEST , -OPT_DESCRIPTION , -OPT_DEBUG , -OPT_INTERACTIVE_DEBUG , -OPT_HELP ='h' +/* +* Let the first values be used by individual tests so options don't +* conflict with core ones
lib/igt_core.c int test_children_sz; · line 295
Quoted 10 lines
lib/igt_core.c +7
-0+*/ +OPT_LIST_SUBTESTS =500 , +OPT_RUN_SUBTEST , +OPT_DESCRIPTION , +OPT_DEBUG , +OPT_INTERACTIVE_DEBUG , + OPT_HELP = 'h' };static int igt_exitcode =IGT_EXIT_SUCCESS ;
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH i-g-t 2/5] lib/igt_core: reserve long options for individual tests
In reply to Lucas De MarchiQuoted 10 lines · Lucas De Marchi
Start the core optiosn from 500 so the individual tests can have their own options starting from 0. This makes it easier to set the long options without conflicting.
500 is just a magic number, higher than any ascii char that could be used in the individual test.
While at it, fix the coding style to use tab rather than space.
Signed-off-by Lucas De Marchi <[email protected]>
This is much better than requiring additional opts to begin from a particular number.
Quoted 38 lines
--- lib/igt_core.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-)lib/igt_core.c +10
-6@@ -280,12 +280,16 @@ int test_children_sz;bool test_child;enum { -OPT_LIST_SUBTESTS , -OPT_RUN_SUBTEST , -OPT_DESCRIPTION , -OPT_DEBUG , -OPT_INTERACTIVE_DEBUG , -OPT_HELP ='h' +/* +* Let the first values be used by individual tests so options don't +* conflict with core ones +*/ +OPT_LIST_SUBTESTS =500 , +OPT_RUN_SUBTEST , +OPT_DESCRIPTION , +OPT_DEBUG , +OPT_INTERACTIVE_DEBUG , +OPT_HELP ='h' };static int igt_exitcode =IGT_EXIT_SUCCESS ;Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/5 lib/igt_core: 0 is a valid val for long options
In reply to Lucas De MarchiThis is usually used by long options when working with enum to set long option values. So replace the strchr() with a memchr() to take that into account.
--- lib/igt_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
lib/igt_core.c +3 -2
@@ -680,6 +680,7 @@ static int common_init(int *argc, char **argv, };char *short_opts;const char *std_short_opts ="h" ; +size_t std_short_opts_len =strlen (std_short_opts);struct option *combined_opts;int extra_opt_count;int all_opt_count;
@@ -713,7 +714,7 @@ static int common_init(int *argc, char **argv,/* check for conflicts with standard short options */ if (extra_long_opts[extra_opt_count].val !=':' - && (conflicting_char =strchr (std_short_opts, extra_long_opts[extra_opt_count].val))) { + && (conflicting_char =memchr (std_short_opts, extra_long_opts[extra_opt_count].val, std_short_opts_len))) {igt_critical ("Conflicting long and short option 'val' representation between --%s and -%c\n" , extra_long_opts[extra_opt_count].name, *conflicting_char);
@@ -727,7 +728,7 @@ static int common_init(int *argc, char **argv,continue ;/* check for conflicts with standard short options */ -if (strchr (std_short_opts, extra_short_opts[i])) { +if (memchr (std_short_opts, extra_short_opts[i], std_short_opts_len)) {igt_critical ("Conflicting short option: -%c\n" , std_short_opts[i]);assert (0 ); }
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH i-g-t 3/5] lib/igt_core: 0 is a valid val for long options
Quoted 5 lines · Lucas De Marchi
This is usually used by long options when working with enum to set long option values. So replace the
strchr()with amemchr()to take that into account.Signed-off-by Lucas De Marchi <[email protected]>
The latter strchr-memchr change is needless but meh.
Quoted 41 lines
--- lib/igt_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)lib/igt_core.c +3
-2@@ -680,6 +680,7 @@ static int common_init(int *argc, char **argv, };char *short_opts;const char *std_short_opts ="h" ; +size_t std_short_opts_len =strlen (std_short_opts);struct option *combined_opts;int extra_opt_count;int all_opt_count;@@ -713,7 +714,7 @@ static int common_init(int *argc, char **argv,/* check for conflicts with standard short options */ if (extra_long_opts[extra_opt_count].val !=':' - && (conflicting_char =strchr (std_short_opts, extra_long_opts[extra_opt_count].val))) { + && (conflicting_char =memchr (std_short_opts, extra_long_opts[extra_opt_count].val, std_short_opts_len))) {igt_critical ("Conflicting long and short option 'val' representation between --%s and -%c\n" , extra_long_opts[extra_opt_count].name, *conflicting_char);@@ -727,7 +728,7 @@ static int common_init(int *argc, char **argv,continue ;/* check for conflicts with standard short options */ -if (strchr (std_short_opts, extra_short_opts[i])) { +if (memchr (std_short_opts, extra_short_opts[i], std_short_opts_len)) {igt_critical ("Conflicting short option: -%c\n" , std_short_opts[i]);assert (0 ); }Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/5 testdisplay: use first available option values
In reply to Lucas De MarchiNow that core options are set to 500 and above, start from the lowest values without causing problems with conflicts. This also rename the constants to follow the names from the core.
--- tests/testdisplay.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
tests/testdisplay.c +8 -6
@@ -69,8 +69,10 @@#include <stdlib.h> #include <signal.h> -#define Yb_OPT 5 -#define Yf_OPT 6 +enum { +OPT_YB , +OPT_YF , +};static int tio_fd;struct termios saved_tio;
@@ -573,8 +575,8 @@ static void set_termio_mode(void)static char optstr[] ="3iaf:s:d:p:mrto:j:y" ;static struct option long_opts[] = { - {"yb" ,0 ,0 , Yb_OPT}, - {"yf" ,0 ,0 , Yf_OPT}, + {"yb" ,0 ,0 ,OPT_YB }, + {"yf" ,0 ,0 ,OPT_YF }, {0 ,0 ,0 ,0 } };
@@ -648,10 +650,10 @@ static int opt_handler(int opt, int opt_index, void *data) tiling =LOCAL_I915_FORMAT_MOD_X_TILED ;break ;case 'y' : -case Yb_OPT: +case OPT_YB : tiling =LOCAL_I915_FORMAT_MOD_Y_TILED ;break ; -case Yf_OPT: +case OPT_YF : tiling = LOCAL_I915_FORMAT_MOD_Yf_TILED;break ;case 'r' :
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH i-g-t 4/5] testdisplay: use first available option values
Quoted 5 lines · Lucas De Marchi
Now that core options are set to 500 and above, start from the lowest values without causing problems with conflicts. This also rename the constants to follow the names from the core.
Signed-off-by Lucas De Marchi <[email protected]>
Quoted 36 lines
--- tests/testdisplay.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)tests/testdisplay.c +6
-4@@ -69,8 +69,10 @@#include <stdlib.h> #include <signal.h> -#define Yb_OPT 5 -#define Yf_OPT 6 +enum { +OPT_YB , +OPT_YF , +};static int tio_fd;struct termios saved_tio;@@ -573,8 +575,8 @@ static void set_termio_mode(void)static char optstr[] ="3iaf:s:d:p:mrto:j:y" ;static struct option long_opts[] = { - {"yb" ,0 ,0 , Yb_OPT}, - {"yf" ,0 ,0 , Yf_OPT}, + {"yb" ,0 ,0 ,OPT_YB }, + {"yf" ,0 ,0 ,OPT_YF }, {0 ,0 ,0 ,0 } };@@ -648,10 +650,10 @@ static int opt_handler(int opt, int opt_index, void *data) tiling =LOCAL_I915_FORMAT_MOD_X_TILED ;break ;
tests/testdisplay.c static int opt_handler(int opt, int opt_index, void *data) · line 659
Quoted 10 lines
tests/testdisplay.c +2
-2case 'y' : -case Yb_OPT: +case OPT_YB : tiling =LOCAL_I915_FORMAT_MOD_Y_TILED ;break ; -case Yf_OPT: +case OPT_YF : tiling = LOCAL_I915_FORMAT_MOD_Yf_TILED;break ;case 'r' :
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH i-g-t 4/5] testdisplay: use first available option values
In reply to Lucas De MarchiQuoted 5 lines · Lucas De Marchi
Now that core options are set to 500 and above, start from the lowest values without causing problems with conflicts. This also rename the constants to follow the names from the core.
Signed-off-by Lucas De Marchi <[email protected]>
Quoted 52 lines
--- tests/testdisplay.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)tests/testdisplay.c +8
-6@@ -69,8 +69,10 @@#include <stdlib.h> #include <signal.h> -#define Yb_OPT 5 -#define Yf_OPT 6 +enum { +OPT_YB , +OPT_YF , +};static int tio_fd;struct termios saved_tio;@@ -573,8 +575,8 @@ static void set_termio_mode(void)static char optstr[] ="3iaf:s:d:p:mrto:j:y" ;static struct option long_opts[] = { - {"yb" ,0 ,0 , Yb_OPT}, - {"yf" ,0 ,0 , Yf_OPT}, + {"yb" ,0 ,0 ,OPT_YB }, + {"yf" ,0 ,0 ,OPT_YF }, {0 ,0 ,0 ,0 } };@@ -648,10 +650,10 @@ static int opt_handler(int opt, int opt_index, void *data) tiling =LOCAL_I915_FORMAT_MOD_X_TILED ;break ;case 'y' : -case Yb_OPT: +case OPT_YB : tiling =LOCAL_I915_FORMAT_MOD_Y_TILED ;break ; -case Yf_OPT: +case OPT_YF : tiling = LOCAL_I915_FORMAT_MOD_Yf_TILED;break ;case 'r' :Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/5 lib/igt_core: add -h to usage
In reply to Lucas De MarchiWe also accept the short option -h.
--- lib/igt_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/igt_core.c +1 -1
@@ -558,7 +558,7 @@ static void print_usage(const char *help_str, bool output_on_stderr)" --debug[=log-domain]\n" " --interactive-debug[=domain]\n" " --help-description\n" - " --help\n"); + " --help|-h\n");if (help_str)fprintf (f,"%s\n" , help_str); }
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH i-g-t 5/5] lib/igt_core: add -h to usage
Quoted 3 lines · Lucas De Marchi
We also accept the short option -h.
Signed-off-by Lucas De Marchi <[email protected]>
Please send (CC or otherwise) IGT patches to igt-dev in the future, please.
Quoted 24 lines
--- lib/igt_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/igt_core.c +1
-1@@ -558,7 +558,7 @@ static void print_usage(const char *help_str, bool output_on_stderr)" --debug[=log-domain]\n" " --interactive-debug[=domain]\n" " --help-description\n" - " --help\n"); + " --help|-h\n");if (help_str)fprintf (f,"%s\n" , help_str); }Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH i-g-t 5/5] lib/igt_core: add -h to usage
Quoted 8 lines · Petri Latvala
Quoted 3 lines · Lucas De Marchi
We also accept the short option -h.
Signed-off-by Lucas De Marchi <[email protected]>Reviewed-by Petri Latvala <[email protected]>Please send (CC or otherwise) IGT patches to igt-dev in the future, please.
yeah, I was doing it from a different machine and went the route of opening the mailing list and copy the address from someone's patch. Just to realize later his patch was sent to both mailing lists and I copied only the wrong one.
thanks for the review
Lucas De Marchi
Quoted 24 lines
Quoted 24 lines
--- lib/igt_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/igt_core.c +1
-2@@ -558,7 +558,7 @@ static void print_usage(const char *help_str, bool output_on_stderr)" --debug[=log-domain]\n" " --interactive-debug[=domain]\n" " --help-description\n" - " --help\n"); + " --help|-h\n");if (help_str)fprintf (f,"%s\n" , help_str); } --2.21.0
Quoted 4 lines
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for series starting with [1/5] lib/tests: fix conflicting args test
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: series starting with [1/5] lib/tests: fix conflicting args test
URL : https://patchwork.freedesktop.org/series/61355/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_6166 -> IGTPW_3078
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_3078 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_3078, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/61355/revisions/1/mbox/
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_3078:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live_execlists:
- fi-icl-u2: NOTRUN -> [DMESG-WARN][1] +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-icl-u2/igt@i915_selftest@live_execlists.html
#### Warnings ####
* igt@i915_selftest@live_hangcheck:
- fi-icl-u2: [INCOMPLETE][2] ([fdo#107713] / [fdo#108569]) -> [DMESG-WARN][3]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/fi-icl-u2/igt@i915_selftest@live_hangcheck.html
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-icl-u2/igt@i915_selftest@live_hangcheck.html
Known issues
------------
Here are the changes found in IGTPW_3078 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_mmap_gtt@basic-write-no-prefault:
- fi-icl-u3: [PASS][4] -> [DMESG-WARN][5] ([fdo#107724])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/fi-icl-u3/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-icl-u3/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3:
- {fi-apl-guc}: [DMESG-WARN][6] ([fdo#108566]) -> [PASS][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/fi-apl-guc/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-apl-guc/igt@[email protected]
* igt@i915_selftest@live_contexts:
- fi-bdw-gvtdvm: [DMESG-FAIL][8] ([fdo#110235]) -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/fi-bdw-gvtdvm/igt@i915_selftest@live_contexts.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-bdw-gvtdvm/igt@i915_selftest@live_contexts.html
* {igt@i915_selftest@live_reset}:
- fi-skl-iommu: [INCOMPLETE][10] ([fdo#108602]) -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/fi-skl-iommu/igt@i915_selftest@live_reset.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-skl-iommu/igt@i915_selftest@live_reset.html
#### Warnings ####
* igt@i915_selftest@live_hangcheck:
- fi-icl-y: [DMESG-WARN][12] -> [INCOMPLETE][13] ([fdo#107713] / [fdo#108569])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/fi-icl-y/igt@i915_selftest@live_hangcheck.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-icl-y/igt@i915_selftest@live_hangcheck.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#108602]: https://bugs.freedesktop.org/show_bug.cgi?id=108602
[fdo#110235]: https://bugs.freedesktop.org/show_bug.cgi?id=110235
Participating hosts (50 -> 44)
------------------------------
Missing (6): fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-icl-guc fi-byt-clapper fi-bdw-samus
Build changes
-------------
* IGT: IGT_5024 -> IGTPW_3078
CI_DRM_6166: 0bd6fdd57b1e01b228ba81fea2b3e9fc381b3298 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3078: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/
IGT_5024: f414756be2ac57e194919973da7b86644ba61241 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for series starting with [1/5] lib/tests: fix conflicting args test
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: series starting with [1/5] lib/tests: fix conflicting args test
URL : https://patchwork.freedesktop.org/series/61355/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6166 -> IGTPW_3078
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/61355/revisions/1/mbox/
Known issues
------------
Here are the changes found in IGTPW_3078 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_mmap_gtt@basic-write-no-prefault:
- fi-icl-u3: [PASS][1] -> [DMESG-WARN][2] ([fdo#107724])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/fi-icl-u3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-icl-u3/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3:
- {fi-apl-guc}: [DMESG-WARN][3] ([fdo#108566]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/fi-apl-guc/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-apl-guc/igt@[email protected]
* igt@i915_selftest@live_contexts:
- fi-bdw-gvtdvm: [DMESG-FAIL][5] ([fdo#110235]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/fi-bdw-gvtdvm/igt@i915_selftest@live_contexts.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-bdw-gvtdvm/igt@i915_selftest@live_contexts.html
* {igt@i915_selftest@live_reset}:
- fi-skl-iommu: [INCOMPLETE][7] ([fdo#108602]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/fi-skl-iommu/igt@i915_selftest@live_reset.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-skl-iommu/igt@i915_selftest@live_reset.html
#### Warnings ####
* igt@i915_selftest@live_hangcheck:
- fi-icl-u2: [INCOMPLETE][9] ([fdo#107713] / [fdo#108569]) -> [DMESG-WARN][10] ([fdo#110801])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/fi-icl-u2/igt@i915_selftest@live_hangcheck.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-icl-u2/igt@i915_selftest@live_hangcheck.html
- fi-icl-y: [DMESG-WARN][11] ([fdo#110801]) -> [INCOMPLETE][12] ([fdo#107713] / [fdo#108569])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/fi-icl-y/igt@i915_selftest@live_hangcheck.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/fi-icl-y/igt@i915_selftest@live_hangcheck.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#108602]: https://bugs.freedesktop.org/show_bug.cgi?id=108602
[fdo#110235]: https://bugs.freedesktop.org/show_bug.cgi?id=110235
[fdo#110801]: https://bugs.freedesktop.org/show_bug.cgi?id=110801
Participating hosts (50 -> 44)
------------------------------
Missing (6): fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-icl-guc fi-byt-clapper fi-bdw-samus
Build changes
-------------
* IGT: IGT_5024 -> IGTPW_3078
CI_DRM_6166: 0bd6fdd57b1e01b228ba81fea2b3e9fc381b3298 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3078: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/
IGT_5024: f414756be2ac57e194919973da7b86644ba61241 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 2 lines · Lucas De Marchi
We want to check if the long option conflicts with one from the core. The check for conflicting short option already exists just above.
No, this one is checking that the val (the 0) doesn't conflict.
Signature · 1 line
Petri Latvala
Quoted 26 lines
Signed-off-by Lucas De Marchi <[email protected]>--- lib/tests/igt_conflicting_args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/tests/igt_conflicting_args.c +1
-1@@ -91,7 +91,7 @@ int main(int argc, char **argv)internal_assert_wsignaled (do_fork (),SIGABRT );/* conflict on long option 'val' representations */ - long_options[0 ] = (struct option ) {"iterations" , required_argument,NULL ,0 }; + long_options[0 ] = (struct option ) {"list-subtests" , required_argument,NULL ,0 }; short_options ="" ;internal_assert_wsignaled (do_fork (),SIGABRT );Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 5 lines · Petri Latvala
Quoted 2 lines · Lucas De Marchi
We want to check if the long option conflicts with one from the core. The check for conflicting short option already exists just above.
No, this one is checking that the val (the 0) doesn't conflict.
My point is that this check is already done above. We don't need to do it again.
If you insist, then we will need to raise it to magic number 500, because 0 won't be a conflict after this series.
Lucas De Marchi
Quoted 32 lines
Signature · 2 lines
-- Petri LatvalaQuoted 22 lines
Signed-off-by Lucas De Marchi <[email protected]>--- lib/tests/igt_conflicting_args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/tests/igt_conflicting_args.c +1
-2@@ -91,7 +91,7 @@ int main(int argc, char **argv)internal_assert_wsignaled (do_fork (),SIGABRT );/* conflict on long option 'val' representations */ - long_options[0 ] = (struct option ) {"iterations" , required_argument,NULL ,0 }; + long_options[0 ] = (struct option ) {"list-subtests" , required_argument,NULL ,0 }; short_options ="" ;internal_assert_wsignaled (do_fork (),SIGABRT ); --2.21.0
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 5 lines · Lucas De Marchi
Quoted 4 lines · Petri Latvala
Quoted 2 lines · Lucas De Marchi
We want to check if the long option conflicts with one from the core. The check for conflicting short option already exists just above.
Quoted 7 lines
Quoted 1 line
No, this one is checking that the val (the 0) doesn't conflict.
My point is that this check is already done above. We don't need to do it again.
If you insist, then we will need to raise it to magic number 500, because 0 won't be a conflict after this series.
and just a reminder that I can't merge the rest without this one, otherwise it would break igt checks.
Lucas De Marchi
Quoted 28 lines
Lucas De Marchi
Quoted 25 lines
Signature · 2 lines
-- Petri LatvalaQuoted 19 lines
Signed-off-by Lucas De Marchi <[email protected]>---
lib/tests/igt_conflicting_args.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)lib/tests/igt_conflicting_args.c +1
-1@@ -91,7 +91,7 @@ int main(int argc, char **argv)internal_assert_wsignaled (do_fork (),SIGABRT );/* conflict on long option 'val' representations */ - long_options[0 ] = (struct option ) {"iterations" , required_argument,NULL ,0 }; + long_options[0 ] = (struct option ) {"list-subtests" , required_argument,NULL ,0 }; short_options ="" ;internal_assert_wsignaled (do_fork (),SIGABRT );
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
--
2.21.0_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 10 lines · Lucas De Marchi
Quoted 9 lines · Lucas De Marchi
Quoted 5 lines · Petri Latvala
Quoted 2 lines · Lucas De Marchi
We want to check if the long option conflicts with one from the core. The check for conflicting short option already exists just above.
No, this one is checking that the val (the 0) doesn't conflict.
My point is that this check is already done above. We don't need to do it again.
There's two val conflict tests. One checks for conflicts against core short options, the latter (modified here) checks for conflicts against core long option values.
Quoted 3 lines
Quoted 3 lines
If you insist, then we will need to raise it to magic number 500, because 0 won't be a conflict after this series.
Yeah that would be the correct change.
Petri
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for series starting with [1/5] lib/tests: fix conflicting args test
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: series starting with [1/5] lib/tests: fix conflicting args test
URL : https://patchwork.freedesktop.org/series/61355/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6166_full -> IGTPW_3078_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/61355/revisions/1/mbox/
Known issues
------------
Here are the changes found in IGTPW_3078_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_eio@in-flight-suspend:
- shard-apl: [PASS][1] -> [DMESG-WARN][2] ([fdo#108566]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-apl5/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-apl4/igt@[email protected]
* igt@gem_workarounds@suspend-resume-fd:
- shard-iclb: [PASS][3] -> [FAIL][4] ([fdo#110802]) +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-iclb7/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-iclb2/igt@[email protected]
* igt@kms_flip@2x-flip-vs-expired-vblank-interruptible:
- shard-hsw: [PASS][5] -> [SKIP][6] ([fdo#109271]) +15 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-hsw5/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-hsw1/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-blt:
- shard-iclb: [PASS][7] -> [FAIL][8] ([fdo#103167]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-iclb2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-iclb2/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-kbl: [PASS][9] -> [DMESG-WARN][10] ([fdo#108566]) +1 similar issue
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-kbl7/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-kbl6/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-iclb: [PASS][11] -> [FAIL][12] ([fdo#103166])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-iclb6/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-iclb1/igt@[email protected]
* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: [PASS][13] -> [SKIP][14] ([fdo#109441])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-iclb5/igt@kms_psr@psr2_cursor_mmap_cpu.html
* igt@kms_setmode@basic:
- shard-hsw: [PASS][15] -> [FAIL][16] ([fdo#99912])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-hsw1/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-hsw1/igt@[email protected]
#### Possible fixes ####
* igt@drm_read@short-buffer-block:
- shard-apl: [INCOMPLETE][17] ([fdo#103927]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-apl4/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-apl8/igt@[email protected]
* igt@gem_ctx_isolation@vecs0-s3:
- shard-kbl: [DMESG-WARN][19] ([fdo#108566]) -> [PASS][20] +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-kbl6/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-kbl2/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-accuracy:
- shard-snb: [SKIP][21] ([fdo#109271]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-snb1/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-snb5/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-atomic:
- shard-glk: [FAIL][23] ([fdo#104873]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-glk5/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-glk3/igt@[email protected]
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [SKIP][25] ([fdo#109349]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-iclb8/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-iclb2/igt@[email protected]
* igt@kms_flip@2x-plain-flip-ts-check-interruptible:
- shard-hsw: [SKIP][27] ([fdo#109271]) -> [PASS][28] +27 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-hsw1/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-hsw8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-apl: [DMESG-WARN][29] ([fdo#108566]) -> [PASS][30] +2 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-apl8/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-apl7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-pwrite:
- shard-iclb: [FAIL][31] ([fdo#103167]) -> [PASS][32] +6 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-iclb4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-pwrite.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-pwrite.html
* igt@kms_psr@psr2_primary_page_flip:
- shard-iclb: [SKIP][33] ([fdo#109441]) -> [PASS][34] +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-iclb3/igt@kms_psr@psr2_primary_page_flip.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-iclb2/igt@kms_psr@psr2_primary_page_flip.html
* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- shard-iclb: [INCOMPLETE][35] ([fdo#107713] / [fdo#110026]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-iclb7/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-iclb6/igt@[email protected]
* igt@tools_test@tools_test:
- shard-apl: [SKIP][37] ([fdo#109271]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-apl5/igt@tools_test@tools_test.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-apl6/igt@tools_test@tools_test.html
#### Warnings ####
* igt@gem_mmap_gtt@forked-big-copy:
- shard-iclb: [TIMEOUT][39] ([fdo#109673]) -> [INCOMPLETE][40] ([fdo#107713] / [fdo#109100])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6166/shard-iclb2/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/shard-iclb1/igt@[email protected]
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104873]: https://bugs.freedesktop.org/show_bug.cgi?id=104873
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109673]: https://bugs.freedesktop.org/show_bug.cgi?id=109673
[fdo#110026]: https://bugs.freedesktop.org/show_bug.cgi?id=110026
[fdo#110802]: https://bugs.freedesktop.org/show_bug.cgi?id=110802
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (10 -> 6)
------------------------------
Missing (4): pig-skl-6260u shard-skl pig-hsw-4770r pig-glk-j5005
Build changes
-------------
* IGT: IGT_5024 -> IGTPW_3078
* Piglit: piglit_4509 -> None
CI_DRM_6166: 0bd6fdd57b1e01b228ba81fea2b3e9fc381b3298 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3078: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/
IGT_5024: f414756be2ac57e194919973da7b86644ba61241 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3078/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx