From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tests/i915/kms_big_fb: move start of crc calculation past first commit
Date: Wed, 6 Apr 2022 22:20:55 +0300 [thread overview]
Message-ID: <Yk3oF8FCWPHUKk5/@intel.com> (raw)
In-Reply-To: <20220406191139.31227-1-juhapekka.heikkila@gmail.com>
On Wed, Apr 06, 2022 at 10:11:39PM +0300, Juha-Pekka Heikkila wrote:
> First commit may cause modeset which can on some machines take enough
> time to fill up crc buffer causing crc buffer overflow messages. Moved
> crc calcualtion start past first commit to avoid these messages.
>
> I changed small fb not to be cleared with green color, this seem
> to take portion of execution time away.
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
> tests/i915/kms_big_fb.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/tests/i915/kms_big_fb.c b/tests/i915/kms_big_fb.c
> index 8724d6069..6c6d674cb 100644
> --- a/tests/i915/kms_big_fb.c
> +++ b/tests/i915/kms_big_fb.c
> @@ -370,12 +370,12 @@ static bool test_plane(data_t *data)
> * rendering pipeline introduces slight differences into
> * the result if we try that, and so the crc will not match.
> */
> - igt_pipe_crc_start(data->pipe_crc);
> copy_pattern(data, small_fb, 0, 0, big_fb, x, y,
> small_fb->width, small_fb->height);
>
> igt_display_commit2(&data->display, data->display.is_atomic ?
> COMMIT_ATOMIC : COMMIT_UNIVERSAL);
Is is modesetting multiple pipes here? If not then we seem
to have a bug somewhere as CRCs should be disabled during
most of the modeset sequence.
> + igt_pipe_crc_start(data->pipe_crc);
> igt_pipe_crc_get_current(data->display.drm_fd, data->pipe_crc, &small_crc);
>
> igt_plane_set_fb(plane, big_fb);
> @@ -420,9 +420,8 @@ static bool test_pipe(data_t *data)
> if (igt_rotation_90_or_270(data->rotation))
> igt_swap(width, height);
>
> - igt_create_color_fb(data->drm_fd, width, height,
> - data->format, data->modifier,
> - 0, 1, 0, &data->small_fb);
> + igt_create_fb(data->drm_fd, width, height, data->format,
> + data->modifier, &data->small_fb);
I'd split that into a separate patch.
>
> igt_output_set_pipe(data->output, data->pipe);
>
> --
> 2.28.0
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2022-04-06 19:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-06 19:11 [igt-dev] [PATCH i-g-t] tests/i915/kms_big_fb: move start of crc calculation past first commit Juha-Pekka Heikkila
2022-04-06 19:20 ` Ville Syrjälä [this message]
2022-04-06 19:35 ` Juha-Pekka Heikkilä
2022-04-06 23:02 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-04-07 5:46 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
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=Yk3oF8FCWPHUKk5/@intel.com \
--to=ville.syrjala@linux.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 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.