tests/kms_rotation_crc: Move platform checks to one place for non exhaust fence cases
PATCH v5 1/1 tests/kms_rotation_crc: Move platform checks to one place for non exhaust fence cases
From: Anusha Srivatsa <[email protected]>
Cleanup the testcases by moving the platform checks to a single function.
The earlier version of the path is posted here [1]
v2: Make use of the property enums to get the supported rotations
v3: Move hardcodings to a single function(Ville)
v4: Include the cherryview exception for reflect subtest(Maarten)
v5: Rebase and move the check from CNL to ICL for reflect-x case
[1]: https://patchwork.freedesktop.org/patch/209647/
--- tests/kms_rotation_crc.c | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-)
tests/kms_rotation_crc.c +20 -15
@@ -43,6 +43,7 @@ typedef struct {uint32_t override_fmt;uint64_t override_tiling;int devid; +int gen; } data_t; typedef struct {
@@ -284,6 +285,17 @@ static void prepare_fbs(data_t *data, igt_output_t *output,igt_plane_set_position (plane, data->pos_x, data->pos_y); } +static void igt_check_rotation (data_t *data) +{ +if (data->rotation & (IGT_ROTATION_90 |IGT_ROTATION_270 )) +igt_require (data->gen >=9 ); +else if (data->rotation &IGT_REFLECT_X ) +igt_require (data->gen >=11 || + (IS_CHERRYVIEW (data->devid) && (data->rotation &IGT_ROTATION_0 ))); +else if (data->rotation &IGT_ROTATION_180 ) +igt_require (data->gen >=4 ); +} + static void test_single_case(data_t *data, enum pipe pipe, igt_output_t *output, igt_plane_t *plane, enum rectangle_type rect,
@@ -352,15 +364,18 @@ static void test_plane_rotation(data_t *data, int plane_type, bool test_bad_formigt_display_require_output (display); +igt_check_rotation (data); +for_each_pipe_with_valid_output (display, pipe, output) {igt_plane_t *plane;int i, j; -if (IS_CHERRYVIEW (data->devid) && pipe !=PIPE_B ) -continue ; -igt_output_set_pipe (output, pipe); +if (IS_CHERRYVIEW (data->devid) && (data->rotation &IGT_REFLECT_X ) && + pipe !=kmstest_pipe_to_index ('B' )) +continue ; + plane =igt_output_get_plane_type (output, plane_type);igt_require (igt_plane_has_prop (plane,IGT_PLANE_ROTATION ));
@@ -521,14 +536,13 @@ igt_main };data_t data = {}; -int gen =0 ;igt_skip_on_simulation (); igt_fixture { data.gfx_fd =drm_open_driver_master (DRIVER_INTEL ); data.devid =intel_get_drm_devid (data.gfx_fd); - gen =intel_gen (data.devid); + data.gen =intel_gen (data.devid);kmstest_set_vt_graphics_mode ();
@@ -541,16 +555,12 @@ igt_mainigt_subtest_f ("%s-rotation-%s" ,plane_test_str (subtest->plane), rot_test_str(subtest->rot)) { -igt_require (!(subtest->rot & - (IGT_ROTATION_90 |IGT_ROTATION_270 )) || - gen >=9 ); data.rotation = subtest->rot;test_plane_rotation (&data, subtest->plane, false); } } igt_subtest_f("sprite-rotation-90-pos-100-0") { -igt_require (gen >=9 ); data.rotation =IGT_ROTATION_90 ; data.pos_x =100 , data.pos_y =0 ;
@@ -560,7 +570,6 @@ igt_main data.pos_y =0 ; igt_subtest_f("bad-pixel-format") { -igt_require (gen >=9 ); data.rotation =IGT_ROTATION_90 ; data.override_fmt =DRM_FORMAT_RGB565 ;test_plane_rotation (&data,DRM_PLANE_TYPE_PRIMARY , true);
@@ -568,7 +577,6 @@ igt_main data.override_fmt =0 ; igt_subtest_f("bad-tiling") { -igt_require (gen >=9 ); data.rotation =IGT_ROTATION_90 ; data.override_tiling =LOCAL_I915_FORMAT_MOD_X_TILED ;test_plane_rotation (&data,DRM_PLANE_TYPE_PRIMARY , true);
@@ -579,9 +587,6 @@ igt_mainigt_subtest_f ("primary-%s-reflect-x-%s" ,tiling_test_str (reflect_x->tiling), rot_test_str(reflect_x->rot)) { -igt_require (gen >=10 || - (IS_CHERRYVIEW (data.devid) && reflect_x->rot ==IGT_ROTATION_0 - && reflect_x->tiling ==LOCAL_I915_FORMAT_MOD_X_TILED )); data.rotation = (IGT_REFLECT_X | reflect_x->rot); data.override_tiling = reflect_x->tiling;test_plane_rotation (&data,DRM_PLANE_TYPE_PRIMARY , false);
@@ -596,7 +601,7 @@ igt_mainenum pipe pipe;igt_output_t *output; -igt_require (gen >=9 ); +igt_require (data.gen >=9 );igt_display_require_output (&data.display);for_each_pipe_with_valid_output (&data.display, pipe, output) {
Signature · 6 lines
2.9.3 _______________________________________________ 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_rotation_crc: Move platform checks to one place for non exhaust fence cases (rev3)
== Series Details ==
== Series Details ==
Series: tests/kms_rotation_crc: Move platform checks to one place for non exhaust fence cases (rev3)
URL : https://patchwork.freedesktop.org/series/40553/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4404 -> IGTPW_1514 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/40553/revisions/3/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in IGTPW_1514:
=== IGT changes ===
==== Possible regressions ====
igt@gem_exec_suspend@basic-s3:
{fi-cfl-8109u}: PASS -> INCOMPLETE== Known issues ==
Here are the changes found in IGTPW_1514 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_frontbuffer_tracking@basic:
fi-hsw-peppy: PASS -> DMESG-FAIL (fdo#102614, fdo#106103)
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
fi-snb-2520m: PASS -> INCOMPLETE (fdo#103713) {name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
fdo#102614 https://bugs.freedesktop.org/show_bug.cgi?id=102614
fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fdo#106103 https://bugs.freedesktop.org/show_bug.cgi?id=106103
== Participating hosts (45 -> 40) ==
Missing (5): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-hsw-4200u
== Build changes ==
* IGT: IGT_4531 -> IGTPW_1514
CI_DRM_4404: ceaab659002c938f1788b7458d5081fadc3c1ddc @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1514: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1514/
IGT_4531: a14bc8b4d69eaca189665de505e6b10cbfbb7730 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1514/issues.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for tests/kms_rotation_crc: Move platform checks to one place for non exhaust fence cases (rev3)
In reply to Radhakrishna Sripada== Series Details ==
== Series Details ==
Series: tests/kms_rotation_crc: Move platform checks to one place for non exhaust fence cases (rev3)
URL : https://patchwork.freedesktop.org/series/40553/
State : failure
== Summary ==
= CI Bug Log - changes from IGT_4531_full -> IGTPW_1514_full =
== Summary - FAILURE ==
Serious unknown changes coming with IGTPW_1514_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_1514_full, 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/40553/revisions/3/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in IGTPW_1514_full:
=== IGT changes ===
==== Possible regressions ====
igt@kms_rotation_crc@primary-y-tiled-reflect-x-270:
shard-glk: SKIP -> FAIL +3
shard-apl: SKIP -> FAIL +3
igt@kms_rotation_crc@primary-y-tiled-reflect-x-90:
shard-kbl: NOTRUN -> FAIL +1
igt@kms_rotation_crc@primary-yf-tiled-reflect-x-270:
shard-kbl: SKIP -> FAIL
==== Warnings ====
igt@gem_exec_schedule@deep-blt:
shard-kbl: SKIP -> PASS +1
igt@kms_cursor_crc@cursor-64x64-dpms:
shard-snb: SKIP -> PASS== Known issues ==
Here are the changes found in IGTPW_1514_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@drv_selftest@live_gtt:
shard-apl: PASS -> FAIL (fdo#105347)
igt@gem_busy@close-race:
shard-snb: PASS -> INCOMPLETE (fdo#105411)
igt@gem_exec_schedule@pi-ringfull-bsd1:
shard-kbl: NOTRUN -> FAIL (fdo#103158) +1
igt@kms_available_modes_crc@available_mode_test_crc:
shard-kbl: NOTRUN -> FAIL (fdo#106641)
igt@kms_draw_crc@draw-method-rgb565-pwrite-ytiled:
shard-glk: PASS -> FAIL (fdo#104724) +1
igt@kms_flip@2x-plain-flip-fb-recreate-interruptible:
shard-glk: PASS -> FAIL (fdo#100368)
igt@kms_flip@flip-vs-expired-vblank:
shard-glk: PASS -> FAIL (fdo#105189)
igt@kms_plane_multiple@atomic-pipe-a-tiling-x:
shard-snb: PASS -> FAIL (fdo#103166, fdo#104724)
igt@kms_sysfs_edid_timing:
shard-kbl: NOTRUN -> FAIL (fdo#100047)
==== Possible fixes ====
igt@drv_selftest@live_hangcheck:
shard-apl: DMESG-FAIL (fdo#106560, fdo#106947) -> PASS
igt@gem_persistent_relocs@forked-faulting-reloc:
shard-snb: INCOMPLETE (fdo#105411) -> PASS
igt@kms_available_modes_crc@available_mode_test_crc:
shard-snb: FAIL (fdo#106641) -> PASS
igt@kms_cursor_legacy@2x-nonblocking-modeset-vs-cursor-atomic:
shard-glk: FAIL (fdo#106509, fdo#105454) -> PASS
igt@kms_flip@2x-flip-vs-expired-vblank:
shard-glk: FAIL (fdo#105363) -> PASS
igt@kms_frontbuffer_tracking@fbc-1p-pri-indfb-multidraw:
shard-snb: FAIL (fdo#103167, fdo#104724) -> PASS
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-mmap-wc:
shard-glk: FAIL (fdo#103167, fdo#104724) -> PASS
igt@kms_rotation_crc@sprite-rotation-180:
shard-snb: FAIL (fdo#103925, fdo#104724) -> PASS
igt@testdisplay:
shard-glk: INCOMPLETE (fdo#103359, k.org#198133) -> PASS
==== Warnings ====
igt@drv_selftest@live_gtt:
shard-kbl: FAIL (fdo#105347) -> INCOMPLETE (fdo#103665) fdo#100047 https://bugs.freedesktop.org/show_bug.cgi?id=100047
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
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#103359 https://bugs.freedesktop.org/show_bug.cgi?id=103359
fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#105189 https://bugs.freedesktop.org/show_bug.cgi?id=105189
fdo#105347 https://bugs.freedesktop.org/show_bug.cgi?id=105347
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#105411 https://bugs.freedesktop.org/show_bug.cgi?id=105411
fdo#105454 https://bugs.freedesktop.org/show_bug.cgi?id=105454
fdo#106509 https://bugs.freedesktop.org/show_bug.cgi?id=106509
fdo#106560 https://bugs.freedesktop.org/show_bug.cgi?id=106560
fdo#106641 https://bugs.freedesktop.org/show_bug.cgi?id=106641
fdo#106947 https://bugs.freedesktop.org/show_bug.cgi?id=106947
k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133
== Participating hosts (5 -> 5) ==
No changes in participating hosts
== Build changes ==
* IGT: IGT_4531 -> IGTPW_1514
* Linux: CI_DRM_4401 -> CI_DRM_4404
CI_DRM_4401: 4fe59a304a9a855a1c0e9a576c94d4cca239b427 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4404: ceaab659002c938f1788b7458d5081fadc3c1ddc @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1514: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1514/
IGT_4531: a14bc8b4d69eaca189665de505e6b10cbfbb7730 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1514/shards.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev