From: "Kahola, Mika" <mika.kahola@intel.com>
To: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_plane_multiple: Avoid CRC buffer overflows
Date: Fri, 20 Mar 2020 13:03:45 +0000 [thread overview]
Message-ID: <e22bbf0f5a6041219b37279ddbcaad3d@intel.com> (raw)
In-Reply-To: <20200319140608.25405-1-juhapekka.heikkila@gmail.com>
-----Original Message-----
From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Juha-Pekka Heikkila
Sent: Thursday, March 19, 2020 4:06 PM
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] tests/kms_plane_multiple: Avoid CRC buffer overflows
Change test initialization so CRC buffer will not become full on slower machines.
v2: don't waste time by draining crcs unnecessarily.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
---
tests/kms_plane_multiple.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c index 255cd34a..3c503c26 100644
--- a/tests/kms_plane_multiple.c
+++ b/tests/kms_plane_multiple.c
@@ -121,8 +121,7 @@ get_reference_crc(data_t *data, igt_output_t *output, enum pipe pipe,
ret = igt_display_try_commit2(&data->display, COMMIT_ATOMIC);
igt_skip_on(ret != 0);
- igt_pipe_crc_start(data->pipe_crc);
- igt_pipe_crc_get_single(data->pipe_crc, &data->ref_crc);
+ igt_pipe_crc_collect_crc(data->pipe_crc, &data->ref_crc);
}
static void
@@ -330,6 +329,8 @@ test_plane_position_with_output(data_t *data, enum pipe pipe,
igt_output_name(output), kmstest_pipe_name(pipe), c,
info, opt.seed);
+ igt_pipe_crc_start(data->pipe_crc);
+
i = 0;
while (i < iterations || loop_forever) {
/* randomize planes and set up the holes */
--
2.17.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2020-03-20 13:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-19 14:06 [igt-dev] [PATCH i-g-t] tests/kms_plane_multiple: Avoid CRC buffer overflows Juha-Pekka Heikkila
2020-03-19 14:53 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_multiple: Avoid CRC buffer overflows (rev2) Patchwork
2020-03-19 15:58 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2020-03-20 13:03 ` Kahola, Mika [this message]
2020-03-20 15:53 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_multiple: Avoid CRC buffer overflows (rev3) Patchwork
2020-03-20 21:13 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2020-03-18 20:16 [igt-dev] [PATCH i-g-t] tests/kms_plane_multiple: Avoid CRC buffer overflows Juha-Pekka Heikkila
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=e22bbf0f5a6041219b37279ddbcaad3d@intel.com \
--to=mika.kahola@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=juhapekka.heikkila@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox