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 1/2] tests/kms_rotation_crc: fix crc buffer overflow for slow platforms
Date: Tue, 12 Jan 2021 13:26:56 +0000 [thread overview]
Message-ID: <c16fde62a310419dac5c5bc8a157b3ad@intel.com> (raw)
In-Reply-To: <20210109191013.9858-1-juhapekka.heikkila@gmail.com>
> -----Original Message-----
> From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Juha-
> Pekka Heikkila
> Sent: Saturday, January 9, 2021 9:10 PM
> To: igt-dev@lists.freedesktop.org
> Subject: [igt-dev] [PATCH i-g-t 1/2] tests/kms_rotation_crc: fix crc buffer
> overflow for slow platforms
>
> on bad tiling tests there was nothing reading running crcs which could fill up
> crc ringbuffer. Fix this by draining crc buffer per round. Also unify all
> platforms execution path by taking reference crcs per pipe.
>
Looks ok to me.
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
> tests/kms_rotation_crc.c | 16 ++++++----------
> 1 file changed, 6 insertions(+), 10 deletions(-)
>
> diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index
> be27103fa..33a97ccaa 100644
> --- a/tests/kms_rotation_crc.c
> +++ b/tests/kms_rotation_crc.c
> @@ -272,11 +272,7 @@ static void prepare_fbs(data_t *data, igt_output_t
> *output,
> */
> igt_require(igt_display_has_format_mod(display, pixel_format,
> tiling));
>
> - /*
> - * HSW will need to have those CRCs calculated each time, it
> - * seems to behave different from other platforms.
> - */
> - if (!data->crc_rect[rect].valid || IS_HASWELL(data->devid)) {
> + if (!data->crc_rect[rect].valid) {
> /*
> * Create a reference software rotated flip framebuffer.
> */
> @@ -345,6 +341,7 @@ static void test_single_case(data_t *data, enum pipe
> pipe,
>
> ret = igt_display_try_commit2(display, COMMIT_ATOMIC);
> if (test_bad_format) {
> + igt_pipe_crc_drain(data->pipe_crc);
> igt_assert_eq(ret, -EINVAL);
> return;
> }
> @@ -408,10 +405,6 @@ static void test_plane_rotation(data_t *data, int
> plane_type, bool test_bad_form
> igt_display_t *display = &data->display;
> igt_output_t *output;
> enum pipe pipe;
> - int c;
> -
> - for (c = 0; c < num_rectangle_types; c++)
> - data->crc_rect[c].valid = false;
>
> if (plane_type == DRM_PLANE_TYPE_CURSOR)
> igt_require(display->has_cursor_plane);
> @@ -420,7 +413,10 @@ static void test_plane_rotation(data_t *data, int
> plane_type, bool test_bad_form
>
> for_each_pipe_with_valid_output(display, pipe, output) {
> igt_plane_t *plane;
> - int i, j;
> + int i, j, c;
> +
> + for (c = 0; c < num_rectangle_types; c++)
> + data->crc_rect[c].valid = false;
>
> if (IS_CHERRYVIEW(data->devid) && pipe != PIPE_B)
> continue;
> --
> 2.28.0
>
> _______________________________________________
> 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:[~2021-01-12 13:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-09 19:10 [igt-dev] [PATCH i-g-t 1/2] tests/kms_rotation_crc: fix crc buffer overflow for slow platforms Juha-Pekka Heikkila
2021-01-09 19:10 ` [igt-dev] [PATCH i-g-t 2/2] HAX remove rotation tests from blacklist Juha-Pekka Heikkila
2021-01-12 13:27 ` Kahola, Mika
2021-01-09 20:08 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/2] tests/kms_rotation_crc: fix crc buffer overflow for slow platforms Patchwork
2021-01-09 23:24 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] tests/kms_rotation_crc: fix crc buffer overflow for slow platforms (rev2) Patchwork
2021-01-10 0:43 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-01-12 13:26 ` Kahola, Mika [this message]
2021-01-12 17:59 ` [igt-dev] [PATCH i-g-t 1/2] tests/kms_rotation_crc: fix crc buffer overflow for slow platforms 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=c16fde62a310419dac5c5bc8a157b3ad@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