From: Paul Kocialkowski <paul.kocialkowski@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t 2/3] tests/chamelium: Introduce fast CRC tests, with a single mode
Date: Wed, 23 Aug 2017 18:21:13 +0300 [thread overview]
Message-ID: <20170823152114.16559-2-paul.kocialkowski@linux.intel.com> (raw)
In-Reply-To: <20170823152114.16559-1-paul.kocialkowski@linux.intel.com>
This introduces a fast fashion of testing display CRC, that only tests
a single mode (the highest resolution). It drastically reduces the run
time of the test, which is necessary for the fast-feedback test list.
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@linux.intel.com>
---
tests/chamelium.c | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/tests/chamelium.c b/tests/chamelium.c
index 0339c635..00ae484b 100644
--- a/tests/chamelium.c
+++ b/tests/chamelium.c
@@ -497,7 +497,8 @@ disable_output(data_t *data,
}
static void
-test_display_crc(data_t *data, struct chamelium_port *port, int count)
+test_display_crc(data_t *data, struct chamelium_port *port, int count,
+ bool fast)
{
igt_display_t display;
igt_output_t *output;
@@ -509,6 +510,7 @@ test_display_crc(data_t *data, struct chamelium_port *port, int count)
drmModeModeInfo *mode;
drmModeConnector *connector;
int fb_id, i, j, captured_frame_count;
+ int count_modes;
reset_state(data, port);
@@ -517,7 +519,9 @@ test_display_crc(data_t *data, struct chamelium_port *port, int count)
primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
igt_assert(primary);
- for (i = 0; i < connector->count_modes; i++) {
+ count_modes = fast ? 1 : connector->count_modes;
+
+ for (i = 0; i < count_modes; i++) {
mode = &connector->modes[i];
fb_id = igt_create_color_pattern_fb(data->drm_fd,
mode->hdisplay,
@@ -818,10 +822,13 @@ igt_main
edid_id, alt_edid_id);
connector_subtest("dp-crc-single", DisplayPort)
- test_display_crc(&data, port, 1);
+ test_display_crc(&data, port, 1, false);
+
+ connector_subtest("dp-crc-fast", DisplayPort)
+ test_display_crc(&data, port, 1, true);
connector_subtest("dp-crc-multiple", DisplayPort)
- test_display_crc(&data, port, 3);
+ test_display_crc(&data, port, 3, false);
connector_subtest("dp-frame-dump", DisplayPort)
test_display_frame_dump(&data, port);
@@ -879,10 +886,13 @@ igt_main
edid_id, alt_edid_id);
connector_subtest("hdmi-crc-single", HDMIA)
- test_display_crc(&data, port, 1);
+ test_display_crc(&data, port, 1, false);
+
+ connector_subtest("hdmi-crc-fast", HDMIA)
+ test_display_crc(&data, port, 1, true);
connector_subtest("hdmi-crc-multiple", HDMIA)
- test_display_crc(&data, port, 3);
+ test_display_crc(&data, port, 3, false);
connector_subtest("hdmi-frame-dump", HDMIA)
test_display_frame_dump(&data, port);
--
2.14.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-08-23 15:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-23 15:21 [PATCH i-g-t 1/3] tests/chamelium: Introduce fast basic hpd tests, with limited toggles Paul Kocialkowski
2017-08-23 15:21 ` Paul Kocialkowski [this message]
2017-08-23 15:21 ` [PATCH i-g-t 3/3] intel-ci: Add fast chamelium tests to the fast-feedback list Paul Kocialkowski
2017-08-25 12:04 ` Paul Kocialkowski
2017-08-26 6:21 ` Rodrigo Vivi
2017-08-28 7:20 ` Paul Kocialkowski
2017-08-28 7:45 ` Arkadiusz Hiler
2017-08-23 15:38 ` ✓ Fi.CI.BAT: success for series starting with [1/3] tests/chamelium: Introduce fast basic hpd tests, with limited toggles Patchwork
2017-08-23 19:27 ` [PATCH i-g-t 1/3] " Lyude Paul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170823152114.16559-2-paul.kocialkowski@linux.intel.com \
--to=paul.kocialkowski@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.