tests/kms_atomic_transition: Do not timeout when number of sprites is huge, v5.
PATCH 1/1 tests/kms_atomic_transition: Do not timeout when number of sprites is huge, v5.
We mostly care about the plane type, because sometimes the driver may do silly things when only a cursor is enabled for example, so we reduce the number of tests. This puts an upper bound on the number of plane combinations being tested, which is nice for gen11.
Changes since v1:
- Make 2 groups for overlay planes, and randomly put planes in either group. Changes since v2:
- Include igt_rand.h to compiler error.
Changes since v3:
- Fix logical error resulting in crash.
Changes since v4:
- Fix logical error harder.
--- tests/kms_atomic_transition.c | 44 +++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 7 deletions(-)
tests/kms_atomic_transition.c +37 -7
@@ -22,6 +22,7 @@*/ #include "igt.h" +#include "igt_rand.h" #include "drmtest.h" #include "sw_sync.h" #include <errno.h>
@@ -41,7 +42,7 @@struct plane_parms {struct igt_fb *fb; -uint32_t width, height; +uint32_t width, height, mask; };/* globals for fence support */
@@ -131,7 +132,7 @@ wm_setup_plane(igt_display_t *display, enum pipe pipe,for_each_plane_on_pipe (display, pipe, plane) {int i = plane->index; -if (!((1 << plane->index) & mask)) { +if (!mask || !(parms[i].mask & mask)) {if (plane->values[IGT_PLANE_FB_ID ])igt_plane_set_fb (plane,NULL );continue ;
@@ -192,13 +193,16 @@ static void setup_parms(igt_display_t *display, enum pipe pipe,struct igt_fb *primary_fb, struct igt_fb *argb_fb, struct igt_fb *sprite_fb, - struct plane_parms *parms) + struct plane_parms *parms, + unsigned *iter_max) { uint64_t cursor_width, cursor_height;unsigned sprite_width, sprite_height, prev_w, prev_h;bool max_sprite_width, max_sprite_height, alpha = true;uint32_t n_planes = display->pipes[pipe].n_planes; +uint32_t n_overlays =0 , overlays[n_planes];igt_plane_t *plane; +uint32_t iter_mask =3 ;do_or_die (drmGetCap (display->drm_fd,DRM_CAP_CURSOR_WIDTH , &cursor_width));if (cursor_width >= mode->hdisplay)
@@ -215,12 +219,37 @@ static void setup_parms(igt_display_t *display, enum pipe pipe, parms[i].fb = primary_fb; parms[i].width = mode->hdisplay; parms[i].height = mode->vdisplay; + parms[i].mask =1 <<0 ; }else if (plane->type ==DRM_PLANE_TYPE_CURSOR ) { parms[i].fb = argb_fb; parms[i].width = cursor_width; parms[i].height = cursor_height; - }else + parms[i].mask =1 <<1 ; + }else { parms[i].fb = sprite_fb; + parms[i].mask =1 <<2 ; + + iter_mask |=1 <<2 ; + + overlays[n_overlays++] = i; + } + } + +if (n_overlays >=2 ) { +uint32_t i; + +/* +* Create 2 groups for overlays, make sure 1 plane is put +* in each then spread the rest out. +*/ + iter_mask |=1 <<3 ; + parms[overlays[n_overlays -1 ]].mask =1 <<3 ; + +for (i =1 ; i < n_overlays -1 ; i++) { +int val =hars_petruska_f54_1_random_unsafe_max (2 ); + + parms[overlays[i]].mask =1 << (2 + val); + } } igt_create_fb(display->drm_fd, cursor_width, cursor_height,
@@ -229,7 +258,8 @@ static void setup_parms(igt_display_t *display, enum pipe pipe,igt_create_fb (display->drm_fd, cursor_width, cursor_height,DRM_FORMAT_ARGB8888 ,LOCAL_DRM_FORMAT_MOD_NONE , sprite_fb); -if (n_planes <3 ) + *iter_max = iter_mask +1 ; +if (!n_overlays)return ;/*
@@ -390,7 +420,7 @@ run_transition_test(igt_display_t *display, enum pipe pipe, igt_output_t *outputdrmModeModeInfo *mode, override_mode;igt_plane_t *plane;igt_pipe_t *pipe_obj = &display->pipes[pipe]; -uint32_t iter_max =1 << pipe_obj->n_planes, i; +uint32_t iter_max, i;struct plane_parms parms[pipe_obj->n_planes];unsigned flags =0 ;int ret;
@@ -428,7 +458,7 @@ run_transition_test(igt_display_t *display, enum pipe pipe, igt_output_t *outputigt_display_commit2 (display,COMMIT_ATOMIC ); -setup_parms (display, pipe, mode, &fb, &argb_fb, &sprite_fb, parms); +setup_parms (display, pipe, mode, &fb, &argb_fb, &sprite_fb, parms, &iter_max);/* * In some configurations the tests may not run to completion with all
Signature · 6 lines
2.19.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for tests/kms_atomic_transition: Do not timeout when number of sprites is huge, v5.
== Series Details ==
== Series Details ==
Series: tests/kms_atomic_transition: Do not timeout when number of sprites is huge, v5.
URL : https://patchwork.freedesktop.org/series/52018/
State : success
== Summary ==
= CI Bug Log - changes from IGT_4706 -> IGTPW_2038 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/52018/revisions/1/mbox/
== Known issues ==
Here are the changes found in IGTPW_2038 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_exec_suspend@basic-s4-devices:
fi-blb-e6850: PASS -> INCOMPLETE (fdo#107718)
igt@kms_frontbuffer_tracking@basic:
fi-byt-clapper: PASS -> FAIL (fdo#103167)
igt@kms_pipe_crc_basic@nonblocking-crc-pipe-b:
fi-byt-clapper: PASS -> FAIL (fdo#107362)
==== Possible fixes ====
igt@kms_flip@basic-flip-vs-dpms:
fi-skl-6700hq: DMESG-WARN (fdo#105998) -> PASS fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#105998 https://bugs.freedesktop.org/show_bug.cgi?id=105998
fdo#107362 https://bugs.freedesktop.org/show_bug.cgi?id=107362
fdo#107718 https://bugs.freedesktop.org/show_bug.cgi?id=107718
== Participating hosts (48 -> 43) ==
Missing (5): fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan fi-icl-u2 fi-ctg-p8600
== Build changes ==
* IGT: IGT_4706 -> IGTPW_2038
CI_DRM_5081: f5e16acf6c85d38756c3efdb77ec6aede55df0ba @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2038: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2038/
IGT_4706: 5421c73a7db3cfaa85ab24325fe6e898cbb27fb3 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2038/issues.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for tests/kms_atomic_transition: Do not timeout when number of sprites is huge, v5.
In reply to Maarten Lankhorst== Series Details ==
== Series Details ==
Series: tests/kms_atomic_transition: Do not timeout when number of sprites is huge, v5.
URL : https://patchwork.freedesktop.org/series/52018/
State : success
== Summary ==
= CI Bug Log - changes from IGT_4706_full -> IGTPW_2038_full =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/52018/revisions/1/mbox/
== Known issues ==
Here are the changes found in IGTPW_2038_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_exec_suspend@basic-s3:
shard-kbl: PASS -> INCOMPLETE (fdo#103665)
igt@gem_tiled_fence_blits@normal:
shard-apl: PASS -> INCOMPLETE (fdo#103927)
igt@kms_available_modes_crc@available_mode_test_crc:
shard-apl: PASS -> FAIL (fdo#106641)
igt@kms_color@pipe-b-degamma:
shard-apl: PASS -> FAIL (fdo#104782)
igt@kms_cursor_crc@cursor-128x128-suspend:
shard-apl: PASS -> FAIL (fdo#103191, fdo#103232)
shard-kbl: PASS -> FAIL (fdo#103191, fdo#103232)
igt@kms_cursor_crc@cursor-64x21-random:
shard-apl: PASS -> FAIL (fdo#103232) +5
igt@kms_cursor_crc@cursor-64x64-onscreen:
shard-kbl: PASS -> FAIL (fdo#103232) +2
igt@kms_cursor_crc@cursor-size-change:
shard-glk: PASS -> FAIL (fdo#103232) +2
igt@kms_flip@2x-flip-vs-fences:
shard-glk: PASS -> DMESG-WARN (fdo#106538, fdo#105763) +4
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-render:
shard-kbl: PASS -> FAIL (fdo#103167)
shard-apl: PASS -> FAIL (fdo#103167) +2
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-mmap-wc:
shard-glk: PASS -> FAIL (fdo#103167) +4
igt@kms_frontbuffer_tracking@fbc-2p-rte:
shard-glk: PASS -> FAIL (fdo#105682, fdo#103167)
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
shard-hsw: PASS -> DMESG-WARN (fdo#102614)
igt@kms_plane@plane-position-covered-pipe-b-planes:
shard-glk: PASS -> FAIL (fdo#103166) +2
igt@kms_plane_multiple@atomic-pipe-a-tiling-yf:
shard-kbl: PASS -> FAIL (fdo#103166)
igt@kms_plane_multiple@atomic-pipe-c-tiling-yf:
shard-apl: PASS -> FAIL (fdo#103166) +2
igt@syncobj_wait@reset-during-wait-for-submit:
shard-snb: PASS -> INCOMPLETE (fdo#105411)
==== Possible fixes ====
igt@drv_suspend@debugfs-reader:
shard-kbl: INCOMPLETE (fdo#103665) -> PASS
igt@gem_exec_reloc@basic-wc-cpu-noreloc:
shard-snb: INCOMPLETE (fdo#105411) -> PASS
igt@kms_ccs@pipe-a-crc-sprite-planes-basic:
shard-glk: FAIL (fdo#108145) -> PASS +1
shard-kbl: FAIL (fdo#108145, fdo#107725) -> PASS
igt@kms_color@pipe-a-legacy-gamma:
shard-apl: FAIL (fdo#108145, fdo#104782) -> PASS
igt@kms_cursor_crc@cursor-128x128-random:
shard-apl: FAIL (fdo#103232) -> PASS +3
igt@kms_cursor_crc@cursor-128x128-sliding:
shard-glk: FAIL (fdo#103232) -> PASS
igt@kms_cursor_crc@cursor-64x64-random:
shard-kbl: FAIL (fdo#103232) -> PASS
igt@kms_cursor_crc@cursor-64x64-suspend:
shard-apl: FAIL (fdo#103191, fdo#103232) -> PASS +1
igt@kms_flip@flip-vs-expired-vblank-interruptible:
shard-glk: FAIL (fdo#105363) -> PASS
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-onoff:
shard-apl: FAIL (fdo#103167) -> PASS
igt@kms_frontbuffer_tracking@fbc-1p-rte:
shard-apl: FAIL (fdo#105682, fdo#103167) -> PASS
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-move:
shard-glk: FAIL (fdo#103167) -> PASS +5
igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
shard-apl: FAIL (fdo#108145) -> PASS
igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
shard-kbl: FAIL (fdo#108145) -> PASS +1
igt@kms_plane_multiple@atomic-pipe-a-tiling-y:
shard-glk: FAIL (fdo#103166) -> PASS
igt@kms_plane_multiple@atomic-pipe-c-tiling-y:
shard-apl: FAIL (fdo#103166) -> PASS
igt@kms_properties@connector-properties-legacy:
shard-kbl: DMESG-WARN (fdo#105345, fdo#103313) -> PASS
igt@kms_setmode@basic:
shard-apl: FAIL (fdo#99912) -> PASS
igt@pm_rpm@system-suspend:
shard-kbl: INCOMPLETE (fdo#103665, fdo#107807) -> PASS
==== Warnings ====
igt@gem_exec_schedule@pi-ringfull-blt:
shard-glk: FAIL (fdo#103158) -> DMESG-FAIL (fdo#103158, fdo#106538)
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen:
shard-glk: FAIL (fdo#103167) -> DMESG-WARN (fdo#106538, fdo#105763) fdo#102614 https://bugs.freedesktop.org/show_bug.cgi?id=102614
fdo#103158 https://bugs.freedesktop.org/show_bug.cgi?id=103158
fdo#103166 https://bugs.freedesktop.org/show_bug.cgi?id=103166
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#103232 https://bugs.freedesktop.org/show_bug.cgi?id=103232
fdo#103313 https://bugs.freedesktop.org/show_bug.cgi?id=103313
fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
fdo#103927 https://bugs.freedesktop.org/show_bug.cgi?id=103927
fdo#104782 https://bugs.freedesktop.org/show_bug.cgi?id=104782
fdo#105345 https://bugs.freedesktop.org/show_bug.cgi?id=105345
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#105411 https://bugs.freedesktop.org/show_bug.cgi?id=105411
fdo#105682 https://bugs.freedesktop.org/show_bug.cgi?id=105682
fdo#105763 https://bugs.freedesktop.org/show_bug.cgi?id=105763
fdo#106538 https://bugs.freedesktop.org/show_bug.cgi?id=106538
fdo#106641 https://bugs.freedesktop.org/show_bug.cgi?id=106641
fdo#107725 https://bugs.freedesktop.org/show_bug.cgi?id=107725
fdo#107807 https://bugs.freedesktop.org/show_bug.cgi?id=107807
fdo#108145 https://bugs.freedesktop.org/show_bug.cgi?id=108145
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
== Participating hosts (6 -> 5) ==
Missing (1): shard-skl
== Build changes ==
* IGT: IGT_4706 -> IGTPW_2038
CI_DRM_5081: f5e16acf6c85d38756c3efdb77ec6aede55df0ba @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2038: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2038/
IGT_4706: 5421c73a7db3cfaa85ab24325fe6e898cbb27fb3 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2038/shards.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev