* [igt-dev] [PATCH i-g-t] tests/kms_ccs: Grab the CRC when the plane is actually enabled
@ 2018-01-24 20:47 Ville Syrjala
2018-01-24 21:19 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Ville Syrjala @ 2018-01-24 20:47 UTC (permalink / raw)
To: igt-dev; +Cc: Gabriel Krisman Bertazi
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Don't turn off the plane we want to test before we grab the CRC.
Cc: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104724
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
tests/kms_ccs.c | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
index 23a225ee883f..ebf4212e770e 100644
--- a/tests/kms_ccs.c
+++ b/tests/kms_ccs.c
@@ -59,6 +59,7 @@ typedef struct {
enum pipe pipe;
enum test_flags flags;
igt_plane_t *plane;
+ igt_pipe_crc_t *pipe_crc;
} data_t;
#define RED 0x00ff0000
@@ -386,7 +387,8 @@ static void generate_fb(data_t *data, struct igt_fb *fb,
fb->domain = 0;
}
-static void try_config(data_t *data, enum test_fb_flags fb_flags)
+static void try_config(data_t *data, enum test_fb_flags fb_flags,
+ igt_crc_t *crc)
{
igt_display_t *display = &data->display;
igt_plane_t *primary;
@@ -433,11 +435,15 @@ static void try_config(data_t *data, enum test_fb_flags fb_flags)
igt_plane_set_rotation(primary, IGT_ROTATION_90);
ret = igt_display_try_commit2(display, commit);
- if (data->flags & TEST_BAD_ROTATION_90)
+ if (data->flags & TEST_BAD_ROTATION_90) {
igt_assert_eq(ret, -EINVAL);
- else
+ } else {
igt_assert_eq(ret, 0);
+ if (crc)
+ igt_pipe_crc_collect_crc(data->pipe_crc, crc);
+ }
+
igt_debug_wait_for_keypress("ccs");
if (data->plane && fb_flags & FB_COMPRESSED) {
@@ -453,7 +459,6 @@ static void test_output(data_t *data)
igt_display_t *display = &data->display;
igt_plane_t *primary;
igt_crc_t crc, ref_crc;
- igt_pipe_crc_t *pipe_crc;
enum test_fb_flags fb_flags = 0;
igt_display_require_output_on_pipe(display, data->pipe);
@@ -466,31 +471,28 @@ static void test_output(data_t *data)
igt_output_set_pipe(data->output, data->pipe);
if (data->flags & TEST_CRC) {
- pipe_crc = igt_pipe_crc_new(data->drm_fd, data->pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
-
- try_config(data, fb_flags | FB_COMPRESSED);
- igt_pipe_crc_collect_crc(pipe_crc, &ref_crc);
+ data->pipe_crc = igt_pipe_crc_new(data->drm_fd, data->pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
- try_config(data, fb_flags);
- igt_pipe_crc_collect_crc(pipe_crc, &crc);
+ try_config(data, fb_flags | FB_COMPRESSED, &ref_crc);
+ try_config(data, fb_flags, &crc);
igt_assert_crc_equal(&crc, &ref_crc);
- igt_pipe_crc_free(pipe_crc);
- pipe_crc = NULL;
+ igt_pipe_crc_free(data->pipe_crc);
+ data->pipe_crc = NULL;
}
if (data->flags & TEST_BAD_PIXEL_FORMAT ||
data->flags & TEST_BAD_ROTATION_90 ||
data->flags & TEST_NO_AUX_BUFFER ||
data->flags & TEST_BAD_CCS_HANDLE) {
- try_config(data, fb_flags | FB_COMPRESSED);
+ try_config(data, fb_flags | FB_COMPRESSED, NULL);
}
if (data->flags & TEST_BAD_AUX_STRIDE) {
- try_config(data, fb_flags | FB_COMPRESSED | FB_MISALIGN_AUX_STRIDE);
- try_config(data, fb_flags | FB_COMPRESSED | FB_SMALL_AUX_STRIDE);
- try_config(data, fb_flags | FB_COMPRESSED | FB_ZERO_AUX_STRIDE);
+ try_config(data, fb_flags | FB_COMPRESSED | FB_MISALIGN_AUX_STRIDE , NULL);
+ try_config(data, fb_flags | FB_COMPRESSED | FB_SMALL_AUX_STRIDE , NULL);
+ try_config(data, fb_flags | FB_COMPRESSED | FB_ZERO_AUX_STRIDE , NULL);
}
primary = igt_output_get_plane_type(data->output, DRM_PLANE_TYPE_PRIMARY);
--
2.13.6
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_ccs: Grab the CRC when the plane is actually enabled
2018-01-24 20:47 [igt-dev] [PATCH i-g-t] tests/kms_ccs: Grab the CRC when the plane is actually enabled Ville Syrjala
@ 2018-01-24 21:19 ` Patchwork
2018-01-24 23:03 ` [igt-dev] [PATCH i-g-t] " Gabriel Krisman Bertazi
2018-01-25 0:26 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2018-01-24 21:19 UTC (permalink / raw)
To: Ville Syrjala; +Cc: igt-dev
== Series Details ==
Series: tests/kms_ccs: Grab the CRC when the plane is actually enabled
URL : https://patchwork.freedesktop.org/series/37066/
State : success
== Summary ==
IGT patchset tested on top of latest successful build
ec7d71660694157af698741eac3764203bf338ec igt/kms_frontbuffer_tracking: Show FBC status during the wait
with latest DRM-Tip kernel build CI_DRM_3683
9d8467fe5626 drm-tip: 2018y-01m-24d-19h-59m-41s UTC integration manifest
No testlist changes.
Test debugfs_test:
Subgroup read_all_entries:
dmesg-warn -> DMESG-FAIL (fi-elk-e7500) fdo#103989
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-b:
incomplete -> PASS (fi-snb-2520m) fdo#103713
fdo#103989 https://bugs.freedesktop.org/show_bug.cgi?id=103989
fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fi-bdw-5557u total:288 pass:267 dwarn:0 dfail:0 fail:0 skip:21 time:420s
fi-bdw-gvtdvm total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:426s
fi-blb-e6850 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:373s
fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:490s
fi-bwr-2160 total:288 pass:183 dwarn:0 dfail:0 fail:0 skip:105 time:284s
fi-bxt-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:487s
fi-bxt-j4205 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:487s
fi-byt-j1900 total:288 pass:253 dwarn:0 dfail:0 fail:0 skip:35 time:471s
fi-byt-n2820 total:288 pass:249 dwarn:0 dfail:0 fail:0 skip:39 time:471s
fi-elk-e7500 total:224 pass:168 dwarn:9 dfail:1 fail:0 skip:45
fi-glk-1 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:512s
fi-hsw-4770 total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:394s
fi-hsw-4770r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:407s
fi-ilk-650 total:288 pass:228 dwarn:0 dfail:0 fail:0 skip:60 time:418s
fi-ivb-3520m total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:450s
fi-ivb-3770 total:288 pass:255 dwarn:0 dfail:0 fail:0 skip:33 time:421s
fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:463s
fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:498s
fi-kbl-7567u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:451s
fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:504s
fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:579s
fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:435s
fi-skl-6600u total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:510s
fi-skl-6700hq total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:532s
fi-skl-6700k2 total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:489s
fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:472s
fi-skl-guc total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:419s
fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:433s
fi-snb-2520m total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:532s
fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:399s
Blacklisted hosts:
fi-cfl-s2 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:574s
fi-glk-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:469s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_821/issues.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] tests/kms_ccs: Grab the CRC when the plane is actually enabled
2018-01-24 20:47 [igt-dev] [PATCH i-g-t] tests/kms_ccs: Grab the CRC when the plane is actually enabled Ville Syrjala
2018-01-24 21:19 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
@ 2018-01-24 23:03 ` Gabriel Krisman Bertazi
2018-01-25 11:31 ` Ville Syrjälä
2018-01-25 0:26 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork
2 siblings, 1 reply; 5+ messages in thread
From: Gabriel Krisman Bertazi @ 2018-01-24 23:03 UTC (permalink / raw)
To: Ville Syrjala; +Cc: igt-dev
Ville Syrjala <ville.syrjala@linux.intel.com> writes:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Don't turn off the plane we want to test before we grab the CRC.
Hi Ville, please add
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Thanks,
--
Gabriel Krisman Bertazi
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 5+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_ccs: Grab the CRC when the plane is actually enabled
2018-01-24 20:47 [igt-dev] [PATCH i-g-t] tests/kms_ccs: Grab the CRC when the plane is actually enabled Ville Syrjala
2018-01-24 21:19 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-01-24 23:03 ` [igt-dev] [PATCH i-g-t] " Gabriel Krisman Bertazi
@ 2018-01-25 0:26 ` Patchwork
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2018-01-25 0:26 UTC (permalink / raw)
To: Ville Syrjala; +Cc: igt-dev
== Series Details ==
Series: tests/kms_ccs: Grab the CRC when the plane is actually enabled
URL : https://patchwork.freedesktop.org/series/37066/
State : success
== Summary ==
Test gem_eio:
Subgroup in-flight-contexts:
fail -> PASS (shard-hsw) fdo#104676
Test pm_rc6_residency:
Subgroup rc6-accuracy:
skip -> PASS (shard-snb)
Test kms_flip:
Subgroup plain-flip-fb-recreate-interruptible:
fail -> PASS (shard-hsw) fdo#100368
Subgroup 2x-flip-vs-modeset-interruptible:
dmesg-warn -> PASS (shard-hsw)
Test kms_sysfs_edid_timing:
pass -> WARN (shard-apl) fdo#100047
Test kms_ccs:
Subgroup pipe-a-crc-sprite-planes-basic:
fail -> SKIP (shard-apl) fdo#104724 +1
Test kms_cursor_legacy:
Subgroup flip-vs-cursor-crc-atomic:
fail -> PASS (shard-apl)
Test perf:
Subgroup enable-disable:
pass -> FAIL (shard-apl) fdo#103715
Test kms_frontbuffer_tracking:
Subgroup fbc-1p-offscren-pri-shrfb-draw-blt:
pass -> FAIL (shard-snb) fdo#101623
fdo#104676 https://bugs.freedesktop.org/show_bug.cgi?id=104676
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#100047 https://bugs.freedesktop.org/show_bug.cgi?id=100047
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#103715 https://bugs.freedesktop.org/show_bug.cgi?id=103715
fdo#101623 https://bugs.freedesktop.org/show_bug.cgi?id=101623
shard-apl total:2838 pass:1751 dwarn:1 dfail:0 fail:21 skip:1064 time:12773s
shard-hsw total:2838 pass:1736 dwarn:1 dfail:0 fail:10 skip:1090 time:11929s
shard-snb total:2838 pass:1330 dwarn:1 dfail:0 fail:11 skip:1496 time:6641s
Blacklisted hosts:
shard-kbl total:2732 pass:1799 dwarn:8 dfail:0 fail:21 skip:903 time:9421s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_821/shards.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] tests/kms_ccs: Grab the CRC when the plane is actually enabled
2018-01-24 23:03 ` [igt-dev] [PATCH i-g-t] " Gabriel Krisman Bertazi
@ 2018-01-25 11:31 ` Ville Syrjälä
0 siblings, 0 replies; 5+ messages in thread
From: Ville Syrjälä @ 2018-01-25 11:31 UTC (permalink / raw)
To: Gabriel Krisman Bertazi; +Cc: igt-dev
On Wed, Jan 24, 2018 at 09:03:02PM -0200, Gabriel Krisman Bertazi wrote:
> Ville Syrjala <ville.syrjala@linux.intel.com> writes:
>
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > Don't turn off the plane we want to test before we grab the CRC.
>
> Hi Ville, please add
>
> Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Thanks. Pushed.
>
> Thanks,
>
> --
> Gabriel Krisman Bertazi
--
Ville Syrjälä
Intel OTC
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-01-25 11:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-24 20:47 [igt-dev] [PATCH i-g-t] tests/kms_ccs: Grab the CRC when the plane is actually enabled Ville Syrjala
2018-01-24 21:19 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-01-24 23:03 ` [igt-dev] [PATCH i-g-t] " Gabriel Krisman Bertazi
2018-01-25 11:31 ` Ville Syrjälä
2018-01-25 0:26 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox